From 1214f5bfe68a68d299de1bbc05586c00726c1cb9 Mon Sep 17 00:00:00 2001 From: Anirudh-Scale Date: Mon, 20 Mar 2023 15:38:23 +0000 Subject: [PATCH 01/11] new docs --- launch/api_client/__init__.py | 16 +- launch/api_client/api_client.py | 456 +++++---- launch/api_client/apis/__init__.py | 2 +- launch/api_client/apis/path_to_api.py | 38 +- .../v1_model_bundles_clone_with_changes.py | 4 +- .../paths/v1_model_bundles_model_bundle_id.py | 4 +- .../v1_model_endpoints_model_endpoint_id.py | 12 +- .../paths/v1_model_endpoints_schema_json.py | 4 +- launch/api_client/apis/tag_to_api.py | 4 +- launch/api_client/apis/tags/default_api.py | 73 +- launch/api_client/configuration.py | 213 ++-- launch/api_client/exceptions.py | 11 +- .../model/batch_job_serialization_format.py | 14 +- .../model/batch_job_serialization_format.pyi | 14 +- launch/api_client/model/batch_job_status.py | 22 +- launch/api_client/model/batch_job_status.pyi | 18 +- launch/api_client/model/callback_auth.py | 58 +- launch/api_client/model/callback_auth.pyi | 59 +- .../api_client/model/callback_basic_auth.py | 134 +-- .../api_client/model/callback_basic_auth.pyi | 99 +- launch/api_client/model/callbackm_tls_auth.py | 135 +-- .../api_client/model/callbackm_tls_auth.pyi | 100 +- .../model/clone_model_bundle_request.py | 5 +- .../model/clone_model_bundle_request.pyi | 8 +- .../model/clone_model_bundle_v1_request.py | 95 ++ .../model/clone_model_bundle_v1_request.pyi | 95 ++ .../model/create_async_task_response.py | 29 +- .../model/create_async_task_response.pyi | 32 +- .../model/create_async_task_v1_response.py | 83 ++ .../model/create_async_task_v1_response.pyi | 83 ++ .../model/create_batch_job_request.py | 59 +- .../model/create_batch_job_request.pyi | 50 +- .../create_batch_job_resource_requests.py | 380 ++----- .../create_batch_job_resource_requests.pyi | 325 ++---- .../model/create_batch_job_response.py | 25 +- .../model/create_batch_job_response.pyi | 32 +- .../model/create_batch_job_v1_request.py | 168 ++++ .../model/create_batch_job_v1_request.pyi | 168 ++++ .../model/create_batch_job_v1_response.py | 83 ++ .../model/create_batch_job_v1_response.pyi | 83 ++ .../model/create_model_bundle_request.py | 53 +- .../model/create_model_bundle_request.pyi | 56 +- .../model/create_model_bundle_response.py | 29 +- .../model/create_model_bundle_response.pyi | 24 +- .../model/create_model_bundle_v1_request.py | 194 ++++ .../model/create_model_bundle_v1_request.pyi | 194 ++++ .../model/create_model_bundle_v1_response.py | 85 ++ .../model/create_model_bundle_v1_response.pyi | 85 ++ .../model/create_model_endpoint_request.py | 95 +- .../model/create_model_endpoint_request.pyi | 114 ++- .../model/create_model_endpoint_response.py | 21 +- .../model/create_model_endpoint_response.pyi | 24 +- .../model/create_model_endpoint_v1_request.py | 518 ++++++++++ .../create_model_endpoint_v1_request.pyi | 501 ++++++++++ .../create_model_endpoint_v1_response.py | 83 ++ .../create_model_endpoint_v1_response.pyi | 83 ++ .../model/delete_model_endpoint_response.py | 29 +- .../model/delete_model_endpoint_response.pyi | 32 +- .../delete_model_endpoint_v1_response.py | 83 ++ .../delete_model_endpoint_v1_response.pyi | 83 ++ .../model/endpoint_predict_request.py | 25 +- .../model/endpoint_predict_request.pyi | 28 +- .../model/endpoint_predict_v1_request.py | 133 +++ .../model/endpoint_predict_v1_request.pyi | 133 +++ .../model/get_async_task_response.py | 13 +- .../model/get_async_task_response.pyi | 20 +- .../model/get_async_task_v1_response.py | 120 +++ .../model/get_async_task_v1_response.pyi | 120 +++ .../model/get_batch_job_response.py | 9 +- .../model/get_batch_job_response.pyi | 16 +- .../model/get_batch_job_v1_response.py | 130 +++ .../model/get_batch_job_v1_response.pyi | 130 +++ .../model/get_model_endpoint_response.py | 111 ++- .../model/get_model_endpoint_response.pyi | 110 ++- .../model/get_model_endpoint_v1_response.py | 370 +++++++ .../model/get_model_endpoint_v1_response.pyi | 365 +++++++ launch/api_client/model/gpu_type.py | 16 +- launch/api_client/model/gpu_type.pyi | 15 +- .../api_client/model/http_validation_error.py | 89 +- .../model/http_validation_error.pyi | 72 +- .../model/list_model_bundles_response.py | 33 +- .../model/list_model_bundles_response.pyi | 36 +- .../model/list_model_bundles_v1_response.py | 112 +++ .../model/list_model_bundles_v1_response.pyi | 112 +++ .../model/list_model_endpoints_response.py | 36 +- .../model/list_model_endpoints_response.pyi | 31 +- .../model/list_model_endpoints_v1_response.py | 110 +++ .../list_model_endpoints_v1_response.pyi | 110 +++ .../model/model_bundle_environment_params.py | 164 +--- .../model/model_bundle_environment_params.pyi | 131 +-- .../model/model_bundle_framework.py | 1 - .../model/model_bundle_framework_type.py | 56 ++ .../model/model_bundle_framework_type.pyi | 48 + .../api_client/model/model_bundle_order_by.py | 16 +- .../model/model_bundle_order_by.pyi | 16 +- .../model/model_bundle_packaging_type.py | 21 +- .../model/model_bundle_packaging_type.pyi | 20 +- .../api_client/model/model_bundle_response.py | 69 +- .../model/model_bundle_response.pyi | 72 +- .../model/model_bundle_v1_response.py | 254 +++++ .../model/model_bundle_v1_response.pyi | 254 +++++ .../model/model_endpoint_deployment_state.py | 202 ++-- .../model/model_endpoint_deployment_state.pyi | 153 ++- .../model/model_endpoint_order_by.py | 18 +- .../model/model_endpoint_order_by.pyi | 17 +- .../model/model_endpoint_resource_state.py | 375 ++----- .../model/model_endpoint_resource_state.pyi | 319 ++---- .../api_client/model/model_endpoint_status.py | 20 +- .../model/model_endpoint_status.pyi | 17 +- .../api_client/model/model_endpoint_type.py | 14 +- .../api_client/model/model_endpoint_type.pyi | 14 +- launch/api_client/model/request_schema.py | 5 +- launch/api_client/model/request_schema.pyi | 6 +- launch/api_client/model/response_schema.py | 5 +- launch/api_client/model/response_schema.pyi | 6 +- .../model/sync_endpoint_predict_response.py | 5 +- .../model/sync_endpoint_predict_response.pyi | 12 +- .../sync_endpoint_predict_v1_response.py | 108 ++ .../sync_endpoint_predict_v1_response.pyi | 108 ++ launch/api_client/model/task_status.py | 20 +- launch/api_client/model/task_status.pyi | 17 +- .../model/update_batch_job_request.py | 25 +- .../model/update_batch_job_request.pyi | 32 +- .../model/update_batch_job_response.py | 29 +- .../model/update_batch_job_response.pyi | 32 +- .../model/update_batch_job_v1_request.py | 83 ++ .../model/update_batch_job_v1_request.pyi | 83 ++ .../model/update_batch_job_v1_response.py | 83 ++ .../model/update_batch_job_v1_response.pyi | 83 ++ .../model/update_model_endpoint_request.py | 95 +- .../model/update_model_endpoint_request.pyi | 102 +- .../model/update_model_endpoint_response.py | 21 +- .../model/update_model_endpoint_response.pyi | 24 +- .../model/update_model_endpoint_v1_request.py | 481 +++++++++ .../update_model_endpoint_v1_request.pyi | 467 +++++++++ .../update_model_endpoint_v1_response.py | 83 ++ .../update_model_endpoint_v1_response.pyi | 83 ++ launch/api_client/model/validation_error.py | 230 ++--- launch/api_client/model/validation_error.pyi | 195 +--- launch/api_client/models/__init__.py | 110 +-- .../api_client/paths/healthcheck/__init__.py | 2 +- launch/api_client/paths/healthcheck/get.py | 85 +- launch/api_client/paths/healthcheck/get.pyi | 83 +- launch/api_client/paths/healthz/__init__.py | 2 +- launch/api_client/paths/healthz/get.py | 85 +- launch/api_client/paths/healthz/get.pyi | 83 +- launch/api_client/paths/readyz/__init__.py | 2 +- launch/api_client/paths/readyz/get.py | 85 +- launch/api_client/paths/readyz/get.pyi | 83 +- .../paths/v1_async_tasks/__init__.py | 2 +- .../api_client/paths/v1_async_tasks/post.py | 171 ++-- .../api_client/paths/v1_async_tasks/post.pyi | 168 +++- .../paths/v1_async_tasks_task_id/__init__.py | 2 +- .../paths/v1_async_tasks_task_id/get.py | 123 ++- .../paths/v1_async_tasks_task_id/get.pyi | 119 ++- .../paths/v1_batch_jobs/__init__.py | 2 +- launch/api_client/paths/v1_batch_jobs/post.py | 153 +-- .../api_client/paths/v1_batch_jobs/post.pyi | 148 ++- .../v1_batch_jobs_batch_job_id/__init__.py | 2 +- .../paths/v1_batch_jobs_batch_job_id/get.py | 121 ++- .../paths/v1_batch_jobs_batch_job_id/get.pyi | 119 ++- .../paths/v1_batch_jobs_batch_job_id/put.py | 173 ++-- .../paths/v1_batch_jobs_batch_job_id/put.pyi | 170 +++- .../paths/v1_model_bundles/__init__.py | 2 +- .../api_client/paths/v1_model_bundles/get.py | 122 ++- .../api_client/paths/v1_model_bundles/get.pyi | 120 ++- .../api_client/paths/v1_model_bundles/post.py | 153 +-- .../paths/v1_model_bundles/post.pyi | 150 ++- .../__init__.py | 2 +- .../post.py | 153 +-- .../post.pyi | 150 ++- .../paths/v1_model_bundles_latest/__init__.py | 2 +- .../paths/v1_model_bundles_latest/get.py | 119 ++- .../paths/v1_model_bundles_latest/get.pyi | 117 ++- .../__init__.py | 2 +- .../v1_model_bundles_model_bundle_id/get.py | 121 ++- .../v1_model_bundles_model_bundle_id/get.pyi | 119 ++- .../paths/v1_model_endpoints/__init__.py | 2 +- .../paths/v1_model_endpoints/get.py | 124 ++- .../paths/v1_model_endpoints/get.pyi | 118 ++- .../paths/v1_model_endpoints/post.py | 153 +-- .../paths/v1_model_endpoints/post.pyi | 150 ++- .../paths/v1_model_endpoints_api/__init__.py | 2 +- .../paths/v1_model_endpoints_api/get.py | 87 +- .../paths/v1_model_endpoints_api/get.pyi | 83 +- .../__init__.py | 2 +- .../delete.py | 123 ++- .../delete.pyi | 121 ++- .../get.py | 123 ++- .../get.pyi | 121 ++- .../put.py | 173 ++-- .../put.pyi | 172 +++- .../__init__.py | 2 +- .../v1_model_endpoints_schema_json/get.py | 87 +- .../v1_model_endpoints_schema_json/get.pyi | 83 +- .../paths/v1_sync_tasks/__init__.py | 2 +- launch/api_client/paths/v1_sync_tasks/post.py | 171 ++-- .../api_client/paths/v1_sync_tasks/post.pyi | 168 +++- launch/api_client/rest.py | 139 ++- launch/api_client/schemas.py | 926 +++++++----------- 200 files changed, 13860 insertions(+), 5775 deletions(-) create mode 100644 launch/api_client/model/clone_model_bundle_v1_request.py create mode 100644 launch/api_client/model/clone_model_bundle_v1_request.pyi create mode 100644 launch/api_client/model/create_async_task_v1_response.py create mode 100644 launch/api_client/model/create_async_task_v1_response.pyi create mode 100644 launch/api_client/model/create_batch_job_v1_request.py create mode 100644 launch/api_client/model/create_batch_job_v1_request.pyi create mode 100644 launch/api_client/model/create_batch_job_v1_response.py create mode 100644 launch/api_client/model/create_batch_job_v1_response.pyi create mode 100644 launch/api_client/model/create_model_bundle_v1_request.py create mode 100644 launch/api_client/model/create_model_bundle_v1_request.pyi create mode 100644 launch/api_client/model/create_model_bundle_v1_response.py create mode 100644 launch/api_client/model/create_model_bundle_v1_response.pyi create mode 100644 launch/api_client/model/create_model_endpoint_v1_request.py create mode 100644 launch/api_client/model/create_model_endpoint_v1_request.pyi create mode 100644 launch/api_client/model/create_model_endpoint_v1_response.py create mode 100644 launch/api_client/model/create_model_endpoint_v1_response.pyi create mode 100644 launch/api_client/model/delete_model_endpoint_v1_response.py create mode 100644 launch/api_client/model/delete_model_endpoint_v1_response.pyi create mode 100644 launch/api_client/model/endpoint_predict_v1_request.py create mode 100644 launch/api_client/model/endpoint_predict_v1_request.pyi create mode 100644 launch/api_client/model/get_async_task_v1_response.py create mode 100644 launch/api_client/model/get_async_task_v1_response.pyi create mode 100644 launch/api_client/model/get_batch_job_v1_response.py create mode 100644 launch/api_client/model/get_batch_job_v1_response.pyi create mode 100644 launch/api_client/model/get_model_endpoint_v1_response.py create mode 100644 launch/api_client/model/get_model_endpoint_v1_response.pyi create mode 100644 launch/api_client/model/list_model_bundles_v1_response.py create mode 100644 launch/api_client/model/list_model_bundles_v1_response.pyi create mode 100644 launch/api_client/model/list_model_endpoints_v1_response.py create mode 100644 launch/api_client/model/list_model_endpoints_v1_response.pyi create mode 100644 launch/api_client/model/model_bundle_framework_type.py create mode 100644 launch/api_client/model/model_bundle_framework_type.pyi create mode 100644 launch/api_client/model/model_bundle_v1_response.py create mode 100644 launch/api_client/model/model_bundle_v1_response.pyi create mode 100644 launch/api_client/model/sync_endpoint_predict_v1_response.py create mode 100644 launch/api_client/model/sync_endpoint_predict_v1_response.pyi create mode 100644 launch/api_client/model/update_batch_job_v1_request.py create mode 100644 launch/api_client/model/update_batch_job_v1_request.pyi create mode 100644 launch/api_client/model/update_batch_job_v1_response.py create mode 100644 launch/api_client/model/update_batch_job_v1_response.pyi create mode 100644 launch/api_client/model/update_model_endpoint_v1_request.py create mode 100644 launch/api_client/model/update_model_endpoint_v1_request.pyi create mode 100644 launch/api_client/model/update_model_endpoint_v1_response.py create mode 100644 launch/api_client/model/update_model_endpoint_v1_response.pyi diff --git a/launch/api_client/__init__.py b/launch/api_client/__init__.py index f6709b0c..290cb8df 100644 --- a/launch/api_client/__init__.py +++ b/launch/api_client/__init__.py @@ -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 @@ -20,11 +20,9 @@ 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.exceptions import OpenApiException +from launch.api_client.exceptions import ApiAttributeError +from launch.api_client.exceptions import ApiTypeError +from launch.api_client.exceptions import ApiValueError +from launch.api_client.exceptions import ApiKeyError +from launch.api_client.exceptions import ApiException diff --git a/launch/api_client/api_client.py b/launch/api_client/api_client.py index 0cb0b275..6df66791 100644 --- a/launch/api_client/api_client.py +++ b/launch/api_client/api_client.py @@ -8,39 +8,39 @@ Generated by: https://openapi-generator.tech """ -import atexit -import email +from dataclasses import dataclass +from decimal import Decimal import enum -import io +import email import json import os +import io +import atexit +from multiprocessing.pool import ThreadPool import re import tempfile import typing -from dataclasses import dataclass -from decimal import Decimal -from multiprocessing.pool import ThreadPool -from urllib.parse import quote, urlparse - -import frozendict import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict +from urllib.parse import urlparse, quote from urllib3.fields import RequestField as RequestFieldBase +import frozendict + from launch.api_client import rest from launch.api_client.configuration import Configuration from launch.api_client.exceptions import ApiTypeError, ApiValueError from launch.api_client.schemas import ( - BinarySchema, - BoolClass, - FileIO, NoneClass, + BoolClass, Schema, - Unset, + FileIO, + BinarySchema, date, datetime, none_type, + Unset, unset, ) @@ -53,7 +53,7 @@ def __eq__(self, other): class JSONEncoder(json.JSONEncoder): - compact_separators = (",", ":") + compact_separators = (',', ':') def default(self, obj): if isinstance(obj, str): @@ -74,24 +74,24 @@ def default(self, obj): return {key: self.default(val) for key, val in obj.items()} elif isinstance(obj, (list, tuple)): return [self.default(item) for item in obj] - raise ApiValueError("Unable to prepare type {} for serialization".format(obj.__class__.__name__)) + raise ApiValueError('Unable to prepare type {} for serialization'.format(obj.__class__.__name__)) class ParameterInType(enum.Enum): - QUERY = "query" - HEADER = "header" - PATH = "path" - COOKIE = "cookie" + QUERY = 'query' + HEADER = 'header' + PATH = 'path' + COOKIE = 'cookie' class ParameterStyle(enum.Enum): - MATRIX = "matrix" - LABEL = "label" - FORM = "form" - SIMPLE = "simple" - SPACE_DELIMITED = "spaceDelimited" - PIPE_DELIMITED = "pipeDelimited" - DEEP_OBJECT = "deepObject" + MATRIX = 'matrix' + LABEL = 'label' + FORM = 'form' + SIMPLE = 'simple' + SPACE_DELIMITED = 'spaceDelimited' + PIPE_DELIMITED = 'pipeDelimited' + DEEP_OBJECT = 'deepObject' class PrefixSeparatorIterator: @@ -101,10 +101,10 @@ def __init__(self, prefix: str, separator: str): self.prefix = prefix self.separator = separator self.first = True - if separator in {".", "|", "%20"}: + if separator in {'.', '|', '%20'}: item_separator = separator else: - item_separator = "," + item_separator = ',' self.item_separator = item_separator def __iter__(self): @@ -146,7 +146,7 @@ def __ref6570_item_value(in_data: typing.Any, percent_encode: bool): elif isinstance(in_data, dict) and not in_data: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return None - raise ApiValueError("Unable to generate a ref6570 item representation of {}".format(in_data)) + raise ApiValueError('Unable to generate a ref6570 item representation of {}'.format(in_data)) @staticmethod def _to_dict(name: str, value: str): @@ -161,12 +161,12 @@ def __ref6570_str_float_int_expansion( percent_encode: bool, prefix_separator_iterator: PrefixSeparatorIterator, var_name_piece: str, - named_parameter_expansion: bool, + named_parameter_expansion: bool ) -> str: item_value = cls.__ref6570_item_value(in_data, percent_encode) - if item_value is None or (item_value == "" and prefix_separator_iterator.separator == ";"): + if item_value is None or (item_value == '' and prefix_separator_iterator.separator == ';'): return next(prefix_separator_iterator) + var_name_piece - value_pair_equals = "=" if named_parameter_expansion else "" + value_pair_equals = '=' if named_parameter_expansion else '' return next(prefix_separator_iterator) + var_name_piece + value_pair_equals + item_value @classmethod @@ -178,20 +178,20 @@ def __ref6570_list_expansion( percent_encode: bool, prefix_separator_iterator: PrefixSeparatorIterator, var_name_piece: str, - named_parameter_expansion: bool, + named_parameter_expansion: bool ) -> str: item_values = [cls.__ref6570_item_value(v, percent_encode) for v in in_data] item_values = [v for v in item_values if v is not None] if not item_values: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return "" - value_pair_equals = "=" if named_parameter_expansion else "" + value_pair_equals = '=' if named_parameter_expansion else '' if not explode: return ( - next(prefix_separator_iterator) - + var_name_piece - + value_pair_equals - + prefix_separator_iterator.item_separator.join(item_values) + next(prefix_separator_iterator) + + var_name_piece + + value_pair_equals + + prefix_separator_iterator.item_separator.join(item_values) ) # exploded return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( @@ -207,27 +207,27 @@ def __ref6570_dict_expansion( percent_encode: bool, prefix_separator_iterator: PrefixSeparatorIterator, var_name_piece: str, - named_parameter_expansion: bool, + named_parameter_expansion: bool ) -> str: in_data_transformed = {key: cls.__ref6570_item_value(val, percent_encode) for key, val in in_data.items()} in_data_transformed = {key: val for key, val in in_data_transformed.items() if val is not None} if not in_data_transformed: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return "" - value_pair_equals = "=" if named_parameter_expansion else "" + value_pair_equals = '=' if named_parameter_expansion else '' if not explode: return ( - next(prefix_separator_iterator) - + var_name_piece - + value_pair_equals - + prefix_separator_iterator.item_separator.join( - prefix_separator_iterator.item_separator.join(item_pair) - for item_pair in in_data_transformed.items() + next(prefix_separator_iterator) + + var_name_piece + value_pair_equals + + prefix_separator_iterator.item_separator.join( + prefix_separator_iterator.item_separator.join( + item_pair + ) for item_pair in in_data_transformed.items() ) ) # exploded return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( - [key + "=" + val for key, val in in_data_transformed.items()] + [key + '=' + val for key, val in in_data_transformed.items()] ) @classmethod @@ -237,13 +237,13 @@ def _ref6570_expansion( in_data: typing.Any, explode: bool, percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator, + prefix_separator_iterator: PrefixSeparatorIterator ) -> str: """ Separator is for separate variables like dict with explode true, not for array item separation """ - named_parameter_expansion = prefix_separator_iterator.separator in {"&", ";"} - var_name_piece = variable_name if named_parameter_expansion else "" + named_parameter_expansion = prefix_separator_iterator.separator in {'&', ';'} + var_name_piece = variable_name if named_parameter_expansion else '' if type(in_data) in {str, float, int}: return cls.__ref6570_str_float_int_expansion( variable_name, @@ -252,7 +252,7 @@ def _ref6570_expansion( percent_encode, prefix_separator_iterator, var_name_piece, - named_parameter_expansion, + named_parameter_expansion ) elif isinstance(in_data, none_type): # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 @@ -265,7 +265,7 @@ def _ref6570_expansion( percent_encode, prefix_separator_iterator, var_name_piece, - named_parameter_expansion, + named_parameter_expansion ) elif isinstance(in_data, dict): return cls.__ref6570_dict_expansion( @@ -275,10 +275,10 @@ def _ref6570_expansion( percent_encode, prefix_separator_iterator, var_name_piece, - named_parameter_expansion, + named_parameter_expansion ) # bool, bytes, etc - raise ApiValueError("Unable to generate a ref6570 representation of {}".format(in_data)) + raise ApiValueError('Unable to generate a ref6570 representation of {}'.format(in_data)) class StyleFormSerializer(ParameterSerializerBase): @@ -294,34 +294,35 @@ def _serialize_form( name: str, explode: bool, percent_encode: bool, - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None, + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None ) -> str: if prefix_separator_iterator is None: - prefix_separator_iterator = PrefixSeparatorIterator("", "&") + prefix_separator_iterator = PrefixSeparatorIterator('', '&') return self._ref6570_expansion( variable_name=name, in_data=in_data, explode=explode, percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) class StyleSimpleSerializer(ParameterSerializerBase): + def _serialize_simple( self, in_data: typing.Union[None, int, float, str, bool, dict, list], name: str, explode: bool, - percent_encode: bool, + percent_encode: bool ) -> str: - prefix_separator_iterator = PrefixSeparatorIterator("", ",") + prefix_separator_iterator = PrefixSeparatorIterator('', ',') return self._ref6570_expansion( variable_name=name, in_data=in_data, explode=explode, percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) @@ -333,7 +334,6 @@ class JSONDetector: application/json-patch+json application/geo+json """ - __json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*") @classmethod @@ -369,7 +369,7 @@ class ParameterBase(JSONDetector): ParameterInType.HEADER: ParameterStyle.SIMPLE, ParameterInType.COOKIE: ParameterStyle.FORM, } - __disallowed_header_names = {"Accept", "Content-Type", "Authorization"} + __disallowed_header_names = {'Accept', 'Content-Type', 'Authorization'} _json_encoder = JSONEncoder() @classmethod @@ -379,7 +379,7 @@ def __verify_style_to_in_type(cls, style: typing.Optional[ParameterStyle], in_ty in_type_set = cls.__style_to_in_type[style] if in_type not in in_type_set: raise ValueError( - "Invalid style and in_type combination. For style={} only in_type={} are allowed".format( + 'Invalid style and in_type combination. For style={} only in_type={} are allowed'.format( style, in_type_set ) ) @@ -393,19 +393,19 @@ def __init__( explode: bool = False, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None ): if schema is None and content is None: - raise ValueError("Value missing; Pass in either schema or content") + raise ValueError('Value missing; Pass in either schema or content') if schema and content: - raise ValueError("Too many values provided. Both schema and content were provided. Only one may be input") + raise ValueError('Too many values provided. Both schema and content were provided. Only one may be input') if name in self.__disallowed_header_names and in_type is ParameterInType.HEADER: - raise ValueError("Invalid name, name may not be one of {}".format(self.__disallowed_header_names)) + raise ValueError('Invalid name, name may not be one of {}'.format(self.__disallowed_header_names)) self.__verify_style_to_in_type(style, in_type) if content is None and style is None: style = self.__in_type_to_default_style[in_type] if content is not None and in_type in self.__in_type_to_default_style and len(content) != 1: - raise ValueError("Invalid content length, content length must equal 1") + raise ValueError('Invalid content length, content length must equal 1') self.in_type = in_type self.name = name self.required = required @@ -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) @@ -424,6 +426,7 @@ def _serialize_json( class PathParameter(ParameterBase, StyleSimpleSerializer): + def __init__( self, name: str, @@ -432,7 +435,7 @@ def __init__( explode: bool = False, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None ): super().__init__( name, @@ -442,32 +445,34 @@ def __init__( explode=explode, allow_reserved=allow_reserved, schema=schema, - content=content, + content=content ) def __serialize_label( - self, in_data: typing.Union[None, int, float, str, bool, dict, list] + self, + in_data: typing.Union[None, int, float, str, bool, dict, list] ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator(".", ".") + prefix_separator_iterator = PrefixSeparatorIterator('.', '.') value = self._ref6570_expansion( variable_name=self.name, in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) return self._to_dict(self.name, value) def __serialize_matrix( - self, in_data: typing.Union[None, int, float, str, bool, dict, list] + self, + in_data: typing.Union[None, int, float, str, bool, dict, list] ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator(";", ";") + prefix_separator_iterator = PrefixSeparatorIterator(';', ';') value = self._ref6570_expansion( variable_name=self.name, in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) return self._to_dict(self.name, value) @@ -475,14 +480,18 @@ def __serialize_simple( self, in_data: typing.Union[None, int, float, str, bool, dict, list], ) -> typing.Dict[str, str]: - value = self._serialize_simple(in_data=in_data, name=self.name, explode=self.explode, percent_encode=True) + value = self._serialize_simple( + in_data=in_data, + name=self.name, + explode=self.explode, + percent_encode=True + ) return self._to_dict(self.name, value) 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: cast_in_data = self.schema(in_data) @@ -510,10 +519,11 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self._to_dict(self.name, value) - raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) + raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) class QueryParameter(ParameterBase, StyleFormSerializer): + def __init__( self, name: str, @@ -522,7 +532,7 @@ def __init__( explode: typing.Optional[bool] = None, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None ): used_style = ParameterStyle.FORM if style is None else style used_explode = self._get_default_explode(used_style) if explode is None else explode @@ -535,13 +545,13 @@ def __init__( explode=used_explode, allow_reserved=allow_reserved, schema=schema, - content=content, + content=content ) def __serialize_space_delimited( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] ) -> typing.Dict[str, str]: if prefix_separator_iterator is None: prefix_separator_iterator = self.get_prefix_separator_iterator() @@ -550,14 +560,14 @@ def __serialize_space_delimited( in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) return self._to_dict(self.name, value) def __serialize_pipe_delimited( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] ) -> typing.Dict[str, str]: if prefix_separator_iterator is None: prefix_separator_iterator = self.get_prefix_separator_iterator() @@ -566,14 +576,14 @@ def __serialize_pipe_delimited( in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) return self._to_dict(self.name, value) def __serialize_form( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] ) -> typing.Dict[str, str]: if prefix_separator_iterator is None: prefix_separator_iterator = self.get_prefix_separator_iterator() @@ -582,24 +592,23 @@ def __serialize_form( name=self.name, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) return self._to_dict(self.name, value) def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterator]: if self.style is ParameterStyle.FORM: - return PrefixSeparatorIterator("?", "&") + return PrefixSeparatorIterator('?', '&') elif self.style is ParameterStyle.SPACE_DELIMITED: - return PrefixSeparatorIterator("", "%20") + return PrefixSeparatorIterator('', '%20') elif self.style is ParameterStyle.PIPE_DELIMITED: - return PrefixSeparatorIterator("", "|") + return PrefixSeparatorIterator('', '|') def serialize( self, in_data: typing.Union[ - Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict - ], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None, + 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]: if self.schema: cast_in_data = self.schema(in_data) @@ -633,11 +642,15 @@ def serialize( cast_in_data = self._json_encoder.default(cast_in_data) if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data, eliminate_whitespace=True) - return self._to_dict(self.name, next(prefix_separator_iterator) + self.name + "=" + quote(value)) - raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) + return self._to_dict( + self.name, + next(prefix_separator_iterator) + self.name + '=' + quote(value) + ) + raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) class CookieParameter(ParameterBase, StyleFormSerializer): + def __init__( self, name: str, @@ -646,7 +659,7 @@ def __init__( explode: typing.Optional[bool] = None, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None ): used_style = ParameterStyle.FORM if style is None and content is None and schema else style used_explode = self._get_default_explode(used_style) if explode is None else explode @@ -659,14 +672,13 @@ def __init__( explode=used_explode, allow_reserved=allow_reserved, schema=schema, - content=content, + content=content ) 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: cast_in_data = self.schema(in_data) @@ -685,7 +697,7 @@ def serialize( explode=self.explode, name=self.name, percent_encode=False, - prefix_separator_iterator=PrefixSeparatorIterator("", "&"), + prefix_separator_iterator=PrefixSeparatorIterator('', '&') ) return self._to_dict(self.name, value) # self.content will be length one @@ -695,7 +707,7 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self._to_dict(self.name, value) - raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) + raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) class HeaderParameter(ParameterBase, StyleSimpleSerializer): @@ -707,7 +719,7 @@ def __init__( explode: bool = False, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None ): super().__init__( name, @@ -717,7 +729,7 @@ def __init__( explode=explode, allow_reserved=allow_reserved, schema=schema, - content=content, + content=content ) @staticmethod @@ -732,8 +744,7 @@ 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: cast_in_data = self.schema(in_data) @@ -753,7 +764,7 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self.__to_headers(((self.name, value),)) - raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) + raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) class Encoding: @@ -782,7 +793,6 @@ class MediaType: The encoding object SHALL only apply to requestBody objects when the media type is multipart or application/x-www-form-urlencoded. """ - schema: typing.Optional[typing.Type[Schema]] = None encoding: typing.Optional[typing.Dict[str, Encoding]] = None @@ -797,7 +807,7 @@ def __init__( self, response: urllib3.HTTPResponse, body: typing.Union[Unset, Schema] = unset, - headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset, + headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset ): """ pycharm needs this to prevent 'Unexpected argument' warnings @@ -825,7 +835,7 @@ def __init__( ): self.headers = headers if content is not None and len(content) == 0: - raise ValueError("Invalid value for content, the content dict must have >= 1 entry") + raise ValueError('Invalid value for content, the content dict must have >= 1 entry') self.content = content self.response_cls = response_cls @@ -866,16 +876,17 @@ def __deserialize_application_octet_stream( a file will be written and returned """ if response.supports_chunked_reads(): - file_name = self.__file_name_from_content_disposition( - response.headers.get("content-disposition") - ) or self.__file_name_from_response_url(response.geturl()) + file_name = ( + self.__file_name_from_content_disposition(response.headers.get('content-disposition')) + or self.__file_name_from_response_url(response.geturl()) + ) if file_name is None: _fd, path = tempfile.mkstemp() else: path = os.path.join(tempfile.gettempdir(), file_name) - with open(path, "wb") as new_file: + with open(path, 'wb') as new_file: chunk_size = 1024 while True: data = response.read(chunk_size) @@ -884,25 +895,27 @@ def __deserialize_application_octet_stream( new_file.write(data) # release_conn is needed for streaming connections only response.release_conn() - new_file = open(path, "rb") + new_file = open(path, 'rb') return new_file else: 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( - part.get_content_charset() - ) + part.get_param("name", header="Content-Disposition"): part.get_payload( + decode=True + ).decode(part.get_content_charset()) if part.get_content_charset() else part.get_payload() for part in msg.get_payload() } def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: - content_type = response.getheader("content-type") + content_type = response.getheader('content-type') deserialized_body = unset streamed = response.supports_chunked_reads() @@ -920,22 +933,31 @@ def deserialize(self, response: urllib3.HTTPResponse, configuration: Configurati body_schema = self.content[content_type].schema if body_schema is None: # some specs do not define response content media type schemas - return self.response_cls(response=response, headers=deserialized_headers, body=unset) + return self.response_cls( + response=response, + headers=deserialized_headers, + body=unset + ) if self._content_type_is_json(content_type): body_data = self.__deserialize_json(response) - elif content_type == "application/octet-stream": + elif content_type == 'application/octet-stream': body_data = self.__deserialize_application_octet_stream(response) - elif content_type.startswith("multipart/form-data"): + elif content_type.startswith('multipart/form-data'): body_data = self.__deserialize_multipart_form_data(response) - content_type = "multipart/form-data" + content_type = 'multipart/form-data' else: - raise NotImplementedError("Deserialization of {} has not yet been implemented".format(content_type)) - deserialized_body = body_schema.from_openapi_data_oapg(body_data, _configuration=configuration) + raise NotImplementedError('Deserialization of {} has not yet been implemented'.format(content_type)) + deserialized_body = body_schema.from_openapi_data_oapg( + body_data, _configuration=configuration) elif streamed: response.release_conn() - return self.response_cls(response=response, headers=deserialized_headers, body=deserialized_body) + return self.response_cls( + response=response, + headers=deserialized_headers, + body=deserialized_body + ) class ApiClient: @@ -968,7 +990,7 @@ def __init__( header_name: typing.Optional[str] = None, header_value: typing.Optional[str] = None, cookie: typing.Optional[str] = None, - pool_threads: int = 1, + pool_threads: int = 1 ): if configuration is None: configuration = Configuration() @@ -981,7 +1003,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 @@ -994,13 +1016,13 @@ def close(self): self._pool.close() self._pool.join() self._pool = None - if hasattr(atexit, "unregister"): + if hasattr(atexit, 'unregister'): atexit.unregister(self.close) @property def pool(self): """Create thread pool on first request - avoids instantiating unused threadpool for blocking clients. + avoids instantiating unused threadpool for blocking clients. """ if self._pool is None: atexit.register(self.close) @@ -1010,11 +1032,11 @@ def pool(self): @property def user_agent(self): """User agent for this API client""" - return self.default_headers["User-Agent"] + return self.default_headers['User-Agent'] @user_agent.setter def user_agent(self, value): - self.default_headers["User-Agent"] = value + self.default_headers['User-Agent'] = value def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value @@ -1031,13 +1053,15 @@ def __call_api( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, host: typing.Optional[str] = None, ) -> urllib3.HTTPResponse: + # header parameters used_headers = HTTPHeaderDict(self.default_headers) if self.cookie: - headers["Cookie"] = self.cookie + headers['Cookie'] = self.cookie # auth setting - self.update_params_for_auth(used_headers, auth_settings, resource_path, method, body) + self.update_params_for_auth(used_headers, + auth_settings, resource_path, method, body) # must happen after cookie setting and auth setting in case user is overriding those if headers: @@ -1135,7 +1159,7 @@ def call_api( stream, timeout, host, - ), + ) ) def request( @@ -1150,27 +1174,57 @@ def request( ) -> urllib3.HTTPResponse: """Makes the HTTP request using RESTClient.""" if method == "GET": - return self.rest_client.GET(url, stream=stream, timeout=timeout, headers=headers) + return self.rest_client.GET(url, + stream=stream, + timeout=timeout, + headers=headers) elif method == "HEAD": - return self.rest_client.HEAD(url, stream=stream, timeout=timeout, headers=headers) + return self.rest_client.HEAD(url, + stream=stream, + timeout=timeout, + headers=headers) elif method == "OPTIONS": - return self.rest_client.OPTIONS( - url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body - ) + return self.rest_client.OPTIONS(url, + headers=headers, + fields=fields, + stream=stream, + timeout=timeout, + body=body) elif method == "POST": - return self.rest_client.POST(url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body) + return self.rest_client.POST(url, + headers=headers, + fields=fields, + stream=stream, + timeout=timeout, + body=body) elif method == "PUT": - return self.rest_client.PUT(url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body) + return self.rest_client.PUT(url, + headers=headers, + fields=fields, + stream=stream, + timeout=timeout, + body=body) elif method == "PATCH": - return self.rest_client.PATCH( - url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body - ) + return self.rest_client.PATCH(url, + headers=headers, + fields=fields, + stream=stream, + timeout=timeout, + body=body) elif method == "DELETE": - return self.rest_client.DELETE(url, headers=headers, stream=stream, timeout=timeout, body=body) + return self.rest_client.DELETE(url, + headers=headers, + stream=stream, + timeout=timeout, + body=body) else: - raise ApiValueError("http method must be `GET`, `HEAD`, `OPTIONS`," " `POST`, `PATCH`, `PUT` or `DELETE`.") + raise ApiValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) - def update_params_for_auth(self, headers, auth_settings, resource_path, method, body): + def update_params_for_auth(self, headers, auth_settings, + resource_path, method, body): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. @@ -1187,19 +1241,21 @@ def update_params_for_auth(self, headers, auth_settings, resource_path, method, auth_setting = self.configuration.auth_settings().get(auth) if not auth_setting: continue - if auth_setting["in"] == "cookie": - headers.add("Cookie", auth_setting["value"]) - elif auth_setting["in"] == "header": - if auth_setting["type"] != "http-signature": - headers.add(auth_setting["key"], auth_setting["value"]) - elif auth_setting["in"] == "query": - """TODO implement auth in query + if auth_setting['in'] == 'cookie': + headers.add('Cookie', auth_setting['value']) + elif auth_setting['in'] == 'header': + if auth_setting['type'] != 'http-signature': + headers.add(auth_setting['key'], auth_setting['value']) + elif auth_setting['in'] == 'query': + """ TODO implement auth in query need to pass in prefix_separator_iterator and need to output resource_path with query params added """ raise ApiValueError("Auth in query not yet implemented") else: - raise ApiValueError("Authentication token must be in `query` or `header`") + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) class Api: @@ -1215,9 +1271,7 @@ def __init__(self, api_client: typing.Optional[ApiClient] = None): self.api_client = api_client @staticmethod - def _verify_typed_dict_inputs_oapg( - cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any] - ): + def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any]): """ Ensures that: - required keys are present @@ -1236,13 +1290,13 @@ def _verify_typed_dict_inputs_oapg( required_keys_with_unset_values.append(required_key) if missing_required_keys: raise ApiTypeError( - "{} missing {} required arguments: {}".format( + '{} missing {} required arguments: {}'.format( cls.__name__, len(missing_required_keys), missing_required_keys - ) - ) + ) + ) if required_keys_with_unset_values: raise ApiValueError( - "{} contains invalid unset values for {} required keys: {}".format( + '{} contains invalid unset values for {} required keys: {}'.format( cls.__name__, len(required_keys_with_unset_values), required_keys_with_unset_values ) ) @@ -1254,7 +1308,7 @@ def _verify_typed_dict_inputs_oapg( disallowed_additional_keys.append(key) if disallowed_additional_keys: raise ApiTypeError( - "{} got {} unexpected keyword arguments: {}".format( + '{} got {} unexpected keyword arguments: {}'.format( cls.__name__, len(disallowed_additional_keys), disallowed_additional_keys ) ) @@ -1263,21 +1317,28 @@ def _get_host_oapg( self, operation_id: str, servers: typing.Tuple[typing.Dict[str, str], ...] = tuple(), - host_index: typing.Optional[int] = None, + host_index: typing.Optional[int] = None ) -> typing.Optional[str]: configuration = self.api_client.configuration try: if host_index is None: - index = configuration.server_operation_index.get(operation_id, configuration.server_index) + index = configuration.server_operation_index.get( + operation_id, configuration.server_index + ) else: index = host_index server_variables = configuration.server_operation_variables.get( operation_id, configuration.server_variables ) - host = configuration.get_host_from_settings(index, variables=server_variables, servers=servers) + host = configuration.get_host_from_settings( + index, variables=server_variables, servers=servers + ) except IndexError: if servers: - raise ApiValueError("Invalid host index. Must be 0 <= index < %s" % len(servers)) + raise ApiValueError( + "Invalid host index. Must be 0 <= index < %s" % + len(servers) + ) host = None return host @@ -1292,7 +1353,6 @@ class RequestBody(StyleFormSerializer, JSONDetector): A request body parameter content: content_type to MediaType Schema info """ - __json_encoder = JSONEncoder() def __init__( @@ -1302,39 +1362,44 @@ def __init__( ): self.required = required if len(content) == 0: - raise ValueError("Invalid value for content, the content dict must have >= 1 entry") + raise ValueError('Invalid value for content, the content dict must have >= 1 entry') self.content = content - def __serialize_json(self, in_data: typing.Any) -> typing.Dict[str, bytes]: + def __serialize_json( + self, + in_data: typing.Any + ) -> typing.Dict[str, bytes]: in_data = self.__json_encoder.default(in_data) - json_str = json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode("utf-8") + json_str = json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode( + "utf-8" + ) return dict(body=json_str) @staticmethod def __serialize_text_plain(in_data: typing.Any) -> typing.Dict[str, str]: if isinstance(in_data, frozendict.frozendict): - raise ValueError("Unable to serialize type frozendict.frozendict to text/plain") + raise ValueError('Unable to serialize type frozendict.frozendict to text/plain') elif isinstance(in_data, tuple): - raise ValueError("Unable to serialize type tuple to text/plain") + raise ValueError('Unable to serialize type tuple to text/plain') elif isinstance(in_data, NoneClass): - raise ValueError("Unable to serialize type NoneClass to text/plain") + raise ValueError('Unable to serialize type NoneClass to text/plain') elif isinstance(in_data, BoolClass): - raise ValueError("Unable to serialize type BoolClass to text/plain") + raise ValueError('Unable to serialize type BoolClass to text/plain') return dict(body=str(in_data)) def __multipart_json_item(self, key: str, value: Schema) -> RequestField: json_value = self.__json_encoder.default(value) request_field = RequestField(name=key, data=json.dumps(json_value)) - request_field.make_multipart(content_type="application/json") + request_field.make_multipart(content_type='application/json') return request_field def __multipart_form_item(self, key: str, value: Schema) -> RequestField: if isinstance(value, str): request_field = RequestField(name=key, data=str(value)) - request_field.make_multipart(content_type="text/plain") + request_field.make_multipart(content_type='text/plain') elif isinstance(value, bytes): request_field = RequestField(name=key, data=value) - request_field.make_multipart(content_type="application/octet-stream") + request_field.make_multipart(content_type='application/octet-stream') elif isinstance(value, FileIO): # TODO use content.encoding to limit allowed content types if they are present request_field = RequestField.from_tuples(key, (os.path.basename(value.name), value.read())) @@ -1343,9 +1408,11 @@ def __multipart_form_item(self, key: str, value: Schema) -> RequestField: request_field = self.__multipart_json_item(key=key, value=value) return request_field - def __serialize_multipart_form_data(self, in_data: Schema) -> typing.Dict[str, typing.Tuple[RequestField, ...]]: + def __serialize_multipart_form_data( + self, in_data: Schema + ) -> typing.Dict[str, typing.Tuple[RequestField, ...]]: if not isinstance(in_data, frozendict.frozendict): - raise ValueError(f"Unable to serialize {in_data} to multipart/form-data because it is not a dict of data") + raise ValueError(f'Unable to serialize {in_data} to multipart/form-data because it is not a dict of data') """ In a multipart/form-data request body, each schema property, or each element of a schema array property, takes a section in the payload with an internal header as defined by RFC7578. The serialization strategy @@ -1385,19 +1452,22 @@ def __serialize_application_octet_stream(self, in_data: BinarySchema) -> typing. in_data.close() return result - def __serialize_application_x_www_form_data(self, in_data: typing.Any) -> SerializedRequestBody: + def __serialize_application_x_www_form_data( + self, in_data: typing.Any + ) -> SerializedRequestBody: """ POST submission of form data in body """ if not isinstance(in_data, frozendict.frozendict): raise ValueError( - f"Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data" - ) + f'Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data') cast_in_data = self.__json_encoder.default(in_data) - value = self._serialize_form(cast_in_data, name="", explode=True, percent_encode=True) + value = self._serialize_form(cast_in_data, name='', explode=True, percent_encode=True) return dict(body=value) - def serialize(self, in_data: typing.Any, content_type: str) -> SerializedRequestBody: + def serialize( + self, in_data: typing.Any, content_type: str + ) -> SerializedRequestBody: """ If a str is returned then the result will be assigned to data when making the request If a tuple is returned then the result will be used as fields input in encode_multipart_formdata @@ -1418,12 +1488,12 @@ def serialize(self, in_data: typing.Any, content_type: str) -> SerializedRequest # and content_type is multipart or application/x-www-form-urlencoded if self._content_type_is_json(content_type): return self.__serialize_json(cast_in_data) - elif content_type == "text/plain": + elif content_type == 'text/plain': return self.__serialize_text_plain(cast_in_data) - elif content_type == "multipart/form-data": + elif content_type == 'multipart/form-data': return self.__serialize_multipart_form_data(cast_in_data) - elif content_type == "application/x-www-form-urlencoded": + elif content_type == 'application/x-www-form-urlencoded': return self.__serialize_application_x_www_form_data(cast_in_data) - elif content_type == "application/octet-stream": + elif content_type == 'application/octet-stream': return self.__serialize_application_octet_stream(cast_in_data) - raise NotImplementedError("Serialization has not yet been implemented for {}".format(content_type)) + raise NotImplementedError('Serialization has not yet been implemented for {}'.format(content_type)) \ No newline at end of file diff --git a/launch/api_client/apis/__init__.py b/launch/api_client/apis/__init__.py index 5ca66b80..7840f772 100644 --- a/launch/api_client/apis/__init__.py +++ b/launch/api_client/apis/__init__.py @@ -1,3 +1,3 @@ # do not import all endpoints into this module because that uses a lot of memory and stack frames # if you need the ability to import all endpoints then import them from -# tags, paths, or path_to_api, or tag_to_api +# tags, paths, or path_to_api, or tag_to_api \ No newline at end of file diff --git a/launch/api_client/apis/path_to_api.py b/launch/api_client/apis/path_to_api.py index 89fa65fe..4b5eab03 100644 --- a/launch/api_client/apis/path_to_api.py +++ b/launch/api_client/apis/path_to_api.py @@ -1,41 +1,25 @@ import typing_extensions +from launch.api_client.paths import PathValues from launch.api_client.apis.paths.healthcheck import Healthcheck from launch.api_client.apis.paths.healthz import Healthz from launch.api_client.apis.paths.readyz import Readyz from launch.api_client.apis.paths.v1_async_tasks import V1AsyncTasks -from launch.api_client.apis.paths.v1_async_tasks_task_id import ( - V1AsyncTasksTaskId, -) +from launch.api_client.apis.paths.v1_async_tasks_task_id import V1AsyncTasksTaskId from launch.api_client.apis.paths.v1_batch_jobs import V1BatchJobs -from launch.api_client.apis.paths.v1_batch_jobs_batch_job_id import ( - V1BatchJobsBatchJobId, -) +from launch.api_client.apis.paths.v1_batch_jobs_batch_job_id import V1BatchJobsBatchJobId 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, -) -from launch.api_client.apis.paths.v1_model_bundles_latest import ( - V1ModelBundlesLatest, -) -from launch.api_client.apis.paths.v1_model_bundles_model_bundle_id import ( - V1ModelBundlesModelBundleId, -) +from launch.api_client.apis.paths.v1_model_bundles_clone_with_changes import V1ModelBundlesCloneWithChanges +from launch.api_client.apis.paths.v1_model_bundles_latest import V1ModelBundlesLatest +from launch.api_client.apis.paths.v1_model_bundles_model_bundle_id import V1ModelBundlesModelBundleId from launch.api_client.apis.paths.v1_model_endpoints import V1ModelEndpoints -from launch.api_client.apis.paths.v1_model_endpoints_api import ( - V1ModelEndpointsApi, -) -from launch.api_client.apis.paths.v1_model_endpoints_model_endpoint_id import ( - V1ModelEndpointsModelEndpointId, -) -from launch.api_client.apis.paths.v1_model_endpoints_schema_json import ( - V1ModelEndpointsSchemaJson, -) +from launch.api_client.apis.paths.v1_model_endpoints_api import V1ModelEndpointsApi +from launch.api_client.apis.paths.v1_model_endpoints_schema_json import V1ModelEndpointsSchemaJson +from launch.api_client.apis.paths.v1_model_endpoints_model_endpoint_id import V1ModelEndpointsModelEndpointId from launch.api_client.apis.paths.v1_sync_tasks import V1SyncTasks -from launch.api_client.paths import PathValues PathToApi = typing_extensions.TypedDict( - "PathToApi", + 'PathToApi', { PathValues.HEALTHCHECK: Healthcheck, PathValues.HEALTHZ: Healthz, @@ -53,7 +37,7 @@ PathValues.V1_MODELENDPOINTSSCHEMA_JSON: V1ModelEndpointsSchemaJson, PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID: V1ModelEndpointsModelEndpointId, PathValues.V1_SYNCTASKS: V1SyncTasks, - }, + } ) path_to_api = PathToApi( diff --git a/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py b/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py index df0644e3..caf9cf08 100644 --- a/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py +++ b/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py @@ -1,6 +1,4 @@ -from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ( - ApiForpost, -) +from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ApiForpost class V1ModelBundlesCloneWithChanges( diff --git a/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py b/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py index 0e646257..c513ff35 100644 --- a/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py +++ b/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py @@ -1,6 +1,4 @@ -from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ( - ApiForget, -) +from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ApiForget class V1ModelBundlesModelBundleId( diff --git a/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py b/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py index 7f4d3e3a..a4bd9dfb 100644 --- a/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py +++ b/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py @@ -1,12 +1,6 @@ -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ( - ApiFordelete, -) -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ( - ApiForget, -) -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ( - ApiForput, -) +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ApiForget +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ApiForput +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ApiFordelete class V1ModelEndpointsModelEndpointId( diff --git a/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py b/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py index 7c62f95b..de361413 100644 --- a/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py +++ b/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py @@ -1,6 +1,4 @@ -from launch.api_client.paths.v1_model_endpoints_schema_json.get import ( - ApiForget, -) +from launch.api_client.paths.v1_model_endpoints_schema_json.get import ApiForget class V1ModelEndpointsSchemaJson( diff --git a/launch/api_client/apis/tag_to_api.py b/launch/api_client/apis/tag_to_api.py index 8b3c0d6d..f2a2dfcf 100644 --- a/launch/api_client/apis/tag_to_api.py +++ b/launch/api_client/apis/tag_to_api.py @@ -4,10 +4,10 @@ from launch.api_client.apis.tags.default_api import DefaultApi TagToApi = typing_extensions.TypedDict( - "TagToApi", + 'TagToApi', { TagValues.DEFAULT: DefaultApi, - }, + } ) tag_to_api = TagToApi( diff --git a/launch/api_client/apis/tags/default_api.py b/launch/api_client/apis/tags/default_api.py index 6a2bb4aa..acabeccb 100644 --- a/launch/api_client/apis/tags/default_api.py +++ b/launch/api_client/apis/tags/default_api.py @@ -9,63 +9,27 @@ Generated by: https://openapi-generator.tech """ +from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost +from launch.api_client.paths.v1_async_tasks.post import CreateAsyncInferenceTaskV1AsyncTasksPost +from launch.api_client.paths.v1_batch_jobs.post import CreateBatchJobV1BatchJobsPost +from launch.api_client.paths.v1_model_bundles.post import CreateModelBundleV1ModelBundlesPost +from launch.api_client.paths.v1_model_endpoints.post import CreateModelEndpointV1ModelEndpointsPost +from launch.api_client.paths.v1_sync_tasks.post import CreateSyncInferenceTaskV1SyncTasksPost +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete +from launch.api_client.paths.v1_async_tasks_task_id.get import GetAsyncInferenceTaskV1AsyncTasksTaskIdGet +from launch.api_client.paths.v1_batch_jobs_batch_job_id.get import GetBatchJobV1BatchJobsBatchJobIdGet +from launch.api_client.paths.v1_model_bundles_latest.get import GetLatestModelBundleV1ModelBundlesLatestGet +from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import GetModelBundleV1ModelBundlesModelBundleIdGet +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import GetModelEndpointV1ModelEndpointsModelEndpointIdGet +from launch.api_client.paths.v1_model_endpoints_api.get import GetModelEndpointsApiV1ModelEndpointsApiGet +from launch.api_client.paths.v1_model_endpoints_schema_json.get import GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet from launch.api_client.paths.healthcheck.get import HealthcheckHealthcheckGet from launch.api_client.paths.healthz.get import HealthcheckHealthzGet from launch.api_client.paths.readyz.get import HealthcheckReadyzGet -from launch.api_client.paths.v1_async_tasks.post import ( - CreateAsyncInferenceTaskV1AsyncTasksPost, -) -from launch.api_client.paths.v1_async_tasks_task_id.get import ( - GetAsyncInferenceTaskV1AsyncTasksTaskIdGet, -) -from launch.api_client.paths.v1_batch_jobs.post import ( - CreateBatchJobV1BatchJobsPost, -) -from launch.api_client.paths.v1_batch_jobs_batch_job_id.get import ( - GetBatchJobV1BatchJobsBatchJobIdGet, -) -from launch.api_client.paths.v1_batch_jobs_batch_job_id.put import ( - UpdateBatchJobV1BatchJobsBatchJobIdPut, -) -from launch.api_client.paths.v1_model_bundles.get import ( - ListModelBundlesV1ModelBundlesGet, -) -from launch.api_client.paths.v1_model_bundles.post import ( - CreateModelBundleV1ModelBundlesPost, -) -from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ( - CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost, -) -from launch.api_client.paths.v1_model_bundles_latest.get import ( - GetLatestModelBundleV1ModelBundlesLatestGet, -) -from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ( - GetModelBundleV1ModelBundlesModelBundleIdGet, -) -from launch.api_client.paths.v1_model_endpoints.get import ( - ListModelEndpointsV1ModelEndpointsGet, -) -from launch.api_client.paths.v1_model_endpoints.post import ( - CreateModelEndpointV1ModelEndpointsPost, -) -from launch.api_client.paths.v1_model_endpoints_api.get import ( - GetModelEndpointsApiV1ModelEndpointsApiGet, -) -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ( - DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete, -) -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ( - GetModelEndpointV1ModelEndpointsModelEndpointIdGet, -) -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ( - UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut, -) -from launch.api_client.paths.v1_model_endpoints_schema_json.get import ( - GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet, -) -from launch.api_client.paths.v1_sync_tasks.post import ( - CreateSyncInferenceTaskV1SyncTasksPost, -) +from launch.api_client.paths.v1_model_bundles.get import ListModelBundlesV1ModelBundlesGet +from launch.api_client.paths.v1_model_endpoints.get import ListModelEndpointsV1ModelEndpointsGet +from launch.api_client.paths.v1_batch_jobs_batch_job_id.put import UpdateBatchJobV1BatchJobsBatchJobIdPut +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut class DefaultApi( @@ -96,5 +60,4 @@ class DefaultApi( Do not edit the class manually. """ - pass diff --git a/launch/api_client/configuration.py b/launch/api_client/configuration.py index 20b36461..92d13b9d 100644 --- a/launch/api_client/configuration.py +++ b/launch/api_client/configuration.py @@ -13,95 +13,85 @@ import logging import multiprocessing import sys -from http import client as http_client - import urllib3 +from http import client as http_client from launch.api_client.exceptions import ApiValueError + JSON_SCHEMA_VALIDATION_KEYWORDS = { - "multipleOf", - "maximum", - "exclusiveMaximum", - "minimum", - "exclusiveMinimum", - "maxLength", - "minLength", - "pattern", - "maxItems", - "minItems", - "uniqueItems", - "maxProperties", - "minProperties", + 'multipleOf', 'maximum', 'exclusiveMaximum', + 'minimum', 'exclusiveMinimum', 'maxLength', + 'minLength', 'pattern', 'maxItems', 'minItems', + 'uniqueItems', 'maxProperties', 'minProperties', } - class Configuration(object): """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - Do not edit the class manually. - - :param host: Base url - :param api_key: Dict to store API key(s). - Each entry in the dict specifies an API key. - The dict key is the name of the security scheme in the OAS specification. - The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer) - The dict key is the name of the security scheme in the OAS specification. - The dict value is an API key prefix when generating the auth data. - :param username: Username for HTTP basic authentication - :param password: Password for HTTP basic authentication - :param discard_unknown_keys: Boolean value indicating whether to discard - unknown properties. A server may send a response that includes additional - properties that are not known by the client in the following scenarios: - 1. The OpenAPI document is incomplete, i.e. it does not match the server - implementation. - 2. The client was generated using an older version of the OpenAPI document - and the server has been upgraded since then. - If a schema in the OpenAPI document defines the additionalProperties attribute, - then all undeclared properties received by the server are injected into the - additional properties map. In that case, there are undeclared properties, and - nothing to discard. - :param disabled_client_side_validations (string): Comma-separated list of - JSON schema validation keywords to disable JSON schema structural validation - rules. The following keywords may be specified: multipleOf, maximum, - exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, - maxItems, minItems. - By default, the validation is performed for data generated locally by the client - and data received from the server, independent of any validation performed by - the server side. If the input data does not satisfy the JSON schema validation - rules specified in the OpenAPI document, an exception is raised. - If disabled_client_side_validations is set, structural validation is - disabled. This can be useful to troubleshoot data validation problem, such as - when the OpenAPI document validation rules do not match the actual API data - received by the server. - :param server_index: Index to servers configuration. - :param server_variables: Mapping with string values to replace variables in - templated server configuration. The validation of enums is performed for - variables with defined enum values before. - :param server_operation_index: Mapping from operation ID to an index to server - configuration. - :param server_operation_variables: Mapping from operation ID to a mapping with - string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum values before. - - :Example: - - HTTP Basic Authentication Example. - Given the following security scheme in the OpenAPI specification: - components: - securitySchemes: - http_basic_auth: - type: http - scheme: basic - - Configure API client with HTTP basic authentication: - - conf = launch.api_client.Configuration( - username='the-user', - password='the-password', - ) + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param host: Base url + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer) + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication + :param password: Password for HTTP basic authentication + :param discard_unknown_keys: Boolean value indicating whether to discard + unknown properties. A server may send a response that includes additional + properties that are not known by the client in the following scenarios: + 1. The OpenAPI document is incomplete, i.e. it does not match the server + implementation. + 2. The client was generated using an older version of the OpenAPI document + and the server has been upgraded since then. + If a schema in the OpenAPI document defines the additionalProperties attribute, + then all undeclared properties received by the server are injected into the + additional properties map. In that case, there are undeclared properties, and + nothing to discard. + :param disabled_client_side_validations (string): Comma-separated list of + JSON schema validation keywords to disable JSON schema structural validation + rules. The following keywords may be specified: multipleOf, maximum, + exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, + maxItems, minItems. + By default, the validation is performed for data generated locally by the client + and data received from the server, independent of any validation performed by + the server side. If the input data does not satisfy the JSON schema validation + rules specified in the OpenAPI document, an exception is raised. + If disabled_client_side_validations is set, structural validation is + disabled. This can be useful to troubleshoot data validation problem, such as + when the OpenAPI document validation rules do not match the actual API data + received by the server. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum values before. + + :Example: + + HTTP Basic Authentication Example. + Given the following security scheme in the OpenAPI specification: + components: + securitySchemes: + http_basic_auth: + type: http + scheme: basic + + Configure API client with HTTP basic authentication: + +conf = launch.api_client.Configuration( + username='the-user', + password='the-password', +) """ @@ -119,7 +109,8 @@ def __init__( server_operation_index=None, server_operation_variables=None, ): - """Constructor""" + """Constructor + """ self._base_path = "http://localhost" if host is None else host """Default Base url """ @@ -148,7 +139,7 @@ def __init__( """ self.logger["package_logger"] = logging.getLogger("launch.api_client") self.logger["urllib3_logger"] = logging.getLogger("urllib3") - self.logger_format = "%(asctime)s %(levelname)s %(message)s" + self.logger_format = '%(asctime)s %(levelname)s %(message)s' """Log format """ self.logger_stream_handler = None @@ -196,7 +187,7 @@ def __init__( self.proxy_headers = None """Proxy headers """ - self.safe_chars_for_path_param = "" + self.safe_chars_for_path_param = '' """Safe chars for path_param """ self.retries = None @@ -213,7 +204,7 @@ def __deepcopy__(self, memo): result = cls.__new__(cls) memo[id(self)] = result for k, v in self.__dict__.items(): - if k not in ("logger", "logger_file_handler"): + if k not in ('logger', 'logger_file_handler'): setattr(result, k, copy.deepcopy(v, memo)) # shallow copy of loggers result.logger = copy.copy(self.logger) @@ -224,11 +215,12 @@ def __deepcopy__(self, memo): def __setattr__(self, name, value): object.__setattr__(self, name, value) - if name == "disabled_client_side_validations": - s = set(filter(None, value.split(","))) + if name == 'disabled_client_side_validations': + s = set(filter(None, value.split(','))) for v in s: if v not in JSON_SCHEMA_VALIDATION_KEYWORDS: - raise ApiValueError("Invalid keyword: '{0}''".format(v)) + raise ApiValueError( + "Invalid keyword: '{0}''".format(v)) self._disabled_client_side_validations = s @classmethod @@ -369,7 +361,9 @@ def get_basic_auth_token(self): password = "" if self.password is not None: password = self.password - return urllib3.util.make_headers(basic_auth=username + ":" + password).get("authorization") + return urllib3.util.make_headers( + basic_auth=username + ':' + password + ).get('authorization') def auth_settings(self): """Gets Auth Settings dict for api client. @@ -378,11 +372,11 @@ def auth_settings(self): """ auth = {} if self.username is not None and self.password is not None: - auth["HTTPBasic"] = { - "type": "basic", - "in": "header", - "key": "Authorization", - "value": self.get_basic_auth_token(), + auth['HTTPBasic'] = { + 'type': 'basic', + 'in': 'header', + 'key': 'Authorization', + 'value': self.get_basic_auth_token() } return auth @@ -391,13 +385,12 @@ def to_debug_report(self): :return: The report for debugging. """ - return ( - "Python SDK Debug Report:\n" - "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) - ) + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 1.0.0\n"\ + "SDK Package Version: 1.0.6".\ + format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): """Gets an array of host settings @@ -406,8 +399,8 @@ def get_host_settings(self): """ return [ { - "url": "", - "description": "No description provided", + 'url': "", + 'description': "No description provided", } ] @@ -429,20 +422,22 @@ def get_host_from_settings(self, index, variables=None, servers=None): except IndexError: raise ValueError( "Invalid index {0} when selecting the host settings. " - "Must be less than {1}".format(index, len(servers)) - ) + "Must be less than {1}".format(index, len(servers))) - url = server["url"] + url = server['url'] # go through variables and replace placeholders - for variable_name, variable in server.get("variables", {}).items(): - used_value = variables.get(variable_name, variable["default_value"]) + for variable_name, variable in server.get('variables', {}).items(): + used_value = variables.get( + variable_name, variable['default_value']) - if "enum_values" in variable and used_value not in variable["enum_values"]: + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: raise ValueError( "The variable `{0}` in the host URL has invalid value " - "{1}. Must be {2}.".format(variable_name, variables[variable_name], variable["enum_values"]) - ) + "{1}. Must be {2}.".format( + variable_name, variables[variable_name], + variable['enum_values'])) url = url.replace("{" + variable_name + "}", used_value) diff --git a/launch/api_client/exceptions.py b/launch/api_client/exceptions.py index f461e207..46687131 100644 --- a/launch/api_client/exceptions.py +++ b/launch/api_client/exceptions.py @@ -19,8 +19,9 @@ class OpenApiException(Exception): class ApiTypeError(OpenApiException, TypeError): - def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None): - """Raises an exception for TypeErrors + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None): + """ Raises an exception for TypeErrors Args: msg (str): the exception message @@ -123,9 +124,11 @@ def headers(self) -> typing.Optional[HTTPHeaderDict]: def __str__(self): """Custom error messages for exception""" - error_message = "({0})\n" "Reason: {1}\n".format(self.status, self.reason) + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) if self.headers: - error_message += "HTTP response headers: {0}\n".format(self.headers) + error_message += "HTTP response headers: {0}\n".format( + self.headers) if self.body: error_message += "HTTP response body: {0}\n".format(self.body) diff --git a/launch/api_client/model/batch_job_serialization_format.py b/launch/api_client/model/batch_job_serialization_format.py index 7bfc3103..5586e157 100644 --- a/launch/api_client/model/batch_job_serialization_format.py +++ b/launch/api_client/model/batch_job_serialization_format.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): +class BatchJobSerializationFormat( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,16 +35,17 @@ class BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): An enumeration. """ + class MetaOapg: enum_value_to_name = { "JSON": "JSON", "PICKLE": "PICKLE", } - + @schemas.classproperty def JSON(cls): return cls("JSON") - + @schemas.classproperty def PICKLE(cls): return cls("PICKLE") diff --git a/launch/api_client/model/batch_job_serialization_format.pyi b/launch/api_client/model/batch_job_serialization_format.pyi index 7ebc5bff..e19c5161 100644 --- a/launch/api_client/model/batch_job_serialization_format.pyi +++ b/launch/api_client/model/batch_job_serialization_format.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): + +class BatchJobSerializationFormat( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,10 +34,11 @@ class BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): An enumeration. """ - + @schemas.classproperty def JSON(cls): return cls("JSON") + @schemas.classproperty def PICKLE(cls): return cls("PICKLE") diff --git a/launch/api_client/model/batch_job_status.py b/launch/api_client/model/batch_job_status.py index e2e71a79..530ad403 100644 --- a/launch/api_client/model/batch_job_status.py +++ b/launch/api_client/model/batch_job_status.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 BatchJobStatus(schemas.EnumBase, schemas.StrSchema): +class BatchJobStatus( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,6 +35,7 @@ class BatchJobStatus(schemas.EnumBase, schemas.StrSchema): An enumeration. """ + class MetaOapg: enum_value_to_name = { "PENDING": "PENDING", @@ -41,27 +45,27 @@ class MetaOapg: "CANCELLED": "CANCELLED", "UNDEFINED": "UNDEFINED", } - + @schemas.classproperty def PENDING(cls): return cls("PENDING") - + @schemas.classproperty def RUNNING(cls): return cls("RUNNING") - + @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") - + @schemas.classproperty def FAILURE(cls): return cls("FAILURE") - + @schemas.classproperty def CANCELLED(cls): return cls("CANCELLED") - + @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/batch_job_status.pyi b/launch/api_client/model/batch_job_status.pyi index 925b6634..0d337988 100644 --- a/launch/api_client/model/batch_job_status.pyi +++ b/launch/api_client/model/batch_job_status.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class BatchJobStatus(schemas.EnumBase, schemas.StrSchema): + +class BatchJobStatus( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,22 +34,27 @@ class BatchJobStatus(schemas.EnumBase, schemas.StrSchema): An enumeration. """ - + @schemas.classproperty def PENDING(cls): return cls("PENDING") + @schemas.classproperty def RUNNING(cls): return cls("RUNNING") + @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") + @schemas.classproperty def FAILURE(cls): return cls("FAILURE") + @schemas.classproperty def CANCELLED(cls): return cls("CANCELLED") + @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/callback_auth.py b/launch/api_client/model/callback_auth.py index 493310d9..a3af0a7c 100644 --- a/launch/api_client/model/callback_auth.py +++ b/launch/api_client/model/callback_auth.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 @@ -32,18 +32,20 @@ class CallbackAuth( Do not edit the class manually. """ + class MetaOapg: + @staticmethod def discriminator(): return { - "kind": { - "CallbackBasicAuth": CallbackBasicAuth, - "CallbackmTLSAuth": CallbackmTLSAuth, - "basic": CallbackBasicAuth, - "mtls": CallbackmTLSAuth, + 'kind': { + 'CallbackBasicAuth': CallbackBasicAuth, + 'CallbackmTLSAuth': CallbackmTLSAuth, + 'basic': CallbackBasicAuth, + 'mtls': CallbackmTLSAuth, } } - + @classmethod @functools.lru_cache() def one_of(cls): @@ -59,44 +61,13 @@ def one_of(cls): CallbackmTLSAuth, ] + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "CallbackAuth": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CallbackAuth': return super().__new__( cls, *_args, @@ -104,6 +75,5 @@ def __new__( **kwargs, ) - from launch.api_client.model.callback_basic_auth import CallbackBasicAuth from launch.api_client.model.callbackm_tls_auth import CallbackmTLSAuth diff --git a/launch/api_client/model/callback_auth.pyi b/launch/api_client/model/callback_auth.pyi index e7193634..584516de 100644 --- a/launch/api_client/model/callback_auth.pyi +++ b/launch/api_client/model/callback_auth.pyi @@ -9,18 +9,20 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 + class CallbackAuth( schemas.ComposedSchema, ): @@ -30,17 +32,20 @@ class CallbackAuth( Do not edit the class manually. """ + class MetaOapg: + @staticmethod def discriminator(): return { - "kind": { - "CallbackBasicAuth": CallbackBasicAuth, - "CallbackmTLSAuth": CallbackmTLSAuth, - "basic": CallbackBasicAuth, - "mtls": CallbackmTLSAuth, + 'kind': { + 'CallbackBasicAuth': CallbackBasicAuth, + 'CallbackmTLSAuth': CallbackmTLSAuth, + 'basic': CallbackBasicAuth, + 'mtls': CallbackmTLSAuth, } } + @classmethod @functools.lru_cache() def one_of(cls): @@ -55,44 +60,14 @@ class CallbackAuth( CallbackBasicAuth, CallbackmTLSAuth, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "CallbackAuth": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CallbackAuth': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callback_basic_auth.py b/launch/api_client/model/callback_basic_auth.py index 7e2027d6..1b26f739 100644 --- a/launch/api_client/model/callback_basic_auth.py +++ b/launch/api_client/model/callback_basic_auth.py @@ -9,45 +9,54 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CallbackBasicAuth(schemas.DictSchema): +class CallbackBasicAuth( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "password", "kind", "username", } - + class properties: - class kind(schemas.EnumBase, schemas.StrSchema): + + + class kind( + schemas.EnumBase, + schemas.StrSchema + ): + + class MetaOapg: enum_value_to_name = { "basic": "BASIC", } - + @schemas.classproperty def BASIC(cls): return cls("basic") - password = schemas.StrSchema username = schemas.StrSchema __annotations__ = { @@ -55,106 +64,53 @@ def BASIC(cls): "password": password, "username": username, } - + password: MetaOapg.properties.password kind: MetaOapg.properties.kind username: MetaOapg.properties.username - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: - ... - + def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: - ... - + def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: - ... - + def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "kind", - "password", - "username", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["kind", "password", "username", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... + @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[ - "kind", - "password", - "username", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["kind", "password", "username", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - password: typing.Union[ - MetaOapg.properties.password, - str, - ], - kind: typing.Union[ - MetaOapg.properties.kind, - str, - ], - username: typing.Union[ - MetaOapg.properties.username, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + password: typing.Union[MetaOapg.properties.password, str, ], + kind: typing.Union[MetaOapg.properties.kind, str, ], + username: typing.Union[MetaOapg.properties.username, str, ], _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, - ], - ) -> "CallbackBasicAuth": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CallbackBasicAuth': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callback_basic_auth.pyi b/launch/api_client/model/callback_basic_auth.pyi index 39f43b29..50b20d27 100644 --- a/launch/api_client/model/callback_basic_auth.pyi +++ b/launch/api_client/model/callback_basic_auth.pyi @@ -9,34 +9,45 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CallbackBasicAuth(schemas.DictSchema): + +class CallbackBasicAuth( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "password", "kind", "username", } - + class properties: - class kind(schemas.EnumBase, schemas.StrSchema): + + + class kind( + schemas.EnumBase, + schemas.StrSchema + ): + @schemas.classproperty def BASIC(cls): return cls("basic") @@ -47,87 +58,53 @@ class CallbackBasicAuth(schemas.DictSchema): "password": password, "username": username, } + password: MetaOapg.properties.password kind: MetaOapg.properties.kind username: MetaOapg.properties.username - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "kind", - "password", - "username", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["kind", "password", "username", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... + @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[ - "kind", - "password", - "username", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["kind", "password", "username", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - password: typing.Union[ - MetaOapg.properties.password, - str, - ], - kind: typing.Union[ - MetaOapg.properties.kind, - str, - ], - username: typing.Union[ - MetaOapg.properties.username, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + password: typing.Union[MetaOapg.properties.password, str, ], + kind: typing.Union[MetaOapg.properties.kind, str, ], + username: typing.Union[MetaOapg.properties.username, str, ], _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, - ], - ) -> "CallbackBasicAuth": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CallbackBasicAuth': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callbackm_tls_auth.py b/launch/api_client/model/callbackm_tls_auth.py index c153d503..1ed275f9 100644 --- a/launch/api_client/model/callbackm_tls_auth.py +++ b/launch/api_client/model/callbackm_tls_auth.py @@ -9,153 +9,108 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CallbackmTLSAuth(schemas.DictSchema): +class CallbackmTLSAuth( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "kind", "cert", "key", } - + class properties: cert = schemas.StrSchema key = schemas.StrSchema - - class kind(schemas.EnumBase, schemas.StrSchema): + + + class kind( + schemas.EnumBase, + schemas.StrSchema + ): + + class MetaOapg: enum_value_to_name = { "mtls": "MTLS", } - + @schemas.classproperty def MTLS(cls): return cls("mtls") - __annotations__ = { "cert": cert, "key": key, "kind": kind, } - + kind: MetaOapg.properties.kind cert: MetaOapg.properties.cert key: MetaOapg.properties.key - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: - ... - + def __getitem__(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: - ... - + def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: - ... - + def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cert", - "key", - "kind", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cert", "key", "kind", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @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[ - "cert", - "key", - "kind", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cert", "key", "kind", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - kind: typing.Union[ - MetaOapg.properties.kind, - str, - ], - cert: typing.Union[ - MetaOapg.properties.cert, - str, - ], - key: typing.Union[ - MetaOapg.properties.key, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + kind: typing.Union[MetaOapg.properties.kind, str, ], + cert: typing.Union[MetaOapg.properties.cert, str, ], + key: typing.Union[MetaOapg.properties.key, str, ], _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, - ], - ) -> "CallbackmTLSAuth": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CallbackmTLSAuth': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callbackm_tls_auth.pyi b/launch/api_client/model/callbackm_tls_auth.pyi index ef8b7dc0..8aeeb00a 100644 --- a/launch/api_client/model/callbackm_tls_auth.pyi +++ b/launch/api_client/model/callbackm_tls_auth.pyi @@ -9,37 +9,47 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CallbackmTLSAuth(schemas.DictSchema): + +class CallbackmTLSAuth( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "kind", "cert", "key", } - + class properties: cert = schemas.StrSchema key = schemas.StrSchema - - class kind(schemas.EnumBase, schemas.StrSchema): + + + class kind( + schemas.EnumBase, + schemas.StrSchema + ): + @schemas.classproperty def MTLS(cls): return cls("mtls") @@ -48,87 +58,53 @@ class CallbackmTLSAuth(schemas.DictSchema): "key": key, "kind": kind, } + kind: MetaOapg.properties.kind cert: MetaOapg.properties.cert key: MetaOapg.properties.key - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cert", - "key", - "kind", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cert", "key", "kind", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @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[ - "cert", - "key", - "kind", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cert", "key", "kind", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - kind: typing.Union[ - MetaOapg.properties.kind, - str, - ], - cert: typing.Union[ - MetaOapg.properties.cert, - str, - ], - key: typing.Union[ - MetaOapg.properties.key, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + kind: typing.Union[MetaOapg.properties.kind, str, ], + cert: typing.Union[MetaOapg.properties.cert, str, ], + key: typing.Union[MetaOapg.properties.key, str, ], _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, - ], - ) -> "CallbackmTLSAuth": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CallbackmTLSAuth': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/clone_model_bundle_request.py b/launch/api_client/model/clone_model_bundle_request.py index 02ca728c..97fdfdd2 100644 --- a/launch/api_client/model/clone_model_bundle_request.py +++ b/launch/api_client/model/clone_model_bundle_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -54,7 +53,9 @@ def __getitem__( ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["new_app_config"]) -> MetaOapg.properties.new_app_config: + def __getitem__( + self, name: typing_extensions.Literal["new_app_config"] + ) -> MetaOapg.properties.new_app_config: ... @typing.overload diff --git a/launch/api_client/model/clone_model_bundle_request.pyi b/launch/api_client/model/clone_model_bundle_request.pyi index 0293a604..dcd3da4f 100644 --- a/launch/api_client/model/clone_model_bundle_request.pyi +++ b/launch/api_client/model/clone_model_bundle_request.pyi @@ -49,7 +49,9 @@ class CloneModelBundleRequest(schemas.DictSchema): 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: ... + 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__( @@ -73,7 +75,9 @@ class CloneModelBundleRequest(schemas.DictSchema): 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: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/clone_model_bundle_v1_request.py b/launch/api_client/model/clone_model_bundle_v1_request.py new file mode 100644 index 00000000..52b9f905 --- /dev/null +++ b/launch/api_client/model/clone_model_bundle_v1_request.py @@ -0,0 +1,95 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # 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, + ) diff --git a/launch/api_client/model/clone_model_bundle_v1_request.pyi b/launch/api_client/model/clone_model_bundle_v1_request.pyi new file mode 100644 index 00000000..6d01d861 --- /dev/null +++ b/launch/api_client/model/clone_model_bundle_v1_request.pyi @@ -0,0 +1,95 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_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, + ) diff --git a/launch/api_client/model/create_async_task_response.py b/launch/api_client/model/create_async_task_response.py index 36e7f525..3f339ae1 100644 --- a/launch/api_client/model/create_async_task_response.py +++ b/launch/api_client/model/create_async_task_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -44,26 +43,46 @@ class properties: task_id: MetaOapg.properties.task_id @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: + def __getitem__( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "task_id", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: + def get_item_oapg( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @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["task_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "task_id", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_async_task_response.pyi b/launch/api_client/model/create_async_task_response.pyi index 4d010b3c..d5d11a32 100644 --- a/launch/api_client/model/create_async_task_response.pyi +++ b/launch/api_client/model/create_async_task_response.pyi @@ -41,17 +41,39 @@ class CreateAsyncTaskResponse(schemas.DictSchema): task_id: MetaOapg.properties.task_id @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + def __getitem__( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "task_id", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + def get_item_oapg( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @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["task_id",], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "task_id", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/create_async_task_v1_response.py b/launch/api_client/model/create_async_task_v1_response.py new file mode 100644 index 00000000..5805b46f --- /dev/null +++ b/launch/api_client/model/create_async_task_v1_response.py @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class CreateAsyncTaskV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "task_id", + } + + class properties: + task_id = schemas.StrSchema + __annotations__ = { + "task_id": task_id, + } + + task_id: MetaOapg.properties.task_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + + @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["task_id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + task_id: typing.Union[MetaOapg.properties.task_id, str, ], + _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], + ) -> 'CreateAsyncTaskV1Response': + return super().__new__( + cls, + *_args, + task_id=task_id, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/create_async_task_v1_response.pyi b/launch/api_client/model/create_async_task_v1_response.pyi new file mode 100644 index 00000000..3e9fcb1b --- /dev/null +++ b/launch/api_client/model/create_async_task_v1_response.pyi @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class CreateAsyncTaskV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "task_id", + } + + class properties: + task_id = schemas.StrSchema + __annotations__ = { + "task_id": task_id, + } + + task_id: MetaOapg.properties.task_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + + @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["task_id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + task_id: typing.Union[MetaOapg.properties.task_id, str, ], + _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], + ) -> 'CreateAsyncTaskV1Response': + return super().__new__( + cls, + *_args, + task_id=task_id, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/create_batch_job_request.py b/launch/api_client/model/create_batch_job_request.py index 2fee6e95..23daf7d9 100644 --- a/launch/api_client/model/create_batch_job_request.py +++ b/launch/api_client/model/create_batch_job_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -46,11 +45,21 @@ class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( @@ -97,7 +106,9 @@ def serialization_format() -> typing.Type["BatchJobSerializationFormat"]: labels: MetaOapg.properties.labels @typing.overload - def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: + def __getitem__( + self, name: typing_extensions.Literal["input_path"] + ) -> MetaOapg.properties.input_path: ... @typing.overload @@ -105,15 +116,21 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": + def __getitem__( + self, name: typing_extensions.Literal["resource_requests"] + ) -> "CreateBatchJobResourceRequests": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": + def __getitem__( + self, name: typing_extensions.Literal["serialization_format"] + ) -> "BatchJobSerializationFormat": ... @typing.overload @@ -137,23 +154,33 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: + def get_item_oapg( + self, name: typing_extensions.Literal["input_path"] + ) -> MetaOapg.properties.input_path: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": + def get_item_oapg( + self, name: typing_extensions.Literal["resource_requests"] + ) -> "CreateBatchJobResourceRequests": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": + def get_item_oapg( + self, name: typing_extensions.Literal["serialization_format"] + ) -> "BatchJobSerializationFormat": ... @typing.overload @@ -227,9 +254,5 @@ def __new__( ) -from launch.api_client.model.batch_job_serialization_format import ( - BatchJobSerializationFormat, -) -from launch.api_client.model.create_batch_job_resource_requests import ( - CreateBatchJobResourceRequests, -) +from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat +from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests diff --git a/launch/api_client/model/create_batch_job_request.pyi b/launch/api_client/model/create_batch_job_request.pyi index f8ef5646..6a48d5a9 100644 --- a/launch/api_client/model/create_batch_job_request.pyi +++ b/launch/api_client/model/create_batch_job_request.pyi @@ -43,10 +43,20 @@ class CreateBatchJobRequest(schemas.DictSchema): class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( cls, @@ -88,17 +98,25 @@ class CreateBatchJobRequest(schemas.DictSchema): labels: MetaOapg.properties.labels @typing.overload - def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... + def __getitem__( + self, name: typing_extensions.Literal["input_path"] + ) -> MetaOapg.properties.input_path: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + def __getitem__( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... + def __getitem__( + self, name: typing_extensions.Literal["resource_requests"] + ) -> "CreateBatchJobResourceRequests": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... + def __getitem__( + self, name: typing_extensions.Literal["serialization_format"] + ) -> "BatchJobSerializationFormat": ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -117,9 +135,13 @@ class CreateBatchJobRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... + def get_item_oapg( + self, name: typing_extensions.Literal["input_path"] + ) -> MetaOapg.properties.input_path: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_bundle_id"] @@ -133,7 +155,9 @@ class CreateBatchJobRequest(schemas.DictSchema): self, name: typing_extensions.Literal["serialization_format"] ) -> "BatchJobSerializationFormat": ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -199,9 +223,5 @@ class CreateBatchJobRequest(schemas.DictSchema): **kwargs, ) -from launch_client.model.batch_job_serialization_format import ( - BatchJobSerializationFormat, -) -from launch_client.model.create_batch_job_resource_requests import ( - CreateBatchJobResourceRequests, -) +from launch_client.model.batch_job_serialization_format import BatchJobSerializationFormat +from launch_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests diff --git a/launch/api_client/model/create_batch_job_resource_requests.py b/launch/api_client/model/create_batch_job_resource_requests.py index 48c4adb1..c1f62452 100644 --- a/launch/api_client/model/create_batch_job_resource_requests.py +++ b/launch/api_client/model/create_batch_job_resource_requests.py @@ -9,37 +9,45 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CreateBatchJobResourceRequests(schemas.DictSchema): +class CreateBatchJobResourceRequests( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: + class properties: + + class cpus( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -55,67 +63,38 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "cpus": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'cpus': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def gpu_type() -> typing.Type["GpuType"]: + def gpu_type() -> typing.Type['GpuType']: return GpuType - gpus = schemas.IntSchema max_workers = schemas.IntSchema - + + class memory( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -131,62 +110,33 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "memory": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'memory': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - per_worker = schemas.IntSchema - + + class storage( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -202,52 +152,20 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "storage": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'storage': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - __annotations__ = { "cpus": cpus, "gpu_type": gpu_type, @@ -257,206 +175,77 @@ def __new__( "per_worker": per_worker, "storage": storage, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: - ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": - ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: - ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: - ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: - ... - + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: - ... - + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cpus", - "gpu_type", - "gpus", - "max_workers", - "memory", - "per_worker", - "storage", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cpus"] - ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpus"] - ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["storage"] - ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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[ - "cpus", - "gpu_type", - "gpus", - "max_workers", - "memory", - "per_worker", - "storage", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - cpus: typing.Union[ - MetaOapg.properties.cpus, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, - gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[ - MetaOapg.properties.memory, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - storage: typing.Union[ - MetaOapg.properties.storage, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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, - ], - ) -> "CreateBatchJobResourceRequests": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateBatchJobResourceRequests': return super().__new__( cls, *_args, @@ -471,5 +260,4 @@ def __new__( **kwargs, ) - from launch.api_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/create_batch_job_resource_requests.pyi b/launch/api_client/model/create_batch_job_resource_requests.pyi index c3f466a3..38ca0898 100644 --- a/launch/api_client/model/create_batch_job_resource_requests.pyi +++ b/launch/api_client/model/create_batch_job_resource_requests.pyi @@ -9,35 +9,45 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CreateBatchJobResourceRequests(schemas.DictSchema): + +class CreateBatchJobResourceRequests( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: + class properties: + + class cpus( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -53,64 +63,38 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "cpus": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'cpus': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + @staticmethod - def gpu_type() -> typing.Type["GpuType"]: + def gpu_type() -> typing.Type['GpuType']: return GpuType gpus = schemas.IntSchema max_workers = schemas.IntSchema - + + class memory( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -126,44 +110,14 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "memory": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'memory': return super().__new__( cls, *_args, @@ -171,15 +125,18 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): **kwargs, ) per_worker = schemas.IntSchema - + + class storage( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -195,44 +152,14 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "storage": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'storage': return super().__new__( cls, *_args, @@ -248,171 +175,77 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): "per_worker": per_worker, "storage": storage, } + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cpus", - "gpu_type", - "gpus", - "max_workers", - "memory", - "per_worker", - "storage", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cpus"] - ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpus"] - ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["storage"] - ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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[ - "cpus", - "gpu_type", - "gpus", - "max_workers", - "memory", - "per_worker", - "storage", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - cpus: typing.Union[ - MetaOapg.properties.cpus, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, - gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[ - MetaOapg.properties.memory, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - storage: typing.Union[ - MetaOapg.properties.storage, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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, - ], - ) -> "CreateBatchJobResourceRequests": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateBatchJobResourceRequests': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_batch_job_response.py b/launch/api_client/model/create_batch_job_response.py index 899435de..7e9fb2e2 100644 --- a/launch/api_client/model/create_batch_job_response.py +++ b/launch/api_client/model/create_batch_job_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -51,19 +50,37 @@ def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.pro def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "job_id", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: + def get_item_oapg( + self, name: typing_extensions.Literal["job_id"] + ) -> MetaOapg.properties.job_id: ... @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["job_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "job_id", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_batch_job_response.pyi b/launch/api_client/model/create_batch_job_response.pyi index 594f2123..eba9c832 100644 --- a/launch/api_client/model/create_batch_job_response.pyi +++ b/launch/api_client/model/create_batch_job_response.pyi @@ -41,17 +41,39 @@ class CreateBatchJobResponse(schemas.DictSchema): job_id: MetaOapg.properties.job_id @typing.overload - def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... + def __getitem__( + self, name: typing_extensions.Literal["job_id"] + ) -> MetaOapg.properties.job_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "job_id", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... + def get_item_oapg( + self, name: typing_extensions.Literal["job_id"] + ) -> MetaOapg.properties.job_id: ... @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["job_id",], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "job_id", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/create_batch_job_v1_request.py b/launch/api_client/model/create_batch_job_v1_request.py new file mode 100644 index 00000000..03f4e079 --- /dev/null +++ b/launch/api_client/model/create_batch_job_v1_request.py @@ -0,0 +1,168 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class CreateBatchJobV1Request( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "model_bundle_id", + "resource_requests", + "serialization_format", + "input_path", + "labels", + } + + class properties: + input_path = schemas.StrSchema + + + class labels( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + model_bundle_id = schemas.StrSchema + + @staticmethod + def resource_requests() -> typing.Type['CreateBatchJobResourceRequests']: + return CreateBatchJobResourceRequests + + @staticmethod + def serialization_format() -> typing.Type['BatchJobSerializationFormat']: + return BatchJobSerializationFormat + __annotations__ = { + "input_path": input_path, + "labels": labels, + "model_bundle_id": model_bundle_id, + "resource_requests": resource_requests, + "serialization_format": serialization_format, + } + + model_bundle_id: MetaOapg.properties.model_bundle_id + resource_requests: 'CreateBatchJobResourceRequests' + serialization_format: 'BatchJobSerializationFormat' + input_path: MetaOapg.properties.input_path + labels: MetaOapg.properties.labels + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... + + @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["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + resource_requests: 'CreateBatchJobResourceRequests', + serialization_format: 'BatchJobSerializationFormat', + input_path: typing.Union[MetaOapg.properties.input_path, str, ], + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], + _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], + ) -> 'CreateBatchJobV1Request': + return super().__new__( + cls, + *_args, + model_bundle_id=model_bundle_id, + resource_requests=resource_requests, + serialization_format=serialization_format, + input_path=input_path, + labels=labels, + _configuration=_configuration, + **kwargs, + ) + +from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat +from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests diff --git a/launch/api_client/model/create_batch_job_v1_request.pyi b/launch/api_client/model/create_batch_job_v1_request.pyi new file mode 100644 index 00000000..34b6fb0c --- /dev/null +++ b/launch/api_client/model/create_batch_job_v1_request.pyi @@ -0,0 +1,168 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class CreateBatchJobV1Request( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "model_bundle_id", + "resource_requests", + "serialization_format", + "input_path", + "labels", + } + + class properties: + input_path = schemas.StrSchema + + + class labels( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + model_bundle_id = schemas.StrSchema + + @staticmethod + def resource_requests() -> typing.Type['CreateBatchJobResourceRequests']: + return CreateBatchJobResourceRequests + + @staticmethod + def serialization_format() -> typing.Type['BatchJobSerializationFormat']: + return BatchJobSerializationFormat + __annotations__ = { + "input_path": input_path, + "labels": labels, + "model_bundle_id": model_bundle_id, + "resource_requests": resource_requests, + "serialization_format": serialization_format, + } + + model_bundle_id: MetaOapg.properties.model_bundle_id + resource_requests: 'CreateBatchJobResourceRequests' + serialization_format: 'BatchJobSerializationFormat' + input_path: MetaOapg.properties.input_path + labels: MetaOapg.properties.labels + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... + + @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["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + resource_requests: 'CreateBatchJobResourceRequests', + serialization_format: 'BatchJobSerializationFormat', + input_path: typing.Union[MetaOapg.properties.input_path, str, ], + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], + _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], + ) -> 'CreateBatchJobV1Request': + return super().__new__( + cls, + *_args, + model_bundle_id=model_bundle_id, + resource_requests=resource_requests, + serialization_format=serialization_format, + input_path=input_path, + labels=labels, + _configuration=_configuration, + **kwargs, + ) + +from launch_client.model.batch_job_serialization_format import BatchJobSerializationFormat +from launch_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests diff --git a/launch/api_client/model/create_batch_job_v1_response.py b/launch/api_client/model/create_batch_job_v1_response.py new file mode 100644 index 00000000..48561f4d --- /dev/null +++ b/launch/api_client/model/create_batch_job_v1_response.py @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class CreateBatchJobV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "job_id", + } + + class properties: + job_id = schemas.StrSchema + __annotations__ = { + "job_id": job_id, + } + + job_id: MetaOapg.properties.job_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... + + @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["job_id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + job_id: typing.Union[MetaOapg.properties.job_id, str, ], + _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], + ) -> 'CreateBatchJobV1Response': + return super().__new__( + cls, + *_args, + job_id=job_id, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/create_batch_job_v1_response.pyi b/launch/api_client/model/create_batch_job_v1_response.pyi new file mode 100644 index 00000000..01425585 --- /dev/null +++ b/launch/api_client/model/create_batch_job_v1_response.pyi @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class CreateBatchJobV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "job_id", + } + + class properties: + job_id = schemas.StrSchema + __annotations__ = { + "job_id": job_id, + } + + job_id: MetaOapg.properties.job_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... + + @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["job_id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + job_id: typing.Union[MetaOapg.properties.job_id, str, ], + _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], + ) -> 'CreateBatchJobV1Response': + return super().__new__( + cls, + *_args, + job_id=job_id, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/create_model_bundle_request.py b/launch/api_client/model/create_model_bundle_request.py index c868221e..042b0883 100644 --- a/launch/api_client/model/create_model_bundle_request.py +++ b/launch/api_client/model/create_model_bundle_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -104,11 +103,15 @@ def packaging_type() -> typing.Type["ModelBundlePackagingType"]: env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": + def __getitem__( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: + def __getitem__( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload @@ -116,23 +119,33 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: + def __getitem__( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: + def __getitem__( + self, name: typing_extensions.Literal["app_config"] + ) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": + def __getitem__( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: + def __getitem__( + self, name: typing_extensions.Literal["schema_location"] + ) -> MetaOapg.properties.schema_location: ... @typing.overload @@ -159,11 +172,15 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": + def get_item_oapg( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: + def get_item_oapg( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload @@ -171,7 +188,9 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: + def get_item_oapg( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload @@ -247,7 +266,9 @@ def __new__( MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, packaging_type: typing.Union["ModelBundlePackagingType", schemas.Unset] = schemas.unset, - schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, + schema_location: typing.Union[ + MetaOapg.properties.schema_location, str, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -282,9 +303,5 @@ def __new__( ) -from launch.api_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch.api_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) +from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/create_model_bundle_request.pyi b/launch/api_client/model/create_model_bundle_request.pyi index 5cbf17ef..746bb18e 100644 --- a/launch/api_client/model/create_model_bundle_request.pyi +++ b/launch/api_client/model/create_model_bundle_request.pyi @@ -96,19 +96,31 @@ class CreateModelBundleRequest(schemas.DictSchema): env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... + def __getitem__( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + def __getitem__( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + def __getitem__( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... + def __getitem__( + self, name: typing_extensions.Literal["app_config"] + ) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... + def __getitem__( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["schema_location"] @@ -134,13 +146,21 @@ class CreateModelBundleRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... + def get_item_oapg( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + def get_item_oapg( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + def get_item_oapg( + self, name: typing_extensions.Literal["name"] + ) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + def get_item_oapg( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["app_config"] @@ -158,7 +178,9 @@ class CreateModelBundleRequest(schemas.DictSchema): self, name: typing_extensions.Literal["schema_location"] ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -203,7 +225,9 @@ class CreateModelBundleRequest(schemas.DictSchema): MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, packaging_type: typing.Union["ModelBundlePackagingType", schemas.Unset] = schemas.unset, - schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, + schema_location: typing.Union[ + MetaOapg.properties.schema_location, str, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -237,9 +261,5 @@ class CreateModelBundleRequest(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) +from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/create_model_bundle_response.py b/launch/api_client/model/create_model_bundle_response.py index 7df745d2..f51185f5 100644 --- a/launch/api_client/model/create_model_bundle_response.py +++ b/launch/api_client/model/create_model_bundle_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -46,26 +45,46 @@ class properties: model_bundle_id: MetaOapg.properties.model_bundle_id @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "model_bundle_id", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @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["model_bundle_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "model_bundle_id", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_model_bundle_response.pyi b/launch/api_client/model/create_model_bundle_response.pyi index 089103c9..c7145f61 100644 --- a/launch/api_client/model/create_model_bundle_response.pyi +++ b/launch/api_client/model/create_model_bundle_response.pyi @@ -48,7 +48,15 @@ class CreateModelBundleResponse(schemas.DictSchema): ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "model_bundle_id", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload @@ -56,8 +64,18 @@ class CreateModelBundleResponse(schemas.DictSchema): self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @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["model_bundle_id",], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "model_bundle_id", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/create_model_bundle_v1_request.py b/launch/api_client/model/create_model_bundle_v1_request.py new file mode 100644 index 00000000..d797e244 --- /dev/null +++ b/launch/api_client/model/create_model_bundle_v1_request.py @@ -0,0 +1,194 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class CreateModelBundleV1Request( + 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 creating a Model Bundle. + """ + + + class MetaOapg: + required = { + "requirements", + "packaging_type", + "name", + "location", + "env_params", + } + + class properties: + + @staticmethod + def env_params() -> typing.Type['ModelBundleEnvironmentParams']: + return ModelBundleEnvironmentParams + location = schemas.StrSchema + name = schemas.StrSchema + + @staticmethod + def packaging_type() -> typing.Type['ModelBundlePackagingType']: + return ModelBundlePackagingType + + + class requirements( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'requirements': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + app_config = schemas.DictSchema + metadata = schemas.DictSchema + schema_location = schemas.StrSchema + __annotations__ = { + "env_params": env_params, + "location": location, + "name": name, + "packaging_type": packaging_type, + "requirements": requirements, + "app_config": app_config, + "metadata": metadata, + "schema_location": schema_location, + } + + requirements: MetaOapg.properties.requirements + packaging_type: 'ModelBundlePackagingType' + name: MetaOapg.properties.name + location: MetaOapg.properties.location + env_params: 'ModelBundleEnvironmentParams' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, 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["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], + packaging_type: 'ModelBundlePackagingType', + name: typing.Union[MetaOapg.properties.name, str, ], + location: typing.Union[MetaOapg.properties.location, str, ], + env_params: 'ModelBundleEnvironmentParams', + app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, 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], + ) -> 'CreateModelBundleV1Request': + return super().__new__( + cls, + *_args, + requirements=requirements, + packaging_type=packaging_type, + name=name, + location=location, + env_params=env_params, + app_config=app_config, + metadata=metadata, + schema_location=schema_location, + _configuration=_configuration, + **kwargs, + ) + +from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/create_model_bundle_v1_request.pyi b/launch/api_client/model/create_model_bundle_v1_request.pyi new file mode 100644 index 00000000..c951cd74 --- /dev/null +++ b/launch/api_client/model/create_model_bundle_v1_request.pyi @@ -0,0 +1,194 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class CreateModelBundleV1Request( + 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 creating a Model Bundle. + """ + + + class MetaOapg: + required = { + "requirements", + "packaging_type", + "name", + "location", + "env_params", + } + + class properties: + + @staticmethod + def env_params() -> typing.Type['ModelBundleEnvironmentParams']: + return ModelBundleEnvironmentParams + location = schemas.StrSchema + name = schemas.StrSchema + + @staticmethod + def packaging_type() -> typing.Type['ModelBundlePackagingType']: + return ModelBundlePackagingType + + + class requirements( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'requirements': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + app_config = schemas.DictSchema + metadata = schemas.DictSchema + schema_location = schemas.StrSchema + __annotations__ = { + "env_params": env_params, + "location": location, + "name": name, + "packaging_type": packaging_type, + "requirements": requirements, + "app_config": app_config, + "metadata": metadata, + "schema_location": schema_location, + } + + requirements: MetaOapg.properties.requirements + packaging_type: 'ModelBundlePackagingType' + name: MetaOapg.properties.name + location: MetaOapg.properties.location + env_params: 'ModelBundleEnvironmentParams' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, 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["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], + packaging_type: 'ModelBundlePackagingType', + name: typing.Union[MetaOapg.properties.name, str, ], + location: typing.Union[MetaOapg.properties.location, str, ], + env_params: 'ModelBundleEnvironmentParams', + app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, 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], + ) -> 'CreateModelBundleV1Request': + return super().__new__( + cls, + *_args, + requirements=requirements, + packaging_type=packaging_type, + name=name, + location=location, + env_params=env_params, + app_config=app_config, + metadata=metadata, + schema_location=schema_location, + _configuration=_configuration, + **kwargs, + ) + +from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/create_model_bundle_v1_response.py b/launch/api_client/model/create_model_bundle_v1_response.py new file mode 100644 index 00000000..638bd0cb --- /dev/null +++ b/launch/api_client/model/create_model_bundle_v1_response.py @@ -0,0 +1,85 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class CreateModelBundleV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Response object for creating a Model Bundle. + """ + + + class MetaOapg: + required = { + "model_bundle_id", + } + + class properties: + model_bundle_id = schemas.StrSchema + __annotations__ = { + "model_bundle_id": model_bundle_id, + } + + model_bundle_id: MetaOapg.properties.model_bundle_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @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["model_bundle_id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + _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], + ) -> 'CreateModelBundleV1Response': + return super().__new__( + cls, + *_args, + model_bundle_id=model_bundle_id, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/create_model_bundle_v1_response.pyi b/launch/api_client/model/create_model_bundle_v1_response.pyi new file mode 100644 index 00000000..c7da6274 --- /dev/null +++ b/launch/api_client/model/create_model_bundle_v1_response.pyi @@ -0,0 +1,85 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class CreateModelBundleV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Response object for creating a Model Bundle. + """ + + + class MetaOapg: + required = { + "model_bundle_id", + } + + class properties: + model_bundle_id = schemas.StrSchema + __annotations__ = { + "model_bundle_id": model_bundle_id, + } + + model_bundle_id: MetaOapg.properties.model_bundle_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @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["model_bundle_id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + _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], + ) -> 'CreateModelBundleV1Response': + return super().__new__( + cls, + *_args, + model_bundle_id=model_bundle_id, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/create_model_endpoint_request.py b/launch/api_client/model/create_model_endpoint_request.py index a5a76c9e..56aca0e6 100644 --- a/launch/api_client/model/create_model_endpoint_request.py +++ b/launch/api_client/model/create_model_endpoint_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -127,11 +126,21 @@ class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( @@ -410,7 +419,9 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload @@ -418,15 +429,21 @@ def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -434,15 +451,21 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: + def __getitem__( + self, name: typing_extensions.Literal["billing_tags"] + ) -> MetaOapg.properties.billing_tags: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload @@ -456,7 +479,9 @@ def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: ... @typing.overload @@ -466,11 +491,15 @@ def __getitem__( ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: + def __getitem__( + self, name: typing_extensions.Literal["prewarm"] + ) -> MetaOapg.properties.prewarm: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: ... @typing.overload @@ -512,7 +541,9 @@ def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload @@ -520,27 +551,39 @@ def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: + def get_item_oapg( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -548,7 +591,9 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload @@ -570,7 +615,9 @@ def get_item_oapg( ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload @@ -721,7 +768,9 @@ def __new__( MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, diff --git a/launch/api_client/model/create_model_endpoint_request.pyi b/launch/api_client/model/create_model_endpoint_request.pyi index 7ae609e6..b1a37806 100644 --- a/launch/api_client/model/create_model_endpoint_request.pyi +++ b/launch/api_client/model/create_model_endpoint_request.pyi @@ -121,10 +121,20 @@ class CreateModelEndpointRequest(schemas.DictSchema): class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( cls, @@ -370,19 +380,31 @@ class CreateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... + def __getitem__( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + def __getitem__( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + def __getitem__( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] @@ -390,11 +412,17 @@ class CreateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... + def __getitem__( + self, name: typing_extensions.Literal["billing_tags"] + ) -> MetaOapg.properties.billing_tags: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -402,15 +430,21 @@ class CreateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... + def __getitem__( + self, name: typing_extensions.Literal["prewarm"] + ) -> MetaOapg.properties.prewarm: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -443,29 +477,49 @@ class CreateModelEndpointRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + def get_item_oapg( + self, name: typing_extensions.Literal["cpus"] + ) -> MetaOapg.properties.cpus: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + def get_item_oapg( + self, name: typing_extensions.Literal["gpus"] + ) -> MetaOapg.properties.gpus: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + def get_item_oapg( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + def get_item_oapg( + self, name: typing_extensions.Literal["name"] + ) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["billing_tags"] @@ -479,7 +533,9 @@ class CreateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["default_callback_url"] ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["optimize_costs"] @@ -497,7 +553,9 @@ class CreateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["storage"] ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -617,7 +675,9 @@ class CreateModelEndpointRequest(schemas.DictSchema): MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, diff --git a/launch/api_client/model/create_model_endpoint_response.py b/launch/api_client/model/create_model_endpoint_response.py index e874fda3..716018f7 100644 --- a/launch/api_client/model/create_model_endpoint_response.py +++ b/launch/api_client/model/create_model_endpoint_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -53,7 +52,15 @@ def __getitem__( def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -67,7 +74,15 @@ def get_item_oapg( def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_model_endpoint_response.pyi b/launch/api_client/model/create_model_endpoint_response.pyi index 6e1204b4..6c562738 100644 --- a/launch/api_client/model/create_model_endpoint_response.pyi +++ b/launch/api_client/model/create_model_endpoint_response.pyi @@ -46,7 +46,15 @@ class CreateModelEndpointResponse(schemas.DictSchema): ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload @@ -54,8 +62,18 @@ class CreateModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["endpoint_creation_task_id"] ) -> MetaOapg.properties.endpoint_creation_task_id: ... @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["endpoint_creation_task_id",], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/create_model_endpoint_v1_request.py b/launch/api_client/model/create_model_endpoint_v1_request.py new file mode 100644 index 00000000..b3198236 --- /dev/null +++ b/launch/api_client/model/create_model_endpoint_v1_request.py @@ -0,0 +1,518 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class CreateModelEndpointV1Request( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "endpoint_type", + "metadata", + "memory", + "cpus", + "max_workers", + "model_bundle_id", + "min_workers", + "gpus", + "name", + "per_worker", + "labels", + } + + class properties: + + + class cpus( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.StrSchema + any_of_1 = schemas.IntSchema + any_of_2 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + ] + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _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], + ) -> 'cpus': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + + @staticmethod + def endpoint_type() -> typing.Type['ModelEndpointType']: + return ModelEndpointType + + + class gpus( + schemas.IntSchema + ): + + + class MetaOapg: + inclusive_minimum = 0 + + + class labels( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + + + class max_workers( + schemas.IntSchema + ): + + + class MetaOapg: + inclusive_minimum = 0 + + + class memory( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.StrSchema + any_of_1 = schemas.IntSchema + any_of_2 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + ] + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _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], + ) -> 'memory': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + metadata = schemas.DictSchema + + + class min_workers( + schemas.IntSchema + ): + + + class MetaOapg: + inclusive_minimum = 0 + model_bundle_id = schemas.StrSchema + + + class name( + schemas.StrSchema + ): + + + class MetaOapg: + max_length = 63 + per_worker = schemas.IntSchema + billing_tags = schemas.DictSchema + + @staticmethod + def default_callback_auth() -> typing.Type['CallbackAuth']: + return CallbackAuth + + + class default_callback_url( + schemas.StrSchema + ): + + + class MetaOapg: + format = 'uri' + max_length = 2083 + min_length = 1 + + @staticmethod + def gpu_type() -> typing.Type['GpuType']: + return GpuType + high_priority = schemas.BoolSchema + optimize_costs = schemas.BoolSchema + + + class post_inference_hooks( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'post_inference_hooks': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + prewarm = schemas.BoolSchema + + + class storage( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.StrSchema + any_of_1 = schemas.IntSchema + any_of_2 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + ] + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _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], + ) -> 'storage': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "cpus": cpus, + "endpoint_type": endpoint_type, + "gpus": gpus, + "labels": labels, + "max_workers": max_workers, + "memory": memory, + "metadata": metadata, + "min_workers": min_workers, + "model_bundle_id": model_bundle_id, + "name": name, + "per_worker": per_worker, + "billing_tags": billing_tags, + "default_callback_auth": default_callback_auth, + "default_callback_url": default_callback_url, + "gpu_type": gpu_type, + "high_priority": high_priority, + "optimize_costs": optimize_costs, + "post_inference_hooks": post_inference_hooks, + "prewarm": prewarm, + "storage": storage, + } + + endpoint_type: 'ModelEndpointType' + metadata: MetaOapg.properties.metadata + memory: MetaOapg.properties.memory + cpus: MetaOapg.properties.cpus + max_workers: MetaOapg.properties.max_workers + model_bundle_id: MetaOapg.properties.model_bundle_id + min_workers: MetaOapg.properties.min_workers + gpus: MetaOapg.properties.gpus + name: MetaOapg.properties.name + per_worker: MetaOapg.properties.per_worker + labels: MetaOapg.properties.labels + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_type: 'ModelEndpointType', + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], + name: typing.Union[MetaOapg.properties.name, str, ], + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], + billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, + high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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], + ) -> 'CreateModelEndpointV1Request': + return super().__new__( + cls, + *_args, + endpoint_type=endpoint_type, + metadata=metadata, + memory=memory, + cpus=cpus, + max_workers=max_workers, + model_bundle_id=model_bundle_id, + min_workers=min_workers, + gpus=gpus, + name=name, + per_worker=per_worker, + labels=labels, + billing_tags=billing_tags, + default_callback_auth=default_callback_auth, + default_callback_url=default_callback_url, + gpu_type=gpu_type, + high_priority=high_priority, + optimize_costs=optimize_costs, + post_inference_hooks=post_inference_hooks, + prewarm=prewarm, + storage=storage, + _configuration=_configuration, + **kwargs, + ) + +from launch.api_client.model.callback_auth import CallbackAuth +from launch.api_client.model.gpu_type import GpuType +from launch.api_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/create_model_endpoint_v1_request.pyi b/launch/api_client/model/create_model_endpoint_v1_request.pyi new file mode 100644 index 00000000..d1849c99 --- /dev/null +++ b/launch/api_client/model/create_model_endpoint_v1_request.pyi @@ -0,0 +1,501 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class CreateModelEndpointV1Request( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "endpoint_type", + "metadata", + "memory", + "cpus", + "max_workers", + "model_bundle_id", + "min_workers", + "gpus", + "name", + "per_worker", + "labels", + } + + class properties: + + + class cpus( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.StrSchema + any_of_1 = schemas.IntSchema + any_of_2 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + ] + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _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], + ) -> 'cpus': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + + @staticmethod + def endpoint_type() -> typing.Type['ModelEndpointType']: + return ModelEndpointType + + + class gpus( + schemas.IntSchema + ): + pass + + + class labels( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + + + class max_workers( + schemas.IntSchema + ): + pass + + + class memory( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.StrSchema + any_of_1 = schemas.IntSchema + any_of_2 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + ] + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _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], + ) -> 'memory': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + metadata = schemas.DictSchema + + + class min_workers( + schemas.IntSchema + ): + pass + model_bundle_id = schemas.StrSchema + + + class name( + schemas.StrSchema + ): + pass + per_worker = schemas.IntSchema + billing_tags = schemas.DictSchema + + @staticmethod + def default_callback_auth() -> typing.Type['CallbackAuth']: + return CallbackAuth + + + class default_callback_url( + schemas.StrSchema + ): + pass + + @staticmethod + def gpu_type() -> typing.Type['GpuType']: + return GpuType + high_priority = schemas.BoolSchema + optimize_costs = schemas.BoolSchema + + + class post_inference_hooks( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'post_inference_hooks': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + prewarm = schemas.BoolSchema + + + class storage( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.StrSchema + any_of_1 = schemas.IntSchema + any_of_2 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + ] + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _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], + ) -> 'storage': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "cpus": cpus, + "endpoint_type": endpoint_type, + "gpus": gpus, + "labels": labels, + "max_workers": max_workers, + "memory": memory, + "metadata": metadata, + "min_workers": min_workers, + "model_bundle_id": model_bundle_id, + "name": name, + "per_worker": per_worker, + "billing_tags": billing_tags, + "default_callback_auth": default_callback_auth, + "default_callback_url": default_callback_url, + "gpu_type": gpu_type, + "high_priority": high_priority, + "optimize_costs": optimize_costs, + "post_inference_hooks": post_inference_hooks, + "prewarm": prewarm, + "storage": storage, + } + + endpoint_type: 'ModelEndpointType' + metadata: MetaOapg.properties.metadata + memory: MetaOapg.properties.memory + cpus: MetaOapg.properties.cpus + max_workers: MetaOapg.properties.max_workers + model_bundle_id: MetaOapg.properties.model_bundle_id + min_workers: MetaOapg.properties.min_workers + gpus: MetaOapg.properties.gpus + name: MetaOapg.properties.name + per_worker: MetaOapg.properties.per_worker + labels: MetaOapg.properties.labels + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_type: 'ModelEndpointType', + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], + name: typing.Union[MetaOapg.properties.name, str, ], + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], + billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, + high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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], + ) -> 'CreateModelEndpointV1Request': + return super().__new__( + cls, + *_args, + endpoint_type=endpoint_type, + metadata=metadata, + memory=memory, + cpus=cpus, + max_workers=max_workers, + model_bundle_id=model_bundle_id, + min_workers=min_workers, + gpus=gpus, + name=name, + per_worker=per_worker, + labels=labels, + billing_tags=billing_tags, + default_callback_auth=default_callback_auth, + default_callback_url=default_callback_url, + gpu_type=gpu_type, + high_priority=high_priority, + optimize_costs=optimize_costs, + post_inference_hooks=post_inference_hooks, + prewarm=prewarm, + storage=storage, + _configuration=_configuration, + **kwargs, + ) + +from launch_client.model.callback_auth import CallbackAuth +from launch_client.model.gpu_type import GpuType +from launch_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/create_model_endpoint_v1_response.py b/launch/api_client/model/create_model_endpoint_v1_response.py new file mode 100644 index 00000000..6f344894 --- /dev/null +++ b/launch/api_client/model/create_model_endpoint_v1_response.py @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class CreateModelEndpointV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "endpoint_creation_task_id", + } + + class properties: + endpoint_creation_task_id = schemas.StrSchema + __annotations__ = { + "endpoint_creation_task_id": endpoint_creation_task_id, + } + + endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + + @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["endpoint_creation_task_id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], + _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], + ) -> 'CreateModelEndpointV1Response': + return super().__new__( + cls, + *_args, + endpoint_creation_task_id=endpoint_creation_task_id, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/create_model_endpoint_v1_response.pyi b/launch/api_client/model/create_model_endpoint_v1_response.pyi new file mode 100644 index 00000000..0b696784 --- /dev/null +++ b/launch/api_client/model/create_model_endpoint_v1_response.pyi @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class CreateModelEndpointV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "endpoint_creation_task_id", + } + + class properties: + endpoint_creation_task_id = schemas.StrSchema + __annotations__ = { + "endpoint_creation_task_id": endpoint_creation_task_id, + } + + endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + + @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["endpoint_creation_task_id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], + _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], + ) -> 'CreateModelEndpointV1Response': + return super().__new__( + cls, + *_args, + endpoint_creation_task_id=endpoint_creation_task_id, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/delete_model_endpoint_response.py b/launch/api_client/model/delete_model_endpoint_response.py index 67406a0b..3525cd4e 100644 --- a/launch/api_client/model/delete_model_endpoint_response.py +++ b/launch/api_client/model/delete_model_endpoint_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -44,26 +43,46 @@ class properties: deleted: MetaOapg.properties.deleted @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: + def __getitem__( + self, name: typing_extensions.Literal["deleted"] + ) -> MetaOapg.properties.deleted: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "deleted", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: + def get_item_oapg( + self, name: typing_extensions.Literal["deleted"] + ) -> MetaOapg.properties.deleted: ... @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["deleted",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "deleted", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/delete_model_endpoint_response.pyi b/launch/api_client/model/delete_model_endpoint_response.pyi index bb264584..e74f51b3 100644 --- a/launch/api_client/model/delete_model_endpoint_response.pyi +++ b/launch/api_client/model/delete_model_endpoint_response.pyi @@ -41,17 +41,39 @@ class DeleteModelEndpointResponse(schemas.DictSchema): deleted: MetaOapg.properties.deleted @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... + def __getitem__( + self, name: typing_extensions.Literal["deleted"] + ) -> MetaOapg.properties.deleted: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "deleted", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... + def get_item_oapg( + self, name: typing_extensions.Literal["deleted"] + ) -> MetaOapg.properties.deleted: ... @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["deleted",], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "deleted", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.py b/launch/api_client/model/delete_model_endpoint_v1_response.py new file mode 100644 index 00000000..dea0d23d --- /dev/null +++ b/launch/api_client/model/delete_model_endpoint_v1_response.py @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class DeleteModelEndpointV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "deleted", + } + + class properties: + deleted = schemas.BoolSchema + __annotations__ = { + "deleted": deleted, + } + + deleted: MetaOapg.properties.deleted + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... + + @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["deleted", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + deleted: typing.Union[MetaOapg.properties.deleted, bool, ], + _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], + ) -> 'DeleteModelEndpointV1Response': + return super().__new__( + cls, + *_args, + deleted=deleted, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.pyi b/launch/api_client/model/delete_model_endpoint_v1_response.pyi new file mode 100644 index 00000000..f8cc65ff --- /dev/null +++ b/launch/api_client/model/delete_model_endpoint_v1_response.pyi @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class DeleteModelEndpointV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "deleted", + } + + class properties: + deleted = schemas.BoolSchema + __annotations__ = { + "deleted": deleted, + } + + deleted: MetaOapg.properties.deleted + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... + + @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["deleted", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + deleted: typing.Union[MetaOapg.properties.deleted, bool, ], + _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], + ) -> 'DeleteModelEndpointV1Response': + return super().__new__( + cls, + *_args, + deleted=deleted, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/endpoint_predict_request.py b/launch/api_client/model/endpoint_predict_request.py index c8cfed1c..571e046a 100644 --- a/launch/api_client/model/endpoint_predict_request.py +++ b/launch/api_client/model/endpoint_predict_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -60,15 +59,21 @@ def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "Call ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: + def __getitem__( + self, name: typing_extensions.Literal["callback_url"] + ) -> MetaOapg.properties.callback_url: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: + def __getitem__( + self, name: typing_extensions.Literal["cloudpickle"] + ) -> MetaOapg.properties.cloudpickle: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: + def __getitem__( + self, name: typing_extensions.Literal["return_pickled"] + ) -> MetaOapg.properties.return_pickled: ... @typing.overload @@ -179,9 +184,15 @@ def __new__( schemas.Unset, ] = schemas.unset, callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, - cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, - return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, + callback_url: typing.Union[ + MetaOapg.properties.callback_url, str, schemas.Unset + ] = schemas.unset, + cloudpickle: typing.Union[ + MetaOapg.properties.cloudpickle, str, schemas.Unset + ] = schemas.unset, + return_pickled: typing.Union[ + MetaOapg.properties.return_pickled, bool, schemas.Unset + ] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ diff --git a/launch/api_client/model/endpoint_predict_request.pyi b/launch/api_client/model/endpoint_predict_request.pyi index 656cb6f8..03516a99 100644 --- a/launch/api_client/model/endpoint_predict_request.pyi +++ b/launch/api_client/model/endpoint_predict_request.pyi @@ -52,11 +52,17 @@ class EndpointPredictRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "CallbackAuth": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... + def __getitem__( + self, name: typing_extensions.Literal["callback_url"] + ) -> MetaOapg.properties.callback_url: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... + def __getitem__( + self, name: typing_extensions.Literal["cloudpickle"] + ) -> MetaOapg.properties.cloudpickle: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... + def __getitem__( + self, name: typing_extensions.Literal["return_pickled"] + ) -> MetaOapg.properties.return_pickled: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... @typing.overload @@ -102,7 +108,9 @@ class EndpointPredictRequest(schemas.DictSchema): self, name: typing_extensions.Literal["url"] ) -> typing.Union[MetaOapg.properties.url, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -145,9 +153,15 @@ class EndpointPredictRequest(schemas.DictSchema): schemas.Unset, ] = schemas.unset, callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, - cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, - return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, + callback_url: typing.Union[ + MetaOapg.properties.callback_url, str, schemas.Unset + ] = schemas.unset, + cloudpickle: typing.Union[ + MetaOapg.properties.cloudpickle, str, schemas.Unset + ] = schemas.unset, + return_pickled: typing.Union[ + MetaOapg.properties.return_pickled, bool, schemas.Unset + ] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ diff --git a/launch/api_client/model/endpoint_predict_v1_request.py b/launch/api_client/model/endpoint_predict_v1_request.py new file mode 100644 index 00000000..79f2c87b --- /dev/null +++ b/launch/api_client/model/endpoint_predict_v1_request.py @@ -0,0 +1,133 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class EndpointPredictV1Request( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + args = schemas.AnyTypeSchema + + @staticmethod + def callback_auth() -> typing.Type['CallbackAuth']: + return CallbackAuth + callback_url = schemas.StrSchema + cloudpickle = schemas.StrSchema + return_pickled = schemas.BoolSchema + url = schemas.StrSchema + __annotations__ = { + "args": args, + "callback_auth": callback_auth, + "callback_url": callback_url, + "cloudpickle": cloudpickle, + "return_pickled": return_pickled, + "url": url, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["args"]) -> MetaOapg.properties.args: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> 'CallbackAuth': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["args"]) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["callback_url"]) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cloudpickle"]) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["return_pickled"]) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["url"]) -> typing.Union[MetaOapg.properties.url, 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["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + args: typing.Union[MetaOapg.properties.args, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, + cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, + return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, + url: typing.Union[MetaOapg.properties.url, str, 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], + ) -> 'EndpointPredictV1Request': + return super().__new__( + cls, + *_args, + args=args, + callback_auth=callback_auth, + callback_url=callback_url, + cloudpickle=cloudpickle, + return_pickled=return_pickled, + url=url, + _configuration=_configuration, + **kwargs, + ) + +from launch.api_client.model.callback_auth import CallbackAuth diff --git a/launch/api_client/model/endpoint_predict_v1_request.pyi b/launch/api_client/model/endpoint_predict_v1_request.pyi new file mode 100644 index 00000000..018c61dc --- /dev/null +++ b/launch/api_client/model/endpoint_predict_v1_request.pyi @@ -0,0 +1,133 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class EndpointPredictV1Request( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + args = schemas.AnyTypeSchema + + @staticmethod + def callback_auth() -> typing.Type['CallbackAuth']: + return CallbackAuth + callback_url = schemas.StrSchema + cloudpickle = schemas.StrSchema + return_pickled = schemas.BoolSchema + url = schemas.StrSchema + __annotations__ = { + "args": args, + "callback_auth": callback_auth, + "callback_url": callback_url, + "cloudpickle": cloudpickle, + "return_pickled": return_pickled, + "url": url, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["args"]) -> MetaOapg.properties.args: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> 'CallbackAuth': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["args"]) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["callback_url"]) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cloudpickle"]) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["return_pickled"]) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["url"]) -> typing.Union[MetaOapg.properties.url, 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["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + args: typing.Union[MetaOapg.properties.args, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, + cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, + return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, + url: typing.Union[MetaOapg.properties.url, str, 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], + ) -> 'EndpointPredictV1Request': + return super().__new__( + cls, + *_args, + args=args, + callback_auth=callback_auth, + callback_url=callback_url, + cloudpickle=cloudpickle, + return_pickled=return_pickled, + url=url, + _configuration=_configuration, + **kwargs, + ) + +from launch_client.model.callback_auth import CallbackAuth diff --git a/launch/api_client/model/get_async_task_response.py b/launch/api_client/model/get_async_task_response.py index c21a3400..f50a32ac 100644 --- a/launch/api_client/model/get_async_task_response.py +++ b/launch/api_client/model/get_async_task_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -59,7 +58,9 @@ def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus" ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: + def __getitem__( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload @@ -67,7 +68,9 @@ def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: + def __getitem__( + self, name: typing_extensions.Literal["traceback"] + ) -> MetaOapg.properties.traceback: ... @typing.overload @@ -94,7 +97,9 @@ def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatu ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: + def get_item_oapg( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload diff --git a/launch/api_client/model/get_async_task_response.pyi b/launch/api_client/model/get_async_task_response.pyi index 8dacef03..9117c7a1 100644 --- a/launch/api_client/model/get_async_task_response.pyi +++ b/launch/api_client/model/get_async_task_response.pyi @@ -53,11 +53,17 @@ class GetAsyncTaskResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + def __getitem__( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + def __getitem__( + self, name: typing_extensions.Literal["result"] + ) -> MetaOapg.properties.result: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... + def __getitem__( + self, name: typing_extensions.Literal["traceback"] + ) -> MetaOapg.properties.traceback: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -77,7 +83,9 @@ class GetAsyncTaskResponse(schemas.DictSchema): @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + def get_item_oapg( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["result"] @@ -87,7 +95,9 @@ class GetAsyncTaskResponse(schemas.DictSchema): self, name: typing_extensions.Literal["traceback"] ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/get_async_task_v1_response.py b/launch/api_client/model/get_async_task_v1_response.py new file mode 100644 index 00000000..101107ad --- /dev/null +++ b/launch/api_client/model/get_async_task_v1_response.py @@ -0,0 +1,120 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class GetAsyncTaskV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "task_id", + "status", + } + + class properties: + + @staticmethod + def status() -> typing.Type['TaskStatus']: + return TaskStatus + task_id = schemas.StrSchema + result = schemas.AnyTypeSchema + traceback = schemas.StrSchema + __annotations__ = { + "status": status, + "task_id": task_id, + "result": result, + "traceback": traceback, + } + + task_id: MetaOapg.properties.task_id + status: 'TaskStatus' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "task_id", "result", "traceback", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, 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["status", "task_id", "result", "traceback", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + task_id: typing.Union[MetaOapg.properties.task_id, str, ], + status: 'TaskStatus', + result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + traceback: typing.Union[MetaOapg.properties.traceback, str, 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], + ) -> 'GetAsyncTaskV1Response': + return super().__new__( + cls, + *_args, + task_id=task_id, + status=status, + result=result, + traceback=traceback, + _configuration=_configuration, + **kwargs, + ) + +from launch.api_client.model.task_status import TaskStatus diff --git a/launch/api_client/model/get_async_task_v1_response.pyi b/launch/api_client/model/get_async_task_v1_response.pyi new file mode 100644 index 00000000..d560363f --- /dev/null +++ b/launch/api_client/model/get_async_task_v1_response.pyi @@ -0,0 +1,120 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class GetAsyncTaskV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "task_id", + "status", + } + + class properties: + + @staticmethod + def status() -> typing.Type['TaskStatus']: + return TaskStatus + task_id = schemas.StrSchema + result = schemas.AnyTypeSchema + traceback = schemas.StrSchema + __annotations__ = { + "status": status, + "task_id": task_id, + "result": result, + "traceback": traceback, + } + + task_id: MetaOapg.properties.task_id + status: 'TaskStatus' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "task_id", "result", "traceback", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, 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["status", "task_id", "result", "traceback", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + task_id: typing.Union[MetaOapg.properties.task_id, str, ], + status: 'TaskStatus', + result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + traceback: typing.Union[MetaOapg.properties.traceback, str, 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], + ) -> 'GetAsyncTaskV1Response': + return super().__new__( + cls, + *_args, + task_id=task_id, + status=status, + result=result, + traceback=traceback, + _configuration=_configuration, + **kwargs, + ) + +from launch_client.model.task_status import TaskStatus diff --git a/launch/api_client/model/get_batch_job_response.py b/launch/api_client/model/get_batch_job_response.py index 89a2f9d0..28daa803 100644 --- a/launch/api_client/model/get_batch_job_response.py +++ b/launch/api_client/model/get_batch_job_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -58,7 +57,9 @@ def status() -> typing.Type["BatchJobStatus"]: status: "BatchJobStatus" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: + def __getitem__( + self, name: typing_extensions.Literal["duration"] + ) -> MetaOapg.properties.duration: ... @typing.overload @@ -102,7 +103,9 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: + def get_item_oapg( + self, name: typing_extensions.Literal["duration"] + ) -> MetaOapg.properties.duration: ... @typing.overload diff --git a/launch/api_client/model/get_batch_job_response.pyi b/launch/api_client/model/get_batch_job_response.pyi index ae4b676d..c8b24ecf 100644 --- a/launch/api_client/model/get_batch_job_response.pyi +++ b/launch/api_client/model/get_batch_job_response.pyi @@ -54,7 +54,9 @@ class GetBatchJobResponse(schemas.DictSchema): status: "BatchJobStatus" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... + def __getitem__( + self, name: typing_extensions.Literal["duration"] + ) -> MetaOapg.properties.duration: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload @@ -66,7 +68,9 @@ class GetBatchJobResponse(schemas.DictSchema): self, name: typing_extensions.Literal["num_tasks_pending"] ) -> MetaOapg.properties.num_tasks_pending: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + def __getitem__( + self, name: typing_extensions.Literal["result"] + ) -> MetaOapg.properties.result: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -85,7 +89,9 @@ class GetBatchJobResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... + def get_item_oapg( + self, name: typing_extensions.Literal["duration"] + ) -> MetaOapg.properties.duration: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload @@ -101,7 +107,9 @@ class GetBatchJobResponse(schemas.DictSchema): self, name: typing_extensions.Literal["result"] ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/get_batch_job_v1_response.py b/launch/api_client/model/get_batch_job_v1_response.py new file mode 100644 index 00000000..d6a779c6 --- /dev/null +++ b/launch/api_client/model/get_batch_job_v1_response.py @@ -0,0 +1,130 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class GetBatchJobV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "duration", + "status", + } + + class properties: + duration = schemas.NumberSchema + + @staticmethod + def status() -> typing.Type['BatchJobStatus']: + return BatchJobStatus + num_tasks_completed = schemas.IntSchema + num_tasks_pending = schemas.IntSchema + result = schemas.StrSchema + __annotations__ = { + "duration": duration, + "status": status, + "num_tasks_completed": num_tasks_completed, + "num_tasks_pending": num_tasks_pending, + "result": result, + } + + duration: MetaOapg.properties.duration + status: 'BatchJobStatus' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["num_tasks_completed"]) -> MetaOapg.properties.num_tasks_completed: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["num_tasks_pending"]) -> MetaOapg.properties.num_tasks_pending: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_completed"]) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_pending"]) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, 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["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + duration: typing.Union[MetaOapg.properties.duration, decimal.Decimal, int, float, ], + status: 'BatchJobStatus', + num_tasks_completed: typing.Union[MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset] = schemas.unset, + num_tasks_pending: typing.Union[MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset] = schemas.unset, + result: typing.Union[MetaOapg.properties.result, str, 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], + ) -> 'GetBatchJobV1Response': + return super().__new__( + cls, + *_args, + duration=duration, + status=status, + num_tasks_completed=num_tasks_completed, + num_tasks_pending=num_tasks_pending, + result=result, + _configuration=_configuration, + **kwargs, + ) + +from launch.api_client.model.batch_job_status import BatchJobStatus diff --git a/launch/api_client/model/get_batch_job_v1_response.pyi b/launch/api_client/model/get_batch_job_v1_response.pyi new file mode 100644 index 00000000..b0b58d48 --- /dev/null +++ b/launch/api_client/model/get_batch_job_v1_response.pyi @@ -0,0 +1,130 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class GetBatchJobV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "duration", + "status", + } + + class properties: + duration = schemas.NumberSchema + + @staticmethod + def status() -> typing.Type['BatchJobStatus']: + return BatchJobStatus + num_tasks_completed = schemas.IntSchema + num_tasks_pending = schemas.IntSchema + result = schemas.StrSchema + __annotations__ = { + "duration": duration, + "status": status, + "num_tasks_completed": num_tasks_completed, + "num_tasks_pending": num_tasks_pending, + "result": result, + } + + duration: MetaOapg.properties.duration + status: 'BatchJobStatus' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["num_tasks_completed"]) -> MetaOapg.properties.num_tasks_completed: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["num_tasks_pending"]) -> MetaOapg.properties.num_tasks_pending: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_completed"]) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_pending"]) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, 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["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + duration: typing.Union[MetaOapg.properties.duration, decimal.Decimal, int, float, ], + status: 'BatchJobStatus', + num_tasks_completed: typing.Union[MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset] = schemas.unset, + num_tasks_pending: typing.Union[MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset] = schemas.unset, + result: typing.Union[MetaOapg.properties.result, str, 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], + ) -> 'GetBatchJobV1Response': + return super().__new__( + cls, + *_args, + duration=duration, + status=status, + num_tasks_completed=num_tasks_completed, + num_tasks_pending=num_tasks_pending, + result=result, + _configuration=_configuration, + **kwargs, + ) + +from launch_client.model.batch_job_status import BatchJobStatus diff --git a/launch/api_client/model/get_model_endpoint_response.py b/launch/api_client/model/get_model_endpoint_response.py index 934b84ba..1257117e 100644 --- a/launch/api_client/model/get_model_endpoint_response.py +++ b/launch/api_client/model/get_model_endpoint_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -83,11 +82,21 @@ class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( @@ -182,19 +191,27 @@ def resource_state() -> typing.Type["ModelEndpointResourceState"]: status: "ModelEndpointStatus" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: + def __getitem__( + self, name: typing_extensions.Literal["bundle_name"] + ) -> MetaOapg.properties.bundle_name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: + def __getitem__( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: + def __getitem__( + self, name: typing_extensions.Literal["created_by"] + ) -> MetaOapg.properties.created_by: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: + def __getitem__( + self, name: typing_extensions.Literal["destination"] + ) -> MetaOapg.properties.destination: ... @typing.overload @@ -206,7 +223,9 @@ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.propert ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: + def __getitem__( + self, name: typing_extensions.Literal["last_updated_at"] + ) -> MetaOapg.properties.last_updated_at: ... @typing.overload @@ -218,11 +237,15 @@ def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpoi ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: + def __getitem__( + self, name: typing_extensions.Literal["aws_role"] + ) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload @@ -232,11 +255,15 @@ def __getitem__( ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: + def __getitem__( + self, name: typing_extensions.Literal["deployment_name"] + ) -> MetaOapg.properties.deployment_name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": + def __getitem__( + self, name: typing_extensions.Literal["deployment_state"] + ) -> "ModelEndpointDeploymentState": ... @typing.overload @@ -244,11 +271,15 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: + def __getitem__( + self, name: typing_extensions.Literal["num_queued_items"] + ) -> MetaOapg.properties.num_queued_items: ... @typing.overload @@ -258,7 +289,9 @@ def __getitem__( ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": + def __getitem__( + self, name: typing_extensions.Literal["resource_state"] + ) -> "ModelEndpointResourceState": ... @typing.overload @@ -303,23 +336,33 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: + def get_item_oapg( + self, name: typing_extensions.Literal["bundle_name"] + ) -> MetaOapg.properties.bundle_name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: + def get_item_oapg( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: + def get_item_oapg( + self, name: typing_extensions.Literal["created_by"] + ) -> MetaOapg.properties.created_by: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: + def get_item_oapg( + self, name: typing_extensions.Literal["destination"] + ) -> MetaOapg.properties.destination: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload @@ -327,7 +370,9 @@ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.prope ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: + def get_item_oapg( + self, name: typing_extensions.Literal["last_updated_at"] + ) -> MetaOapg.properties.last_updated_at: ... @typing.overload @@ -481,9 +526,15 @@ def __new__( default_callback_url: typing.Union[ MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, - deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, - deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + deployment_name: typing.Union[ + MetaOapg.properties.deployment_name, str, schemas.Unset + ] = schemas.unset, + deployment_state: typing.Union[ + "ModelEndpointDeploymentState", schemas.Unset + ] = schemas.unset, + labels: typing.Union[ + MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, @@ -494,7 +545,9 @@ def __new__( MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[ + MetaOapg.properties.results_s3_bucket, str, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -542,11 +595,7 @@ def __new__( from launch.api_client.model.callback_auth import CallbackAuth -from launch.api_client.model.model_endpoint_deployment_state import ( - ModelEndpointDeploymentState, -) -from launch.api_client.model.model_endpoint_resource_state import ( - ModelEndpointResourceState, -) +from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState +from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState from launch.api_client.model.model_endpoint_status import ModelEndpointStatus from launch.api_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/get_model_endpoint_response.pyi b/launch/api_client/model/get_model_endpoint_response.pyi index 2b19aa4c..5add04a0 100644 --- a/launch/api_client/model/get_model_endpoint_response.pyi +++ b/launch/api_client/model/get_model_endpoint_response.pyi @@ -74,10 +74,20 @@ class GetModelEndpointResponse(schemas.DictSchema): class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( cls, @@ -165,15 +175,25 @@ class GetModelEndpointResponse(schemas.DictSchema): status: "ModelEndpointStatus" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... + def __getitem__( + self, name: typing_extensions.Literal["bundle_name"] + ) -> MetaOapg.properties.bundle_name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + def __getitem__( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... + def __getitem__( + self, name: typing_extensions.Literal["created_by"] + ) -> MetaOapg.properties.created_by: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... + def __getitem__( + self, name: typing_extensions.Literal["destination"] + ) -> MetaOapg.properties.destination: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... + def __getitem__( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload @@ -185,9 +205,13 @@ class GetModelEndpointResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... + def __getitem__( + self, name: typing_extensions.Literal["aws_role"] + ) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -197,11 +221,17 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["deployment_name"] ) -> MetaOapg.properties.deployment_name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": ... + def __getitem__( + self, name: typing_extensions.Literal["deployment_state"] + ) -> "ModelEndpointDeploymentState": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + def __getitem__( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["num_queued_items"] @@ -211,7 +241,9 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": ... + def __getitem__( + self, name: typing_extensions.Literal["resource_state"] + ) -> "ModelEndpointResourceState": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["results_s3_bucket"] @@ -249,15 +281,25 @@ class GetModelEndpointResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... + def get_item_oapg( + self, name: typing_extensions.Literal["bundle_name"] + ) -> MetaOapg.properties.bundle_name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + def get_item_oapg( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... + def get_item_oapg( + self, name: typing_extensions.Literal["created_by"] + ) -> MetaOapg.properties.created_by: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... + def get_item_oapg( + self, name: typing_extensions.Literal["destination"] + ) -> MetaOapg.properties.destination: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload @@ -265,7 +307,9 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["last_updated_at"] ) -> MetaOapg.properties.last_updated_at: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + def get_item_oapg( + self, name: typing_extensions.Literal["name"] + ) -> MetaOapg.properties.name: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload @@ -313,7 +357,9 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["results_s3_bucket"] ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -386,9 +432,15 @@ class GetModelEndpointResponse(schemas.DictSchema): default_callback_url: typing.Union[ MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, - deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, - deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + deployment_name: typing.Union[ + MetaOapg.properties.deployment_name, str, schemas.Unset + ] = schemas.unset, + deployment_state: typing.Union[ + "ModelEndpointDeploymentState", schemas.Unset + ] = schemas.unset, + labels: typing.Union[ + MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, @@ -399,7 +451,9 @@ class GetModelEndpointResponse(schemas.DictSchema): MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[ + MetaOapg.properties.results_s3_bucket, str, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -446,11 +500,7 @@ class GetModelEndpointResponse(schemas.DictSchema): ) from launch_client.model.callback_auth import CallbackAuth -from launch_client.model.model_endpoint_deployment_state import ( - ModelEndpointDeploymentState, -) -from launch_client.model.model_endpoint_resource_state import ( - ModelEndpointResourceState, -) +from launch_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState +from launch_client.model.model_endpoint_resource_state import ModelEndpointResourceState from launch_client.model.model_endpoint_status import ModelEndpointStatus from launch_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/get_model_endpoint_v1_response.py b/launch/api_client/model/get_model_endpoint_v1_response.py new file mode 100644 index 00000000..49bcbab2 --- /dev/null +++ b/launch/api_client/model/get_model_endpoint_v1_response.py @@ -0,0 +1,370 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class GetModelEndpointV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "endpoint_type", + "last_updated_at", + "destination", + "name", + "created_at", + "bundle_name", + "id", + "created_by", + "status", + } + + class properties: + bundle_name = schemas.StrSchema + created_at = schemas.DateTimeSchema + created_by = schemas.StrSchema + destination = schemas.StrSchema + + @staticmethod + def endpoint_type() -> typing.Type['ModelEndpointType']: + return ModelEndpointType + id = schemas.StrSchema + last_updated_at = schemas.DateTimeSchema + name = schemas.StrSchema + + @staticmethod + def status() -> typing.Type['ModelEndpointStatus']: + return ModelEndpointStatus + aws_role = schemas.StrSchema + + @staticmethod + def default_callback_auth() -> typing.Type['CallbackAuth']: + return CallbackAuth + + + class default_callback_url( + schemas.StrSchema + ): + + + class MetaOapg: + format = 'uri' + max_length = 2083 + min_length = 1 + deployment_name = schemas.StrSchema + + @staticmethod + def deployment_state() -> typing.Type['ModelEndpointDeploymentState']: + return ModelEndpointDeploymentState + + + class labels( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + metadata = schemas.DictSchema + num_queued_items = schemas.IntSchema + + + class post_inference_hooks( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'post_inference_hooks': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + @staticmethod + def resource_state() -> typing.Type['ModelEndpointResourceState']: + return ModelEndpointResourceState + results_s3_bucket = schemas.StrSchema + __annotations__ = { + "bundle_name": bundle_name, + "created_at": created_at, + "created_by": created_by, + "destination": destination, + "endpoint_type": endpoint_type, + "id": id, + "last_updated_at": last_updated_at, + "name": name, + "status": status, + "aws_role": aws_role, + "default_callback_auth": default_callback_auth, + "default_callback_url": default_callback_url, + "deployment_name": deployment_name, + "deployment_state": deployment_state, + "labels": labels, + "metadata": metadata, + "num_queued_items": num_queued_items, + "post_inference_hooks": post_inference_hooks, + "resource_state": resource_state, + "results_s3_bucket": results_s3_bucket, + } + + endpoint_type: 'ModelEndpointType' + last_updated_at: MetaOapg.properties.last_updated_at + destination: MetaOapg.properties.destination + name: MetaOapg.properties.name + created_at: MetaOapg.properties.created_at + bundle_name: MetaOapg.properties.bundle_name + id: MetaOapg.properties.id + created_by: MetaOapg.properties.created_by + status: 'ModelEndpointStatus' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> 'ModelEndpointDeploymentState': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> 'ModelEndpointResourceState': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["deployment_name"]) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["deployment_state"]) -> typing.Union['ModelEndpointDeploymentState', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["num_queued_items"]) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["resource_state"]) -> typing.Union['ModelEndpointResourceState', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, 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["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_type: 'ModelEndpointType', + last_updated_at: typing.Union[MetaOapg.properties.last_updated_at, str, datetime, ], + destination: typing.Union[MetaOapg.properties.destination, str, ], + name: typing.Union[MetaOapg.properties.name, str, ], + created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], + bundle_name: typing.Union[MetaOapg.properties.bundle_name, str, ], + id: typing.Union[MetaOapg.properties.id, str, ], + created_by: typing.Union[MetaOapg.properties.created_by, str, ], + status: 'ModelEndpointStatus', + aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, + deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, + deployment_state: typing.Union['ModelEndpointDeploymentState', schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + num_queued_items: typing.Union[MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset] = schemas.unset, + post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + resource_state: typing.Union['ModelEndpointResourceState', schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, 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], + ) -> 'GetModelEndpointV1Response': + return super().__new__( + cls, + *_args, + endpoint_type=endpoint_type, + last_updated_at=last_updated_at, + destination=destination, + name=name, + created_at=created_at, + bundle_name=bundle_name, + id=id, + created_by=created_by, + status=status, + aws_role=aws_role, + default_callback_auth=default_callback_auth, + default_callback_url=default_callback_url, + deployment_name=deployment_name, + deployment_state=deployment_state, + labels=labels, + metadata=metadata, + num_queued_items=num_queued_items, + post_inference_hooks=post_inference_hooks, + resource_state=resource_state, + results_s3_bucket=results_s3_bucket, + _configuration=_configuration, + **kwargs, + ) + +from launch.api_client.model.callback_auth import CallbackAuth +from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState +from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState +from launch.api_client.model.model_endpoint_status import ModelEndpointStatus +from launch.api_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/get_model_endpoint_v1_response.pyi b/launch/api_client/model/get_model_endpoint_v1_response.pyi new file mode 100644 index 00000000..9daf947d --- /dev/null +++ b/launch/api_client/model/get_model_endpoint_v1_response.pyi @@ -0,0 +1,365 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class GetModelEndpointV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "endpoint_type", + "last_updated_at", + "destination", + "name", + "created_at", + "bundle_name", + "id", + "created_by", + "status", + } + + class properties: + bundle_name = schemas.StrSchema + created_at = schemas.DateTimeSchema + created_by = schemas.StrSchema + destination = schemas.StrSchema + + @staticmethod + def endpoint_type() -> typing.Type['ModelEndpointType']: + return ModelEndpointType + id = schemas.StrSchema + last_updated_at = schemas.DateTimeSchema + name = schemas.StrSchema + + @staticmethod + def status() -> typing.Type['ModelEndpointStatus']: + return ModelEndpointStatus + aws_role = schemas.StrSchema + + @staticmethod + def default_callback_auth() -> typing.Type['CallbackAuth']: + return CallbackAuth + + + class default_callback_url( + schemas.StrSchema + ): + pass + deployment_name = schemas.StrSchema + + @staticmethod + def deployment_state() -> typing.Type['ModelEndpointDeploymentState']: + return ModelEndpointDeploymentState + + + class labels( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + metadata = schemas.DictSchema + num_queued_items = schemas.IntSchema + + + class post_inference_hooks( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'post_inference_hooks': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + @staticmethod + def resource_state() -> typing.Type['ModelEndpointResourceState']: + return ModelEndpointResourceState + results_s3_bucket = schemas.StrSchema + __annotations__ = { + "bundle_name": bundle_name, + "created_at": created_at, + "created_by": created_by, + "destination": destination, + "endpoint_type": endpoint_type, + "id": id, + "last_updated_at": last_updated_at, + "name": name, + "status": status, + "aws_role": aws_role, + "default_callback_auth": default_callback_auth, + "default_callback_url": default_callback_url, + "deployment_name": deployment_name, + "deployment_state": deployment_state, + "labels": labels, + "metadata": metadata, + "num_queued_items": num_queued_items, + "post_inference_hooks": post_inference_hooks, + "resource_state": resource_state, + "results_s3_bucket": results_s3_bucket, + } + + endpoint_type: 'ModelEndpointType' + last_updated_at: MetaOapg.properties.last_updated_at + destination: MetaOapg.properties.destination + name: MetaOapg.properties.name + created_at: MetaOapg.properties.created_at + bundle_name: MetaOapg.properties.bundle_name + id: MetaOapg.properties.id + created_by: MetaOapg.properties.created_by + status: 'ModelEndpointStatus' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> 'ModelEndpointDeploymentState': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> 'ModelEndpointResourceState': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["deployment_name"]) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["deployment_state"]) -> typing.Union['ModelEndpointDeploymentState', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["num_queued_items"]) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["resource_state"]) -> typing.Union['ModelEndpointResourceState', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, 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["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_type: 'ModelEndpointType', + last_updated_at: typing.Union[MetaOapg.properties.last_updated_at, str, datetime, ], + destination: typing.Union[MetaOapg.properties.destination, str, ], + name: typing.Union[MetaOapg.properties.name, str, ], + created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], + bundle_name: typing.Union[MetaOapg.properties.bundle_name, str, ], + id: typing.Union[MetaOapg.properties.id, str, ], + created_by: typing.Union[MetaOapg.properties.created_by, str, ], + status: 'ModelEndpointStatus', + aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, + deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, + deployment_state: typing.Union['ModelEndpointDeploymentState', schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + num_queued_items: typing.Union[MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset] = schemas.unset, + post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + resource_state: typing.Union['ModelEndpointResourceState', schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, 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], + ) -> 'GetModelEndpointV1Response': + return super().__new__( + cls, + *_args, + endpoint_type=endpoint_type, + last_updated_at=last_updated_at, + destination=destination, + name=name, + created_at=created_at, + bundle_name=bundle_name, + id=id, + created_by=created_by, + status=status, + aws_role=aws_role, + default_callback_auth=default_callback_auth, + default_callback_url=default_callback_url, + deployment_name=deployment_name, + deployment_state=deployment_state, + labels=labels, + metadata=metadata, + num_queued_items=num_queued_items, + post_inference_hooks=post_inference_hooks, + resource_state=resource_state, + results_s3_bucket=results_s3_bucket, + _configuration=_configuration, + **kwargs, + ) + +from launch_client.model.callback_auth import CallbackAuth +from launch_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState +from launch_client.model.model_endpoint_resource_state import ModelEndpointResourceState +from launch_client.model.model_endpoint_status import ModelEndpointStatus +from launch_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/gpu_type.py b/launch/api_client/model/gpu_type.py index 3d1ee053..34158fa2 100644 --- a/launch/api_client/model/gpu_type.py +++ b/launch/api_client/model/gpu_type.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 GpuType(schemas.EnumBase, schemas.StrSchema): +class GpuType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,21 +35,22 @@ class GpuType(schemas.EnumBase, schemas.StrSchema): Lists allowed GPU types for Launch. """ + class MetaOapg: enum_value_to_name = { "nvidia-tesla-t4": "TESLAT4", "nvidia-ampere-a10": "AMPEREA10", "nvidia-a100": "A100", } - + @schemas.classproperty def TESLAT4(cls): return cls("nvidia-tesla-t4") - + @schemas.classproperty def AMPEREA10(cls): return cls("nvidia-ampere-a10") - + @schemas.classproperty def A100(cls): return cls("nvidia-a100") diff --git a/launch/api_client/model/gpu_type.pyi b/launch/api_client/model/gpu_type.pyi index f24497d2..2c8853fe 100644 --- a/launch/api_client/model/gpu_type.pyi +++ b/launch/api_client/model/gpu_type.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class GpuType(schemas.EnumBase, schemas.StrSchema): + +class GpuType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,13 +34,15 @@ class GpuType(schemas.EnumBase, schemas.StrSchema): Lists allowed GPU types for Launch. """ - + @schemas.classproperty def TESLAT4(cls): return cls("nvidia-tesla-t4") + @schemas.classproperty def AMPEREA10(cls): return cls("nvidia-ampere-a10") + @schemas.classproperty def A100(cls): return cls("nvidia-a100") diff --git a/launch/api_client/model/http_validation_error.py b/launch/api_client/model/http_validation_error.py index 51e9ef8b..e19f05b2 100644 --- a/launch/api_client/model/http_validation_error.py +++ b/launch/api_client/model/http_validation_error.py @@ -9,103 +9,91 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 HTTPValidationError(schemas.DictSchema): +class HTTPValidationError( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: + class properties: - class detail(schemas.ListSchema): + + + class detail( + schemas.ListSchema + ): + + class MetaOapg: + @staticmethod - def items() -> typing.Type["ValidationError"]: + def items() -> typing.Type['ValidationError']: return ValidationError - + def __new__( cls, - _arg: typing.Union[typing.Tuple["ValidationError"], typing.List["ValidationError"]], + _arg: typing.Union[typing.Tuple['ValidationError'], typing.List['ValidationError']], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "detail": + ) -> 'detail': return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> "ValidationError": + + def __getitem__(self, i: int) -> 'ValidationError': return super().__getitem__(i) - __annotations__ = { "detail": detail, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: - ... - + def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail",], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["detail"] - ) -> typing.Union[MetaOapg.properties.detail, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["detail"]) -> typing.Union[MetaOapg.properties.detail, 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["detail",], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["detail", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], detail: typing.Union[MetaOapg.properties.detail, list, tuple, 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, - ], - ) -> "HTTPValidationError": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'HTTPValidationError': return super().__new__( cls, *_args, @@ -114,5 +102,4 @@ def __new__( **kwargs, ) - from launch.api_client.model.validation_error import ValidationError diff --git a/launch/api_client/model/http_validation_error.pyi b/launch/api_client/model/http_validation_error.pyi index 437f1853..fa6a6998 100644 --- a/launch/api_client/model/http_validation_error.pyi +++ b/launch/api_client/model/http_validation_error.pyi @@ -9,87 +9,91 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class HTTPValidationError(schemas.DictSchema): + +class HTTPValidationError( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: + class properties: - class detail(schemas.ListSchema): + + + class detail( + schemas.ListSchema + ): + + class MetaOapg: + @staticmethod - def items() -> typing.Type["ValidationError"]: + def items() -> typing.Type['ValidationError']: return ValidationError + def __new__( cls, - _arg: typing.Union[typing.Tuple["ValidationError"], typing.List["ValidationError"]], + _arg: typing.Union[typing.Tuple['ValidationError'], typing.List['ValidationError']], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "detail": + ) -> 'detail': return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> "ValidationError": + + def __getitem__(self, i: int) -> 'ValidationError': return super().__getitem__(i) __annotations__ = { "detail": detail, } + @typing.overload def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail",], str]): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["detail"] - ) -> typing.Union[MetaOapg.properties.detail, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["detail"]) -> typing.Union[MetaOapg.properties.detail, 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["detail",], str]): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["detail", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], detail: typing.Union[MetaOapg.properties.detail, list, tuple, 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, - ], - ) -> "HTTPValidationError": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'HTTPValidationError': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/list_model_bundles_response.py b/launch/api_client/model/list_model_bundles_response.py index ef6acafe..6718f67c 100644 --- a/launch/api_client/model/list_model_bundles_response.py +++ b/launch/api_client/model/list_model_bundles_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -46,7 +45,9 @@ def items() -> typing.Type["ModelBundleResponse"]: def __new__( cls, - _arg: typing.Union[typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"]], + _arg: typing.Union[ + typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"] + ], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "model_bundles": return super().__new__( @@ -65,26 +66,46 @@ def __getitem__(self, i: int) -> "ModelBundleResponse": model_bundles: MetaOapg.properties.model_bundles @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: + def __getitem__( + self, name: typing_extensions.Literal["model_bundles"] + ) -> MetaOapg.properties.model_bundles: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "model_bundles", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundles"] + ) -> MetaOapg.properties.model_bundles: ... @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["model_bundles",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "model_bundles", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/list_model_bundles_response.pyi b/launch/api_client/model/list_model_bundles_response.pyi index 52f6c6d2..67698b2d 100644 --- a/launch/api_client/model/list_model_bundles_response.pyi +++ b/launch/api_client/model/list_model_bundles_response.pyi @@ -43,7 +43,9 @@ class ListModelBundlesResponse(schemas.DictSchema): return ModelBundleResponse def __new__( cls, - _arg: typing.Union[typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"]], + _arg: typing.Union[ + typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"] + ], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "model_bundles": return super().__new__( @@ -59,17 +61,39 @@ class ListModelBundlesResponse(schemas.DictSchema): model_bundles: MetaOapg.properties.model_bundles @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... + def __getitem__( + self, name: typing_extensions.Literal["model_bundles"] + ) -> MetaOapg.properties.model_bundles: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "model_bundles", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundles"] + ) -> MetaOapg.properties.model_bundles: ... @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["model_bundles",], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "model_bundles", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/list_model_bundles_v1_response.py b/launch/api_client/model/list_model_bundles_v1_response.py new file mode 100644 index 00000000..330b8226 --- /dev/null +++ b/launch/api_client/model/list_model_bundles_v1_response.py @@ -0,0 +1,112 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class ListModelBundlesV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Response object for listing Model Bundles. + """ + + + class MetaOapg: + required = { + "model_bundles", + } + + class properties: + + + class model_bundles( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['ModelBundleV1Response']: + return ModelBundleV1Response + + def __new__( + cls, + _arg: typing.Union[typing.Tuple['ModelBundleV1Response'], typing.List['ModelBundleV1Response']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'model_bundles': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'ModelBundleV1Response': + return super().__getitem__(i) + __annotations__ = { + "model_bundles": model_bundles, + } + + model_bundles: MetaOapg.properties.model_bundles + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... + + @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["model_bundles", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + model_bundles: typing.Union[MetaOapg.properties.model_bundles, list, tuple, ], + _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], + ) -> 'ListModelBundlesV1Response': + return super().__new__( + cls, + *_args, + model_bundles=model_bundles, + _configuration=_configuration, + **kwargs, + ) + +from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response diff --git a/launch/api_client/model/list_model_bundles_v1_response.pyi b/launch/api_client/model/list_model_bundles_v1_response.pyi new file mode 100644 index 00000000..99555d85 --- /dev/null +++ b/launch/api_client/model/list_model_bundles_v1_response.pyi @@ -0,0 +1,112 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class ListModelBundlesV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Response object for listing Model Bundles. + """ + + + class MetaOapg: + required = { + "model_bundles", + } + + class properties: + + + class model_bundles( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['ModelBundleV1Response']: + return ModelBundleV1Response + + def __new__( + cls, + _arg: typing.Union[typing.Tuple['ModelBundleV1Response'], typing.List['ModelBundleV1Response']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'model_bundles': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'ModelBundleV1Response': + return super().__getitem__(i) + __annotations__ = { + "model_bundles": model_bundles, + } + + model_bundles: MetaOapg.properties.model_bundles + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... + + @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["model_bundles", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + model_bundles: typing.Union[MetaOapg.properties.model_bundles, list, tuple, ], + _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], + ) -> 'ListModelBundlesV1Response': + return super().__new__( + cls, + *_args, + model_bundles=model_bundles, + _configuration=_configuration, + **kwargs, + ) + +from launch_client.model.model_bundle_v1_response import ModelBundleV1Response diff --git a/launch/api_client/model/list_model_endpoints_response.py b/launch/api_client/model/list_model_endpoints_response.py index 65fad454..54938121 100644 --- a/launch/api_client/model/list_model_endpoints_response.py +++ b/launch/api_client/model/list_model_endpoints_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -45,7 +44,8 @@ def items() -> typing.Type["GetModelEndpointResponse"]: def __new__( cls, _arg: typing.Union[ - typing.Tuple["GetModelEndpointResponse"], typing.List["GetModelEndpointResponse"] + typing.Tuple["GetModelEndpointResponse"], + typing.List["GetModelEndpointResponse"], ], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "model_endpoints": @@ -65,26 +65,46 @@ def __getitem__(self, i: int) -> "GetModelEndpointResponse": model_endpoints: MetaOapg.properties.model_endpoints @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: + def __getitem__( + self, name: typing_extensions.Literal["model_endpoints"] + ) -> MetaOapg.properties.model_endpoints: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "model_endpoints", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: + def get_item_oapg( + self, name: typing_extensions.Literal["model_endpoints"] + ) -> MetaOapg.properties.model_endpoints: ... @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["model_endpoints",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "model_endpoints", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( @@ -125,6 +145,4 @@ def __new__( ) -from launch.api_client.model.get_model_endpoint_response import ( - GetModelEndpointResponse, -) +from launch.api_client.model.get_model_endpoint_response import GetModelEndpointResponse diff --git a/launch/api_client/model/list_model_endpoints_response.pyi b/launch/api_client/model/list_model_endpoints_response.pyi index 7c334d2c..e9fe854d 100644 --- a/launch/api_client/model/list_model_endpoints_response.pyi +++ b/launch/api_client/model/list_model_endpoints_response.pyi @@ -42,7 +42,8 @@ class ListModelEndpointsResponse(schemas.DictSchema): def __new__( cls, _arg: typing.Union[ - typing.Tuple["GetModelEndpointResponse"], typing.List["GetModelEndpointResponse"] + typing.Tuple["GetModelEndpointResponse"], + typing.List["GetModelEndpointResponse"], ], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "model_endpoints": @@ -64,7 +65,15 @@ class ListModelEndpointsResponse(schemas.DictSchema): ) -> MetaOapg.properties.model_endpoints: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "model_endpoints", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload @@ -72,8 +81,18 @@ class ListModelEndpointsResponse(schemas.DictSchema): self, name: typing_extensions.Literal["model_endpoints"] ) -> MetaOapg.properties.model_endpoints: ... @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["model_endpoints",], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "model_endpoints", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, @@ -112,6 +131,4 @@ class ListModelEndpointsResponse(schemas.DictSchema): **kwargs, ) -from launch_client.model.get_model_endpoint_response import ( - GetModelEndpointResponse, -) +from launch_client.model.get_model_endpoint_response import GetModelEndpointResponse diff --git a/launch/api_client/model/list_model_endpoints_v1_response.py b/launch/api_client/model/list_model_endpoints_v1_response.py new file mode 100644 index 00000000..4c7007ac --- /dev/null +++ b/launch/api_client/model/list_model_endpoints_v1_response.py @@ -0,0 +1,110 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class ListModelEndpointsV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "model_endpoints", + } + + class properties: + + + class model_endpoints( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['GetModelEndpointV1Response']: + return GetModelEndpointV1Response + + def __new__( + cls, + _arg: typing.Union[typing.Tuple['GetModelEndpointV1Response'], typing.List['GetModelEndpointV1Response']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'model_endpoints': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'GetModelEndpointV1Response': + return super().__getitem__(i) + __annotations__ = { + "model_endpoints": model_endpoints, + } + + model_endpoints: MetaOapg.properties.model_endpoints + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... + + @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["model_endpoints", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + model_endpoints: typing.Union[MetaOapg.properties.model_endpoints, list, tuple, ], + _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], + ) -> 'ListModelEndpointsV1Response': + return super().__new__( + cls, + *_args, + model_endpoints=model_endpoints, + _configuration=_configuration, + **kwargs, + ) + +from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response diff --git a/launch/api_client/model/list_model_endpoints_v1_response.pyi b/launch/api_client/model/list_model_endpoints_v1_response.pyi new file mode 100644 index 00000000..742211e6 --- /dev/null +++ b/launch/api_client/model/list_model_endpoints_v1_response.pyi @@ -0,0 +1,110 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class ListModelEndpointsV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "model_endpoints", + } + + class properties: + + + class model_endpoints( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['GetModelEndpointV1Response']: + return GetModelEndpointV1Response + + def __new__( + cls, + _arg: typing.Union[typing.Tuple['GetModelEndpointV1Response'], typing.List['GetModelEndpointV1Response']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'model_endpoints': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'GetModelEndpointV1Response': + return super().__getitem__(i) + __annotations__ = { + "model_endpoints": model_endpoints, + } + + model_endpoints: MetaOapg.properties.model_endpoints + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... + + @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["model_endpoints", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + model_endpoints: typing.Union[MetaOapg.properties.model_endpoints, list, tuple, ], + _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], + ) -> 'ListModelEndpointsV1Response': + return super().__new__( + cls, + *_args, + model_endpoints=model_endpoints, + _configuration=_configuration, + **kwargs, + ) + +from launch_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response diff --git a/launch/api_client/model/model_bundle_environment_params.py b/launch/api_client/model/model_bundle_environment_params.py index ccabd50d..037698eb 100644 --- a/launch/api_client/model/model_bundle_environment_params.py +++ b/launch/api_client/model/model_bundle_environment_params.py @@ -9,40 +9,43 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelBundleEnvironmentParams(schemas.DictSchema): +class ModelBundleEnvironmentParams( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - This is the entity-layer class for the Model Bundle environment parameters. Being an - entity-layer class, it should be a plain data object. + This is the entity-layer class for the Model Bundle environment parameters. Being an +entity-layer class, it should be a plain data object. """ + class MetaOapg: required = { "framework_type", } - + class properties: + @staticmethod - def framework_type() -> typing.Type["ModelBundleFramework"]: - return ModelBundleFramework - + def framework_type() -> typing.Type['ModelBundleFrameworkType']: + return ModelBundleFrameworkType ecr_repo = schemas.StrSchema image_tag = schemas.StrSchema pytorch_image_tag = schemas.StrSchema @@ -54,129 +57,65 @@ def framework_type() -> typing.Type["ModelBundleFramework"]: "pytorch_image_tag": pytorch_image_tag, "tensorflow_version": tensorflow_version, } - - framework_type: "ModelBundleFramework" - + + framework_type: 'ModelBundleFrameworkType' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFramework": - ... - + def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: - ... - + def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: - ... - + def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["pytorch_image_tag"] - ) -> MetaOapg.properties.pytorch_image_tag: - ... - + def __getitem__(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> MetaOapg.properties.pytorch_image_tag: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["tensorflow_version"] - ) -> MetaOapg.properties.tensorflow_version: - ... - + def __getitem__(self, name: typing_extensions.Literal["tensorflow_version"]) -> MetaOapg.properties.tensorflow_version: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "framework_type", - "ecr_repo", - "image_tag", - "pytorch_image_tag", - "tensorflow_version", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFramework": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["ecr_repo"] - ) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["ecr_repo"]) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["image_tag"] - ) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["image_tag"]) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["pytorch_image_tag"] - ) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["tensorflow_version"] - ) -> typing.Union[MetaOapg.properties.tensorflow_version, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["tensorflow_version"]) -> typing.Union[MetaOapg.properties.tensorflow_version, 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[ - "framework_type", - "ecr_repo", - "image_tag", - "pytorch_image_tag", - "tensorflow_version", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - framework_type: "ModelBundleFramework", + *_args: typing.Union[dict, frozendict.frozendict, ], + framework_type: 'ModelBundleFrameworkType', ecr_repo: typing.Union[MetaOapg.properties.ecr_repo, str, schemas.Unset] = schemas.unset, image_tag: typing.Union[MetaOapg.properties.image_tag, str, schemas.Unset] = schemas.unset, pytorch_image_tag: typing.Union[MetaOapg.properties.pytorch_image_tag, str, schemas.Unset] = schemas.unset, tensorflow_version: typing.Union[MetaOapg.properties.tensorflow_version, str, 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, - ], - ) -> "ModelBundleEnvironmentParams": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelBundleEnvironmentParams': return super().__new__( cls, *_args, @@ -189,5 +128,4 @@ def __new__( **kwargs, ) - -from launch.api_client.model.model_bundle_framework import ModelBundleFramework +from launch.api_client.model.model_bundle_framework_type import ModelBundleFrameworkType diff --git a/launch/api_client/model/model_bundle_environment_params.pyi b/launch/api_client/model/model_bundle_environment_params.pyi index 92afef98..34f9c425 100644 --- a/launch/api_client/model/model_bundle_environment_params.pyi +++ b/launch/api_client/model/model_bundle_environment_params.pyi @@ -9,37 +9,43 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelBundleEnvironmentParams(schemas.DictSchema): + +class ModelBundleEnvironmentParams( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - This is the entity-layer class for the Model Bundle environment parameters. Being an - entity-layer class, it should be a plain data object. + This is the entity-layer class for the Model Bundle environment parameters. Being an +entity-layer class, it should be a plain data object. """ + class MetaOapg: required = { "framework_type", } - + class properties: + @staticmethod - def framework_type() -> typing.Type["ModelBundleFramework"]: - return ModelBundleFramework + def framework_type() -> typing.Type['ModelBundleFrameworkType']: + return ModelBundleFrameworkType ecr_repo = schemas.StrSchema image_tag = schemas.StrSchema pytorch_image_tag = schemas.StrSchema @@ -51,102 +57,65 @@ class ModelBundleEnvironmentParams(schemas.DictSchema): "pytorch_image_tag": pytorch_image_tag, "tensorflow_version": tensorflow_version, } - framework_type: "ModelBundleFramework" - + + framework_type: 'ModelBundleFrameworkType' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFramework": ... + def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["pytorch_image_tag"] - ) -> MetaOapg.properties.pytorch_image_tag: ... + def __getitem__(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> MetaOapg.properties.pytorch_image_tag: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["tensorflow_version"] - ) -> MetaOapg.properties.tensorflow_version: ... + def __getitem__(self, name: typing_extensions.Literal["tensorflow_version"]) -> MetaOapg.properties.tensorflow_version: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "framework_type", - "ecr_repo", - "image_tag", - "pytorch_image_tag", - "tensorflow_version", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFramework": ... + def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["ecr_repo"] - ) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["ecr_repo"]) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["image_tag"] - ) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["image_tag"]) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["pytorch_image_tag"] - ) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["tensorflow_version"] - ) -> typing.Union[MetaOapg.properties.tensorflow_version, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["tensorflow_version"]) -> typing.Union[MetaOapg.properties.tensorflow_version, 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[ - "framework_type", - "ecr_repo", - "image_tag", - "pytorch_image_tag", - "tensorflow_version", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - framework_type: "ModelBundleFramework", + *_args: typing.Union[dict, frozendict.frozendict, ], + framework_type: 'ModelBundleFrameworkType', ecr_repo: typing.Union[MetaOapg.properties.ecr_repo, str, schemas.Unset] = schemas.unset, image_tag: typing.Union[MetaOapg.properties.image_tag, str, schemas.Unset] = schemas.unset, pytorch_image_tag: typing.Union[MetaOapg.properties.pytorch_image_tag, str, schemas.Unset] = schemas.unset, tensorflow_version: typing.Union[MetaOapg.properties.tensorflow_version, str, 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, - ], - ) -> "ModelBundleEnvironmentParams": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelBundleEnvironmentParams': return super().__new__( cls, *_args, @@ -159,4 +128,4 @@ class ModelBundleEnvironmentParams(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_framework import ModelBundleFramework +from launch_client.model.model_bundle_framework_type import ModelBundleFrameworkType diff --git a/launch/api_client/model/model_bundle_framework.py b/launch/api_client/model/model_bundle_framework.py index 093cc562..851f55f3 100644 --- a/launch/api_client/model/model_bundle_framework.py +++ b/launch/api_client/model/model_bundle_framework.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/model_bundle_framework_type.py b/launch/api_client/model/model_bundle_framework_type.py new file mode 100644 index 00000000..3a11569b --- /dev/null +++ b/launch/api_client/model/model_bundle_framework_type.py @@ -0,0 +1,56 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class ModelBundleFrameworkType( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + The canonical list of possible machine learning frameworks of Model Bundles. + """ + + + class MetaOapg: + enum_value_to_name = { + "pytorch": "PYTORCH", + "tensorflow": "TENSORFLOW", + "custom_base_image": "CUSTOM_BASE_IMAGE", + } + + @schemas.classproperty + def PYTORCH(cls): + return cls("pytorch") + + @schemas.classproperty + def TENSORFLOW(cls): + return cls("tensorflow") + + @schemas.classproperty + def CUSTOM_BASE_IMAGE(cls): + return cls("custom_base_image") diff --git a/launch/api_client/model/model_bundle_framework_type.pyi b/launch/api_client/model/model_bundle_framework_type.pyi new file mode 100644 index 00000000..bba8559d --- /dev/null +++ b/launch/api_client/model/model_bundle_framework_type.pyi @@ -0,0 +1,48 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class ModelBundleFrameworkType( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + The canonical list of possible machine learning frameworks of Model Bundles. + """ + + @schemas.classproperty + def PYTORCH(cls): + return cls("pytorch") + + @schemas.classproperty + def TENSORFLOW(cls): + return cls("tensorflow") + + @schemas.classproperty + def CUSTOM_BASE_IMAGE(cls): + return cls("custom_base_image") diff --git a/launch/api_client/model/model_bundle_order_by.py b/launch/api_client/model/model_bundle_order_by.py index f4487f3f..fd5679d9 100644 --- a/launch/api_client/model/model_bundle_order_by.py +++ b/launch/api_client/model/model_bundle_order_by.py @@ -9,41 +9,43 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelBundleOrderBy(schemas.EnumBase, schemas.StrSchema): +class ModelBundleOrderBy( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. - The canonical list of possible orderings of Model Bundles. - """ + class MetaOapg: enum_value_to_name = { "newest": "NEWEST", "oldest": "OLDEST", } - + @schemas.classproperty def NEWEST(cls): return cls("newest") - + @schemas.classproperty def OLDEST(cls): return cls("oldest") diff --git a/launch/api_client/model/model_bundle_order_by.pyi b/launch/api_client/model/model_bundle_order_by.pyi index 8e6fcd69..8183c616 100644 --- a/launch/api_client/model/model_bundle_order_by.pyi +++ b/launch/api_client/model/model_bundle_order_by.pyi @@ -9,32 +9,36 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelBundleOrderBy(schemas.EnumBase, schemas.StrSchema): + +class ModelBundleOrderBy( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. - The canonical list of possible orderings of Model Bundles. - """ - + @schemas.classproperty def NEWEST(cls): return cls("newest") + @schemas.classproperty def OLDEST(cls): return cls("oldest") diff --git a/launch/api_client/model/model_bundle_packaging_type.py b/launch/api_client/model/model_bundle_packaging_type.py index 1cb4fcb8..7f92d164 100644 --- a/launch/api_client/model/model_bundle_packaging_type.py +++ b/launch/api_client/model/model_bundle_packaging_type.py @@ -9,41 +9,50 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelBundlePackagingType(schemas.EnumBase, schemas.StrSchema): +class ModelBundlePackagingType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. - The canonical list of possible packaging types for Model Bundles. +These values broadly determine how the model endpoint will obtain its code & dependencies. """ + class MetaOapg: enum_value_to_name = { "cloudpickle": "CLOUDPICKLE", "zip": "ZIP", + "lira": "LIRA", } - + @schemas.classproperty def CLOUDPICKLE(cls): return cls("cloudpickle") - + @schemas.classproperty def ZIP(cls): return cls("zip") + + @schemas.classproperty + def LIRA(cls): + return cls("lira") diff --git a/launch/api_client/model/model_bundle_packaging_type.pyi b/launch/api_client/model/model_bundle_packaging_type.pyi index d35c6074..f2a66978 100644 --- a/launch/api_client/model/model_bundle_packaging_type.pyi +++ b/launch/api_client/model/model_bundle_packaging_type.pyi @@ -9,32 +9,42 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelBundlePackagingType(schemas.EnumBase, schemas.StrSchema): + +class ModelBundlePackagingType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. - The canonical list of possible packaging types for Model Bundles. +These values broadly determine how the model endpoint will obtain its code & dependencies. """ - + @schemas.classproperty def CLOUDPICKLE(cls): return cls("cloudpickle") + @schemas.classproperty def ZIP(cls): return cls("zip") + + @schemas.classproperty + def LIRA(cls): + return cls("lira") diff --git a/launch/api_client/model/model_bundle_response.py b/launch/api_client/model/model_bundle_response.py index 6b25056a..26d0ebbe 100644 --- a/launch/api_client/model/model_bundle_response.py +++ b/launch/api_client/model/model_bundle_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -151,11 +150,15 @@ def __getitem__(self, i: int) -> MetaOapg.items: env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: + def __getitem__( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": + def __getitem__( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload @@ -163,11 +166,15 @@ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.propert ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: + def __getitem__( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload @@ -181,19 +188,27 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": + def __getitem__( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: + def __getitem__( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: + def __getitem__( + self, name: typing_extensions.Literal["app_config"] + ) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: + def __getitem__( + self, name: typing_extensions.Literal["schema_location"] + ) -> MetaOapg.properties.schema_location: ... @typing.overload @@ -223,11 +238,15 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: + def get_item_oapg( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": + def get_item_oapg( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload @@ -235,11 +254,15 @@ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.prope ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: + def get_item_oapg( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload @@ -253,11 +276,15 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": + def get_item_oapg( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: + def get_item_oapg( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload @@ -340,7 +367,9 @@ def __new__( app_config: typing.Union[ MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, + schema_location: typing.Union[ + MetaOapg.properties.schema_location, str, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -378,9 +407,5 @@ def __new__( ) -from launch.api_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch.api_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) +from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/model_bundle_response.pyi b/launch/api_client/model/model_bundle_response.pyi index 818f37cb..5289789d 100644 --- a/launch/api_client/model/model_bundle_response.pyi +++ b/launch/api_client/model/model_bundle_response.pyi @@ -141,15 +141,23 @@ class ModelBundleResponse(schemas.DictSchema): env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + def __getitem__( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... + def __getitem__( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + def __getitem__( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_artifact_ids"] @@ -157,11 +165,17 @@ class ModelBundleResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... + def __getitem__( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + def __getitem__( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... + def __getitem__( + self, name: typing_extensions.Literal["app_config"] + ) -> MetaOapg.properties.app_config: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["schema_location"] @@ -190,25 +204,39 @@ class ModelBundleResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + def get_item_oapg( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... + def get_item_oapg( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + def get_item_oapg( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_artifact_ids"] ) -> MetaOapg.properties.model_artifact_ids: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + def get_item_oapg( + self, name: typing_extensions.Literal["name"] + ) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... + def get_item_oapg( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + def get_item_oapg( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["app_config"] @@ -218,7 +246,9 @@ class ModelBundleResponse(schemas.DictSchema): self, name: typing_extensions.Literal["schema_location"] ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -282,7 +312,9 @@ class ModelBundleResponse(schemas.DictSchema): app_config: typing.Union[ MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, + schema_location: typing.Union[ + MetaOapg.properties.schema_location, str, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -319,9 +351,5 @@ class ModelBundleResponse(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) +from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/model_bundle_v1_response.py b/launch/api_client/model/model_bundle_v1_response.py new file mode 100644 index 00000000..d3a56489 --- /dev/null +++ b/launch/api_client/model/model_bundle_v1_response.py @@ -0,0 +1,254 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class ModelBundleV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Response object for a single Model Bundle. + """ + + + class MetaOapg: + required = { + "metadata", + "requirements", + "model_artifact_ids", + "packaging_type", + "name", + "created_at", + "location", + "id", + "env_params", + } + + class properties: + created_at = schemas.DateTimeSchema + + @staticmethod + def env_params() -> typing.Type['ModelBundleEnvironmentParams']: + return ModelBundleEnvironmentParams + id = schemas.StrSchema + location = schemas.StrSchema + metadata = schemas.DictSchema + + + class model_artifact_ids( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'model_artifact_ids': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + name = schemas.StrSchema + + @staticmethod + def packaging_type() -> typing.Type['ModelBundlePackagingType']: + return ModelBundlePackagingType + + + class requirements( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'requirements': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + app_config = schemas.DictSchema + schema_location = schemas.StrSchema + __annotations__ = { + "created_at": created_at, + "env_params": env_params, + "id": id, + "location": location, + "metadata": metadata, + "model_artifact_ids": model_artifact_ids, + "name": name, + "packaging_type": packaging_type, + "requirements": requirements, + "app_config": app_config, + "schema_location": schema_location, + } + + metadata: MetaOapg.properties.metadata + requirements: MetaOapg.properties.requirements + model_artifact_ids: MetaOapg.properties.model_artifact_ids + packaging_type: 'ModelBundlePackagingType' + name: MetaOapg.properties.name + created_at: MetaOapg.properties.created_at + location: MetaOapg.properties.location + id: MetaOapg.properties.id + env_params: 'ModelBundleEnvironmentParams' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, 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["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], + requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], + model_artifact_ids: typing.Union[MetaOapg.properties.model_artifact_ids, list, tuple, ], + packaging_type: 'ModelBundlePackagingType', + name: typing.Union[MetaOapg.properties.name, str, ], + created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], + location: typing.Union[MetaOapg.properties.location, str, ], + id: typing.Union[MetaOapg.properties.id, str, ], + env_params: 'ModelBundleEnvironmentParams', + app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, 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], + ) -> 'ModelBundleV1Response': + return super().__new__( + cls, + *_args, + metadata=metadata, + requirements=requirements, + model_artifact_ids=model_artifact_ids, + packaging_type=packaging_type, + name=name, + created_at=created_at, + location=location, + id=id, + env_params=env_params, + app_config=app_config, + schema_location=schema_location, + _configuration=_configuration, + **kwargs, + ) + +from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/model_bundle_v1_response.pyi b/launch/api_client/model/model_bundle_v1_response.pyi new file mode 100644 index 00000000..8c3f0594 --- /dev/null +++ b/launch/api_client/model/model_bundle_v1_response.pyi @@ -0,0 +1,254 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class ModelBundleV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Response object for a single Model Bundle. + """ + + + class MetaOapg: + required = { + "metadata", + "requirements", + "model_artifact_ids", + "packaging_type", + "name", + "created_at", + "location", + "id", + "env_params", + } + + class properties: + created_at = schemas.DateTimeSchema + + @staticmethod + def env_params() -> typing.Type['ModelBundleEnvironmentParams']: + return ModelBundleEnvironmentParams + id = schemas.StrSchema + location = schemas.StrSchema + metadata = schemas.DictSchema + + + class model_artifact_ids( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'model_artifact_ids': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + name = schemas.StrSchema + + @staticmethod + def packaging_type() -> typing.Type['ModelBundlePackagingType']: + return ModelBundlePackagingType + + + class requirements( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'requirements': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + app_config = schemas.DictSchema + schema_location = schemas.StrSchema + __annotations__ = { + "created_at": created_at, + "env_params": env_params, + "id": id, + "location": location, + "metadata": metadata, + "model_artifact_ids": model_artifact_ids, + "name": name, + "packaging_type": packaging_type, + "requirements": requirements, + "app_config": app_config, + "schema_location": schema_location, + } + + metadata: MetaOapg.properties.metadata + requirements: MetaOapg.properties.requirements + model_artifact_ids: MetaOapg.properties.model_artifact_ids + packaging_type: 'ModelBundlePackagingType' + name: MetaOapg.properties.name + created_at: MetaOapg.properties.created_at + location: MetaOapg.properties.location + id: MetaOapg.properties.id + env_params: 'ModelBundleEnvironmentParams' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, 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["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], + requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], + model_artifact_ids: typing.Union[MetaOapg.properties.model_artifact_ids, list, tuple, ], + packaging_type: 'ModelBundlePackagingType', + name: typing.Union[MetaOapg.properties.name, str, ], + created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], + location: typing.Union[MetaOapg.properties.location, str, ], + id: typing.Union[MetaOapg.properties.id, str, ], + env_params: 'ModelBundleEnvironmentParams', + app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, 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], + ) -> 'ModelBundleV1Response': + return super().__new__( + cls, + *_args, + metadata=metadata, + requirements=requirements, + model_artifact_ids=model_artifact_ids, + packaging_type=packaging_type, + name=name, + created_at=created_at, + location=location, + id=id, + env_params=env_params, + app_config=app_config, + schema_location=schema_location, + _configuration=_configuration, + **kwargs, + ) + +from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/model_endpoint_deployment_state.py b/launch/api_client/model/model_endpoint_deployment_state.py index c0a13dff..d613d10d 100644 --- a/launch/api_client/model/model_endpoint_deployment_state.py +++ b/launch/api_client/model/model_endpoint_deployment_state.py @@ -9,21 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelEndpointDeploymentState(schemas.DictSchema): +class ModelEndpointDeploymentState( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,32 +34,52 @@ class ModelEndpointDeploymentState(schemas.DictSchema): This is the entity-layer class for the deployment settings related to a Model Endpoint. """ + class MetaOapg: required = { "max_workers", "min_workers", "per_worker", } - + class properties: - class max_workers(schemas.IntSchema): + + + class max_workers( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - - class min_workers(schemas.IntSchema): + + + class min_workers( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - per_worker = schemas.IntSchema - - class available_workers(schemas.IntSchema): + + + class available_workers( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - - class unavailable_workers(schemas.IntSchema): + + + class unavailable_workers( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - __annotations__ = { "max_workers": max_workers, "min_workers": min_workers, @@ -65,143 +87,67 @@ class MetaOapg: "available_workers": available_workers, "unavailable_workers": unavailable_workers, } - + max_workers: MetaOapg.properties.max_workers min_workers: MetaOapg.properties.min_workers per_worker: MetaOapg.properties.per_worker - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: - ... - + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["available_workers"] - ) -> MetaOapg.properties.available_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["available_workers"]) -> MetaOapg.properties.available_workers: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["unavailable_workers"] - ) -> MetaOapg.properties.unavailable_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["unavailable_workers"]) -> MetaOapg.properties.unavailable_workers: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "max_workers", - "min_workers", - "per_worker", - "available_workers", - "unavailable_workers", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["available_workers"] - ) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["available_workers"]) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["unavailable_workers"] - ) -> typing.Union[MetaOapg.properties.unavailable_workers, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["unavailable_workers"]) -> typing.Union[MetaOapg.properties.unavailable_workers, 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[ - "max_workers", - "min_workers", - "per_worker", - "available_workers", - "unavailable_workers", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - max_workers: typing.Union[ - MetaOapg.properties.max_workers, - decimal.Decimal, - int, - ], - min_workers: typing.Union[ - MetaOapg.properties.min_workers, - decimal.Decimal, - int, - ], - per_worker: typing.Union[ - MetaOapg.properties.per_worker, - decimal.Decimal, - int, - ], - available_workers: typing.Union[ - MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - unavailable_workers: typing.Union[ - MetaOapg.properties.unavailable_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], + available_workers: typing.Union[MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + unavailable_workers: typing.Union[MetaOapg.properties.unavailable_workers, decimal.Decimal, int, 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, - ], - ) -> "ModelEndpointDeploymentState": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelEndpointDeploymentState': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_deployment_state.pyi b/launch/api_client/model/model_endpoint_deployment_state.pyi index ff9c7ac0..65d9de9d 100644 --- a/launch/api_client/model/model_endpoint_deployment_state.pyi +++ b/launch/api_client/model/model_endpoint_deployment_state.pyi @@ -9,19 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelEndpointDeploymentState(schemas.DictSchema): + +class ModelEndpointDeploymentState( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,25 +34,39 @@ class ModelEndpointDeploymentState(schemas.DictSchema): This is the entity-layer class for the deployment settings related to a Model Endpoint. """ + class MetaOapg: required = { "max_workers", "min_workers", "per_worker", } - + class properties: - class max_workers(schemas.IntSchema): + + + class max_workers( + schemas.IntSchema + ): pass - - class min_workers(schemas.IntSchema): + + + class min_workers( + schemas.IntSchema + ): pass per_worker = schemas.IntSchema - - class available_workers(schemas.IntSchema): + + + class available_workers( + schemas.IntSchema + ): pass - - class unavailable_workers(schemas.IntSchema): + + + class unavailable_workers( + schemas.IntSchema + ): pass __annotations__ = { "max_workers": max_workers, @@ -57,116 +75,67 @@ class ModelEndpointDeploymentState(schemas.DictSchema): "available_workers": available_workers, "unavailable_workers": unavailable_workers, } + max_workers: MetaOapg.properties.max_workers min_workers: MetaOapg.properties.min_workers per_worker: MetaOapg.properties.per_worker - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["available_workers"] - ) -> MetaOapg.properties.available_workers: ... + def __getitem__(self, name: typing_extensions.Literal["available_workers"]) -> MetaOapg.properties.available_workers: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["unavailable_workers"] - ) -> MetaOapg.properties.unavailable_workers: ... + def __getitem__(self, name: typing_extensions.Literal["unavailable_workers"]) -> MetaOapg.properties.unavailable_workers: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "max_workers", - "min_workers", - "per_worker", - "available_workers", - "unavailable_workers", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["available_workers"] - ) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["available_workers"]) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["unavailable_workers"] - ) -> typing.Union[MetaOapg.properties.unavailable_workers, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["unavailable_workers"]) -> typing.Union[MetaOapg.properties.unavailable_workers, 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[ - "max_workers", - "min_workers", - "per_worker", - "available_workers", - "unavailable_workers", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - max_workers: typing.Union[ - MetaOapg.properties.max_workers, - decimal.Decimal, - int, - ], - min_workers: typing.Union[ - MetaOapg.properties.min_workers, - decimal.Decimal, - int, - ], - per_worker: typing.Union[ - MetaOapg.properties.per_worker, - decimal.Decimal, - int, - ], - available_workers: typing.Union[ - MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - unavailable_workers: typing.Union[ - MetaOapg.properties.unavailable_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], + available_workers: typing.Union[MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + unavailable_workers: typing.Union[MetaOapg.properties.unavailable_workers, decimal.Decimal, int, 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, - ], - ) -> "ModelEndpointDeploymentState": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelEndpointDeploymentState': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_order_by.py b/launch/api_client/model/model_endpoint_order_by.py index bd4c6e0a..85a5d7e0 100644 --- a/launch/api_client/model/model_endpoint_order_by.py +++ b/launch/api_client/model/model_endpoint_order_by.py @@ -9,46 +9,48 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelEndpointOrderBy(schemas.EnumBase, schemas.StrSchema): +class ModelEndpointOrderBy( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. - The canonical list of possible orderings of Model Bundles. - """ + class MetaOapg: enum_value_to_name = { "newest": "NEWEST", "oldest": "OLDEST", "alphabetical": "ALPHABETICAL", } - + @schemas.classproperty def NEWEST(cls): return cls("newest") - + @schemas.classproperty def OLDEST(cls): return cls("oldest") - + @schemas.classproperty def ALPHABETICAL(cls): return cls("alphabetical") diff --git a/launch/api_client/model/model_endpoint_order_by.pyi b/launch/api_client/model/model_endpoint_order_by.pyi index 3f3d362f..891a380d 100644 --- a/launch/api_client/model/model_endpoint_order_by.pyi +++ b/launch/api_client/model/model_endpoint_order_by.pyi @@ -9,35 +9,40 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelEndpointOrderBy(schemas.EnumBase, schemas.StrSchema): + +class ModelEndpointOrderBy( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. - The canonical list of possible orderings of Model Bundles. - """ - + @schemas.classproperty def NEWEST(cls): return cls("newest") + @schemas.classproperty def OLDEST(cls): return cls("oldest") + @schemas.classproperty def ALPHABETICAL(cls): return cls("alphabetical") diff --git a/launch/api_client/model/model_endpoint_resource_state.py b/launch/api_client/model/model_endpoint_resource_state.py index f6ed43ff..e232a176 100644 --- a/launch/api_client/model/model_endpoint_resource_state.py +++ b/launch/api_client/model/model_endpoint_resource_state.py @@ -9,21 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelEndpointResourceState(schemas.DictSchema): +class ModelEndpointResourceState( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,22 +34,27 @@ class ModelEndpointResourceState(schemas.DictSchema): This is the entity-layer class for the resource settings per worker of a Model Endpoint. """ + class MetaOapg: required = { "memory", "cpus", "gpus", } - + class properties: + + class cpus( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -63,64 +70,41 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "cpus": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'cpus': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - class gpus(schemas.IntSchema): + + + class gpus( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - + + class memory( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -136,66 +120,37 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "memory": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'memory': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def gpu_type() -> typing.Type["GpuType"]: + def gpu_type() -> typing.Type['GpuType']: return GpuType - optimize_costs = schemas.BoolSchema - + + class storage( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -211,52 +166,20 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "storage": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'storage': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - __annotations__ = { "cpus": cpus, "gpus": gpus, @@ -265,193 +188,74 @@ def __new__( "optimize_costs": optimize_costs, "storage": storage, } - + memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus gpus: MetaOapg.properties.gpus - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: - ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: - ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: - ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": - ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: - ... - + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: - ... - + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cpus", - "gpus", - "memory", - "gpu_type", - "optimize_costs", - "storage", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["storage"] - ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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[ - "cpus", - "gpus", - "memory", - "gpu_type", - "optimize_costs", - "storage", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - memory: typing.Union[ - MetaOapg.properties.memory, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], - cpus: typing.Union[ - MetaOapg.properties.cpus, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], - gpus: typing.Union[ - MetaOapg.properties.gpus, - decimal.Decimal, - int, - ], - gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[ - MetaOapg.properties.storage, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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, - ], - ) -> "ModelEndpointResourceState": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelEndpointResourceState': return super().__new__( cls, *_args, @@ -465,5 +269,4 @@ def __new__( **kwargs, ) - from launch.api_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/model_endpoint_resource_state.pyi b/launch/api_client/model/model_endpoint_resource_state.pyi index 01d11482..d114992c 100644 --- a/launch/api_client/model/model_endpoint_resource_state.pyi +++ b/launch/api_client/model/model_endpoint_resource_state.pyi @@ -9,19 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelEndpointResourceState(schemas.DictSchema): + +class ModelEndpointResourceState( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,22 +34,27 @@ class ModelEndpointResourceState(schemas.DictSchema): This is the entity-layer class for the resource settings per worker of a Model Endpoint. """ + class MetaOapg: required = { "memory", "cpus", "gpus", } - + class properties: + + class cpus( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -61,62 +70,38 @@ class ModelEndpointResourceState(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "cpus": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'cpus': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - class gpus(schemas.IntSchema): + + + class gpus( + schemas.IntSchema + ): pass - + + class memory( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -132,63 +117,37 @@ class ModelEndpointResourceState(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "memory": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'memory': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + @staticmethod - def gpu_type() -> typing.Type["GpuType"]: + def gpu_type() -> typing.Type['GpuType']: return GpuType optimize_costs = schemas.BoolSchema - + + class storage( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -204,44 +163,14 @@ class ModelEndpointResourceState(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "storage": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'storage': return super().__new__( cls, *_args, @@ -256,162 +185,74 @@ class ModelEndpointResourceState(schemas.DictSchema): "optimize_costs": optimize_costs, "storage": storage, } + memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus gpus: MetaOapg.properties.gpus - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cpus", - "gpus", - "memory", - "gpu_type", - "optimize_costs", - "storage", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["storage"] - ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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[ - "cpus", - "gpus", - "memory", - "gpu_type", - "optimize_costs", - "storage", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - memory: typing.Union[ - MetaOapg.properties.memory, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], - cpus: typing.Union[ - MetaOapg.properties.cpus, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], - gpus: typing.Union[ - MetaOapg.properties.gpus, - decimal.Decimal, - int, - ], - gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[ - MetaOapg.properties.storage, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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, - ], - ) -> "ModelEndpointResourceState": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelEndpointResourceState': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_status.py b/launch/api_client/model/model_endpoint_status.py index 8703e65a..c1ceaf1b 100644 --- a/launch/api_client/model/model_endpoint_status.py +++ b/launch/api_client/model/model_endpoint_status.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): +class ModelEndpointStatus( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,6 +35,7 @@ class ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): An enumeration. """ + class MetaOapg: enum_value_to_name = { "READY": "READY", @@ -40,23 +44,23 @@ class MetaOapg: "UPDATE_FAILED": "UPDATE_FAILED", "DELETE_IN_PROGRESS": "DELETE_IN_PROGRESS", } - + @schemas.classproperty def READY(cls): return cls("READY") - + @schemas.classproperty def UPDATE_PENDING(cls): return cls("UPDATE_PENDING") - + @schemas.classproperty def UPDATE_IN_PROGRESS(cls): return cls("UPDATE_IN_PROGRESS") - + @schemas.classproperty def UPDATE_FAILED(cls): return cls("UPDATE_FAILED") - + @schemas.classproperty def DELETE_IN_PROGRESS(cls): return cls("DELETE_IN_PROGRESS") diff --git a/launch/api_client/model/model_endpoint_status.pyi b/launch/api_client/model/model_endpoint_status.pyi index 8f1377bd..2c69f8c7 100644 --- a/launch/api_client/model/model_endpoint_status.pyi +++ b/launch/api_client/model/model_endpoint_status.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): + +class ModelEndpointStatus( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,19 +34,23 @@ class ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): An enumeration. """ - + @schemas.classproperty def READY(cls): return cls("READY") + @schemas.classproperty def UPDATE_PENDING(cls): return cls("UPDATE_PENDING") + @schemas.classproperty def UPDATE_IN_PROGRESS(cls): return cls("UPDATE_IN_PROGRESS") + @schemas.classproperty def UPDATE_FAILED(cls): return cls("UPDATE_FAILED") + @schemas.classproperty def DELETE_IN_PROGRESS(cls): return cls("DELETE_IN_PROGRESS") diff --git a/launch/api_client/model/model_endpoint_type.py b/launch/api_client/model/model_endpoint_type.py index 57c909ed..5c5037b8 100644 --- a/launch/api_client/model/model_endpoint_type.py +++ b/launch/api_client/model/model_endpoint_type.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelEndpointType(schemas.EnumBase, schemas.StrSchema): +class ModelEndpointType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,16 +35,17 @@ class ModelEndpointType(schemas.EnumBase, schemas.StrSchema): An enumeration. """ + class MetaOapg: enum_value_to_name = { "async": "ASYNC", "sync": "SYNC", } - + @schemas.classproperty def ASYNC(cls): return cls("async") - + @schemas.classproperty def SYNC(cls): return cls("sync") diff --git a/launch/api_client/model/model_endpoint_type.pyi b/launch/api_client/model/model_endpoint_type.pyi index 7a9bef5b..15fd296f 100644 --- a/launch/api_client/model/model_endpoint_type.pyi +++ b/launch/api_client/model/model_endpoint_type.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelEndpointType(schemas.EnumBase, schemas.StrSchema): + +class ModelEndpointType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,10 +34,11 @@ class ModelEndpointType(schemas.EnumBase, schemas.StrSchema): An enumeration. """ - + @schemas.classproperty def ASYNC(cls): return cls("async") + @schemas.classproperty def SYNC(cls): return cls("sync") diff --git a/launch/api_client/model/request_schema.py b/launch/api_client/model/request_schema.py index 48c12333..3546ebfd 100644 --- a/launch/api_client/model/request_schema.py +++ b/launch/api_client/model/request_schema.py @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 - RequestSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/request_schema.pyi b/launch/api_client/model/request_schema.pyi index 031787ad..113fed8a 100644 --- a/launch/api_client/model/request_schema.pyi +++ b/launch/api_client/model/request_schema.pyi @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -from launch_client import schemas # noqa: F401 +from launch_client import schemas # noqa: F401 RequestSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/response_schema.py b/launch/api_client/model/response_schema.py index ac2a8608..816504b4 100644 --- a/launch/api_client/model/response_schema.py +++ b/launch/api_client/model/response_schema.py @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 - ResponseSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/response_schema.pyi b/launch/api_client/model/response_schema.pyi index 800305f1..b31db7e3 100644 --- a/launch/api_client/model/response_schema.pyi +++ b/launch/api_client/model/response_schema.pyi @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -from launch_client import schemas # noqa: F401 +from launch_client import schemas # noqa: F401 ResponseSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/sync_endpoint_predict_response.py b/launch/api_client/model/sync_endpoint_predict_response.py index 3c497782..2d0797a6 100644 --- a/launch/api_client/model/sync_endpoint_predict_response.py +++ b/launch/api_client/model/sync_endpoint_predict_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -59,7 +58,9 @@ def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: + def __getitem__( + self, name: typing_extensions.Literal["traceback"] + ) -> MetaOapg.properties.traceback: ... @typing.overload diff --git a/launch/api_client/model/sync_endpoint_predict_response.pyi b/launch/api_client/model/sync_endpoint_predict_response.pyi index b547fcea..4342348b 100644 --- a/launch/api_client/model/sync_endpoint_predict_response.pyi +++ b/launch/api_client/model/sync_endpoint_predict_response.pyi @@ -49,9 +49,13 @@ class SyncEndpointPredictResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + def __getitem__( + self, name: typing_extensions.Literal["result"] + ) -> MetaOapg.properties.result: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... + def __getitem__( + self, name: typing_extensions.Literal["traceback"] + ) -> MetaOapg.properties.traceback: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -78,7 +82,9 @@ class SyncEndpointPredictResponse(schemas.DictSchema): self, name: typing_extensions.Literal["traceback"] ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/sync_endpoint_predict_v1_response.py b/launch/api_client/model/sync_endpoint_predict_v1_response.py new file mode 100644 index 00000000..08311f09 --- /dev/null +++ b/launch/api_client/model/sync_endpoint_predict_v1_response.py @@ -0,0 +1,108 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class SyncEndpointPredictV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "status", + } + + class properties: + + @staticmethod + def status() -> typing.Type['TaskStatus']: + return TaskStatus + result = schemas.AnyTypeSchema + traceback = schemas.StrSchema + __annotations__ = { + "status": status, + "result": result, + "traceback": traceback, + } + + status: 'TaskStatus' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "result", "traceback", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, 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["status", "result", "traceback", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + status: 'TaskStatus', + result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + traceback: typing.Union[MetaOapg.properties.traceback, str, 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], + ) -> 'SyncEndpointPredictV1Response': + return super().__new__( + cls, + *_args, + status=status, + result=result, + traceback=traceback, + _configuration=_configuration, + **kwargs, + ) + +from launch.api_client.model.task_status import TaskStatus diff --git a/launch/api_client/model/sync_endpoint_predict_v1_response.pyi b/launch/api_client/model/sync_endpoint_predict_v1_response.pyi new file mode 100644 index 00000000..063e0357 --- /dev/null +++ b/launch/api_client/model/sync_endpoint_predict_v1_response.pyi @@ -0,0 +1,108 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class SyncEndpointPredictV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "status", + } + + class properties: + + @staticmethod + def status() -> typing.Type['TaskStatus']: + return TaskStatus + result = schemas.AnyTypeSchema + traceback = schemas.StrSchema + __annotations__ = { + "status": status, + "result": result, + "traceback": traceback, + } + + status: 'TaskStatus' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "result", "traceback", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, 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["status", "result", "traceback", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + status: 'TaskStatus', + result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + traceback: typing.Union[MetaOapg.properties.traceback, str, 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], + ) -> 'SyncEndpointPredictV1Response': + return super().__new__( + cls, + *_args, + status=status, + result=result, + traceback=traceback, + _configuration=_configuration, + **kwargs, + ) + +from launch_client.model.task_status import TaskStatus diff --git a/launch/api_client/model/task_status.py b/launch/api_client/model/task_status.py index 9693fad1..d162efff 100644 --- a/launch/api_client/model/task_status.py +++ b/launch/api_client/model/task_status.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 TaskStatus(schemas.EnumBase, schemas.StrSchema): +class TaskStatus( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,6 +35,7 @@ class TaskStatus(schemas.EnumBase, schemas.StrSchema): An enumeration. """ + class MetaOapg: enum_value_to_name = { "PENDING": "PENDING", @@ -40,23 +44,23 @@ class MetaOapg: "FAILURE": "FAILURE", "UNDEFINED": "UNDEFINED", } - + @schemas.classproperty def PENDING(cls): return cls("PENDING") - + @schemas.classproperty def STARTED(cls): return cls("STARTED") - + @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") - + @schemas.classproperty def FAILURE(cls): return cls("FAILURE") - + @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/task_status.pyi b/launch/api_client/model/task_status.pyi index d81b166f..1a313148 100644 --- a/launch/api_client/model/task_status.pyi +++ b/launch/api_client/model/task_status.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class TaskStatus(schemas.EnumBase, schemas.StrSchema): + +class TaskStatus( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,19 +34,23 @@ class TaskStatus(schemas.EnumBase, schemas.StrSchema): An enumeration. """ - + @schemas.classproperty def PENDING(cls): return cls("PENDING") + @schemas.classproperty def STARTED(cls): return cls("STARTED") + @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") + @schemas.classproperty def FAILURE(cls): return cls("FAILURE") + @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/update_batch_job_request.py b/launch/api_client/model/update_batch_job_request.py index 421dc281..882b380d 100644 --- a/launch/api_client/model/update_batch_job_request.py +++ b/launch/api_client/model/update_batch_job_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -51,19 +50,37 @@ def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.pro def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cancel", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: + def get_item_oapg( + self, name: typing_extensions.Literal["cancel"] + ) -> MetaOapg.properties.cancel: ... @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["cancel",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cancel", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/update_batch_job_request.pyi b/launch/api_client/model/update_batch_job_request.pyi index 49707098..af407069 100644 --- a/launch/api_client/model/update_batch_job_request.pyi +++ b/launch/api_client/model/update_batch_job_request.pyi @@ -41,17 +41,39 @@ class UpdateBatchJobRequest(schemas.DictSchema): cancel: MetaOapg.properties.cancel @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... + def __getitem__( + self, name: typing_extensions.Literal["cancel"] + ) -> MetaOapg.properties.cancel: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cancel", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... + def get_item_oapg( + self, name: typing_extensions.Literal["cancel"] + ) -> MetaOapg.properties.cancel: ... @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["cancel",], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cancel", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/update_batch_job_response.py b/launch/api_client/model/update_batch_job_response.py index d4212f0b..a7175781 100644 --- a/launch/api_client/model/update_batch_job_response.py +++ b/launch/api_client/model/update_batch_job_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -44,26 +43,46 @@ class properties: success: MetaOapg.properties.success @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: + def __getitem__( + self, name: typing_extensions.Literal["success"] + ) -> MetaOapg.properties.success: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "success", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: + def get_item_oapg( + self, name: typing_extensions.Literal["success"] + ) -> MetaOapg.properties.success: ... @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["success",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "success", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/update_batch_job_response.pyi b/launch/api_client/model/update_batch_job_response.pyi index f61d6b92..b6a583f8 100644 --- a/launch/api_client/model/update_batch_job_response.pyi +++ b/launch/api_client/model/update_batch_job_response.pyi @@ -41,17 +41,39 @@ class UpdateBatchJobResponse(schemas.DictSchema): success: MetaOapg.properties.success @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... + def __getitem__( + self, name: typing_extensions.Literal["success"] + ) -> MetaOapg.properties.success: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "success", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... + def get_item_oapg( + self, name: typing_extensions.Literal["success"] + ) -> MetaOapg.properties.success: ... @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["success",], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "success", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/update_batch_job_v1_request.py b/launch/api_client/model/update_batch_job_v1_request.py new file mode 100644 index 00000000..abf9b3a1 --- /dev/null +++ b/launch/api_client/model/update_batch_job_v1_request.py @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class UpdateBatchJobV1Request( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "cancel", + } + + class properties: + cancel = schemas.BoolSchema + __annotations__ = { + "cancel": cancel, + } + + cancel: MetaOapg.properties.cancel + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... + + @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["cancel", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + cancel: typing.Union[MetaOapg.properties.cancel, bool, ], + _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], + ) -> 'UpdateBatchJobV1Request': + return super().__new__( + cls, + *_args, + cancel=cancel, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/update_batch_job_v1_request.pyi b/launch/api_client/model/update_batch_job_v1_request.pyi new file mode 100644 index 00000000..96a62273 --- /dev/null +++ b/launch/api_client/model/update_batch_job_v1_request.pyi @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class UpdateBatchJobV1Request( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "cancel", + } + + class properties: + cancel = schemas.BoolSchema + __annotations__ = { + "cancel": cancel, + } + + cancel: MetaOapg.properties.cancel + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... + + @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["cancel", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + cancel: typing.Union[MetaOapg.properties.cancel, bool, ], + _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], + ) -> 'UpdateBatchJobV1Request': + return super().__new__( + cls, + *_args, + cancel=cancel, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/update_batch_job_v1_response.py b/launch/api_client/model/update_batch_job_v1_response.py new file mode 100644 index 00000000..4f702046 --- /dev/null +++ b/launch/api_client/model/update_batch_job_v1_response.py @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class UpdateBatchJobV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "success", + } + + class properties: + success = schemas.BoolSchema + __annotations__ = { + "success": success, + } + + success: MetaOapg.properties.success + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... + + @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["success", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + success: typing.Union[MetaOapg.properties.success, bool, ], + _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], + ) -> 'UpdateBatchJobV1Response': + return super().__new__( + cls, + *_args, + success=success, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/update_batch_job_v1_response.pyi b/launch/api_client/model/update_batch_job_v1_response.pyi new file mode 100644 index 00000000..ff8a3d63 --- /dev/null +++ b/launch/api_client/model/update_batch_job_v1_response.pyi @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class UpdateBatchJobV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "success", + } + + class properties: + success = schemas.BoolSchema + __annotations__ = { + "success": success, + } + + success: MetaOapg.properties.success + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... + + @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["success", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + success: typing.Union[MetaOapg.properties.success, bool, ], + _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], + ) -> 'UpdateBatchJobV1Response': + return super().__new__( + cls, + *_args, + success=success, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/update_model_endpoint_request.py b/launch/api_client/model/update_model_endpoint_request.py index 7951eb1f..e2f76f75 100644 --- a/launch/api_client/model/update_model_endpoint_request.py +++ b/launch/api_client/model/update_model_endpoint_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -126,11 +125,21 @@ class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( @@ -361,11 +370,15 @@ def __new__( } @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: + def __getitem__( + self, name: typing_extensions.Literal["aws_role"] + ) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: + def __getitem__( + self, name: typing_extensions.Literal["billing_tags"] + ) -> MetaOapg.properties.billing_tags: ... @typing.overload @@ -373,7 +386,9 @@ def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.prope ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload @@ -395,7 +410,9 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload @@ -403,23 +420,33 @@ def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload @@ -429,7 +456,9 @@ def __getitem__( ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: + def __getitem__( + self, name: typing_extensions.Literal["prewarm"] + ) -> MetaOapg.properties.prewarm: ... @typing.overload @@ -439,7 +468,9 @@ def __getitem__( ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: ... @typing.overload @@ -507,7 +538,9 @@ def get_item_oapg( ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload @@ -656,9 +689,15 @@ def __new__( MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + gpus: typing.Union[ + MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + labels: typing.Union[ + MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + max_workers: typing.Union[ + MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, memory: typing.Union[ MetaOapg.properties.memory, dict, @@ -682,15 +721,25 @@ def __new__( metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, + min_workers: typing.Union[ + MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, str, schemas.Unset + ] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, + per_worker: typing.Union[ + MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[ + MetaOapg.properties.results_s3_bucket, str, schemas.Unset + ] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/update_model_endpoint_request.pyi b/launch/api_client/model/update_model_endpoint_request.pyi index bae65a58..f357ee05 100644 --- a/launch/api_client/model/update_model_endpoint_request.pyi +++ b/launch/api_client/model/update_model_endpoint_request.pyi @@ -116,10 +116,20 @@ class UpdateModelEndpointRequest(schemas.DictSchema): class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[ + str, + ], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( cls, @@ -338,13 +348,19 @@ class UpdateModelEndpointRequest(schemas.DictSchema): "storage": storage, } @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... + def __getitem__( + self, name: typing_extensions.Literal["aws_role"] + ) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... + def __getitem__( + self, name: typing_extensions.Literal["billing_tags"] + ) -> MetaOapg.properties.billing_tags: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -354,35 +370,53 @@ class UpdateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + def __getitem__( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + def __getitem__( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... + def __getitem__( + self, name: typing_extensions.Literal["prewarm"] + ) -> MetaOapg.properties.prewarm: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["results_s3_bucket"] ) -> MetaOapg.properties.results_s3_bucket: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -435,7 +469,9 @@ class UpdateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["default_callback_url"] ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["gpus"] @@ -489,7 +525,9 @@ class UpdateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["storage"] ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -553,9 +591,15 @@ class UpdateModelEndpointRequest(schemas.DictSchema): MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + gpus: typing.Union[ + MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + labels: typing.Union[ + MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + max_workers: typing.Union[ + MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, memory: typing.Union[ MetaOapg.properties.memory, dict, @@ -579,15 +623,25 @@ class UpdateModelEndpointRequest(schemas.DictSchema): metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, + min_workers: typing.Union[ + MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, str, schemas.Unset + ] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, + per_worker: typing.Union[ + MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[ + MetaOapg.properties.results_s3_bucket, str, schemas.Unset + ] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/update_model_endpoint_response.py b/launch/api_client/model/update_model_endpoint_response.py index 8429f8a0..9e3df010 100644 --- a/launch/api_client/model/update_model_endpoint_response.py +++ b/launch/api_client/model/update_model_endpoint_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -53,7 +52,15 @@ def __getitem__( def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -67,7 +74,15 @@ def get_item_oapg( def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/update_model_endpoint_response.pyi b/launch/api_client/model/update_model_endpoint_response.pyi index 3ee78421..e8fa304d 100644 --- a/launch/api_client/model/update_model_endpoint_response.pyi +++ b/launch/api_client/model/update_model_endpoint_response.pyi @@ -46,7 +46,15 @@ class UpdateModelEndpointResponse(schemas.DictSchema): ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload @@ -54,8 +62,18 @@ class UpdateModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["endpoint_creation_task_id"] ) -> MetaOapg.properties.endpoint_creation_task_id: ... @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["endpoint_creation_task_id",], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/update_model_endpoint_v1_request.py b/launch/api_client/model/update_model_endpoint_v1_request.py new file mode 100644 index 00000000..769f2fe7 --- /dev/null +++ b/launch/api_client/model/update_model_endpoint_v1_request.py @@ -0,0 +1,481 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class UpdateModelEndpointV1Request( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + aws_role = schemas.StrSchema + billing_tags = schemas.DictSchema + + + class cpus( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.StrSchema + any_of_1 = schemas.IntSchema + any_of_2 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + ] + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _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], + ) -> 'cpus': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + + @staticmethod + def default_callback_auth() -> typing.Type['CallbackAuth']: + return CallbackAuth + + + class default_callback_url( + schemas.StrSchema + ): + + + class MetaOapg: + format = 'uri' + max_length = 2083 + min_length = 1 + + @staticmethod + def gpu_type() -> typing.Type['GpuType']: + return GpuType + + + class gpus( + schemas.IntSchema + ): + + + class MetaOapg: + inclusive_minimum = 0 + high_priority = schemas.BoolSchema + + + class labels( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + + + class max_workers( + schemas.IntSchema + ): + + + class MetaOapg: + inclusive_minimum = 0 + + + class memory( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.StrSchema + any_of_1 = schemas.IntSchema + any_of_2 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + ] + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _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], + ) -> 'memory': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + metadata = schemas.DictSchema + + + class min_workers( + schemas.IntSchema + ): + + + class MetaOapg: + inclusive_minimum = 0 + model_bundle_id = schemas.StrSchema + optimize_costs = schemas.BoolSchema + per_worker = schemas.IntSchema + + + class post_inference_hooks( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'post_inference_hooks': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + prewarm = schemas.BoolSchema + results_s3_bucket = schemas.StrSchema + + + class storage( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.StrSchema + any_of_1 = schemas.IntSchema + any_of_2 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + ] + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _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], + ) -> 'storage': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "aws_role": aws_role, + "billing_tags": billing_tags, + "cpus": cpus, + "default_callback_auth": default_callback_auth, + "default_callback_url": default_callback_url, + "gpu_type": gpu_type, + "gpus": gpus, + "high_priority": high_priority, + "labels": labels, + "max_workers": max_workers, + "memory": memory, + "metadata": metadata, + "min_workers": min_workers, + "model_bundle_id": model_bundle_id, + "optimize_costs": optimize_costs, + "per_worker": per_worker, + "post_inference_hooks": post_inference_hooks, + "prewarm": prewarm, + "results_s3_bucket": results_s3_bucket, + "storage": storage, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, + billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, + high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, + post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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], + ) -> 'UpdateModelEndpointV1Request': + return super().__new__( + cls, + *_args, + aws_role=aws_role, + billing_tags=billing_tags, + cpus=cpus, + default_callback_auth=default_callback_auth, + default_callback_url=default_callback_url, + gpu_type=gpu_type, + gpus=gpus, + high_priority=high_priority, + labels=labels, + max_workers=max_workers, + memory=memory, + metadata=metadata, + min_workers=min_workers, + model_bundle_id=model_bundle_id, + optimize_costs=optimize_costs, + per_worker=per_worker, + post_inference_hooks=post_inference_hooks, + prewarm=prewarm, + results_s3_bucket=results_s3_bucket, + storage=storage, + _configuration=_configuration, + **kwargs, + ) + +from launch.api_client.model.callback_auth import CallbackAuth +from launch.api_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/update_model_endpoint_v1_request.pyi b/launch/api_client/model/update_model_endpoint_v1_request.pyi new file mode 100644 index 00000000..9aadf01d --- /dev/null +++ b/launch/api_client/model/update_model_endpoint_v1_request.pyi @@ -0,0 +1,467 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class UpdateModelEndpointV1Request( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + aws_role = schemas.StrSchema + billing_tags = schemas.DictSchema + + + class cpus( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.StrSchema + any_of_1 = schemas.IntSchema + any_of_2 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + ] + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _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], + ) -> 'cpus': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + + @staticmethod + def default_callback_auth() -> typing.Type['CallbackAuth']: + return CallbackAuth + + + class default_callback_url( + schemas.StrSchema + ): + pass + + @staticmethod + def gpu_type() -> typing.Type['GpuType']: + return GpuType + + + class gpus( + schemas.IntSchema + ): + pass + high_priority = schemas.BoolSchema + + + class labels( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + + + class max_workers( + schemas.IntSchema + ): + pass + + + class memory( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.StrSchema + any_of_1 = schemas.IntSchema + any_of_2 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + ] + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _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], + ) -> 'memory': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + metadata = schemas.DictSchema + + + class min_workers( + schemas.IntSchema + ): + pass + model_bundle_id = schemas.StrSchema + optimize_costs = schemas.BoolSchema + per_worker = schemas.IntSchema + + + class post_inference_hooks( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'post_inference_hooks': + return super().__new__( + cls, + _arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + prewarm = schemas.BoolSchema + results_s3_bucket = schemas.StrSchema + + + class storage( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.StrSchema + any_of_1 = schemas.IntSchema + any_of_2 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + ] + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _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], + ) -> 'storage': + return super().__new__( + cls, + *_args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "aws_role": aws_role, + "billing_tags": billing_tags, + "cpus": cpus, + "default_callback_auth": default_callback_auth, + "default_callback_url": default_callback_url, + "gpu_type": gpu_type, + "gpus": gpus, + "high_priority": high_priority, + "labels": labels, + "max_workers": max_workers, + "memory": memory, + "metadata": metadata, + "min_workers": min_workers, + "model_bundle_id": model_bundle_id, + "optimize_costs": optimize_costs, + "per_worker": per_worker, + "post_inference_hooks": post_inference_hooks, + "prewarm": prewarm, + "results_s3_bucket": results_s3_bucket, + "storage": storage, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, + billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, + high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, + post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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], + ) -> 'UpdateModelEndpointV1Request': + return super().__new__( + cls, + *_args, + aws_role=aws_role, + billing_tags=billing_tags, + cpus=cpus, + default_callback_auth=default_callback_auth, + default_callback_url=default_callback_url, + gpu_type=gpu_type, + gpus=gpus, + high_priority=high_priority, + labels=labels, + max_workers=max_workers, + memory=memory, + metadata=metadata, + min_workers=min_workers, + model_bundle_id=model_bundle_id, + optimize_costs=optimize_costs, + per_worker=per_worker, + post_inference_hooks=post_inference_hooks, + prewarm=prewarm, + results_s3_bucket=results_s3_bucket, + storage=storage, + _configuration=_configuration, + **kwargs, + ) + +from launch_client.model.callback_auth import CallbackAuth +from launch_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/update_model_endpoint_v1_response.py b/launch/api_client/model/update_model_endpoint_v1_response.py new file mode 100644 index 00000000..7aeff47a --- /dev/null +++ b/launch/api_client/model/update_model_endpoint_v1_response.py @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch.api_client import schemas # noqa: F401 + + +class UpdateModelEndpointV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "endpoint_creation_task_id", + } + + class properties: + endpoint_creation_task_id = schemas.StrSchema + __annotations__ = { + "endpoint_creation_task_id": endpoint_creation_task_id, + } + + endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + + @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["endpoint_creation_task_id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], + _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], + ) -> 'UpdateModelEndpointV1Response': + return super().__new__( + cls, + *_args, + endpoint_creation_task_id=endpoint_creation_task_id, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/update_model_endpoint_v1_response.pyi b/launch/api_client/model/update_model_endpoint_v1_response.pyi new file mode 100644 index 00000000..87aa1609 --- /dev/null +++ b/launch/api_client/model/update_model_endpoint_v1_response.pyi @@ -0,0 +1,83 @@ +# 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 +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from launch_client import schemas # noqa: F401 + + +class UpdateModelEndpointV1Response( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "endpoint_creation_task_id", + } + + class properties: + endpoint_creation_task_id = schemas.StrSchema + __annotations__ = { + "endpoint_creation_task_id": endpoint_creation_task_id, + } + + endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + + @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["endpoint_creation_task_id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], + _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], + ) -> 'UpdateModelEndpointV1Response': + return super().__new__( + cls, + *_args, + endpoint_creation_task_id=endpoint_creation_task_id, + _configuration=_configuration, + **kwargs, + ) diff --git a/launch/api_client/model/validation_error.py b/launch/api_client/model/validation_error.py index 8cc3cf6a..42a25b83 100644 --- a/launch/api_client/model/validation_error.py +++ b/launch/api_client/model/validation_error.py @@ -9,44 +9,57 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ValidationError(schemas.DictSchema): +class ValidationError( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "msg", "loc", "type", } - + class properties: - class loc(schemas.ListSchema): + + + class loc( + schemas.ListSchema + ): + + class MetaOapg: + + class items( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -61,109 +74,34 @@ def any_of(cls): cls.any_of_0, cls.any_of_1, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "items": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'items': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "loc": + ) -> 'loc': return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) - msg = schemas.StrSchema type = schemas.StrSchema __annotations__ = { @@ -171,107 +109,53 @@ def __getitem__(self, i: int) -> MetaOapg.items: "msg": msg, "type": type, } - + msg: MetaOapg.properties.msg loc: MetaOapg.properties.loc type: MetaOapg.properties.type - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: - ... - + def __getitem__(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: - ... - + def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: - ... - + def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "loc", - "msg", - "type", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["loc", "msg", "type", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... + @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[ - "loc", - "msg", - "type", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["loc", "msg", "type", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - msg: typing.Union[ - MetaOapg.properties.msg, - str, - ], - loc: typing.Union[ - MetaOapg.properties.loc, - list, - tuple, - ], - type: typing.Union[ - MetaOapg.properties.type, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + msg: typing.Union[MetaOapg.properties.msg, str, ], + loc: typing.Union[MetaOapg.properties.loc, list, tuple, ], + type: typing.Union[MetaOapg.properties.type, str, ], _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, - ], - ) -> "ValidationError": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ValidationError': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/validation_error.pyi b/launch/api_client/model/validation_error.pyi index 865e67c4..c6a35dac 100644 --- a/launch/api_client/model/validation_error.pyi +++ b/launch/api_client/model/validation_error.pyi @@ -9,42 +9,57 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ValidationError(schemas.DictSchema): + +class ValidationError( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "msg", "loc", "type", } - + class properties: - class loc(schemas.ListSchema): + + + class loc( + schemas.ListSchema + ): + + class MetaOapg: + + class items( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -59,103 +74,32 @@ class ValidationError(schemas.DictSchema): cls.any_of_0, cls.any_of_1, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "items": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'items': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "loc": + ) -> 'loc': return super().__new__( cls, _arg, _configuration=_configuration, ) + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) msg = schemas.StrSchema @@ -165,88 +109,53 @@ class ValidationError(schemas.DictSchema): "msg": msg, "type": type, } + msg: MetaOapg.properties.msg loc: MetaOapg.properties.loc type: MetaOapg.properties.type - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "loc", - "msg", - "type", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["loc", "msg", "type", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... + @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[ - "loc", - "msg", - "type", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["loc", "msg", "type", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - msg: typing.Union[ - MetaOapg.properties.msg, - str, - ], - loc: typing.Union[ - MetaOapg.properties.loc, - list, - tuple, - ], - type: typing.Union[ - MetaOapg.properties.type, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + msg: typing.Union[MetaOapg.properties.msg, str, ], + loc: typing.Union[MetaOapg.properties.loc, list, tuple, ], + type: typing.Union[MetaOapg.properties.type, str, ], _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, - ], - ) -> "ValidationError": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ValidationError': return super().__new__( cls, *_args, diff --git a/launch/api_client/models/__init__.py b/launch/api_client/models/__init__.py index 0111d71d..913a6e4e 100644 --- a/launch/api_client/models/__init__.py +++ b/launch/api_client/models/__init__.py @@ -11,97 +11,45 @@ # import sys # sys.setrecursionlimit(n) -from launch.api_client.model.batch_job_serialization_format import ( - BatchJobSerializationFormat, -) +from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat from launch.api_client.model.batch_job_status import BatchJobStatus from launch.api_client.model.callback_auth import CallbackAuth from launch.api_client.model.callback_basic_auth import CallbackBasicAuth from launch.api_client.model.callbackm_tls_auth import CallbackmTLSAuth -from launch.api_client.model.clone_model_bundle_request import ( - CloneModelBundleRequest, -) -from launch.api_client.model.create_async_task_response import ( - CreateAsyncTaskResponse, -) -from launch.api_client.model.create_batch_job_request import ( - CreateBatchJobRequest, -) -from launch.api_client.model.create_batch_job_resource_requests import ( - CreateBatchJobResourceRequests, -) -from launch.api_client.model.create_batch_job_response import ( - CreateBatchJobResponse, -) -from launch.api_client.model.create_model_bundle_request import ( - CreateModelBundleRequest, -) -from launch.api_client.model.create_model_bundle_response import ( - CreateModelBundleResponse, -) -from launch.api_client.model.create_model_endpoint_request import ( - CreateModelEndpointRequest, -) -from launch.api_client.model.create_model_endpoint_response import ( - CreateModelEndpointResponse, -) -from launch.api_client.model.delete_model_endpoint_response import ( - DeleteModelEndpointResponse, -) -from launch.api_client.model.endpoint_predict_request import ( - EndpointPredictRequest, -) -from launch.api_client.model.get_async_task_response import ( - GetAsyncTaskResponse, -) -from launch.api_client.model.get_batch_job_response import GetBatchJobResponse -from launch.api_client.model.get_model_endpoint_response import ( - GetModelEndpointResponse, -) +from launch.api_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request +from launch.api_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response +from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests +from launch.api_client.model.create_batch_job_v1_request import CreateBatchJobV1Request +from launch.api_client.model.create_batch_job_v1_response import CreateBatchJobV1Response +from launch.api_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request +from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch.api_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request +from launch.api_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response +from launch.api_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response +from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request +from launch.api_client.model.get_async_task_v1_response import GetAsyncTaskV1Response +from launch.api_client.model.get_batch_job_v1_response import GetBatchJobV1Response +from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response from launch.api_client.model.gpu_type import GpuType from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.list_model_bundles_response import ( - ListModelBundlesResponse, -) -from launch.api_client.model.list_model_endpoints_response import ( - ListModelEndpointsResponse, -) -from launch.api_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch.api_client.model.model_bundle_framework import ModelBundleFramework +from launch.api_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch.api_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response +from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch.api_client.model.model_bundle_framework_type import ModelBundleFrameworkType from launch.api_client.model.model_bundle_order_by import ModelBundleOrderBy -from launch.api_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) -from launch.api_client.model.model_bundle_response import ModelBundleResponse -from launch.api_client.model.model_endpoint_deployment_state import ( - ModelEndpointDeploymentState, -) -from launch.api_client.model.model_endpoint_order_by import ( - ModelEndpointOrderBy, -) -from launch.api_client.model.model_endpoint_resource_state import ( - ModelEndpointResourceState, -) +from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response +from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState +from launch.api_client.model.model_endpoint_order_by import ModelEndpointOrderBy +from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState from launch.api_client.model.model_endpoint_status import ModelEndpointStatus from launch.api_client.model.model_endpoint_type import ModelEndpointType from launch.api_client.model.request_schema import RequestSchema from launch.api_client.model.response_schema import ResponseSchema -from launch.api_client.model.sync_endpoint_predict_response import ( - SyncEndpointPredictResponse, -) +from launch.api_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response from launch.api_client.model.task_status import TaskStatus -from launch.api_client.model.update_batch_job_request import ( - UpdateBatchJobRequest, -) -from launch.api_client.model.update_batch_job_response import ( - UpdateBatchJobResponse, -) -from launch.api_client.model.update_model_endpoint_request import ( - UpdateModelEndpointRequest, -) -from launch.api_client.model.update_model_endpoint_response import ( - UpdateModelEndpointResponse, -) +from launch.api_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request +from launch.api_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response +from launch.api_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request +from launch.api_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response from launch.api_client.model.validation_error import ValidationError diff --git a/launch/api_client/paths/healthcheck/__init__.py b/launch/api_client/paths/healthcheck/__init__.py index ae6dcb46..b0eea9c5 100644 --- a/launch/api_client/paths/healthcheck/__init__.py +++ b/launch/api_client/paths/healthcheck/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.HEALTHCHECK +path = PathValues.HEALTHCHECK \ No newline at end of file diff --git a/launch/api_client/paths/healthcheck/get.py b/launch/api_client/paths/healthcheck/get.py index 4cbeec4b..287d610d 100644 --- a/launch/api_client/paths/healthcheck/get.py +++ b/launch/api_client/paths/healthcheck/get.py @@ -6,22 +6,24 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions from . import path @@ -31,20 +33,25 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, + '200': _response_for_200, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -55,8 +62,9 @@ def _healthcheck_healthcheck_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _healthcheck_healthcheck_get_oapg( @@ -65,8 +73,7 @@ def _healthcheck_healthcheck_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _healthcheck_healthcheck_get_oapg( @@ -75,8 +82,10 @@ def _healthcheck_healthcheck_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _healthcheck_healthcheck_get_oapg( self, @@ -97,11 +106,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, stream=stream, timeout=timeout, @@ -117,7 +126,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -132,8 +145,9 @@ def healthcheck_healthcheck_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def healthcheck_healthcheck_get( @@ -142,8 +156,7 @@ def healthcheck_healthcheck_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def healthcheck_healthcheck_get( @@ -152,8 +165,10 @@ def healthcheck_healthcheck_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def healthcheck_healthcheck_get( self, @@ -166,7 +181,7 @@ def healthcheck_healthcheck_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -180,8 +195,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -190,8 +206,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -200,8 +215,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -214,5 +231,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/healthcheck/get.pyi b/launch/api_client/paths/healthcheck/get.pyi index 519a05dc..152c27b6 100644 --- a/launch/api_client/paths/healthcheck/get.pyi +++ b/launch/api_client/paths/healthcheck/get.pyi @@ -6,37 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -46,7 +57,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _healthcheck_healthcheck_get_oapg( self, @@ -55,6 +69,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _healthcheck_healthcheck_get_oapg( self, @@ -62,7 +77,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _healthcheck_healthcheck_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -82,11 +101,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, stream=stream, timeout=timeout, @@ -102,10 +121,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class HealthcheckHealthcheckGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -116,7 +140,10 @@ class HealthcheckHealthcheckGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def healthcheck_healthcheck_get( self, @@ -125,6 +152,7 @@ class HealthcheckHealthcheckGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def healthcheck_healthcheck_get( self, @@ -132,7 +160,11 @@ class HealthcheckHealthcheckGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def healthcheck_healthcheck_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -144,9 +176,10 @@ class HealthcheckHealthcheckGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -157,7 +190,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -166,6 +202,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -173,7 +210,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -185,5 +226,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/healthz/__init__.py b/launch/api_client/paths/healthz/__init__.py index 3253e712..b4e79532 100644 --- a/launch/api_client/paths/healthz/__init__.py +++ b/launch/api_client/paths/healthz/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.HEALTHZ +path = PathValues.HEALTHZ \ No newline at end of file diff --git a/launch/api_client/paths/healthz/get.py b/launch/api_client/paths/healthz/get.py index c71e242f..e8aabd4b 100644 --- a/launch/api_client/paths/healthz/get.py +++ b/launch/api_client/paths/healthz/get.py @@ -6,22 +6,24 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions from . import path @@ -31,20 +33,25 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, + '200': _response_for_200, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -55,8 +62,9 @@ def _healthcheck_healthz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _healthcheck_healthz_get_oapg( @@ -65,8 +73,7 @@ def _healthcheck_healthz_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _healthcheck_healthz_get_oapg( @@ -75,8 +82,10 @@ def _healthcheck_healthz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _healthcheck_healthz_get_oapg( self, @@ -97,11 +106,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, stream=stream, timeout=timeout, @@ -117,7 +126,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -132,8 +145,9 @@ def healthcheck_healthz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def healthcheck_healthz_get( @@ -142,8 +156,7 @@ def healthcheck_healthz_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def healthcheck_healthz_get( @@ -152,8 +165,10 @@ def healthcheck_healthz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def healthcheck_healthz_get( self, @@ -166,7 +181,7 @@ def healthcheck_healthz_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -180,8 +195,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -190,8 +206,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -200,8 +215,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -214,5 +231,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/healthz/get.pyi b/launch/api_client/paths/healthz/get.pyi index e80889c1..21f0bdfe 100644 --- a/launch/api_client/paths/healthz/get.pyi +++ b/launch/api_client/paths/healthz/get.pyi @@ -6,37 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -46,7 +57,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _healthcheck_healthz_get_oapg( self, @@ -55,6 +69,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _healthcheck_healthz_get_oapg( self, @@ -62,7 +77,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _healthcheck_healthz_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -82,11 +101,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, stream=stream, timeout=timeout, @@ -102,10 +121,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class HealthcheckHealthzGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -116,7 +140,10 @@ class HealthcheckHealthzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def healthcheck_healthz_get( self, @@ -125,6 +152,7 @@ class HealthcheckHealthzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def healthcheck_healthz_get( self, @@ -132,7 +160,11 @@ class HealthcheckHealthzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def healthcheck_healthz_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -144,9 +176,10 @@ class HealthcheckHealthzGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -157,7 +190,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -166,6 +202,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -173,7 +210,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -185,5 +226,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/readyz/__init__.py b/launch/api_client/paths/readyz/__init__.py index 9b49ccf0..4b5a5af4 100644 --- a/launch/api_client/paths/readyz/__init__.py +++ b/launch/api_client/paths/readyz/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.READYZ +path = PathValues.READYZ \ No newline at end of file diff --git a/launch/api_client/paths/readyz/get.py b/launch/api_client/paths/readyz/get.py index c016a017..ef5201be 100644 --- a/launch/api_client/paths/readyz/get.py +++ b/launch/api_client/paths/readyz/get.py @@ -6,22 +6,24 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions from . import path @@ -31,20 +33,25 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, + '200': _response_for_200, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -55,8 +62,9 @@ def _healthcheck_readyz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _healthcheck_readyz_get_oapg( @@ -65,8 +73,7 @@ def _healthcheck_readyz_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _healthcheck_readyz_get_oapg( @@ -75,8 +82,10 @@ def _healthcheck_readyz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _healthcheck_readyz_get_oapg( self, @@ -97,11 +106,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, stream=stream, timeout=timeout, @@ -117,7 +126,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -132,8 +145,9 @@ def healthcheck_readyz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def healthcheck_readyz_get( @@ -142,8 +156,7 @@ def healthcheck_readyz_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def healthcheck_readyz_get( @@ -152,8 +165,10 @@ def healthcheck_readyz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def healthcheck_readyz_get( self, @@ -166,7 +181,7 @@ def healthcheck_readyz_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -180,8 +195,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -190,8 +206,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -200,8 +215,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -214,5 +231,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/readyz/get.pyi b/launch/api_client/paths/readyz/get.pyi index 7ef0ef1c..5f8d2904 100644 --- a/launch/api_client/paths/readyz/get.pyi +++ b/launch/api_client/paths/readyz/get.pyi @@ -6,37 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -46,7 +57,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _healthcheck_readyz_get_oapg( self, @@ -55,6 +69,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _healthcheck_readyz_get_oapg( self, @@ -62,7 +77,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _healthcheck_readyz_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -82,11 +101,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, stream=stream, timeout=timeout, @@ -102,10 +121,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class HealthcheckReadyzGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -116,7 +140,10 @@ class HealthcheckReadyzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def healthcheck_readyz_get( self, @@ -125,6 +152,7 @@ class HealthcheckReadyzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def healthcheck_readyz_get( self, @@ -132,7 +160,11 @@ class HealthcheckReadyzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def healthcheck_readyz_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -144,9 +176,10 @@ class HealthcheckReadyzGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -157,7 +190,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -166,6 +202,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -173,7 +210,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -185,5 +226,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_async_tasks/__init__.py b/launch/api_client/paths/v1_async_tasks/__init__.py index aafe0cc4..72df600f 100644 --- a/launch/api_client/paths/v1_async_tasks/__init__.py +++ b/launch/api_client/paths/v1_async_tasks/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_ASYNCTASKS +path = PathValues.V1_ASYNCTASKS \ No newline at end of file diff --git a/launch/api_client/paths/v1_async_tasks/post.py b/launch/api_client/paths/v1_async_tasks/post.py index 0a8f450e..f795a6a0 100644 --- a/launch/api_client/paths/v1_async_tasks/post.py +++ b/launch/api_client/paths/v1_async_tasks/post.py @@ -6,44 +6,45 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.create_async_task_response import ( - CreateAsyncTaskResponse, -) -from launch.api_client.model.endpoint_predict_request import ( - EndpointPredictRequest, -) + +from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response from . import path # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - "RequestRequiredQueryParams", + 'RequestRequiredQueryParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): @@ -58,32 +59,36 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) # body param -SchemaForRequestBodyApplicationJson = EndpointPredictRequest +SchemaForRequestBodyApplicationJson = EndpointPredictV1Request -request_body_endpoint_predict_request = api_client.RequestBody( +request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = CreateAsyncTaskResponse +SchemaFor200ResponseBodyApplicationJson = CreateAsyncTaskV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -92,21 +97,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -120,8 +130,9 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( @@ -133,8 +144,10 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( @@ -146,8 +159,7 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( @@ -159,13 +171,15 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _create_async_inference_task_v1_async_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -182,7 +196,9 @@ class instances used_path = path.value prefix_separator_iterator = None - for parameter in (request_query_model_endpoint_id,): + for parameter in ( + request_query_model_endpoint_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -196,23 +212,22 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_endpoint_predict_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -231,7 +246,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -249,8 +268,9 @@ def create_async_inference_task_v1_async_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def create_async_inference_task_v1_async_tasks_post( @@ -262,8 +282,10 @@ def create_async_inference_task_v1_async_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_async_inference_task_v1_async_tasks_post( @@ -275,8 +297,7 @@ def create_async_inference_task_v1_async_tasks_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def create_async_inference_task_v1_async_tasks_post( @@ -288,13 +309,15 @@ def create_async_inference_task_v1_async_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def create_async_inference_task_v1_async_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -308,7 +331,7 @@ def create_async_inference_task_v1_async_tasks_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -325,8 +348,9 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def post( @@ -338,8 +362,10 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( @@ -351,8 +377,7 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( @@ -364,13 +389,15 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -384,5 +411,7 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_async_tasks/post.pyi b/launch/api_client/paths/v1_async_tasks/post.pyi index b3cc5128..f9c2ffc0 100644 --- a/launch/api_client/paths/v1_async_tasks/post.pyi +++ b/launch/api_client/paths/v1_async_tasks/post.pyi @@ -6,43 +6,49 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.create_async_task_response import ( - CreateAsyncTaskResponse, -) -from launch_client.model.endpoint_predict_request import EndpointPredictRequest + +from launch_client.model.endpoint_predict_v1_request import EndpointPredictV1Request from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict +from launch_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - "RequestRequiredQueryParams", + 'RequestRequiredQueryParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) + class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass + request_query_model_endpoint_id = api_client.QueryParameter( name="model_endpoint_id", style=api_client.ParameterStyle.FORM, @@ -51,43 +57,58 @@ request_query_model_endpoint_id = api_client.QueryParameter( explode=True, ) # body param -SchemaForRequestBodyApplicationJson = EndpointPredictRequest +SchemaForRequestBodyApplicationJson = EndpointPredictV1Request + -request_body_endpoint_predict_request = api_client.RequestBody( +request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) -SchemaFor200ResponseBodyApplicationJson = CreateAsyncTaskResponse +SchemaFor200ResponseBodyApplicationJson = CreateAsyncTaskV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -100,7 +121,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( self, @@ -111,7 +135,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( self, @@ -123,6 +151,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( self, @@ -133,11 +162,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _create_async_inference_task_v1_async_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -154,7 +187,9 @@ class BaseApi(api_client.Api): used_path = path.value prefix_separator_iterator = None - for parameter in (request_query_model_endpoint_id,): + for parameter in ( + request_query_model_endpoint_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -168,23 +203,22 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_endpoint_predict_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -203,10 +237,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -220,7 +259,10 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_async_inference_task_v1_async_tasks_post( self, @@ -231,7 +273,11 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def create_async_inference_task_v1_async_tasks_post( self, @@ -243,6 +289,7 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def create_async_inference_task_v1_async_tasks_post( self, @@ -253,11 +300,15 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def create_async_inference_task_v1_async_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -271,9 +322,10 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -287,7 +339,10 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( self, @@ -298,7 +353,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def post( self, @@ -310,6 +369,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def post( self, @@ -320,11 +380,15 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -338,5 +402,7 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_async_tasks_task_id/__init__.py b/launch/api_client/paths/v1_async_tasks_task_id/__init__.py index 21c8a0fc..ef09b1e6 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/__init__.py +++ b/launch/api_client/paths/v1_async_tasks_task_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_ASYNCTASKS_TASK_ID +path = PathValues.V1_ASYNCTASKS_TASK_ID \ No newline at end of file diff --git a/launch/api_client/paths/v1_async_tasks_task_id/get.py b/launch/api_client/paths/v1_async_tasks_task_id/get.py index affd6c2a..5d4dca8e 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/get.py +++ b/launch/api_client/paths/v1_async_tasks_task_id/get.py @@ -6,41 +6,44 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.get_async_task_response import ( - GetAsyncTaskResponse, -) + from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.get_async_task_v1_response import GetAsyncTaskV1Response from . import path # Path params TaskIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'task_id': typing.Union[TaskIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "task_id": typing.Union[ - TaskIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -54,22 +57,25 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = GetAsyncTaskResponse +SchemaFor200ResponseBodyApplicationJson = GetAsyncTaskV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -78,21 +84,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -104,8 +115,9 @@ def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( @@ -115,8 +127,7 @@ def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( @@ -126,8 +137,10 @@ def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, @@ -147,7 +160,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_task_id,): + for parameter in ( + request_path_task_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -155,17 +170,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -182,7 +197,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -198,8 +217,9 @@ def get_async_inference_task_v1_async_tasks_task_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( @@ -209,8 +229,7 @@ def get_async_inference_task_v1_async_tasks_task_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( @@ -220,8 +239,10 @@ def get_async_inference_task_v1_async_tasks_task_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_async_inference_task_v1_async_tasks_task_id_get( self, @@ -236,7 +257,7 @@ def get_async_inference_task_v1_async_tasks_task_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -251,8 +272,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -262,8 +284,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -273,8 +294,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -289,5 +312,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_async_tasks_task_id/get.pyi b/launch/api_client/paths/v1_async_tasks_task_id/get.pyi index 1de42493..3e667842 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/get.pyi +++ b/launch/api_client/paths/v1_async_tasks_task_id/get.pyi @@ -6,75 +6,96 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.get_async_task_response import GetAsyncTaskResponse + from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict +from launch_client.model.get_async_task_v1_response import GetAsyncTaskV1Response # Path params TaskIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'task_id': typing.Union[TaskIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "task_id": typing.Union[ - TaskIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_task_id = api_client.PathParameter( name="task_id", style=api_client.ParameterStyle.SIMPLE, schema=TaskIdSchema, required=True, ) -SchemaFor200ResponseBodyApplicationJson = GetAsyncTaskResponse +SchemaFor200ResponseBodyApplicationJson = GetAsyncTaskV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -85,7 +106,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, @@ -95,6 +119,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, @@ -103,7 +128,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -122,7 +151,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_task_id,): + for parameter in ( + request_path_task_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -130,17 +161,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -157,10 +188,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -172,7 +208,10 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( self, @@ -182,6 +221,7 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( self, @@ -190,7 +230,11 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_async_inference_task_v1_async_tasks_task_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -204,9 +248,10 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -218,7 +263,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -228,6 +276,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -236,7 +285,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -250,5 +303,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_batch_jobs/__init__.py b/launch/api_client/paths/v1_batch_jobs/__init__.py index 3d5cef58..65e727af 100644 --- a/launch/api_client/paths/v1_batch_jobs/__init__.py +++ b/launch/api_client/paths/v1_batch_jobs/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_BATCHJOBS +path = PathValues.V1_BATCHJOBS \ No newline at end of file diff --git a/launch/api_client/paths/v1_batch_jobs/post.py b/launch/api_client/paths/v1_batch_jobs/post.py index b655a191..75a0574e 100644 --- a/launch/api_client/paths/v1_batch_jobs/post.py +++ b/launch/api_client/paths/v1_batch_jobs/post.py @@ -6,59 +6,62 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.create_batch_job_request import ( - CreateBatchJobRequest, -) -from launch.api_client.model.create_batch_job_response import ( - CreateBatchJobResponse, -) + +from launch.api_client.model.create_batch_job_v1_response import CreateBatchJobV1Response +from launch.api_client.model.create_batch_job_v1_request import CreateBatchJobV1Request from launch.api_client.model.http_validation_error import HTTPValidationError from . import path # body param -SchemaForRequestBodyApplicationJson = CreateBatchJobRequest +SchemaForRequestBodyApplicationJson = CreateBatchJobV1Request -request_body_create_batch_job_request = api_client.RequestBody( +request_body_create_batch_job_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = CreateBatchJobResponse +SchemaFor200ResponseBodyApplicationJson = CreateBatchJobV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -67,21 +70,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -94,8 +102,9 @@ def _create_batch_job_v1_batch_jobs_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( @@ -106,8 +115,10 @@ def _create_batch_job_v1_batch_jobs_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( @@ -118,8 +129,7 @@ def _create_batch_job_v1_batch_jobs_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( @@ -130,13 +140,15 @@ def _create_batch_job_v1_batch_jobs_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _create_batch_job_v1_batch_jobs_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -154,23 +166,22 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_create_batch_job_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_create_batch_job_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -189,7 +200,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -206,8 +221,9 @@ def create_batch_job_v1_batch_jobs_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def create_batch_job_v1_batch_jobs_post( @@ -218,8 +234,10 @@ def create_batch_job_v1_batch_jobs_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_batch_job_v1_batch_jobs_post( @@ -230,8 +248,7 @@ def create_batch_job_v1_batch_jobs_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def create_batch_job_v1_batch_jobs_post( @@ -242,13 +259,15 @@ def create_batch_job_v1_batch_jobs_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def create_batch_job_v1_batch_jobs_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -260,7 +279,7 @@ def create_batch_job_v1_batch_jobs_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -276,8 +295,9 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def post( @@ -288,8 +308,10 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( @@ -300,8 +322,7 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( @@ -312,13 +333,15 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -330,5 +353,7 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_batch_jobs/post.pyi b/launch/api_client/paths/v1_batch_jobs/post.pyi index c703d36c..7b84b5b8 100644 --- a/launch/api_client/paths/v1_batch_jobs/post.pyi +++ b/launch/api_client/paths/v1_batch_jobs/post.pyi @@ -6,65 +6,82 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.create_batch_job_request import CreateBatchJobRequest -from launch_client.model.create_batch_job_response import ( - CreateBatchJobResponse, -) + +from launch_client.model.create_batch_job_v1_response import CreateBatchJobV1Response +from launch_client.model.create_batch_job_v1_request import CreateBatchJobV1Request from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict # body param -SchemaForRequestBodyApplicationJson = CreateBatchJobRequest +SchemaForRequestBodyApplicationJson = CreateBatchJobV1Request + -request_body_create_batch_job_request = api_client.RequestBody( +request_body_create_batch_job_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) -SchemaFor200ResponseBodyApplicationJson = CreateBatchJobResponse +SchemaFor200ResponseBodyApplicationJson = CreateBatchJobV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -76,7 +93,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( self, @@ -86,7 +106,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( self, @@ -97,6 +121,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( self, @@ -106,11 +131,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _create_batch_job_v1_batch_jobs_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -128,23 +157,22 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_create_batch_job_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_create_batch_job_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -163,10 +191,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class CreateBatchJobV1BatchJobsPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -179,7 +212,10 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_batch_job_v1_batch_jobs_post( self, @@ -189,7 +225,11 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def create_batch_job_v1_batch_jobs_post( self, @@ -200,6 +240,7 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def create_batch_job_v1_batch_jobs_post( self, @@ -209,11 +250,15 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def create_batch_job_v1_batch_jobs_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -225,9 +270,10 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -240,7 +286,10 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( self, @@ -250,7 +299,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def post( self, @@ -261,6 +314,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def post( self, @@ -270,11 +324,15 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -286,5 +344,7 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py index 3fa32eda..0acdf21c 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_BATCHJOBS_BATCH_JOB_ID +path = PathValues.V1_BATCHJOBS_BATCH_JOB_ID \ No newline at end of file diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py index 8177a10e..d4b52f6f 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py @@ -6,23 +6,26 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.get_batch_job_response import GetBatchJobResponse + +from launch.api_client.model.get_batch_job_v1_response import GetBatchJobV1Response from launch.api_client.model.http_validation_error import HTTPValidationError from . import path @@ -30,15 +33,17 @@ # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "batch_job_id": typing.Union[ - BatchJobIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -52,22 +57,25 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = GetBatchJobResponse +SchemaFor200ResponseBodyApplicationJson = GetBatchJobV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -76,21 +84,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -102,8 +115,9 @@ def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( @@ -113,8 +127,7 @@ def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( @@ -124,8 +137,10 @@ def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, @@ -145,7 +160,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_batch_job_id,): + for parameter in ( + request_path_batch_job_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -153,17 +170,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -180,7 +197,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -196,8 +217,9 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( @@ -207,8 +229,7 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( @@ -218,8 +239,10 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_batch_job_v1_batch_jobs_batch_job_id_get( self, @@ -234,7 +257,7 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -249,8 +272,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -260,8 +284,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -271,8 +294,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -287,5 +312,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi index 5df616c8..23da620e 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi @@ -6,75 +6,96 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.get_batch_job_response import GetBatchJobResponse + +from launch_client.model.get_batch_job_v1_response import GetBatchJobV1Response from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "batch_job_id": typing.Union[ - BatchJobIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_batch_job_id = api_client.PathParameter( name="batch_job_id", style=api_client.ParameterStyle.SIMPLE, schema=BatchJobIdSchema, required=True, ) -SchemaFor200ResponseBodyApplicationJson = GetBatchJobResponse +SchemaFor200ResponseBodyApplicationJson = GetBatchJobV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -85,7 +106,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, @@ -95,6 +119,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, @@ -103,7 +128,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -122,7 +151,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_batch_job_id,): + for parameter in ( + request_path_batch_job_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -130,17 +161,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -157,10 +188,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -172,7 +208,10 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( self, @@ -182,6 +221,7 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( self, @@ -190,7 +230,11 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_batch_job_v1_batch_jobs_batch_job_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -204,9 +248,10 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -218,7 +263,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -228,6 +276,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -236,7 +285,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -250,5 +303,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py index 3c23d512..f0cc38b4 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py @@ -6,44 +6,45 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions + from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.update_batch_job_request import ( - UpdateBatchJobRequest, -) -from launch.api_client.model.update_batch_job_response import ( - UpdateBatchJobResponse, -) +from launch.api_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response +from launch.api_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request from . import path # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "batch_job_id": typing.Union[ - BatchJobIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -57,32 +58,36 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) # body param -SchemaForRequestBodyApplicationJson = UpdateBatchJobRequest +SchemaForRequestBodyApplicationJson = UpdateBatchJobV1Request -request_body_update_batch_job_request = api_client.RequestBody( +request_body_update_batch_job_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = UpdateBatchJobResponse +SchemaFor200ResponseBodyApplicationJson = UpdateBatchJobV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -91,21 +96,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -119,8 +129,9 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( @@ -132,8 +143,10 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( @@ -145,8 +158,7 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( @@ -158,13 +170,15 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -181,7 +195,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_batch_job_id,): + for parameter in ( + request_path_batch_job_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -189,29 +205,28 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_update_batch_job_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_update_batch_job_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="put".upper(), + method='put'.upper(), headers=_headers, fields=_fields, body=_body, @@ -230,7 +245,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -248,8 +267,9 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( @@ -261,8 +281,10 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( @@ -274,8 +296,7 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( @@ -287,13 +308,15 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def update_batch_job_v1_batch_jobs_batch_job_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -307,7 +330,7 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -324,8 +347,9 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def put( @@ -337,8 +361,10 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def put( @@ -350,8 +376,7 @@ def put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def put( @@ -363,13 +388,15 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -383,5 +410,7 @@ def put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi index e39e78c2..cf381c97 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi @@ -6,43 +6,49 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions + from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.update_batch_job_request import UpdateBatchJobRequest -from launch_client.model.update_batch_job_response import ( - UpdateBatchJobResponse, -) -from urllib3._collections import HTTPHeaderDict +from launch_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response +from launch_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "batch_job_id": typing.Union[ - BatchJobIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_batch_job_id = api_client.PathParameter( name="batch_job_id", style=api_client.ParameterStyle.SIMPLE, @@ -50,43 +56,58 @@ request_path_batch_job_id = api_client.PathParameter( required=True, ) # body param -SchemaForRequestBodyApplicationJson = UpdateBatchJobRequest +SchemaForRequestBodyApplicationJson = UpdateBatchJobV1Request + -request_body_update_batch_job_request = api_client.RequestBody( +request_body_update_batch_job_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) -SchemaFor200ResponseBodyApplicationJson = UpdateBatchJobResponse +SchemaFor200ResponseBodyApplicationJson = UpdateBatchJobV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -99,7 +120,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, @@ -110,7 +134,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, @@ -122,6 +150,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, @@ -132,11 +161,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -153,7 +186,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_batch_job_id,): + for parameter in ( + request_path_batch_job_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -161,29 +196,28 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_update_batch_job_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_update_batch_job_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="put".upper(), + method='put'.upper(), headers=_headers, fields=_fields, body=_body, @@ -202,10 +236,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -219,7 +258,10 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( self, @@ -230,7 +272,11 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( self, @@ -242,6 +288,7 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( self, @@ -252,11 +299,15 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def update_batch_job_v1_batch_jobs_batch_job_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -270,9 +321,10 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -286,7 +338,10 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def put( self, @@ -297,7 +352,11 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def put( self, @@ -309,6 +368,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def put( self, @@ -319,11 +379,15 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -337,5 +401,7 @@ class ApiForput(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles/__init__.py b/launch/api_client/paths/v1_model_bundles/__init__.py index 46bf5ae2..02168487 100644 --- a/launch/api_client/paths/v1_model_bundles/__init__.py +++ b/launch/api_client/paths/v1_model_bundles/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES +path = PathValues.V1_MODELBUNDLES \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_bundles/get.py b/launch/api_client/paths/v1_model_bundles/get.py index 5ebb8a20..dfeb1cdb 100644 --- a/launch/api_client/paths/v1_model_bundles/get.py +++ b/launch/api_client/paths/v1_model_bundles/get.py @@ -6,44 +6,46 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.list_model_bundles_response import ( - ListModelBundlesResponse, -) + from launch.api_client.model.model_bundle_order_by import ModelBundleOrderBy +from launch.api_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch.api_client.model.http_validation_error import HTTPValidationError from . import path # Query params ModelNameSchema = schemas.StrSchema OrderBySchema = ModelBundleOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) +RequestRequiredQueryParams = typing_extensions.TypedDict( + 'RequestRequiredQueryParams', + { + } +) RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", + 'RequestOptionalQueryParams', { - "model_name": typing.Union[ - ModelNameSchema, - str, - ], - "order_by": typing.Union[OrderBySchema,], + 'model_name': typing.Union[ModelNameSchema, str, ], + 'order_by': typing.Union[OrderBySchema, ], }, - total=False, + total=False ) @@ -64,22 +66,25 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = ListModelBundlesResponse +SchemaFor200ResponseBodyApplicationJson = ListModelBundlesV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -88,21 +93,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -114,8 +124,9 @@ def _list_model_bundles_v1_model_bundles_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( @@ -125,8 +136,7 @@ def _list_model_bundles_v1_model_bundles_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( @@ -136,8 +146,10 @@ def _list_model_bundles_v1_model_bundles_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _list_model_bundles_v1_model_bundles_get_oapg( self, @@ -174,11 +186,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -195,7 +207,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -211,8 +227,9 @@ def list_model_bundles_v1_model_bundles_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def list_model_bundles_v1_model_bundles_get( @@ -222,8 +239,7 @@ def list_model_bundles_v1_model_bundles_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def list_model_bundles_v1_model_bundles_get( @@ -233,8 +249,10 @@ def list_model_bundles_v1_model_bundles_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def list_model_bundles_v1_model_bundles_get( self, @@ -249,7 +267,7 @@ def list_model_bundles_v1_model_bundles_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -264,8 +282,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -275,8 +294,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -286,8 +304,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -302,5 +322,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles/get.pyi b/launch/api_client/paths/v1_model_bundles/get.pyi index 347aaf26..b912a1ef 100644 --- a/launch/api_client/paths/v1_model_bundles/get.pyi +++ b/launch/api_client/paths/v1_model_bundles/get.pyi @@ -6,46 +6,51 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.list_model_bundles_response import ( - ListModelBundlesResponse, -) + from launch_client.model.model_bundle_order_by import ModelBundleOrderBy -from urllib3._collections import HTTPHeaderDict +from launch_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch_client.model.http_validation_error import HTTPValidationError # Query params ModelNameSchema = schemas.StrSchema OrderBySchema = ModelBundleOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) +RequestRequiredQueryParams = typing_extensions.TypedDict( + 'RequestRequiredQueryParams', + { + } +) RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", + 'RequestOptionalQueryParams', { - "model_name": typing.Union[ - ModelNameSchema, - str, - ], - "order_by": typing.Union[OrderBySchema,], + 'model_name': typing.Union[ModelNameSchema, str, ], + 'order_by': typing.Union[OrderBySchema, ], }, - total=False, + total=False ) + class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass + request_query_model_name = api_client.QueryParameter( name="model_name", style=api_client.ParameterStyle.FORM, @@ -58,35 +63,48 @@ request_query_order_by = api_client.QueryParameter( schema=OrderBySchema, explode=True, ) -SchemaFor200ResponseBodyApplicationJson = ListModelBundlesResponse +SchemaFor200ResponseBodyApplicationJson = ListModelBundlesV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -97,7 +115,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( self, @@ -107,6 +128,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( self, @@ -115,7 +137,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _list_model_bundles_v1_model_bundles_get_oapg( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -151,11 +177,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -172,10 +198,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class ListModelBundlesV1ModelBundlesGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -187,7 +218,10 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def list_model_bundles_v1_model_bundles_get( self, @@ -197,6 +231,7 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def list_model_bundles_v1_model_bundles_get( self, @@ -205,7 +240,11 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def list_model_bundles_v1_model_bundles_get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -219,9 +258,10 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -233,7 +273,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -243,6 +286,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -251,7 +295,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -265,5 +313,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles/post.py b/launch/api_client/paths/v1_model_bundles/post.py index 57104995..69f5290e 100644 --- a/launch/api_client/paths/v1_model_bundles/post.py +++ b/launch/api_client/paths/v1_model_bundles/post.py @@ -6,59 +6,62 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.create_model_bundle_request import ( - CreateModelBundleRequest, -) -from launch.api_client.model.create_model_bundle_response import ( - CreateModelBundleResponse, -) + +from launch.api_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response from . import path # body param -SchemaForRequestBodyApplicationJson = CreateModelBundleRequest +SchemaForRequestBodyApplicationJson = CreateModelBundleV1Request -request_body_create_model_bundle_request = api_client.RequestBody( +request_body_create_model_bundle_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = CreateModelBundleResponse +SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -67,21 +70,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -94,8 +102,9 @@ def _create_model_bundle_v1_model_bundles_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( @@ -106,8 +115,10 @@ def _create_model_bundle_v1_model_bundles_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( @@ -118,8 +129,7 @@ def _create_model_bundle_v1_model_bundles_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( @@ -130,13 +140,15 @@ def _create_model_bundle_v1_model_bundles_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _create_model_bundle_v1_model_bundles_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -154,23 +166,22 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_create_model_bundle_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_create_model_bundle_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -189,7 +200,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -206,8 +221,9 @@ def create_model_bundle_v1_model_bundles_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def create_model_bundle_v1_model_bundles_post( @@ -218,8 +234,10 @@ def create_model_bundle_v1_model_bundles_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_model_bundle_v1_model_bundles_post( @@ -230,8 +248,7 @@ def create_model_bundle_v1_model_bundles_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def create_model_bundle_v1_model_bundles_post( @@ -242,13 +259,15 @@ def create_model_bundle_v1_model_bundles_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def create_model_bundle_v1_model_bundles_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -260,7 +279,7 @@ def create_model_bundle_v1_model_bundles_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -276,8 +295,9 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def post( @@ -288,8 +308,10 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( @@ -300,8 +322,7 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( @@ -312,13 +333,15 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -330,5 +353,7 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles/post.pyi b/launch/api_client/paths/v1_model_bundles/post.pyi index e98c40ee..552173d6 100644 --- a/launch/api_client/paths/v1_model_bundles/post.pyi +++ b/launch/api_client/paths/v1_model_bundles/post.pyi @@ -6,67 +6,82 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.create_model_bundle_request import ( - CreateModelBundleRequest, -) -from launch_client.model.create_model_bundle_response import ( - CreateModelBundleResponse, -) + +from launch_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict +from launch_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response # body param -SchemaForRequestBodyApplicationJson = CreateModelBundleRequest +SchemaForRequestBodyApplicationJson = CreateModelBundleV1Request + -request_body_create_model_bundle_request = api_client.RequestBody( +request_body_create_model_bundle_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) -SchemaFor200ResponseBodyApplicationJson = CreateModelBundleResponse +SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -78,7 +93,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( self, @@ -88,7 +106,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( self, @@ -99,6 +121,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( self, @@ -108,11 +131,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _create_model_bundle_v1_model_bundles_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -130,23 +157,22 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_create_model_bundle_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_create_model_bundle_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -165,10 +191,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class CreateModelBundleV1ModelBundlesPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -181,7 +212,10 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_model_bundle_v1_model_bundles_post( self, @@ -191,7 +225,11 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def create_model_bundle_v1_model_bundles_post( self, @@ -202,6 +240,7 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def create_model_bundle_v1_model_bundles_post( self, @@ -211,11 +250,15 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def create_model_bundle_v1_model_bundles_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -227,9 +270,10 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -242,7 +286,10 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( self, @@ -252,7 +299,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def post( self, @@ -263,6 +314,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def post( self, @@ -272,11 +324,15 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -288,5 +344,7 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py b/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py index 35511bd5..b5c960ff 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES_CLONEWITHCHANGES +path = PathValues.V1_MODELBUNDLES_CLONEWITHCHANGES \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py index 0f0dc937..ce1d294b 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py @@ -6,59 +6,62 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.clone_model_bundle_request import ( - CloneModelBundleRequest, -) -from launch.api_client.model.create_model_bundle_response import ( - CreateModelBundleResponse, -) + from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch.api_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request from . import path # body param -SchemaForRequestBodyApplicationJson = CloneModelBundleRequest +SchemaForRequestBodyApplicationJson = CloneModelBundleV1Request -request_body_clone_model_bundle_request = api_client.RequestBody( +request_body_clone_model_bundle_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = CreateModelBundleResponse +SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -67,21 +70,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -94,8 +102,9 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( @@ -106,8 +115,10 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( @@ -118,8 +129,7 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( @@ -130,13 +140,15 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -154,23 +166,22 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_clone_model_bundle_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_clone_model_bundle_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -189,7 +200,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -206,8 +221,9 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( @@ -218,8 +234,10 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( @@ -230,8 +248,7 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( @@ -242,13 +259,15 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -260,7 +279,7 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -276,8 +295,9 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def post( @@ -288,8 +308,10 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( @@ -300,8 +322,7 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( @@ -312,13 +333,15 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -330,5 +353,7 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi index d3cc57ed..4a15bd23 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi @@ -6,67 +6,82 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.clone_model_bundle_request import ( - CloneModelBundleRequest, -) -from launch_client.model.create_model_bundle_response import ( - CreateModelBundleResponse, -) + from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict +from launch_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request # body param -SchemaForRequestBodyApplicationJson = CloneModelBundleRequest +SchemaForRequestBodyApplicationJson = CloneModelBundleV1Request + -request_body_clone_model_bundle_request = api_client.RequestBody( +request_body_clone_model_bundle_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) -SchemaFor200ResponseBodyApplicationJson = CreateModelBundleResponse +SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -78,7 +93,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, @@ -88,7 +106,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, @@ -99,6 +121,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, @@ -108,11 +131,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -130,23 +157,22 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_clone_model_bundle_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_clone_model_bundle_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -165,10 +191,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -181,7 +212,10 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, @@ -191,7 +225,11 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, @@ -202,6 +240,7 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, @@ -211,11 +250,15 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -227,9 +270,10 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -242,7 +286,10 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( self, @@ -252,7 +299,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def post( self, @@ -263,6 +314,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def post( self, @@ -272,11 +324,15 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -288,5 +344,7 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles_latest/__init__.py b/launch/api_client/paths/v1_model_bundles_latest/__init__.py index b5e54b32..e8834ca7 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/__init__.py +++ b/launch/api_client/paths/v1_model_bundles_latest/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES_LATEST +path = PathValues.V1_MODELBUNDLES_LATEST \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_bundles_latest/get.py b/launch/api_client/paths/v1_model_bundles_latest/get.py index 69d26c62..1cde5141 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/get.py +++ b/launch/api_client/paths/v1_model_bundles_latest/get.py @@ -6,39 +6,44 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions + +from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.model_bundle_response import ModelBundleResponse from . import path # Query params ModelNameSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - "RequestRequiredQueryParams", + 'RequestRequiredQueryParams', + { + 'model_name': typing.Union[ModelNameSchema, str, ], + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', { - "model_name": typing.Union[ - ModelNameSchema, - str, - ], }, + total=False ) -RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): @@ -53,22 +58,25 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = ModelBundleResponse +SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -77,21 +85,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -103,8 +116,9 @@ def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( @@ -114,8 +128,7 @@ def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( @@ -125,8 +138,10 @@ def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, @@ -146,7 +161,9 @@ class instances used_path = path.value prefix_separator_iterator = None - for parameter in (request_query_model_name,): + for parameter in ( + request_query_model_name, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -160,11 +177,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -181,7 +198,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -197,8 +218,9 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( @@ -208,8 +230,7 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( @@ -219,8 +240,10 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_latest_model_bundle_v1_model_bundles_latest_get( self, @@ -235,7 +258,7 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -250,8 +273,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -261,8 +285,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -272,8 +295,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -288,5 +313,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles_latest/get.pyi b/launch/api_client/paths/v1_model_bundles_latest/get.pyi index 69020302..6bd40f45 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/get.pyi +++ b/launch/api_client/paths/v1_model_bundles_latest/get.pyi @@ -6,40 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions + +from launch_client.model.model_bundle_v1_response import ModelBundleV1Response from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.model_bundle_response import ModelBundleResponse -from urllib3._collections import HTTPHeaderDict # Query params ModelNameSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - "RequestRequiredQueryParams", + 'RequestRequiredQueryParams', + { + 'model_name': typing.Union[ModelNameSchema, str, ], + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', { - "model_name": typing.Union[ - ModelNameSchema, - str, - ], }, + total=False ) -RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) + class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass + request_query_model_name = api_client.QueryParameter( name="model_name", style=api_client.ParameterStyle.FORM, @@ -47,35 +55,48 @@ request_query_model_name = api_client.QueryParameter( required=True, explode=True, ) -SchemaFor200ResponseBodyApplicationJson = ModelBundleResponse +SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -86,7 +107,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, @@ -96,6 +120,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, @@ -104,7 +129,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -123,7 +152,9 @@ class BaseApi(api_client.Api): used_path = path.value prefix_separator_iterator = None - for parameter in (request_query_model_name,): + for parameter in ( + request_query_model_name, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -137,11 +168,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -158,10 +189,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -173,7 +209,10 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( self, @@ -183,6 +222,7 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( self, @@ -191,7 +231,11 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_latest_model_bundle_v1_model_bundles_latest_get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -205,9 +249,10 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -219,7 +264,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -229,6 +277,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -237,7 +286,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -251,5 +304,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py b/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py index d3532d3a..aeafa82e 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES_MODEL_BUNDLE_ID +path = PathValues.V1_MODELBUNDLES_MODEL_BUNDLE_ID \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py index 90ca938b..638fe89d 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py @@ -6,39 +6,44 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions + +from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.model_bundle_response import ModelBundleResponse from . import path # Path params ModelBundleIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_bundle_id': typing.Union[ModelBundleIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_bundle_id": typing.Union[ - ModelBundleIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -52,22 +57,25 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = ModelBundleResponse +SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -76,21 +84,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -102,8 +115,9 @@ def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( @@ -113,8 +127,7 @@ def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( @@ -124,8 +137,10 @@ def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, @@ -145,7 +160,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_model_bundle_id,): + for parameter in ( + request_path_model_bundle_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -153,17 +170,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -180,7 +197,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -196,8 +217,9 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( @@ -207,8 +229,7 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( @@ -218,8 +239,10 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, @@ -234,7 +257,7 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -249,8 +272,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -260,8 +284,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -271,8 +294,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -287,5 +312,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi index c7f3f8d5..6053dffd 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi @@ -6,75 +6,96 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions + +from launch_client.model.model_bundle_v1_response import ModelBundleV1Response from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.model_bundle_response import ModelBundleResponse -from urllib3._collections import HTTPHeaderDict # Path params ModelBundleIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_bundle_id': typing.Union[ModelBundleIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_bundle_id": typing.Union[ - ModelBundleIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_model_bundle_id = api_client.PathParameter( name="model_bundle_id", style=api_client.ParameterStyle.SIMPLE, schema=ModelBundleIdSchema, required=True, ) -SchemaFor200ResponseBodyApplicationJson = ModelBundleResponse +SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -85,7 +106,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, @@ -95,6 +119,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, @@ -103,7 +128,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -122,7 +151,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_model_bundle_id,): + for parameter in ( + request_path_model_bundle_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -130,17 +161,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -157,10 +188,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -172,7 +208,10 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, @@ -182,6 +221,7 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, @@ -190,7 +230,11 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -204,9 +248,10 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -218,7 +263,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -228,6 +276,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -236,7 +285,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -250,5 +303,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints/__init__.py b/launch/api_client/paths/v1_model_endpoints/__init__.py index f58f6045..63a2873d 100644 --- a/launch/api_client/paths/v1_model_endpoints/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTS +path = PathValues.V1_MODELENDPOINTS \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_endpoints/get.py b/launch/api_client/paths/v1_model_endpoints/get.py index b776bf5f..d61dd75c 100644 --- a/launch/api_client/paths/v1_model_endpoints/get.py +++ b/launch/api_client/paths/v1_model_endpoints/get.py @@ -6,46 +6,46 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions + +from launch.api_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.list_model_endpoints_response import ( - ListModelEndpointsResponse, -) -from launch.api_client.model.model_endpoint_order_by import ( - ModelEndpointOrderBy, -) +from launch.api_client.model.model_endpoint_order_by import ModelEndpointOrderBy from . import path # Query params NameSchema = schemas.StrSchema OrderBySchema = ModelEndpointOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) +RequestRequiredQueryParams = typing_extensions.TypedDict( + 'RequestRequiredQueryParams', + { + } +) RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", + 'RequestOptionalQueryParams', { - "name": typing.Union[ - NameSchema, - str, - ], - "order_by": typing.Union[OrderBySchema,], + 'name': typing.Union[NameSchema, str, ], + 'order_by': typing.Union[OrderBySchema, ], }, - total=False, + total=False ) @@ -66,22 +66,25 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = ListModelEndpointsResponse +SchemaFor200ResponseBodyApplicationJson = ListModelEndpointsV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -90,21 +93,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -116,8 +124,9 @@ def _list_model_endpoints_v1_model_endpoints_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( @@ -127,8 +136,7 @@ def _list_model_endpoints_v1_model_endpoints_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( @@ -138,8 +146,10 @@ def _list_model_endpoints_v1_model_endpoints_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _list_model_endpoints_v1_model_endpoints_get_oapg( self, @@ -176,11 +186,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -197,7 +207,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -213,8 +227,9 @@ def list_model_endpoints_v1_model_endpoints_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def list_model_endpoints_v1_model_endpoints_get( @@ -224,8 +239,7 @@ def list_model_endpoints_v1_model_endpoints_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def list_model_endpoints_v1_model_endpoints_get( @@ -235,8 +249,10 @@ def list_model_endpoints_v1_model_endpoints_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def list_model_endpoints_v1_model_endpoints_get( self, @@ -251,7 +267,7 @@ def list_model_endpoints_v1_model_endpoints_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -266,8 +282,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -277,8 +294,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -288,8 +304,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -304,5 +322,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints/get.pyi b/launch/api_client/paths/v1_model_endpoints/get.pyi index 86dea832..ba836ff4 100644 --- a/launch/api_client/paths/v1_model_endpoints/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints/get.pyi @@ -6,46 +6,51 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions + +from launch_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.list_model_endpoints_response import ( - ListModelEndpointsResponse, -) from launch_client.model.model_endpoint_order_by import ModelEndpointOrderBy -from urllib3._collections import HTTPHeaderDict # Query params NameSchema = schemas.StrSchema OrderBySchema = ModelEndpointOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) +RequestRequiredQueryParams = typing_extensions.TypedDict( + 'RequestRequiredQueryParams', + { + } +) RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", + 'RequestOptionalQueryParams', { - "name": typing.Union[ - NameSchema, - str, - ], - "order_by": typing.Union[OrderBySchema,], + 'name': typing.Union[NameSchema, str, ], + 'order_by': typing.Union[OrderBySchema, ], }, - total=False, + total=False ) + class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass + request_query_name = api_client.QueryParameter( name="name", style=api_client.ParameterStyle.FORM, @@ -58,35 +63,48 @@ request_query_order_by = api_client.QueryParameter( schema=OrderBySchema, explode=True, ) -SchemaFor200ResponseBodyApplicationJson = ListModelEndpointsResponse +SchemaFor200ResponseBodyApplicationJson = ListModelEndpointsV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -97,7 +115,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( self, @@ -107,6 +128,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( self, @@ -115,7 +137,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _list_model_endpoints_v1_model_endpoints_get_oapg( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -151,11 +177,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -172,10 +198,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class ListModelEndpointsV1ModelEndpointsGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -187,7 +218,10 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def list_model_endpoints_v1_model_endpoints_get( self, @@ -197,6 +231,7 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def list_model_endpoints_v1_model_endpoints_get( self, @@ -205,7 +240,11 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def list_model_endpoints_v1_model_endpoints_get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -219,9 +258,10 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -233,7 +273,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -243,6 +286,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -251,7 +295,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -265,5 +313,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints/post.py b/launch/api_client/paths/v1_model_endpoints/post.py index fcab3231..6daab4f2 100644 --- a/launch/api_client/paths/v1_model_endpoints/post.py +++ b/launch/api_client/paths/v1_model_endpoints/post.py @@ -6,59 +6,62 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.create_model_endpoint_request import ( - CreateModelEndpointRequest, -) -from launch.api_client.model.create_model_endpoint_response import ( - CreateModelEndpointResponse, -) + +from launch.api_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response +from launch.api_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request from launch.api_client.model.http_validation_error import HTTPValidationError from . import path # body param -SchemaForRequestBodyApplicationJson = CreateModelEndpointRequest +SchemaForRequestBodyApplicationJson = CreateModelEndpointV1Request -request_body_create_model_endpoint_request = api_client.RequestBody( +request_body_create_model_endpoint_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = CreateModelEndpointResponse +SchemaFor200ResponseBodyApplicationJson = CreateModelEndpointV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -67,21 +70,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -94,8 +102,9 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( @@ -106,8 +115,10 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( @@ -118,8 +129,7 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( @@ -130,13 +140,15 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _create_model_endpoint_v1_model_endpoints_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -154,23 +166,22 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_create_model_endpoint_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_create_model_endpoint_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -189,7 +200,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -206,8 +221,9 @@ def create_model_endpoint_v1_model_endpoints_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( @@ -218,8 +234,10 @@ def create_model_endpoint_v1_model_endpoints_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_model_endpoint_v1_model_endpoints_post( @@ -230,8 +248,7 @@ def create_model_endpoint_v1_model_endpoints_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( @@ -242,13 +259,15 @@ def create_model_endpoint_v1_model_endpoints_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def create_model_endpoint_v1_model_endpoints_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -260,7 +279,7 @@ def create_model_endpoint_v1_model_endpoints_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -276,8 +295,9 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def post( @@ -288,8 +308,10 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( @@ -300,8 +322,7 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( @@ -312,13 +333,15 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -330,5 +353,7 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints/post.pyi b/launch/api_client/paths/v1_model_endpoints/post.pyi index fcce5a29..ede948a4 100644 --- a/launch/api_client/paths/v1_model_endpoints/post.pyi +++ b/launch/api_client/paths/v1_model_endpoints/post.pyi @@ -6,67 +6,82 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.create_model_endpoint_request import ( - CreateModelEndpointRequest, -) -from launch_client.model.create_model_endpoint_response import ( - CreateModelEndpointResponse, -) + +from launch_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response +from launch_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict # body param -SchemaForRequestBodyApplicationJson = CreateModelEndpointRequest +SchemaForRequestBodyApplicationJson = CreateModelEndpointV1Request + -request_body_create_model_endpoint_request = api_client.RequestBody( +request_body_create_model_endpoint_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) -SchemaFor200ResponseBodyApplicationJson = CreateModelEndpointResponse +SchemaFor200ResponseBodyApplicationJson = CreateModelEndpointV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -78,7 +93,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( self, @@ -88,7 +106,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( self, @@ -99,6 +121,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( self, @@ -108,11 +131,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _create_model_endpoint_v1_model_endpoints_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -130,23 +157,22 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_create_model_endpoint_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_create_model_endpoint_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -165,10 +191,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class CreateModelEndpointV1ModelEndpointsPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -181,7 +212,10 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_model_endpoint_v1_model_endpoints_post( self, @@ -191,7 +225,11 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def create_model_endpoint_v1_model_endpoints_post( self, @@ -202,6 +240,7 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def create_model_endpoint_v1_model_endpoints_post( self, @@ -211,11 +250,15 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def create_model_endpoint_v1_model_endpoints_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -227,9 +270,10 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -242,7 +286,10 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( self, @@ -252,7 +299,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def post( self, @@ -263,6 +314,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def post( self, @@ -272,11 +324,15 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -288,5 +344,7 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_api/__init__.py b/launch/api_client/paths/v1_model_endpoints_api/__init__.py index c4f1910d..69585e08 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints_api/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTSAPI +path = PathValues.V1_MODELENDPOINTSAPI \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_endpoints_api/get.py b/launch/api_client/paths/v1_model_endpoints_api/get.py index d46a8f06..b6d33bc2 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/get.py +++ b/launch/api_client/paths/v1_model_endpoints_api/get.py @@ -6,27 +6,29 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions from . import path _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @@ -34,20 +36,25 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, + '200': _response_for_200, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -58,8 +65,9 @@ def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( @@ -68,8 +76,7 @@ def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( @@ -78,8 +85,10 @@ def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, @@ -100,11 +109,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -121,7 +130,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -136,8 +149,9 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( @@ -146,8 +160,7 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( @@ -156,8 +169,10 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_model_endpoints_api_v1_model_endpoints_api_get( self, @@ -170,7 +185,7 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -184,8 +199,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -194,8 +210,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -204,8 +219,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -218,5 +235,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_api/get.pyi b/launch/api_client/paths/v1_model_endpoints_api/get.pyi index a95a6348..c2bd2937 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_api/get.pyi @@ -6,37 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -46,7 +57,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, @@ -55,6 +69,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, @@ -62,7 +77,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -82,11 +101,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -103,10 +122,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -117,7 +141,10 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( self, @@ -126,6 +153,7 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( self, @@ -133,7 +161,11 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_model_endpoints_api_v1_model_endpoints_api_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -145,9 +177,10 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -158,7 +191,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -167,6 +203,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -174,7 +211,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -186,5 +227,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py index fb6cdf7c..e382b4ff 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID +path = PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py index 1aebf9f8..4968608b 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py @@ -6,25 +6,26 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.delete_model_endpoint_response import ( - DeleteModelEndpointResponse, -) + +from launch.api_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response from launch.api_client.model.http_validation_error import HTTPValidationError from . import path @@ -32,15 +33,17 @@ # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -54,22 +57,25 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = DeleteModelEndpointResponse +SchemaFor200ResponseBodyApplicationJson = DeleteModelEndpointV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -78,21 +84,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -104,8 +115,9 @@ def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( @@ -115,8 +127,7 @@ def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( @@ -126,8 +137,10 @@ def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, @@ -147,7 +160,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_model_endpoint_id,): + for parameter in ( + request_path_model_endpoint_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -155,17 +170,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="delete".upper(), + method='delete'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -182,7 +197,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -198,8 +217,9 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( @@ -209,8 +229,7 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( @@ -220,8 +239,10 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, @@ -236,7 +257,7 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -251,8 +272,9 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def delete( @@ -262,8 +284,7 @@ def delete( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def delete( @@ -273,8 +294,10 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def delete( self, @@ -289,5 +312,7 @@ def delete( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi index 3cf068a9..70c4cda2 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi @@ -6,77 +6,96 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.delete_model_endpoint_response import ( - DeleteModelEndpointResponse, -) + +from launch_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_model_endpoint_id = api_client.PathParameter( name="model_endpoint_id", style=api_client.ParameterStyle.SIMPLE, schema=ModelEndpointIdSchema, required=True, ) -SchemaFor200ResponseBodyApplicationJson = DeleteModelEndpointResponse +SchemaFor200ResponseBodyApplicationJson = DeleteModelEndpointV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -87,7 +106,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, @@ -97,6 +119,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, @@ -105,7 +128,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -124,7 +151,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_model_endpoint_id,): + for parameter in ( + request_path_model_endpoint_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -132,17 +161,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="delete".upper(), + method='delete'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -159,10 +188,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -174,7 +208,10 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, @@ -184,6 +221,7 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, @@ -192,7 +230,11 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -206,9 +248,10 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -220,7 +263,10 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def delete( self, @@ -230,6 +276,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def delete( self, @@ -238,7 +285,11 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def delete( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -252,5 +303,7 @@ class ApiFordelete(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py index 5ce6bbd6..94382ce9 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py @@ -6,25 +6,26 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.get_model_endpoint_response import ( - GetModelEndpointResponse, -) + +from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response from launch.api_client.model.http_validation_error import HTTPValidationError from . import path @@ -32,15 +33,17 @@ # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -54,22 +57,25 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = GetModelEndpointResponse +SchemaFor200ResponseBodyApplicationJson = GetModelEndpointV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -78,21 +84,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -104,8 +115,9 @@ def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( @@ -115,8 +127,7 @@ def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( @@ -126,8 +137,10 @@ def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, @@ -147,7 +160,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_model_endpoint_id,): + for parameter in ( + request_path_model_endpoint_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -155,17 +170,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -182,7 +197,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -198,8 +217,9 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( @@ -209,8 +229,7 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( @@ -220,8 +239,10 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, @@ -236,7 +257,7 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -251,8 +272,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -262,8 +284,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -273,8 +294,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -289,5 +312,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi index 2e1449f6..1538b496 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi @@ -6,77 +6,96 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.get_model_endpoint_response import ( - GetModelEndpointResponse, -) + +from launch_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_model_endpoint_id = api_client.PathParameter( name="model_endpoint_id", style=api_client.ParameterStyle.SIMPLE, schema=ModelEndpointIdSchema, required=True, ) -SchemaFor200ResponseBodyApplicationJson = GetModelEndpointResponse +SchemaFor200ResponseBodyApplicationJson = GetModelEndpointV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -87,7 +106,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, @@ -97,6 +119,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, @@ -105,7 +128,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -124,7 +151,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_model_endpoint_id,): + for parameter in ( + request_path_model_endpoint_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -132,17 +161,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -159,10 +188,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -174,7 +208,10 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, @@ -184,6 +221,7 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, @@ -192,7 +230,11 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -206,9 +248,10 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -220,7 +263,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -230,6 +276,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -238,7 +285,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -252,5 +303,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py index 67edd3b6..3d96a934 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py @@ -6,44 +6,45 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions + +from launch.api_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.update_model_endpoint_request import ( - UpdateModelEndpointRequest, -) -from launch.api_client.model.update_model_endpoint_response import ( - UpdateModelEndpointResponse, -) +from launch.api_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request from . import path # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -57,32 +58,36 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) # body param -SchemaForRequestBodyApplicationJson = UpdateModelEndpointRequest +SchemaForRequestBodyApplicationJson = UpdateModelEndpointV1Request -request_body_update_model_endpoint_request = api_client.RequestBody( +request_body_update_model_endpoint_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = UpdateModelEndpointResponse +SchemaFor200ResponseBodyApplicationJson = UpdateModelEndpointV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -91,21 +96,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -119,8 +129,9 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( @@ -132,8 +143,10 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( @@ -145,8 +158,7 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( @@ -158,13 +170,15 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -181,7 +195,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_model_endpoint_id,): + for parameter in ( + request_path_model_endpoint_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -189,29 +205,28 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_update_model_endpoint_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_update_model_endpoint_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="put".upper(), + method='put'.upper(), headers=_headers, fields=_fields, body=_body, @@ -230,7 +245,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -248,8 +267,9 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( @@ -261,8 +281,10 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( @@ -274,8 +296,7 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( @@ -287,13 +308,15 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -307,7 +330,7 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -324,8 +347,9 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def put( @@ -337,8 +361,10 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def put( @@ -350,8 +376,7 @@ def put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def put( @@ -363,13 +388,15 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -383,5 +410,7 @@ def put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi index a49bc9fd..0012df0a 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi @@ -6,45 +6,49 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions + +from launch_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.update_model_endpoint_request import ( - UpdateModelEndpointRequest, -) -from launch_client.model.update_model_endpoint_response import ( - UpdateModelEndpointResponse, -) -from urllib3._collections import HTTPHeaderDict +from launch_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_model_endpoint_id = api_client.PathParameter( name="model_endpoint_id", style=api_client.ParameterStyle.SIMPLE, @@ -52,43 +56,58 @@ request_path_model_endpoint_id = api_client.PathParameter( required=True, ) # body param -SchemaForRequestBodyApplicationJson = UpdateModelEndpointRequest +SchemaForRequestBodyApplicationJson = UpdateModelEndpointV1Request + -request_body_update_model_endpoint_request = api_client.RequestBody( +request_body_update_model_endpoint_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) -SchemaFor200ResponseBodyApplicationJson = UpdateModelEndpointResponse +SchemaFor200ResponseBodyApplicationJson = UpdateModelEndpointV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -101,7 +120,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, @@ -112,7 +134,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, @@ -124,6 +150,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, @@ -134,11 +161,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -155,7 +186,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_model_endpoint_id,): + for parameter in ( + request_path_model_endpoint_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -163,29 +196,28 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_update_model_endpoint_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_update_model_endpoint_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="put".upper(), + method='put'.upper(), headers=_headers, fields=_fields, body=_body, @@ -204,10 +236,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -221,7 +258,10 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, @@ -232,7 +272,11 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, @@ -244,6 +288,7 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, @@ -254,11 +299,15 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -272,9 +321,10 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -288,7 +338,10 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def put( self, @@ -299,7 +352,11 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def put( self, @@ -311,6 +368,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def put( self, @@ -321,11 +379,15 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -339,5 +401,7 @@ class ApiForput(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py b/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py index 4dd4f68d..bbefa10f 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTSSCHEMA_JSON +path = PathValues.V1_MODELENDPOINTSSCHEMA_JSON \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/get.py b/launch/api_client/paths/v1_model_endpoints_schema_json/get.py index 2cba49a7..8c24a455 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/get.py +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/get.py @@ -6,27 +6,29 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions from . import path _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @@ -34,20 +36,25 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, + '200': _response_for_200, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -58,8 +65,9 @@ def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( @@ -68,8 +76,7 @@ def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( @@ -78,8 +85,10 @@ def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, @@ -100,11 +109,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -121,7 +130,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -136,8 +149,9 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( @@ -146,8 +160,7 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( @@ -156,8 +169,10 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, @@ -170,7 +185,7 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -184,8 +199,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -194,8 +210,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -204,8 +219,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -218,5 +235,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi b/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi index 25adcc5f..780a5c95 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi @@ -6,37 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -46,7 +57,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, @@ -55,6 +69,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, @@ -62,7 +77,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -82,11 +101,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -103,10 +122,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -117,7 +141,10 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, @@ -126,6 +153,7 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, @@ -133,7 +161,11 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -145,9 +177,10 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -158,7 +191,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -167,6 +203,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -174,7 +211,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -186,5 +227,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_sync_tasks/__init__.py b/launch/api_client/paths/v1_sync_tasks/__init__.py index e05b06c3..0ad403fe 100644 --- a/launch/api_client/paths/v1_sync_tasks/__init__.py +++ b/launch/api_client/paths/v1_sync_tasks/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_SYNCTASKS +path = PathValues.V1_SYNCTASKS \ No newline at end of file diff --git a/launch/api_client/paths/v1_sync_tasks/post.py b/launch/api_client/paths/v1_sync_tasks/post.py index c1cea2f8..590fc5b5 100644 --- a/launch/api_client/paths/v1_sync_tasks/post.py +++ b/launch/api_client/paths/v1_sync_tasks/post.py @@ -6,44 +6,45 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.endpoint_predict_request import ( - EndpointPredictRequest, -) + +from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.sync_endpoint_predict_response import ( - SyncEndpointPredictResponse, -) +from launch.api_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response from . import path # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - "RequestRequiredQueryParams", + 'RequestRequiredQueryParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): @@ -58,32 +59,36 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) # body param -SchemaForRequestBodyApplicationJson = EndpointPredictRequest +SchemaForRequestBodyApplicationJson = EndpointPredictV1Request -request_body_endpoint_predict_request = api_client.RequestBody( +request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] -SchemaFor200ResponseBodyApplicationJson = SyncEndpointPredictResponse +SchemaFor200ResponseBodyApplicationJson = SyncEndpointPredictV1Response @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -92,21 +97,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -120,8 +130,9 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( @@ -133,8 +144,10 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( @@ -146,8 +159,7 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( @@ -159,13 +171,15 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -182,7 +196,9 @@ class instances used_path = path.value prefix_separator_iterator = None - for parameter in (request_query_model_endpoint_id,): + for parameter in ( + request_query_model_endpoint_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -196,23 +212,22 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_endpoint_predict_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -231,7 +246,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -249,8 +268,9 @@ def create_sync_inference_task_v1_sync_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( @@ -262,8 +282,10 @@ def create_sync_inference_task_v1_sync_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_sync_inference_task_v1_sync_tasks_post( @@ -275,8 +297,7 @@ def create_sync_inference_task_v1_sync_tasks_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( @@ -288,13 +309,15 @@ def create_sync_inference_task_v1_sync_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def create_sync_inference_task_v1_sync_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -308,7 +331,7 @@ def create_sync_inference_task_v1_sync_tasks_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -325,8 +348,9 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def post( @@ -338,8 +362,10 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( @@ -351,8 +377,7 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( @@ -364,13 +389,15 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -384,5 +411,7 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_sync_tasks/post.pyi b/launch/api_client/paths/v1_sync_tasks/post.pyi index 569563e5..1802b388 100644 --- a/launch/api_client/paths/v1_sync_tasks/post.pyi +++ b/launch/api_client/paths/v1_sync_tasks/post.pyi @@ -6,43 +6,49 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.endpoint_predict_request import EndpointPredictRequest + +from launch_client.model.endpoint_predict_v1_request import EndpointPredictV1Request from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.sync_endpoint_predict_response import ( - SyncEndpointPredictResponse, -) -from urllib3._collections import HTTPHeaderDict +from launch_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - "RequestRequiredQueryParams", + 'RequestRequiredQueryParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) + class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass + request_query_model_endpoint_id = api_client.QueryParameter( name="model_endpoint_id", style=api_client.ParameterStyle.FORM, @@ -51,43 +57,58 @@ request_query_model_endpoint_id = api_client.QueryParameter( explode=True, ) # body param -SchemaForRequestBodyApplicationJson = EndpointPredictRequest +SchemaForRequestBodyApplicationJson = EndpointPredictV1Request + -request_body_endpoint_predict_request = api_client.RequestBody( +request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) -SchemaFor200ResponseBodyApplicationJson = SyncEndpointPredictResponse +SchemaFor200ResponseBodyApplicationJson = SyncEndpointPredictV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -100,7 +121,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, @@ -111,7 +135,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, @@ -123,6 +151,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, @@ -133,11 +162,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -154,7 +187,9 @@ class BaseApi(api_client.Api): used_path = path.value prefix_separator_iterator = None - for parameter in (request_query_model_endpoint_id,): + for parameter in ( + request_query_model_endpoint_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -168,23 +203,22 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None - serialized_data = request_body_endpoint_predict_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -203,10 +237,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -220,7 +259,10 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_sync_inference_task_v1_sync_tasks_post( self, @@ -231,7 +273,11 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def create_sync_inference_task_v1_sync_tasks_post( self, @@ -243,6 +289,7 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def create_sync_inference_task_v1_sync_tasks_post( self, @@ -253,11 +300,15 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def create_sync_inference_task_v1_sync_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -271,9 +322,10 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -287,7 +339,10 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( self, @@ -298,7 +353,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def post( self, @@ -310,6 +369,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def post( self, @@ -320,11 +380,15 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -338,5 +402,7 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/rest.py b/launch/api_client/rest.py index 2065508f..89aa1230 100644 --- a/launch/api_client/rest.py +++ b/launch/api_client/rest.py @@ -11,8 +11,8 @@ import logging import ssl -import typing from urllib.parse import urlencode +import typing import certifi import urllib3 @@ -20,10 +20,12 @@ from launch.api_client.exceptions import ApiException, ApiValueError + logger = logging.getLogger(__name__) class RESTClientObject(object): + def __init__(self, configuration, pools_size=4, maxsize=None): # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 @@ -46,13 +48,13 @@ def __init__(self, configuration, pools_size=4, maxsize=None): addition_pool_args = {} if configuration.assert_hostname is not None: - addition_pool_args["assert_hostname"] = configuration.assert_hostname # noqa: E501 + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 if configuration.retries is not None: - addition_pool_args["retries"] = configuration.retries + addition_pool_args['retries'] = configuration.retries if configuration.socket_options is not None: - addition_pool_args["socket_options"] = configuration.socket_options + addition_pool_args['socket_options'] = configuration.socket_options if maxsize is None: if configuration.connection_pool_maxsize is not None: @@ -71,7 +73,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): key_file=configuration.key_file, proxy_url=configuration.proxy, proxy_headers=configuration.proxy_headers, - **addition_pool_args, + **addition_pool_args ) else: self.pool_manager = urllib3.PoolManager( @@ -81,7 +83,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): ca_certs=ca_certs, cert_file=configuration.cert_file, key_file=configuration.key_file, - **addition_pool_args, + **addition_pool_args ) def request( @@ -112,10 +114,13 @@ def request( (connection, read) timeouts. """ method = method.upper() - assert method in ["GET", "HEAD", "DELETE", "POST", "PUT", "PATCH", "OPTIONS"] + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] if fields and body: - raise ApiValueError("body parameter cannot be used with fields parameter.") + raise ApiValueError( + "body parameter cannot be used with fields parameter." + ) fields = fields or {} headers = headers or {} @@ -123,49 +128,53 @@ def request( if timeout: if isinstance(timeout, (int, float)): # noqa: E501,F821 timeout = urllib3.Timeout(total=timeout) - elif isinstance(timeout, tuple) and len(timeout) == 2: + elif (isinstance(timeout, tuple) and + len(timeout) == 2): timeout = urllib3.Timeout(connect=timeout[0], read=timeout[1]) try: # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ["POST", "PUT", "PATCH", "OPTIONS", "DELETE"]: - if "Content-Type" not in headers and body is None: - r = self.pool_manager.request( - method, url, preload_content=not stream, timeout=timeout, headers=headers - ) - elif headers["Content-Type"] == "application/x-www-form-urlencoded": # noqa: E501 + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if 'Content-Type' not in headers and body is None: r = self.pool_manager.request( method, url, + preload_content=not stream, + timeout=timeout, + headers=headers + ) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, body=body, fields=fields, encode_multipart=False, preload_content=not stream, timeout=timeout, - headers=headers, - ) - elif headers["Content-Type"] == "multipart/form-data": + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': # must del headers['Content-Type'], or the correct # Content-Type which generated by urllib3 will be # overwritten. - del headers["Content-Type"] + del headers['Content-Type'] r = self.pool_manager.request( - method, - url, + method, url, fields=fields, encode_multipart=True, preload_content=not stream, timeout=timeout, - headers=headers, - ) + headers=headers) # Pass a `string` parameter directly in the body to support # other content types than Json when `body` argument is # provided in serialized form elif isinstance(body, str) or isinstance(body, bytes): request_body = body r = self.pool_manager.request( - method, url, body=request_body, preload_content=not stream, timeout=timeout, headers=headers - ) + method, url, + body=request_body, + preload_content=not stream, + timeout=timeout, + headers=headers) else: # Cannot generate the request from given parameters msg = """Cannot prepare a request message for provided @@ -174,7 +183,10 @@ def request( raise ApiException(status=0, reason=msg) # For `GET`, `HEAD` else: - r = self.pool_manager.request(method, url, preload_content=not stream, timeout=timeout, headers=headers) + r = self.pool_manager.request(method, url, + preload_content=not stream, + timeout=timeout, + headers=headers) except urllib3.exceptions.SSLError as e: msg = "{0}\n{1}".format(type(e).__name__, str(e)) raise ApiException(status=0, reason=msg) @@ -185,23 +197,58 @@ def request( return r - def GET(self, url, headers=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("GET", url, headers=headers, stream=stream, timeout=timeout, fields=fields) - - def HEAD(self, url, headers=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("HEAD", url, headers=headers, stream=stream, timeout=timeout, fields=fields) - - def OPTIONS(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("OPTIONS", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) - - def DELETE(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("DELETE", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) - - def POST(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("POST", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) - - def PUT(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("PUT", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) - - def PATCH(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("PATCH", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) + def GET(self, url, headers=None, stream=False, + timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("GET", url, + headers=headers, + stream=stream, + timeout=timeout, + fields=fields) + + def HEAD(self, url, headers=None, stream=False, + timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("HEAD", url, + headers=headers, + stream=stream, + timeout=timeout, + fields=fields) + + def OPTIONS(self, url, headers=None, + body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("OPTIONS", url, + headers=headers, + stream=stream, + timeout=timeout, + body=body, fields=fields) + + def DELETE(self, url, headers=None, body=None, + stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("DELETE", url, + headers=headers, + stream=stream, + timeout=timeout, + body=body, fields=fields) + + def POST(self, url, headers=None, + body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("POST", url, + headers=headers, + stream=stream, + timeout=timeout, + body=body, fields=fields) + + def PUT(self, url, headers=None, + body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("PUT", url, + headers=headers, + stream=stream, + timeout=timeout, + body=body, fields=fields) + + def PATCH(self, url, headers=None, + body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("PATCH", url, + headers=headers, + stream=stream, + timeout=timeout, + body=body, fields=fields) diff --git a/launch/api_client/schemas.py b/launch/api_client/schemas.py index 3eaf4a2a..a8c70520 100644 --- a/launch/api_client/schemas.py +++ b/launch/api_client/schemas.py @@ -9,21 +9,26 @@ Generated by: https://openapi-generator.tech """ -import decimal +from collections import defaultdict +from datetime import date, datetime, timedelta # noqa: F401 import functools +import decimal import io import re import types import typing import uuid -from collections import defaultdict -from datetime import date, datetime, timedelta # noqa: F401 +from dateutil.parser.isoparser import isoparser, _takes_ascii import frozendict -from dateutil.parser.isoparser import _takes_ascii, isoparser -from launch.api_client.configuration import Configuration -from launch.api_client.exceptions import ApiTypeError, ApiValueError +from launch.api_client.exceptions import ( + ApiTypeError, + ApiValueError, +) +from launch.api_client.configuration import ( + Configuration, +) class Unset(object): @@ -31,10 +36,8 @@ class Unset(object): An instance of this class is set as the default value for object type(dict) properties that are optional When a property has an unset value, that property will not be assigned in the dict """ - pass - unset = Unset() none_type = type(None) @@ -50,12 +53,12 @@ class FileIO(io.FileIO): def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader]): if isinstance(_arg, (io.FileIO, io.BufferedReader)): if _arg.closed: - raise ApiValueError("Invalid file state; file is closed and must be open") + raise ApiValueError('Invalid file state; file is closed and must be open') _arg.close() inst = super(FileIO, cls).__new__(cls, _arg.name) super(FileIO, inst).__init__(_arg.name) return inst - raise ApiValueError("FileIO must be passed _arg which contains the open file") + raise ApiValueError('FileIO must be passed _arg which contains the open file') def __init__(self, _arg: typing.Union[io.FileIO, io.BufferedReader]): pass @@ -79,16 +82,13 @@ class ValidationMetadata(frozendict.frozendict): """ A class storing metadata that is needed to validate OpenApi Schema payloads """ - def __new__( cls, - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(["args[0]"]), + path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']), from_server: bool = False, configuration: typing.Optional[Configuration] = None, seen_classes: typing.FrozenSet[typing.Type] = frozenset(), - validated_path_to_schemas: typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type] - ] = frozendict.frozendict(), + validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]] = frozendict.frozendict() ): """ Args: @@ -115,7 +115,7 @@ def __new__( from_server=from_server, configuration=configuration, seen_classes=seen_classes, - validated_path_to_schemas=validated_path_to_schemas, + validated_path_to_schemas=validated_path_to_schemas ) def validation_ran_earlier(self, cls: type) -> bool: @@ -129,25 +129,23 @@ def validation_ran_earlier(self, cls: type) -> bool: @property def path_to_item(self) -> typing.Tuple[typing.Union[str, int], ...]: - return self.get("path_to_item") + return self.get('path_to_item') @property def from_server(self) -> bool: - return self.get("from_server") + return self.get('from_server') @property def configuration(self) -> typing.Optional[Configuration]: - return self.get("configuration") + return self.get('configuration') @property def seen_classes(self) -> typing.FrozenSet[typing.Type]: - return self.get("seen_classes") + return self.get('seen_classes') @property - def validated_path_to_schemas( - self, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]]: - return self.get("validated_path_to_schemas") + def validated_path_to_schemas(self) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]]: + return self.get('validated_path_to_schemas') def add_deeper_validated_schemas(validation_metadata: ValidationMetadata, path_to_schemas: dict): @@ -157,7 +155,7 @@ def add_deeper_validated_schemas(validation_metadata: ValidationMetadata, path_t for path_to_item, schemas in validation_metadata.validated_path_to_schemas.items(): if len(path_to_item) < len(current_path_to_item): continue - path_begins_with_current_path = path_to_item[: len(current_path_to_item)] == current_path_to_item + path_begins_with_current_path = path_to_item[:len(current_path_to_item)] == current_path_to_item if path_begins_with_current_path: other_path_to_schemas[path_to_item] = schemas update(path_to_schemas, other_path_to_schemas) @@ -168,7 +166,6 @@ class Singleton: Enums and singletons are the same The same instance is returned for a given key of (cls, _arg) """ - _instances = {} def __new__(cls, _arg: typing.Any, **kwargs): @@ -192,15 +189,16 @@ def __new__(cls, _arg: typing.Any, **kwargs): def __repr__(self): if isinstance(self, NoneClass): - return f"<{self.__class__.__name__}: None>" + return f'<{self.__class__.__name__}: None>' elif isinstance(self, BoolClass): if bool(self): - return f"<{self.__class__.__name__}: True>" - return f"<{self.__class__.__name__}: False>" - return f"<{self.__class__.__name__}: {super().__repr__()}>" + return f'<{self.__class__.__name__}: True>' + return f'<{self.__class__.__name__}: False>' + return f'<{self.__class__.__name__}: {super().__repr__()}>' class classproperty: + def __init__(self, fget): self.fget = fget @@ -231,7 +229,7 @@ def __bool__(self) -> bool: for key, instance in self._instances.items(): if self is instance: return bool(key[1]) - raise ValueError("Unable to find the boolean value of this instance") + raise ValueError('Unable to find the boolean value of this instance') class MetaOapgTyped: @@ -241,39 +239,30 @@ class MetaOapgTyped: inclusive_minimum: typing.Union[int, float] max_items: int min_items: int - discriminator: typing.Dict[str, typing.Dict[str, typing.Type["Schema"]]] + discriminator: typing.Dict[str, typing.Dict[str, typing.Type['Schema']]] + class properties: # to hold object properties pass - additional_properties: typing.Optional[typing.Type["Schema"]] + additional_properties: typing.Optional[typing.Type['Schema']] max_properties: int min_properties: int - all_of: typing.List[typing.Type["Schema"]] - one_of: typing.List[typing.Type["Schema"]] - any_of: typing.List[typing.Type["Schema"]] - not_schema: typing.Type["Schema"] + all_of: typing.List[typing.Type['Schema']] + one_of: typing.List[typing.Type['Schema']] + any_of: typing.List[typing.Type['Schema']] + not_schema: typing.Type['Schema'] max_length: int min_length: int - items: typing.Type["Schema"] + items: typing.Type['Schema'] class Schema: """ the base class of all swagger/openapi schemas/models """ - - __inheritable_primitive_types_set = { - decimal.Decimal, - str, - tuple, - frozendict.frozendict, - FileIO, - bytes, - BoolClass, - NoneClass, - } + __inheritable_primitive_types_set = {decimal.Decimal, str, tuple, frozendict.frozendict, FileIO, bytes, BoolClass, NoneClass} _types: typing.Set[typing.Type] MetaOapg = MetaOapgTyped @@ -288,9 +277,7 @@ def __get_valid_classes_phrase(input_classes): return "is one of [{0}]".format(", ".join(all_class_names)) @staticmethod - def _get_class_oapg( - item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type["Schema"]] - ) -> typing.Type["Schema"]: + def _get_class_oapg(item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type['Schema']]) -> typing.Type['Schema']: if isinstance(item_cls, types.FunctionType): # referenced schema return item_cls() @@ -300,7 +287,9 @@ def _get_class_oapg( return item_cls @classmethod - def __type_error_message(cls, var_value=None, var_name=None, valid_classes=None, key_type=None): + def __type_error_message( + cls, var_value=None, var_name=None, valid_classes=None, key_type=None + ): """ Keyword Args: var_value (any): the variable which has the type_error @@ -343,10 +332,7 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], - ]: + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: """ Schema _validate_oapg All keyword validation except for type checking was done in calling stack frames @@ -375,9 +361,7 @@ def _validate_oapg( @staticmethod def _process_schema_classes_oapg( - schema_classes: typing.Set[ - typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple] - ] + schema_classes: typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]] ): """ Processes and mutates schema_classes @@ -397,8 +381,10 @@ def _process_schema_classes_oapg( @classmethod def __get_new_cls( - cls, arg, validation_metadata: ValidationMetadata - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]]: + cls, + arg, + validation_metadata: ValidationMetadata + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']]: """ Make a new dynamic class and return an instance of that class We are making an instance of cls, but instead of making cls @@ -437,7 +423,8 @@ def __get_new_cls( 3. N number of schema classes, classes in path_to_schemas: BoolClass/NoneClass/tuple/frozendict.frozendict/str/Decimal/bytes/FileIo """ cls._process_schema_classes_oapg(schema_classes) - enum_schema = any(issubclass(this_cls, EnumBase) for this_cls in schema_classes) + enum_schema = any( + issubclass(this_cls, EnumBase) for this_cls in schema_classes) inheritable_primitive_type = schema_classes.intersection(cls.__inheritable_primitive_types_set) chosen_schema_classes = schema_classes - inheritable_primitive_type suffix = tuple(inheritable_primitive_type) @@ -445,7 +432,7 @@ def __get_new_cls( suffix = (Singleton,) + suffix used_classes = tuple(sorted(chosen_schema_classes, key=lambda a_cls: a_cls.__name__)) + suffix - mfg_cls = get_new_class(class_name="DynamicSchema", bases=used_classes) + mfg_cls = get_new_class(class_name='DynamicSchema', bases=used_classes) path_to_schemas[path] = mfg_cls return path_to_schemas @@ -455,7 +442,7 @@ def _get_new_instance_without_conversion_oapg( cls, arg: typing.Any, path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]], + path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] ): # We have a Dynamic class and we are making an instance of it if issubclass(cls, frozendict.frozendict) and issubclass(cls, DictBase): @@ -484,16 +471,16 @@ def from_openapi_data_oapg( decimal.Decimal, bool, None, - "Schema", + 'Schema', dict, frozendict.frozendict, tuple, list, io.FileIO, io.BufferedReader, - bytes, + bytes ], - _configuration: typing.Optional[Configuration], + _configuration: typing.Optional[Configuration] ): """ Schema from_openapi_data_oapg @@ -502,12 +489,13 @@ def from_openapi_data_oapg( validated_path_to_schemas = {} arg = cast_to_allowed_types(arg, from_server, validated_path_to_schemas) validation_metadata = ValidationMetadata( - from_server=from_server, configuration=_configuration, validated_path_to_schemas=validated_path_to_schemas - ) + from_server=from_server, configuration=_configuration, validated_path_to_schemas=validated_path_to_schemas) path_to_schemas = cls.__get_new_cls(arg, validation_metadata) new_cls = path_to_schemas[validation_metadata.path_to_item] new_inst = new_cls._get_new_instance_without_conversion_oapg( - arg, validation_metadata.path_to_item, path_to_schemas + arg, + validation_metadata.path_to_item, + path_to_schemas ) return new_inst @@ -524,41 +512,7 @@ def __get_input_dict(*args, **kwargs) -> frozendict.frozendict: def __remove_unsets(kwargs): return {key: val for key, val in kwargs.items() if val is not unset} - def __new__( - cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - "Schema", - ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - "Schema", - Unset, - ], - ): + def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], _configuration: typing.Optional[Configuration] = None, **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset]): """ Schema __new__ @@ -573,59 +527,35 @@ def __new__( """ __kwargs = cls.__remove_unsets(kwargs) if not _args and not __kwargs: - raise TypeError("No input given. args or kwargs must be given.") + raise TypeError( + 'No input given. args or kwargs must be given.' + ) if not __kwargs and _args and not isinstance(_args[0], dict): __arg = _args[0] else: __arg = cls.__get_input_dict(*_args, **__kwargs) __from_server = False __validated_path_to_schemas = {} - __arg = cast_to_allowed_types(__arg, __from_server, __validated_path_to_schemas) + __arg = cast_to_allowed_types( + __arg, __from_server, __validated_path_to_schemas) __validation_metadata = ValidationMetadata( - configuration=_configuration, - from_server=__from_server, - validated_path_to_schemas=__validated_path_to_schemas, - ) + configuration=_configuration, from_server=__from_server, validated_path_to_schemas=__validated_path_to_schemas) __path_to_schemas = cls.__get_new_cls(__arg, __validation_metadata) __new_cls = __path_to_schemas[__validation_metadata.path_to_item] return __new_cls._get_new_instance_without_conversion_oapg( - __arg, __validation_metadata.path_to_item, __path_to_schemas + __arg, + __validation_metadata.path_to_item, + __path_to_schemas ) def __init__( self, *_args: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - "Schema", - ], + dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], _configuration: typing.Optional[Configuration] = None, **kwargs: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - "Schema", - Unset, - ], + dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset + ] ): """ this is needed to fix 'Unexpected argument' warning in pycharm @@ -635,7 +565,6 @@ def __init__( """ pass - """ import itertools data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool') @@ -665,399 +594,269 @@ def __init__( BoolMixin = BoolClass BytesMixin = bytes FileMixin = FileIO - # qty 2 class BinaryMixin(bytes, FileIO): pass - class NoneFrozenDictMixin(NoneClass, frozendict.frozendict): pass - class NoneTupleMixin(NoneClass, tuple): pass - class NoneStrMixin(NoneClass, str): pass - class NoneDecimalMixin(NoneClass, decimal.Decimal): pass - class NoneBoolMixin(NoneClass, BoolClass): pass - class FrozenDictTupleMixin(frozendict.frozendict, tuple): pass - class FrozenDictStrMixin(frozendict.frozendict, str): pass - class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal): pass - class FrozenDictBoolMixin(frozendict.frozendict, BoolClass): pass - class TupleStrMixin(tuple, str): pass - class TupleDecimalMixin(tuple, decimal.Decimal): pass - class TupleBoolMixin(tuple, BoolClass): pass - class StrDecimalMixin(str, decimal.Decimal): pass - class StrBoolMixin(str, BoolClass): pass - class DecimalBoolMixin(decimal.Decimal, BoolClass): pass - # qty 3 class NoneFrozenDictTupleMixin(NoneClass, frozendict.frozendict, tuple): pass - class NoneFrozenDictStrMixin(NoneClass, frozendict.frozendict, str): pass - class NoneFrozenDictDecimalMixin(NoneClass, frozendict.frozendict, decimal.Decimal): pass - class NoneFrozenDictBoolMixin(NoneClass, frozendict.frozendict, BoolClass): pass - class NoneTupleStrMixin(NoneClass, tuple, str): pass - class NoneTupleDecimalMixin(NoneClass, tuple, decimal.Decimal): pass - class NoneTupleBoolMixin(NoneClass, tuple, BoolClass): pass - class NoneStrDecimalMixin(NoneClass, str, decimal.Decimal): pass - class NoneStrBoolMixin(NoneClass, str, BoolClass): pass - class NoneDecimalBoolMixin(NoneClass, decimal.Decimal, BoolClass): pass - class FrozenDictTupleStrMixin(frozendict.frozendict, tuple, str): pass - class FrozenDictTupleDecimalMixin(frozendict.frozendict, tuple, decimal.Decimal): pass - class FrozenDictTupleBoolMixin(frozendict.frozendict, tuple, BoolClass): pass - class FrozenDictStrDecimalMixin(frozendict.frozendict, str, decimal.Decimal): pass - class FrozenDictStrBoolMixin(frozendict.frozendict, str, BoolClass): pass - class FrozenDictDecimalBoolMixin(frozendict.frozendict, decimal.Decimal, BoolClass): pass - class TupleStrDecimalMixin(tuple, str, decimal.Decimal): pass - class TupleStrBoolMixin(tuple, str, BoolClass): pass - class TupleDecimalBoolMixin(tuple, decimal.Decimal, BoolClass): pass - class StrDecimalBoolMixin(str, decimal.Decimal, BoolClass): pass - # qty 4 class NoneFrozenDictTupleStrMixin(NoneClass, frozendict.frozendict, tuple, str): pass - class NoneFrozenDictTupleDecimalMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal): pass - class NoneFrozenDictTupleBoolMixin(NoneClass, frozendict.frozendict, tuple, BoolClass): pass - class NoneFrozenDictStrDecimalMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal): pass - class NoneFrozenDictStrBoolMixin(NoneClass, frozendict.frozendict, str, BoolClass): pass - class NoneFrozenDictDecimalBoolMixin(NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass): pass - class NoneTupleStrDecimalMixin(NoneClass, tuple, str, decimal.Decimal): pass - class NoneTupleStrBoolMixin(NoneClass, tuple, str, BoolClass): pass - class NoneTupleDecimalBoolMixin(NoneClass, tuple, decimal.Decimal, BoolClass): pass - class NoneStrDecimalBoolMixin(NoneClass, str, decimal.Decimal, BoolClass): pass - class FrozenDictTupleStrDecimalMixin(frozendict.frozendict, tuple, str, decimal.Decimal): pass - class FrozenDictTupleStrBoolMixin(frozendict.frozendict, tuple, str, BoolClass): pass - class FrozenDictTupleDecimalBoolMixin(frozendict.frozendict, tuple, decimal.Decimal, BoolClass): pass - class FrozenDictStrDecimalBoolMixin(frozendict.frozendict, str, decimal.Decimal, BoolClass): pass - class TupleStrDecimalBoolMixin(tuple, str, decimal.Decimal, BoolClass): pass - # qty 5 class NoneFrozenDictTupleStrDecimalMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal): pass - class NoneFrozenDictTupleStrBoolMixin(NoneClass, frozendict.frozendict, tuple, str, BoolClass): pass - class NoneFrozenDictTupleDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass): pass - class NoneFrozenDictStrDecimalBoolMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass): pass - class NoneTupleStrDecimalBoolMixin(NoneClass, tuple, str, decimal.Decimal, BoolClass): pass - class FrozenDictTupleStrDecimalBoolMixin(frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): pass - # qty 6 - class NoneFrozenDictTupleStrDecimalBoolMixin( - NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass - ): + class NoneFrozenDictTupleStrDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): pass - # qty 8 - class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin( - NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes - ): + class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes): pass - else: # qty 1 class NoneMixin: _types = {NoneClass} - class FrozenDictMixin: _types = {frozendict.frozendict} - class TupleMixin: _types = {tuple} - class StrMixin: _types = {str} - class DecimalMixin: _types = {decimal.Decimal} - class BoolMixin: _types = {BoolClass} - class BytesMixin: _types = {bytes} - class FileMixin: _types = {FileIO} - # qty 2 class BinaryMixin: _types = {bytes, FileIO} - class NoneFrozenDictMixin: _types = {NoneClass, frozendict.frozendict} - class NoneTupleMixin: _types = {NoneClass, tuple} - class NoneStrMixin: _types = {NoneClass, str} - class NoneDecimalMixin: _types = {NoneClass, decimal.Decimal} - class NoneBoolMixin: _types = {NoneClass, BoolClass} - class FrozenDictTupleMixin: _types = {frozendict.frozendict, tuple} - class FrozenDictStrMixin: _types = {frozendict.frozendict, str} - class FrozenDictDecimalMixin: _types = {frozendict.frozendict, decimal.Decimal} - class FrozenDictBoolMixin: _types = {frozendict.frozendict, BoolClass} - class TupleStrMixin: _types = {tuple, str} - class TupleDecimalMixin: _types = {tuple, decimal.Decimal} - class TupleBoolMixin: _types = {tuple, BoolClass} - class StrDecimalMixin: _types = {str, decimal.Decimal} - class StrBoolMixin: _types = {str, BoolClass} - class DecimalBoolMixin: _types = {decimal.Decimal, BoolClass} - # qty 3 class NoneFrozenDictTupleMixin: _types = {NoneClass, frozendict.frozendict, tuple} - class NoneFrozenDictStrMixin: _types = {NoneClass, frozendict.frozendict, str} - class NoneFrozenDictDecimalMixin: _types = {NoneClass, frozendict.frozendict, decimal.Decimal} - class NoneFrozenDictBoolMixin: _types = {NoneClass, frozendict.frozendict, BoolClass} - class NoneTupleStrMixin: _types = {NoneClass, tuple, str} - class NoneTupleDecimalMixin: _types = {NoneClass, tuple, decimal.Decimal} - class NoneTupleBoolMixin: _types = {NoneClass, tuple, BoolClass} - class NoneStrDecimalMixin: _types = {NoneClass, str, decimal.Decimal} - class NoneStrBoolMixin: _types = {NoneClass, str, BoolClass} - class NoneDecimalBoolMixin: _types = {NoneClass, decimal.Decimal, BoolClass} - class FrozenDictTupleStrMixin: _types = {frozendict.frozendict, tuple, str} - class FrozenDictTupleDecimalMixin: _types = {frozendict.frozendict, tuple, decimal.Decimal} - class FrozenDictTupleBoolMixin: _types = {frozendict.frozendict, tuple, BoolClass} - class FrozenDictStrDecimalMixin: _types = {frozendict.frozendict, str, decimal.Decimal} - class FrozenDictStrBoolMixin: _types = {frozendict.frozendict, str, BoolClass} - class FrozenDictDecimalBoolMixin: _types = {frozendict.frozendict, decimal.Decimal, BoolClass} - class TupleStrDecimalMixin: _types = {tuple, str, decimal.Decimal} - class TupleStrBoolMixin: _types = {tuple, str, BoolClass} - class TupleDecimalBoolMixin: _types = {tuple, decimal.Decimal, BoolClass} - class StrDecimalBoolMixin: _types = {str, decimal.Decimal, BoolClass} - # qty 4 class NoneFrozenDictTupleStrMixin: _types = {NoneClass, frozendict.frozendict, tuple, str} - class NoneFrozenDictTupleDecimalMixin: _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal} - class NoneFrozenDictTupleBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, BoolClass} - class NoneFrozenDictStrDecimalMixin: _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal} - class NoneFrozenDictStrBoolMixin: _types = {NoneClass, frozendict.frozendict, str, BoolClass} - class NoneFrozenDictDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass} - class NoneTupleStrDecimalMixin: _types = {NoneClass, tuple, str, decimal.Decimal} - class NoneTupleStrBoolMixin: _types = {NoneClass, tuple, str, BoolClass} - class NoneTupleDecimalBoolMixin: _types = {NoneClass, tuple, decimal.Decimal, BoolClass} - class NoneStrDecimalBoolMixin: _types = {NoneClass, str, decimal.Decimal, BoolClass} - class FrozenDictTupleStrDecimalMixin: _types = {frozendict.frozendict, tuple, str, decimal.Decimal} - class FrozenDictTupleStrBoolMixin: _types = {frozendict.frozendict, tuple, str, BoolClass} - class FrozenDictTupleDecimalBoolMixin: _types = {frozendict.frozendict, tuple, decimal.Decimal, BoolClass} - class FrozenDictStrDecimalBoolMixin: _types = {frozendict.frozendict, str, decimal.Decimal, BoolClass} - class TupleStrDecimalBoolMixin: _types = {tuple, str, decimal.Decimal, BoolClass} - # qty 5 class NoneFrozenDictTupleStrDecimalMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal} - class NoneFrozenDictTupleStrBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, BoolClass} - class NoneFrozenDictTupleDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass} - class NoneFrozenDictStrDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass} - class NoneTupleStrDecimalBoolMixin: _types = {NoneClass, tuple, str, decimal.Decimal, BoolClass} - class FrozenDictTupleStrDecimalBoolMixin: _types = {frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} - # qty 6 class NoneFrozenDictTupleStrDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} - # qty 8 class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes} @@ -1077,11 +876,9 @@ def _is_json_validation_enabled_oapg(schema_keyword, configuration=None): configuration (Configuration): the configuration class. """ - return ( - configuration is None - or not hasattr(configuration, "_disabled_client_side_validations") - or schema_keyword not in configuration._disabled_client_side_validations - ) + return (configuration is None or + not hasattr(configuration, '_disabled_client_side_validations') or + schema_keyword not in configuration._disabled_client_side_validations) @staticmethod def _raise_validation_error_message_oapg(value, constraint_msg, constraint_value, path_to_item, additional_txt=""): @@ -1102,10 +899,7 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], - ]: + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: """ EnumBase _validate_oapg Validates that arg is in the enum's allowed values @@ -1113,11 +907,7 @@ def _validate_oapg( try: cls.MetaOapg.enum_value_to_name[arg] except KeyError: - raise ApiValueError( - "Invalid value {} passed in to {}, allowed_values={}".format( - arg, cls, cls.MetaOapg.enum_value_to_name.keys() - ) - ) + raise ApiValueError("Invalid value {} passed in to {}, allowed_values={}".format(arg, cls, cls.MetaOapg.enum_value_to_name.keys())) return super()._validate_oapg(arg, validation_metadata=validation_metadata) @@ -1161,69 +951,68 @@ def as_str_oapg(self) -> str: @property def as_date_oapg(self) -> date: - raise Exception("not implemented") + raise Exception('not implemented') @property def as_datetime_oapg(self) -> datetime: - raise Exception("not implemented") + raise Exception('not implemented') @property def as_decimal_oapg(self) -> decimal.Decimal: - raise Exception("not implemented") + raise Exception('not implemented') @property def as_uuid_oapg(self) -> uuid.UUID: - raise Exception("not implemented") + raise Exception('not implemented') @classmethod - def __check_str_validations(cls, arg: str, validation_metadata: ValidationMetadata): - if not hasattr(cls, "MetaOapg"): + def __check_str_validations( + cls, + arg: str, + validation_metadata: ValidationMetadata + ): + if not hasattr(cls, 'MetaOapg'): return - if ( - cls._is_json_validation_enabled_oapg("maxLength", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "max_length") - and len(arg) > cls.MetaOapg.max_length - ): + if (cls._is_json_validation_enabled_oapg('maxLength', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'max_length') and + len(arg) > cls.MetaOapg.max_length): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="length must be less than or equal to", constraint_value=cls.MetaOapg.max_length, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("minLength", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "min_length") - and len(arg) < cls.MetaOapg.min_length - ): + if (cls._is_json_validation_enabled_oapg('minLength', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'min_length') and + len(arg) < cls.MetaOapg.min_length): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="length must be greater than or equal to", constraint_value=cls.MetaOapg.min_length, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if cls._is_json_validation_enabled_oapg("pattern", validation_metadata.configuration) and hasattr( - cls.MetaOapg, "regex" - ): + if (cls._is_json_validation_enabled_oapg('pattern', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'regex')): for regex_dict in cls.MetaOapg.regex: - flags = regex_dict.get("flags", 0) - if not re.search(regex_dict["pattern"], arg, flags=flags): + flags = regex_dict.get('flags', 0) + if not re.search(regex_dict['pattern'], arg, flags=flags): if flags != 0: # Don't print the regex flags if the flags are not # specified in the OAS document. cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must match regular expression", - constraint_value=regex_dict["pattern"], + constraint_value=regex_dict['pattern'], path_to_item=validation_metadata.path_to_item, - additional_txt=" with flags=`{}`".format(flags), + additional_txt=" with flags=`{}`".format(flags) ) cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must match regular expression", - constraint_value=regex_dict["pattern"], - path_to_item=validation_metadata.path_to_item, + constraint_value=regex_dict['pattern'], + path_to_item=validation_metadata.path_to_item ) @classmethod @@ -1231,10 +1020,7 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], - ]: + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: """ StrBase _validate_oapg Validates that validations pass @@ -1275,21 +1061,22 @@ def _validate_oapg( class CustomIsoparser(isoparser): + @_takes_ascii def parse_isodatetime(self, dt_str): components, pos = self._parse_isodate(dt_str) if len(dt_str) > pos: - if self._sep is None or dt_str[pos : pos + 1] == self._sep: - components += self._parse_isotime(dt_str[pos + 1 :]) + if self._sep is None or dt_str[pos:pos + 1] == self._sep: + components += self._parse_isotime(dt_str[pos + 1:]) else: - raise ValueError("String contains unknown ISO components") + raise ValueError('String contains unknown ISO components') if len(components) > 3 and components[3] == 24: components[3] = 0 return datetime(*components) + timedelta(days=1) if len(components) <= 3: - raise ValueError("Value is not a datetime") + raise ValueError('Value is not a datetime') return datetime(*components) @@ -1298,10 +1085,10 @@ def parse_isodate(self, datestr): components, pos = self._parse_isodate(datestr) if len(datestr) > pos: - raise ValueError("String contains invalid time components") + raise ValueError('String contains invalid time components') if len(components) > 3: - raise ValueError("String contains invalid time components") + raise ValueError('String contains invalid time components') return date(*components) @@ -1427,7 +1214,7 @@ def as_int_oapg(self) -> int: if self.as_tuple().exponent < 0: # this could be represented as an integer but should be represented as a float # because that's what it was serialized from - raise ApiValueError(f"{self} is not an integer") + raise ApiValueError(f'{self} is not an integer') self._as_int = int(self) return self._as_int @@ -1437,85 +1224,79 @@ def as_float_oapg(self) -> float: return self._as_float except AttributeError: if self.as_tuple().exponent >= 0: - raise ApiValueError(f"{self} is not a float") + raise ApiValueError(f'{self} is not a float') self._as_float = float(self) return self._as_float @classmethod - def __check_numeric_validations(cls, arg, validation_metadata: ValidationMetadata): - if not hasattr(cls, "MetaOapg"): + def __check_numeric_validations( + cls, + arg, + validation_metadata: ValidationMetadata + ): + if not hasattr(cls, 'MetaOapg'): return - if cls._is_json_validation_enabled_oapg("multipleOf", validation_metadata.configuration) and hasattr( - cls.MetaOapg, "multiple_of" - ): + if cls._is_json_validation_enabled_oapg('multipleOf', + validation_metadata.configuration) and hasattr(cls.MetaOapg, 'multiple_of'): multiple_of_value = cls.MetaOapg.multiple_of - if not (float(arg) / multiple_of_value).is_integer(): + if (not (float(arg) / multiple_of_value).is_integer()): # Note 'multipleOf' will be as good as the floating point arithmetic. cls._raise_validation_error_message_oapg( value=arg, constraint_msg="value must be a multiple of", constraint_value=multiple_of_value, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) checking_max_or_min_values = any( - hasattr(cls.MetaOapg, validation_key) - for validation_key in { - "exclusive_maximum", - "inclusive_maximum", - "exclusive_minimum", - "inclusive_minimum", + hasattr(cls.MetaOapg, validation_key) for validation_key in { + 'exclusive_maximum', + 'inclusive_maximum', + 'exclusive_minimum', + 'inclusive_minimum', } ) if not checking_max_or_min_values: return - if ( - cls._is_json_validation_enabled_oapg("exclusiveMaximum", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "exclusive_maximum") - and arg >= cls.MetaOapg.exclusive_maximum - ): + if (cls._is_json_validation_enabled_oapg('exclusiveMaximum', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'exclusive_maximum') and + arg >= cls.MetaOapg.exclusive_maximum): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value less than", constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("maximum", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "inclusive_maximum") - and arg > cls.MetaOapg.inclusive_maximum - ): + if (cls._is_json_validation_enabled_oapg('maximum', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'inclusive_maximum') and + arg > cls.MetaOapg.inclusive_maximum): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value less than or equal to", constraint_value=cls.MetaOapg.inclusive_maximum, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("exclusiveMinimum", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "exclusive_minimum") - and arg <= cls.MetaOapg.exclusive_minimum - ): + if (cls._is_json_validation_enabled_oapg('exclusiveMinimum', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'exclusive_minimum') and + arg <= cls.MetaOapg.exclusive_minimum): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value greater than", constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("minimum", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "inclusive_minimum") - and arg < cls.MetaOapg.inclusive_minimum - ): + if (cls._is_json_validation_enabled_oapg('minimum', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'inclusive_minimum') and + arg < cls.MetaOapg.inclusive_minimum): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value greater than or equal to", constraint_value=cls.MetaOapg.inclusive_minimum, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) @classmethod @@ -1523,10 +1304,7 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], - ]: + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: """ NumberBase _validate_oapg Validates that validations pass @@ -1556,64 +1334,59 @@ def __validate_items(cls, list_items, validation_metadata: ValidationMetadata): # if we have definitions for an items schema, use it # otherwise accept anything - item_cls = getattr(cls.MetaOapg, "items", UnsetAnyTypeSchema) + item_cls = getattr(cls.MetaOapg, 'items', UnsetAnyTypeSchema) item_cls = cls._get_class_oapg(item_cls) path_to_schemas = {} for i, value in enumerate(list_items): item_validation_metadata = ValidationMetadata( from_server=validation_metadata.from_server, configuration=validation_metadata.configuration, - path_to_item=validation_metadata.path_to_item + (i,), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, + path_to_item=validation_metadata.path_to_item+(i,), + validated_path_to_schemas=validation_metadata.validated_path_to_schemas ) if item_validation_metadata.validation_ran_earlier(item_cls): add_deeper_validated_schemas(item_validation_metadata, path_to_schemas) continue - other_path_to_schemas = item_cls._validate_oapg(value, validation_metadata=item_validation_metadata) + other_path_to_schemas = item_cls._validate_oapg( + value, validation_metadata=item_validation_metadata) update(path_to_schemas, other_path_to_schemas) return path_to_schemas @classmethod - def __check_tuple_validations(cls, arg, validation_metadata: ValidationMetadata): - if not hasattr(cls, "MetaOapg"): + def __check_tuple_validations( + cls, arg, + validation_metadata: ValidationMetadata): + if not hasattr(cls, 'MetaOapg'): return - if ( - cls._is_json_validation_enabled_oapg("maxItems", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "max_items") - and len(arg) > cls.MetaOapg.max_items - ): + if (cls._is_json_validation_enabled_oapg('maxItems', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'max_items') and + len(arg) > cls.MetaOapg.max_items): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of items must be less than or equal to", constraint_value=cls.MetaOapg.max_items, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("minItems", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "min_items") - and len(arg) < cls.MetaOapg.min_items - ): + if (cls._is_json_validation_enabled_oapg('minItems', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'min_items') and + len(arg) < cls.MetaOapg.min_items): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of items must be greater than or equal to", constraint_value=cls.MetaOapg.min_items, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("uniqueItems", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "unique_items") - and cls.MetaOapg.unique_items - and arg - ): + if (cls._is_json_validation_enabled_oapg('uniqueItems', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'unique_items') and cls.MetaOapg.unique_items and arg): unique_items = set(arg) if len(arg) > len(unique_items): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="duplicate items were found, and the tuple must not contain duplicates because", - constraint_value="unique_items==True", - path_to_item=validation_metadata.path_to_item, + constraint_value='unique_items==True', + path_to_item=validation_metadata.path_to_item ) @classmethod @@ -1647,7 +1420,7 @@ def _validate_oapg( from_server=validation_metadata.from_server, path_to_item=validation_metadata.path_to_item, seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, + validated_path_to_schemas=validation_metadata.validated_path_to_schemas ) other_path_to_schemas = cls.__validate_items(arg, validation_metadata=updated_vm) update(_path_to_schemas, other_path_to_schemas) @@ -1655,20 +1428,24 @@ def _validate_oapg( @classmethod def _get_items_oapg( - cls: "Schema", + cls: 'Schema', arg: typing.List[typing.Any], path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]], + path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] ): - """ + ''' ListBase _get_items_oapg - """ + ''' cast_items = [] for i, value in enumerate(arg): item_path_to_item = path_to_item + (i,) item_cls = path_to_schemas[item_path_to_item] - new_value = item_cls._get_new_instance_without_conversion_oapg(value, item_path_to_item, path_to_schemas) + new_value = item_cls._get_new_instance_without_conversion_oapg( + value, + item_path_to_item, + path_to_schemas + ) cast_items.append(new_value) return cast_items @@ -1678,16 +1455,12 @@ class Discriminable: MetaOapg: MetaOapgTyped @classmethod - def _ensure_discriminator_value_present_oapg( - cls, disc_property_name: str, validation_metadata: ValidationMetadata, *args - ): + def _ensure_discriminator_value_present_oapg(cls, disc_property_name: str, validation_metadata: ValidationMetadata, *args): if not args or args and disc_property_name not in args[0]: # The input data does not contain the discriminator property raise ApiValueError( "Cannot deserialize input data due to missing discriminator. " - "The discriminator property '{}' is missing at path: {}".format( - disc_property_name, validation_metadata.path_to_item - ) + "The discriminator property '{}' is missing at path: {}".format(disc_property_name, validation_metadata.path_to_item) ) @classmethod @@ -1695,7 +1468,7 @@ def get_discriminated_class_oapg(cls, disc_property_name: str, disc_payload_valu """ Used in schemas with discriminators """ - if not hasattr(cls.MetaOapg, "discriminator"): + if not hasattr(cls.MetaOapg, 'discriminator'): return None disc = cls.MetaOapg.discriminator() if disc_property_name not in disc: @@ -1703,38 +1476,38 @@ def get_discriminated_class_oapg(cls, disc_property_name: str, disc_payload_valu discriminated_cls = disc[disc_property_name].get(disc_payload_value) if discriminated_cls is not None: return discriminated_cls - if not hasattr(cls, "MetaOapg"): + if not hasattr(cls, 'MetaOapg'): return None elif not ( - hasattr(cls.MetaOapg, "all_of") or hasattr(cls.MetaOapg, "one_of") or hasattr(cls.MetaOapg, "any_of") + hasattr(cls.MetaOapg, 'all_of') or + hasattr(cls.MetaOapg, 'one_of') or + hasattr(cls.MetaOapg, 'any_of') ): return None # TODO stop traveling if a cycle is hit - if hasattr(cls.MetaOapg, "all_of"): + if hasattr(cls.MetaOapg, 'all_of'): for allof_cls in cls.MetaOapg.all_of(): discriminated_cls = allof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value - ) + disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) if discriminated_cls is not None: return discriminated_cls - if hasattr(cls.MetaOapg, "one_of"): + if hasattr(cls.MetaOapg, 'one_of'): for oneof_cls in cls.MetaOapg.one_of(): discriminated_cls = oneof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value - ) + disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) if discriminated_cls is not None: return discriminated_cls - if hasattr(cls.MetaOapg, "any_of"): + if hasattr(cls.MetaOapg, 'any_of'): for anyof_cls in cls.MetaOapg.any_of(): discriminated_cls = anyof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value - ) + disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) if discriminated_cls is not None: return discriminated_cls return None class DictBase(Discriminable, ValidatorBase): + @classmethod def __validate_arg_presence(cls, arg): """ @@ -1757,10 +1530,10 @@ def __validate_arg_presence(cls, arg): """ seen_required_properties = set() invalid_arguments = [] - required_property_names = getattr(cls.MetaOapg, "required", set()) - additional_properties = getattr(cls.MetaOapg, "additional_properties", UnsetAnyTypeSchema) - properties = getattr(cls.MetaOapg, "properties", {}) - property_annotations = getattr(properties, "__annotations__", {}) + required_property_names = getattr(cls.MetaOapg, 'required', set()) + additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema) + properties = getattr(cls.MetaOapg, 'properties', {}) + property_annotations = getattr(properties, '__annotations__', {}) for property_name in arg: if property_name in required_property_names: seen_required_properties.add(property_name) @@ -1778,14 +1551,17 @@ def __validate_arg_presence(cls, arg): cls.__name__, len(missing_required_arguments), "s" if len(missing_required_arguments) > 1 else "", - missing_required_arguments, + missing_required_arguments ) ) if invalid_arguments: invalid_arguments.sort() raise ApiTypeError( "{} was passed {} invalid argument{}: {}".format( - cls.__name__, len(invalid_arguments), "s" if len(invalid_arguments) > 1 else "", invalid_arguments + cls.__name__, + len(invalid_arguments), + "s" if len(invalid_arguments) > 1 else "", + invalid_arguments ) ) @@ -1804,11 +1580,11 @@ def __validate_args(cls, arg, validation_metadata: ValidationMetadata): ApiTypeError - for missing required arguments, or for invalid properties """ path_to_schemas = {} - additional_properties = getattr(cls.MetaOapg, "additional_properties", UnsetAnyTypeSchema) - properties = getattr(cls.MetaOapg, "properties", {}) - property_annotations = getattr(properties, "__annotations__", {}) + additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema) + properties = getattr(cls.MetaOapg, 'properties', {}) + property_annotations = getattr(properties, '__annotations__', {}) for property_name, value in arg.items(): - path_to_item = validation_metadata.path_to_item + (property_name,) + path_to_item = validation_metadata.path_to_item+(property_name,) if property_name in property_annotations: schema = property_annotations[property_name] elif additional_properties is not NotAnyTypeSchema: @@ -1822,17 +1598,15 @@ def __validate_args(cls, arg, validation_metadata: ValidationMetadata): continue schema = additional_properties else: - raise ApiTypeError( - "Unable to find schema for value={} in class={} at path_to_item={}".format( - value, cls, validation_metadata.path_to_item + (property_name,) - ) - ) + raise ApiTypeError('Unable to find schema for value={} in class={} at path_to_item={}'.format( + value, cls, validation_metadata.path_to_item+(property_name,) + )) schema = cls._get_class_oapg(schema) arg_validation_metadata = ValidationMetadata( from_server=validation_metadata.from_server, configuration=validation_metadata.configuration, path_to_item=path_to_item, - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, + validated_path_to_schemas=validation_metadata.validated_path_to_schemas ) if arg_validation_metadata.validation_ran_earlier(schema): add_deeper_validated_schemas(arg_validation_metadata, path_to_schemas) @@ -1842,31 +1616,31 @@ def __validate_args(cls, arg, validation_metadata: ValidationMetadata): return path_to_schemas @classmethod - def __check_dict_validations(cls, arg, validation_metadata: ValidationMetadata): - if not hasattr(cls, "MetaOapg"): + def __check_dict_validations( + cls, + arg, + validation_metadata: ValidationMetadata + ): + if not hasattr(cls, 'MetaOapg'): return - if ( - cls._is_json_validation_enabled_oapg("maxProperties", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "max_properties") - and len(arg) > cls.MetaOapg.max_properties - ): + if (cls._is_json_validation_enabled_oapg('maxProperties', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'max_properties') and + len(arg) > cls.MetaOapg.max_properties): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of properties must be less than or equal to", constraint_value=cls.MetaOapg.max_properties, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("minProperties", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "min_properties") - and len(arg) < cls.MetaOapg.min_properties - ): + if (cls._is_json_validation_enabled_oapg('minProperties', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'min_properties') and + len(arg) < cls.MetaOapg.min_properties): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of properties must be greater than or equal to", constraint_value=cls.MetaOapg.min_properties, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) @classmethod @@ -1906,15 +1680,14 @@ def _validate_oapg( disc_prop_name = list(discriminator.keys())[0] cls._ensure_discriminator_value_present_oapg(disc_prop_name, validation_metadata, arg) discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_prop_name, disc_payload_value=arg[disc_prop_name] - ) + disc_property_name=disc_prop_name, disc_payload_value=arg[disc_prop_name]) if discriminated_cls is None: raise ApiValueError( "Invalid discriminator value was passed in to {}.{} Only the values {} are allowed at {}".format( cls.__name__, disc_prop_name, list(discriminator[disc_prop_name].keys()), - validation_metadata.path_to_item + (disc_prop_name,), + validation_metadata.path_to_item + (disc_prop_name,) ) ) updated_vm = ValidationMetadata( @@ -1922,7 +1695,7 @@ def _validate_oapg( from_server=validation_metadata.from_server, path_to_item=validation_metadata.path_to_item, seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, + validated_path_to_schemas=validation_metadata.validated_path_to_schemas ) if updated_vm.validation_ran_earlier(discriminated_cls): add_deeper_validated_schemas(updated_vm, _path_to_schemas) @@ -1936,7 +1709,7 @@ def _get_properties_oapg( cls, arg: typing.Dict[str, typing.Any], path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]], + path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] ): """ DictBase _get_properties_oapg, this is how properties are set @@ -1948,7 +1721,9 @@ def _get_properties_oapg( property_path_to_item = path_to_item + (property_name_js,) property_cls = path_to_schemas[property_path_to_item] new_value = property_cls._get_new_instance_without_conversion_oapg( - value, property_path_to_item, path_to_schemas + value, + property_path_to_item, + path_to_schemas ) dict_items[property_name_js] = new_value @@ -1956,7 +1731,7 @@ def _get_properties_oapg( def __setattr__(self, name: str, value: typing.Any): if not isinstance(self, FileIO): - raise AttributeError("property setting not supported on immutable instances") + raise AttributeError('property setting not supported on immutable instances') def __getattr__(self, name: str): """ @@ -1983,7 +1758,7 @@ def __getitem__(self, name: str): return super().__getattr__(name) return super().__getitem__(name) - def get_item_oapg(self, name: str) -> typing.Union["AnyTypeSchema", Unset]: + def get_item_oapg(self, name: str) -> typing.Union['AnyTypeSchema', Unset]: # dict_instance[name] accessor if not isinstance(self, frozendict.frozendict): raise NotImplementedError() @@ -1994,30 +1769,10 @@ def get_item_oapg(self, name: str) -> typing.Union["AnyTypeSchema", Unset]: def cast_to_allowed_types( - arg: typing.Union[ - str, - date, - datetime, - uuid.UUID, - decimal.Decimal, - int, - float, - None, - dict, - frozendict.frozendict, - list, - tuple, - bytes, - Schema, - io.FileIO, - io.BufferedReader, - ], + arg: typing.Union[str, date, datetime, uuid.UUID, decimal.Decimal, int, float, None, dict, frozendict.frozendict, list, tuple, bytes, Schema, io.FileIO, io.BufferedReader], from_server: bool, - validated_path_to_schemas: typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], - ], - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(["args[0]"]), + validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]], + path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']), ) -> typing.Union[frozendict.frozendict, tuple, decimal.Decimal, str, bytes, BoolClass, NoneClass, FileIO]: """ Casts the input payload arg into the allowed types @@ -2049,18 +1804,11 @@ def cast_to_allowed_types( schema_classes.add(cls) validated_path_to_schemas[path_to_item] = schema_classes - type_error = ApiTypeError( - f"Invalid type. Required value type is str and passed type was {type(arg)} at {path_to_item}" - ) + type_error = ApiTypeError(f"Invalid type. Required value type is str and passed type was {type(arg)} at {path_to_item}") if isinstance(arg, str): return str(arg) elif isinstance(arg, (dict, frozendict.frozendict)): - return frozendict.frozendict( - { - key: cast_to_allowed_types(val, from_server, validated_path_to_schemas, path_to_item + (key,)) - for key, val in arg.items() - } - ) + return frozendict.frozendict({key: cast_to_allowed_types(val, from_server, validated_path_to_schemas, path_to_item + (key,)) for key, val in arg.items()}) elif isinstance(arg, (bool, BoolClass)): """ this check must come before isinstance(arg, (int, float)) @@ -2076,15 +1824,10 @@ def cast_to_allowed_types( if decimal_from_float.as_integer_ratio()[1] == 1: # 9.0 -> Decimal('9.0') # 3.4028234663852886e+38 -> Decimal('340282346638528859811704183484516925440.0') - return decimal.Decimal(str(decimal_from_float) + ".0") + return decimal.Decimal(str(decimal_from_float)+'.0') return decimal_from_float elif isinstance(arg, (tuple, list)): - return tuple( - [ - cast_to_allowed_types(item, from_server, validated_path_to_schemas, path_to_item + (i,)) - for i, item in enumerate(arg) - ] - ) + return tuple([cast_to_allowed_types(item, from_server, validated_path_to_schemas, path_to_item + (i,)) for i, item in enumerate(arg)]) elif isinstance(arg, (none_type, NoneClass)): return NoneClass.NONE elif isinstance(arg, (date, datetime)): @@ -2101,10 +1844,11 @@ def cast_to_allowed_types( return bytes(arg) elif isinstance(arg, (io.FileIO, io.BufferedReader)): return FileIO(arg) - raise ValueError("Invalid type passed in got input={} type={}".format(arg, type(arg))) + raise ValueError('Invalid type passed in got input={} type={}'.format(arg, type(arg))) class ComposedBase(Discriminable): + @classmethod def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata): path_to_schemas = defaultdict(set) @@ -2154,7 +1898,12 @@ def __get_oneof_class( return path_to_schemas @classmethod - def __get_anyof_classes(cls, arg, discriminated_cls, validation_metadata: ValidationMetadata): + def __get_anyof_classes( + cls, + arg, + discriminated_cls, + validation_metadata: ValidationMetadata + ): anyof_classes = [] path_to_schemas = defaultdict(set) for anyof_cls in cls.MetaOapg.any_of(): @@ -2183,10 +1932,7 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], - ]: + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: """ ComposedBase _validate_oapg We return dynamic classes of different bases depending upon the inputs @@ -2210,12 +1956,12 @@ def _validate_oapg( from_server=validation_metadata.from_server, path_to_item=validation_metadata.path_to_item, seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, + validated_path_to_schemas=validation_metadata.validated_path_to_schemas ) # process composed schema discriminator = None - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "discriminator"): + if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'discriminator'): discriminator = cls.MetaOapg.discriminator() discriminated_cls = None if discriminator and arg and isinstance(arg, frozendict.frozendict): @@ -2223,8 +1969,7 @@ def _validate_oapg( cls._ensure_discriminator_value_present_oapg(disc_property_name, updated_vm, arg) # get discriminated_cls by looking at the dict in the current class discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=arg[disc_property_name] - ) + disc_property_name=disc_property_name, disc_payload_value=arg[disc_property_name]) if discriminated_cls is None: raise ApiValueError( "Invalid discriminator value '{}' was passed in to {}.{} Only the values {} are allowed at {}".format( @@ -2232,25 +1977,29 @@ def _validate_oapg( cls.__name__, disc_property_name, list(discriminator[disc_property_name].keys()), - updated_vm.path_to_item + (disc_property_name,), + updated_vm.path_to_item + (disc_property_name,) ) ) - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "all_of"): + if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'all_of'): other_path_to_schemas = cls.__get_allof_classes(arg, validation_metadata=updated_vm) update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "one_of"): + if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'one_of'): other_path_to_schemas = cls.__get_oneof_class( - arg, discriminated_cls=discriminated_cls, validation_metadata=updated_vm + arg, + discriminated_cls=discriminated_cls, + validation_metadata=updated_vm ) update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "any_of"): + if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'any_of'): other_path_to_schemas = cls.__get_anyof_classes( - arg, discriminated_cls=discriminated_cls, validation_metadata=updated_vm + arg, + discriminated_cls=discriminated_cls, + validation_metadata=updated_vm ) update(path_to_schemas, other_path_to_schemas) not_cls = None - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "not_schema"): + if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'not_schema'): not_cls = cls.MetaOapg.not_schema not_cls = cls._get_class_oapg(not_cls) if not_cls: @@ -2289,29 +2038,37 @@ class ComposedSchema( BoolBase, NoneBase, Schema, - NoneFrozenDictTupleStrDecimalBoolMixin, + NoneFrozenDictTupleStrDecimalBoolMixin ): @classmethod def from_openapi_data_oapg(cls, *args: typing.Any, _configuration: typing.Optional[Configuration] = None, **kwargs): if not args: if not kwargs: - raise ApiTypeError("{} is missing required input data in args or kwargs".format(cls.__name__)) - args = (kwargs,) + raise ApiTypeError('{} is missing required input data in args or kwargs'.format(cls.__name__)) + args = (kwargs, ) return super().from_openapi_data_oapg(args[0], _configuration=_configuration) -class ListSchema(ListBase, Schema, TupleMixin): +class ListSchema( + ListBase, + Schema, + TupleMixin +): + @classmethod - def from_openapi_data_oapg( - cls, arg: typing.List[typing.Any], _configuration: typing.Optional[Configuration] = None - ): + def from_openapi_data_oapg(cls, arg: typing.List[typing.Any], _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[typing.List[typing.Any], typing.Tuple[typing.Any]], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) -class NoneSchema(NoneBase, Schema, NoneMixin): +class NoneSchema( + NoneBase, + Schema, + NoneMixin +): + @classmethod def from_openapi_data_oapg(cls, arg: None, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) @@ -2320,16 +2077,18 @@ def __new__(cls, _arg: None, **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) -class NumberSchema(NumberBase, Schema, DecimalMixin): +class NumberSchema( + NumberBase, + Schema, + DecimalMixin +): """ This is used for type: number with no format Both integers AND floats are accepted """ @classmethod - def from_openapi_data_oapg( - cls, arg: typing.Union[int, float], _configuration: typing.Optional[Configuration] = None - ): + def from_openapi_data_oapg(cls, arg: typing.Union[int, float], _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[decimal.Decimal, int, float], **kwargs: Configuration): @@ -2348,6 +2107,7 @@ def as_int_oapg(self) -> int: @classmethod def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): if isinstance(arg, decimal.Decimal): + denominator = arg.as_integer_ratio()[-1] if denominator != 1: raise ApiValueError( @@ -2369,6 +2129,7 @@ def _validate_oapg( class IntSchema(IntBase, NumberSchema): + @classmethod def from_openapi_data_oapg(cls, arg: int, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) @@ -2402,7 +2163,10 @@ def _validate_oapg( return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Int32Schema(Int32Base, IntSchema): +class Int32Schema( + Int32Base, + IntSchema +): pass @@ -2431,13 +2195,16 @@ def _validate_oapg( return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Int64Schema(Int64Base, IntSchema): +class Int64Schema( + Int64Base, + IntSchema +): pass class Float32Base: - __inclusive_minimum = decimal.Decimal(-3.4028234663852886e38) - __inclusive_maximum = decimal.Decimal(3.4028234663852886e38) + __inclusive_minimum = decimal.Decimal(-3.4028234663852886e+38) + __inclusive_maximum = decimal.Decimal(3.4028234663852886e+38) @classmethod def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): @@ -2460,15 +2227,19 @@ def _validate_oapg( return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Float32Schema(Float32Base, NumberSchema): +class Float32Schema( + Float32Base, + NumberSchema +): + @classmethod def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) class Float64Base: - __inclusive_minimum = decimal.Decimal(-1.7976931348623157e308) - __inclusive_maximum = decimal.Decimal(1.7976931348623157e308) + __inclusive_minimum = decimal.Decimal(-1.7976931348623157E+308) + __inclusive_maximum = decimal.Decimal(1.7976931348623157E+308) @classmethod def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): @@ -2490,15 +2261,22 @@ def _validate_oapg( cls.__validate_format(arg, validation_metadata=validation_metadata) return super()._validate_oapg(arg, validation_metadata=validation_metadata) +class Float64Schema( + Float64Base, + NumberSchema +): -class Float64Schema(Float64Base, NumberSchema): @classmethod def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): # todo check format return super().from_openapi_data_oapg(arg, _configuration=_configuration) -class StrSchema(StrBase, Schema, StrMixin): +class StrSchema( + StrBase, + Schema, + StrMixin +): """ date + datetime string types must inherit from this class That is because one can validate a str payload as both: @@ -2507,7 +2285,7 @@ class StrSchema(StrBase, Schema, StrMixin): """ @classmethod - def from_openapi_data_oapg(cls, arg: str, _configuration: typing.Optional[Configuration] = None) -> "StrSchema": + def from_openapi_data_oapg(cls, arg: str, _configuration: typing.Optional[Configuration] = None) -> 'StrSchema': return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: Configuration): @@ -2515,21 +2293,25 @@ def __new__(cls, _arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: C class UUIDSchema(UUIDBase, StrSchema): + def __new__(cls, _arg: typing.Union[str, uuid.UUID], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) class DateSchema(DateBase, StrSchema): + def __new__(cls, _arg: typing.Union[str, date], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) class DateTimeSchema(DateTimeBase, StrSchema): + def __new__(cls, _arg: typing.Union[str, datetime], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) class DecimalSchema(DecimalBase, StrSchema): + def __new__(cls, _arg: str, **kwargs: Configuration): """ Note: Decimals may not be passed in because cast_to_allowed_types is only invoked once for payloads @@ -2542,16 +2324,21 @@ def __new__(cls, _arg: str, **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) -class BytesSchema(Schema, BytesMixin): +class BytesSchema( + Schema, + BytesMixin +): """ this class will subclass bytes and is immutable """ - def __new__(cls, _arg: bytes, **kwargs: Configuration): return super(Schema, cls).__new__(cls, _arg) -class FileSchema(Schema, FileMixin): +class FileSchema( + Schema, + FileMixin +): """ This class is NOT immutable Dynamic classes are built using it for example when AnyType allows in binary data @@ -2577,7 +2364,12 @@ class BinaryBase: pass -class BinarySchema(ComposedBase, BinaryBase, Schema, BinaryMixin): +class BinarySchema( + ComposedBase, + BinaryBase, + Schema, + BinaryMixin +): class MetaOapg: @staticmethod def one_of(): @@ -2590,7 +2382,12 @@ def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwar return super().__new__(cls, _arg) -class BoolSchema(BoolBase, Schema, BoolMixin): +class BoolSchema( + BoolBase, + Schema, + BoolMixin +): + @classmethod def from_openapi_data_oapg(cls, arg: bool, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) @@ -2600,7 +2397,14 @@ def __new__(cls, _arg: bool, **kwargs: ValidationMetadata): class AnyTypeSchema( - DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase, Schema, NoneFrozenDictTupleStrDecimalBoolFileBytesMixin + DictBase, + ListBase, + NumberBase, + StrBase, + BoolBase, + NoneBase, + Schema, + NoneFrozenDictTupleStrDecimalBoolFileBytesMixin ): # Python representation of a schema defined as true or {} pass @@ -2627,7 +2431,7 @@ def __new__( cls, *_args, _configuration: typing.Optional[Configuration] = None, - ) -> "NotAnyTypeSchema": + ) -> 'NotAnyTypeSchema': return super().__new__( cls, *_args, @@ -2635,35 +2439,16 @@ def __new__( ) -class DictSchema(DictBase, Schema, FrozenDictMixin): +class DictSchema( + DictBase, + Schema, + FrozenDictMixin +): @classmethod - def from_openapi_data_oapg( - cls, arg: typing.Dict[str, typing.Any], _configuration: typing.Optional[Configuration] = None - ): + def from_openapi_data_oapg(cls, arg: typing.Dict[str, typing.Any], _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict], - **kwargs: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - bytes, - Schema, - Unset, - ValidationMetadata, - ], - ): + def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict], **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, bytes, Schema, Unset, ValidationMetadata]): return super().__new__(cls, *_args, **kwargs) @@ -2672,7 +2457,8 @@ def __new__( @functools.lru_cache() def get_new_class( - class_name: str, bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...] + class_name: str, + bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...] ) -> typing.Type[Schema]: """ Returns a new class that is made with the subclass bases @@ -2686,4 +2472,4 @@ def get_new_class( def log_cache_usage(cache_fn): if LOG_CACHE_USAGE: - print(cache_fn.__name__, cache_fn.cache_info()) + print(cache_fn.__name__, cache_fn.cache_info()) \ No newline at end of file From 6b8275e3c7ccf6edb82b57de21fea005f3d5ccdf Mon Sep 17 00:00:00 2001 From: Anirudh-Scale Date: Mon, 20 Mar 2023 15:43:10 +0000 Subject: [PATCH 02/11] format --- launch/api_client/api_client.py | 430 ++++----- launch/api_client/apis/__init__.py | 2 +- launch/api_client/apis/path_to_api.py | 4 +- launch/api_client/apis/tag_to_api.py | 4 +- launch/api_client/apis/tags/default_api.py | 21 +- launch/api_client/configuration.py | 209 ++-- launch/api_client/exceptions.py | 11 +- .../model/batch_job_serialization_format.py | 10 +- .../model/batch_job_serialization_format.pyi | 9 +- launch/api_client/model/batch_job_status.py | 18 +- launch/api_client/model/batch_job_status.pyi | 13 +- launch/api_client/model/callback_auth.py | 54 +- launch/api_client/model/callback_auth.pyi | 54 +- .../api_client/model/callback_basic_auth.py | 130 ++- .../api_client/model/callback_basic_auth.pyi | 94 +- launch/api_client/model/callbackm_tls_auth.py | 131 ++- .../api_client/model/callbackm_tls_auth.pyi | 95 +- .../model/clone_model_bundle_request.py | 4 +- .../model/clone_model_bundle_request.pyi | 8 +- .../model/clone_model_bundle_v1_request.py | 106 +- .../model/clone_model_bundle_v1_request.pyi | 88 +- .../model/create_async_task_response.py | 16 +- .../model/create_async_task_response.pyi | 20 +- .../model/create_async_task_v1_response.py | 68 +- .../model/create_async_task_v1_response.pyi | 52 +- .../model/create_batch_job_request.py | 44 +- .../model/create_batch_job_request.pyi | 36 +- .../create_batch_job_resource_requests.py | 376 ++++++-- .../create_batch_job_resource_requests.pyi | 320 ++++-- .../model/create_batch_job_response.py | 12 +- .../model/create_batch_job_response.pyi | 20 +- .../model/create_batch_job_v1_request.py | 193 ++-- .../model/create_batch_job_v1_request.pyi | 158 +-- .../model/create_batch_job_v1_response.py | 68 +- .../model/create_batch_job_v1_response.pyi | 52 +- .../model/create_model_bundle_request.py | 44 +- .../model/create_model_bundle_request.pyi | 48 +- .../model/create_model_bundle_response.py | 16 +- .../model/create_model_bundle_response.pyi | 12 +- .../model/create_model_bundle_v1_request.py | 241 +++-- .../model/create_model_bundle_v1_request.pyi | 182 ++-- .../model/create_model_bundle_v1_response.py | 68 +- .../model/create_model_bundle_v1_response.pyi | 60 +- .../model/create_model_endpoint_request.py | 88 +- .../model/create_model_endpoint_request.pyi | 108 +-- .../model/create_model_endpoint_response.py | 8 +- .../model/create_model_endpoint_response.pyi | 12 +- .../model/create_model_endpoint_v1_request.py | 724 +++++++++----- .../create_model_endpoint_v1_request.pyi | 565 +++++++---- .../create_model_endpoint_v1_response.py | 72 +- .../create_model_endpoint_v1_response.pyi | 60 +- .../model/delete_model_endpoint_response.py | 16 +- .../model/delete_model_endpoint_response.pyi | 20 +- .../delete_model_endpoint_v1_response.py | 68 +- .../delete_model_endpoint_v1_response.pyi | 52 +- .../model/endpoint_predict_request.py | 24 +- .../model/endpoint_predict_request.pyi | 28 +- .../model/endpoint_predict_v1_request.py | 177 +++- .../model/endpoint_predict_v1_request.pyi | 133 ++- .../model/get_async_task_response.py | 12 +- .../model/get_async_task_response.pyi | 20 +- .../model/get_async_task_v1_response.py | 154 ++- .../model/get_async_task_v1_response.pyi | 120 ++- .../model/get_batch_job_response.py | 8 +- .../model/get_batch_job_response.pyi | 16 +- .../model/get_batch_job_v1_response.py | 162 +++- .../model/get_batch_job_v1_response.pyi | 126 ++- .../model/get_model_endpoint_response.py | 96 +- .../model/get_model_endpoint_response.pyi | 96 +- .../model/get_model_endpoint_v1_response.py | 500 ++++++---- .../model/get_model_endpoint_v1_response.pyi | 374 ++++--- launch/api_client/model/gpu_type.py | 12 +- launch/api_client/model/gpu_type.pyi | 10 +- .../api_client/model/http_validation_error.py | 85 +- .../model/http_validation_error.pyi | 67 +- .../model/list_model_bundles_response.py | 20 +- .../model/list_model_bundles_response.pyi | 24 +- .../model/list_model_bundles_v1_response.py | 92 +- .../model/list_model_bundles_v1_response.pyi | 72 +- .../model/list_model_endpoints_response.py | 16 +- .../model/list_model_endpoints_response.pyi | 12 +- .../model/list_model_endpoints_v1_response.py | 94 +- .../list_model_endpoints_v1_response.pyi | 82 +- .../model/model_bundle_environment_params.py | 156 ++- .../model/model_bundle_environment_params.pyi | 122 ++- .../model/model_bundle_framework_type.py | 12 +- .../model/model_bundle_framework_type.pyi | 10 +- .../api_client/model/model_bundle_order_by.py | 10 +- .../model/model_bundle_order_by.pyi | 9 +- .../model/model_bundle_packaging_type.py | 20 +- .../model/model_bundle_packaging_type.pyi | 18 +- .../api_client/model/model_bundle_response.py | 60 +- .../model/model_bundle_response.pyi | 64 +- .../model/model_bundle_v1_response.py | 330 +++++-- .../model/model_bundle_v1_response.pyi | 246 +++-- .../model/model_endpoint_deployment_state.py | 198 ++-- .../model/model_endpoint_deployment_state.pyi | 148 +-- .../model/model_endpoint_order_by.py | 12 +- .../model/model_endpoint_order_by.pyi | 10 +- .../model/model_endpoint_resource_state.py | 371 +++++-- .../model/model_endpoint_resource_state.pyi | 314 ++++-- .../api_client/model/model_endpoint_status.py | 16 +- .../model/model_endpoint_status.pyi | 12 +- .../api_client/model/model_endpoint_type.py | 10 +- .../api_client/model/model_endpoint_type.pyi | 9 +- launch/api_client/model/request_schema.py | 1 + launch/api_client/model/request_schema.pyi | 1 + launch/api_client/model/response_schema.py | 1 + launch/api_client/model/response_schema.pyi | 1 + .../model/sync_endpoint_predict_response.py | 4 +- .../model/sync_endpoint_predict_response.pyi | 12 +- .../sync_endpoint_predict_v1_response.py | 137 ++- .../sync_endpoint_predict_v1_response.pyi | 111 ++- launch/api_client/model/task_status.py | 16 +- launch/api_client/model/task_status.pyi | 12 +- .../model/update_batch_job_request.py | 12 +- .../model/update_batch_job_request.pyi | 20 +- .../model/update_batch_job_response.py | 16 +- .../model/update_batch_job_response.pyi | 20 +- .../model/update_batch_job_v1_request.py | 68 +- .../model/update_batch_job_v1_request.pyi | 52 +- .../model/update_batch_job_v1_response.py | 68 +- .../model/update_batch_job_v1_response.pyi | 52 +- .../model/update_model_endpoint_request.py | 88 +- .../model/update_model_endpoint_request.pyi | 96 +- .../model/update_model_endpoint_response.py | 8 +- .../model/update_model_endpoint_response.pyi | 12 +- .../model/update_model_endpoint_v1_request.py | 688 +++++++++---- .../update_model_endpoint_v1_request.pyi | 548 +++++++---- .../update_model_endpoint_v1_response.py | 72 +- .../update_model_endpoint_v1_response.pyi | 60 +- launch/api_client/model/validation_error.py | 226 +++-- launch/api_client/model/validation_error.pyi | 190 +++- .../api_client/paths/healthcheck/__init__.py | 2 +- launch/api_client/paths/healthcheck/get.py | 71 +- launch/api_client/paths/healthcheck/get.pyi | 68 +- launch/api_client/paths/healthz/__init__.py | 2 +- launch/api_client/paths/healthz/get.py | 71 +- launch/api_client/paths/healthz/get.pyi | 68 +- launch/api_client/paths/readyz/__init__.py | 2 +- launch/api_client/paths/readyz/get.py | 71 +- launch/api_client/paths/readyz/get.pyi | 68 +- .../paths/v1_async_tasks/__init__.py | 2 +- .../api_client/paths/v1_async_tasks/post.py | 140 ++- .../api_client/paths/v1_async_tasks/post.pyi | 138 +-- .../paths/v1_async_tasks_task_id/__init__.py | 2 +- .../paths/v1_async_tasks_task_id/get.py | 102 +- .../paths/v1_async_tasks_task_id/get.pyi | 99 +- .../paths/v1_batch_jobs/__init__.py | 2 +- launch/api_client/paths/v1_batch_jobs/post.py | 122 +-- .../api_client/paths/v1_batch_jobs/post.pyi | 118 +-- .../v1_batch_jobs_batch_job_id/__init__.py | 2 +- .../paths/v1_batch_jobs_batch_job_id/get.py | 102 +- .../paths/v1_batch_jobs_batch_job_id/get.pyi | 99 +- .../paths/v1_batch_jobs_batch_job_id/put.py | 142 ++- .../paths/v1_batch_jobs_batch_job_id/put.pyi | 140 +-- .../paths/v1_model_bundles/__init__.py | 2 +- .../api_client/paths/v1_model_bundles/get.py | 99 +- .../api_client/paths/v1_model_bundles/get.pyi | 96 +- .../api_client/paths/v1_model_bundles/post.py | 122 +-- .../paths/v1_model_bundles/post.pyi | 118 +-- .../__init__.py | 2 +- .../post.py | 122 +-- .../post.pyi | 118 +-- .../paths/v1_model_bundles_latest/__init__.py | 2 +- .../paths/v1_model_bundles_latest/get.py | 100 +- .../paths/v1_model_bundles_latest/get.pyi | 97 +- .../__init__.py | 2 +- .../v1_model_bundles_model_bundle_id/get.py | 102 +- .../v1_model_bundles_model_bundle_id/get.pyi | 99 +- .../paths/v1_model_endpoints/__init__.py | 2 +- .../paths/v1_model_endpoints/get.py | 99 +- .../paths/v1_model_endpoints/get.pyi | 96 +- .../paths/v1_model_endpoints/post.py | 122 +-- .../paths/v1_model_endpoints/post.pyi | 118 +-- .../paths/v1_model_endpoints_api/__init__.py | 2 +- .../paths/v1_model_endpoints_api/get.py | 73 +- .../paths/v1_model_endpoints_api/get.pyi | 68 +- .../__init__.py | 2 +- .../delete.py | 102 +- .../delete.pyi | 99 +- .../get.py | 102 +- .../get.pyi | 99 +- .../put.py | 142 ++- .../put.pyi | 140 +-- .../__init__.py | 2 +- .../v1_model_endpoints_schema_json/get.py | 73 +- .../v1_model_endpoints_schema_json/get.pyi | 68 +- .../paths/v1_sync_tasks/__init__.py | 2 +- launch/api_client/paths/v1_sync_tasks/post.py | 140 ++- .../api_client/paths/v1_sync_tasks/post.pyi | 138 +-- launch/api_client/rest.py | 136 +-- launch/api_client/schemas.py | 909 +++++++++++------- 193 files changed, 9929 insertions(+), 8294 deletions(-) diff --git a/launch/api_client/api_client.py b/launch/api_client/api_client.py index 6df66791..ed22d00e 100644 --- a/launch/api_client/api_client.py +++ b/launch/api_client/api_client.py @@ -53,7 +53,7 @@ def __eq__(self, other): class JSONEncoder(json.JSONEncoder): - compact_separators = (',', ':') + compact_separators = (",", ":") def default(self, obj): if isinstance(obj, str): @@ -74,24 +74,24 @@ def default(self, obj): return {key: self.default(val) for key, val in obj.items()} elif isinstance(obj, (list, tuple)): return [self.default(item) for item in obj] - raise ApiValueError('Unable to prepare type {} for serialization'.format(obj.__class__.__name__)) + raise ApiValueError("Unable to prepare type {} for serialization".format(obj.__class__.__name__)) class ParameterInType(enum.Enum): - QUERY = 'query' - HEADER = 'header' - PATH = 'path' - COOKIE = 'cookie' + QUERY = "query" + HEADER = "header" + PATH = "path" + COOKIE = "cookie" class ParameterStyle(enum.Enum): - MATRIX = 'matrix' - LABEL = 'label' - FORM = 'form' - SIMPLE = 'simple' - SPACE_DELIMITED = 'spaceDelimited' - PIPE_DELIMITED = 'pipeDelimited' - DEEP_OBJECT = 'deepObject' + MATRIX = "matrix" + LABEL = "label" + FORM = "form" + SIMPLE = "simple" + SPACE_DELIMITED = "spaceDelimited" + PIPE_DELIMITED = "pipeDelimited" + DEEP_OBJECT = "deepObject" class PrefixSeparatorIterator: @@ -101,10 +101,10 @@ def __init__(self, prefix: str, separator: str): self.prefix = prefix self.separator = separator self.first = True - if separator in {'.', '|', '%20'}: + if separator in {".", "|", "%20"}: item_separator = separator else: - item_separator = ',' + item_separator = "," self.item_separator = item_separator def __iter__(self): @@ -146,7 +146,7 @@ def __ref6570_item_value(in_data: typing.Any, percent_encode: bool): elif isinstance(in_data, dict) and not in_data: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return None - raise ApiValueError('Unable to generate a ref6570 item representation of {}'.format(in_data)) + raise ApiValueError("Unable to generate a ref6570 item representation of {}".format(in_data)) @staticmethod def _to_dict(name: str, value: str): @@ -161,12 +161,12 @@ def __ref6570_str_float_int_expansion( percent_encode: bool, prefix_separator_iterator: PrefixSeparatorIterator, var_name_piece: str, - named_parameter_expansion: bool + named_parameter_expansion: bool, ) -> str: item_value = cls.__ref6570_item_value(in_data, percent_encode) - if item_value is None or (item_value == '' and prefix_separator_iterator.separator == ';'): + if item_value is None or (item_value == "" and prefix_separator_iterator.separator == ";"): return next(prefix_separator_iterator) + var_name_piece - value_pair_equals = '=' if named_parameter_expansion else '' + value_pair_equals = "=" if named_parameter_expansion else "" return next(prefix_separator_iterator) + var_name_piece + value_pair_equals + item_value @classmethod @@ -178,20 +178,20 @@ def __ref6570_list_expansion( percent_encode: bool, prefix_separator_iterator: PrefixSeparatorIterator, var_name_piece: str, - named_parameter_expansion: bool + named_parameter_expansion: bool, ) -> str: item_values = [cls.__ref6570_item_value(v, percent_encode) for v in in_data] item_values = [v for v in item_values if v is not None] if not item_values: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return "" - value_pair_equals = '=' if named_parameter_expansion else '' + value_pair_equals = "=" if named_parameter_expansion else "" if not explode: return ( - next(prefix_separator_iterator) + - var_name_piece + - value_pair_equals + - prefix_separator_iterator.item_separator.join(item_values) + next(prefix_separator_iterator) + + var_name_piece + + value_pair_equals + + prefix_separator_iterator.item_separator.join(item_values) ) # exploded return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( @@ -207,27 +207,27 @@ def __ref6570_dict_expansion( percent_encode: bool, prefix_separator_iterator: PrefixSeparatorIterator, var_name_piece: str, - named_parameter_expansion: bool + named_parameter_expansion: bool, ) -> str: in_data_transformed = {key: cls.__ref6570_item_value(val, percent_encode) for key, val in in_data.items()} in_data_transformed = {key: val for key, val in in_data_transformed.items() if val is not None} if not in_data_transformed: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return "" - value_pair_equals = '=' if named_parameter_expansion else '' + value_pair_equals = "=" if named_parameter_expansion else "" if not explode: return ( - next(prefix_separator_iterator) + - var_name_piece + value_pair_equals + - prefix_separator_iterator.item_separator.join( - prefix_separator_iterator.item_separator.join( - item_pair - ) for item_pair in in_data_transformed.items() + next(prefix_separator_iterator) + + var_name_piece + + value_pair_equals + + prefix_separator_iterator.item_separator.join( + prefix_separator_iterator.item_separator.join(item_pair) + for item_pair in in_data_transformed.items() ) ) # exploded return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( - [key + '=' + val for key, val in in_data_transformed.items()] + [key + "=" + val for key, val in in_data_transformed.items()] ) @classmethod @@ -237,13 +237,13 @@ def _ref6570_expansion( in_data: typing.Any, explode: bool, percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator + prefix_separator_iterator: PrefixSeparatorIterator, ) -> str: """ Separator is for separate variables like dict with explode true, not for array item separation """ - named_parameter_expansion = prefix_separator_iterator.separator in {'&', ';'} - var_name_piece = variable_name if named_parameter_expansion else '' + named_parameter_expansion = prefix_separator_iterator.separator in {"&", ";"} + var_name_piece = variable_name if named_parameter_expansion else "" if type(in_data) in {str, float, int}: return cls.__ref6570_str_float_int_expansion( variable_name, @@ -252,7 +252,7 @@ def _ref6570_expansion( percent_encode, prefix_separator_iterator, var_name_piece, - named_parameter_expansion + named_parameter_expansion, ) elif isinstance(in_data, none_type): # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 @@ -265,7 +265,7 @@ def _ref6570_expansion( percent_encode, prefix_separator_iterator, var_name_piece, - named_parameter_expansion + named_parameter_expansion, ) elif isinstance(in_data, dict): return cls.__ref6570_dict_expansion( @@ -275,10 +275,10 @@ def _ref6570_expansion( percent_encode, prefix_separator_iterator, var_name_piece, - named_parameter_expansion + named_parameter_expansion, ) # bool, bytes, etc - raise ApiValueError('Unable to generate a ref6570 representation of {}'.format(in_data)) + raise ApiValueError("Unable to generate a ref6570 representation of {}".format(in_data)) class StyleFormSerializer(ParameterSerializerBase): @@ -294,35 +294,34 @@ def _serialize_form( name: str, explode: bool, percent_encode: bool, - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None, ) -> str: if prefix_separator_iterator is None: - prefix_separator_iterator = PrefixSeparatorIterator('', '&') + prefix_separator_iterator = PrefixSeparatorIterator("", "&") return self._ref6570_expansion( variable_name=name, in_data=in_data, explode=explode, percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) class StyleSimpleSerializer(ParameterSerializerBase): - def _serialize_simple( self, in_data: typing.Union[None, int, float, str, bool, dict, list], name: str, explode: bool, - percent_encode: bool + percent_encode: bool, ) -> str: - prefix_separator_iterator = PrefixSeparatorIterator('', ',') + prefix_separator_iterator = PrefixSeparatorIterator("", ",") return self._ref6570_expansion( variable_name=name, in_data=in_data, explode=explode, percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) @@ -334,6 +333,7 @@ class JSONDetector: application/json-patch+json application/geo+json """ + __json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*") @classmethod @@ -369,7 +369,7 @@ class ParameterBase(JSONDetector): ParameterInType.HEADER: ParameterStyle.SIMPLE, ParameterInType.COOKIE: ParameterStyle.FORM, } - __disallowed_header_names = {'Accept', 'Content-Type', 'Authorization'} + __disallowed_header_names = {"Accept", "Content-Type", "Authorization"} _json_encoder = JSONEncoder() @classmethod @@ -379,7 +379,7 @@ def __verify_style_to_in_type(cls, style: typing.Optional[ParameterStyle], in_ty in_type_set = cls.__style_to_in_type[style] if in_type not in in_type_set: raise ValueError( - 'Invalid style and in_type combination. For style={} only in_type={} are allowed'.format( + "Invalid style and in_type combination. For style={} only in_type={} are allowed".format( style, in_type_set ) ) @@ -393,19 +393,19 @@ def __init__( explode: bool = False, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, ): if schema is None and content is None: - raise ValueError('Value missing; Pass in either schema or content') + raise ValueError("Value missing; Pass in either schema or content") if schema and content: - raise ValueError('Too many values provided. Both schema and content were provided. Only one may be input') + raise ValueError("Too many values provided. Both schema and content were provided. Only one may be input") if name in self.__disallowed_header_names and in_type is ParameterInType.HEADER: - raise ValueError('Invalid name, name may not be one of {}'.format(self.__disallowed_header_names)) + raise ValueError("Invalid name, name may not be one of {}".format(self.__disallowed_header_names)) self.__verify_style_to_in_type(style, in_type) if content is None and style is None: style = self.__in_type_to_default_style[in_type] if content is not None and in_type in self.__in_type_to_default_style and len(content) != 1: - raise ValueError('Invalid content length, content length must equal 1') + raise ValueError("Invalid content length, content length must equal 1") self.in_type = in_type self.name = name self.required = required @@ -416,9 +416,7 @@ 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) @@ -426,7 +424,6 @@ def _serialize_json( class PathParameter(ParameterBase, StyleSimpleSerializer): - def __init__( self, name: str, @@ -435,7 +432,7 @@ def __init__( explode: bool = False, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, ): super().__init__( name, @@ -445,34 +442,32 @@ def __init__( explode=explode, allow_reserved=allow_reserved, schema=schema, - content=content + content=content, ) def __serialize_label( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list] + self, in_data: typing.Union[None, int, float, str, bool, dict, list] ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator('.', '.') + prefix_separator_iterator = PrefixSeparatorIterator(".", ".") value = self._ref6570_expansion( variable_name=self.name, in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) return self._to_dict(self.name, value) def __serialize_matrix( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list] + self, in_data: typing.Union[None, int, float, str, bool, dict, list] ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator(';', ';') + prefix_separator_iterator = PrefixSeparatorIterator(";", ";") value = self._ref6570_expansion( variable_name=self.name, in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) return self._to_dict(self.name, value) @@ -480,18 +475,14 @@ def __serialize_simple( self, in_data: typing.Union[None, int, float, str, bool, dict, list], ) -> typing.Dict[str, str]: - value = self._serialize_simple( - in_data=in_data, - name=self.name, - explode=self.explode, - percent_encode=True - ) + value = self._serialize_simple(in_data=in_data, name=self.name, explode=self.explode, percent_encode=True) return self._to_dict(self.name, value) 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: cast_in_data = self.schema(in_data) @@ -519,11 +510,10 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self._to_dict(self.name, value) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) + raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) class QueryParameter(ParameterBase, StyleFormSerializer): - def __init__( self, name: str, @@ -532,7 +522,7 @@ def __init__( explode: typing.Optional[bool] = None, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, ): used_style = ParameterStyle.FORM if style is None else style used_explode = self._get_default_explode(used_style) if explode is None else explode @@ -545,13 +535,13 @@ def __init__( explode=used_explode, allow_reserved=allow_reserved, schema=schema, - content=content + content=content, ) def __serialize_space_delimited( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], ) -> typing.Dict[str, str]: if prefix_separator_iterator is None: prefix_separator_iterator = self.get_prefix_separator_iterator() @@ -560,14 +550,14 @@ def __serialize_space_delimited( in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) return self._to_dict(self.name, value) def __serialize_pipe_delimited( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], ) -> typing.Dict[str, str]: if prefix_separator_iterator is None: prefix_separator_iterator = self.get_prefix_separator_iterator() @@ -576,14 +566,14 @@ def __serialize_pipe_delimited( in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) return self._to_dict(self.name, value) def __serialize_form( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], ) -> typing.Dict[str, str]: if prefix_separator_iterator is None: prefix_separator_iterator = self.get_prefix_separator_iterator() @@ -592,23 +582,24 @@ def __serialize_form( name=self.name, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) return self._to_dict(self.name, value) def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterator]: if self.style is ParameterStyle.FORM: - return PrefixSeparatorIterator('?', '&') + return PrefixSeparatorIterator("?", "&") elif self.style is ParameterStyle.SPACE_DELIMITED: - return PrefixSeparatorIterator('', '%20') + return PrefixSeparatorIterator("", "%20") elif self.style is ParameterStyle.PIPE_DELIMITED: - return PrefixSeparatorIterator('', '|') + return PrefixSeparatorIterator("", "|") def serialize( self, in_data: typing.Union[ - Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None + 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]: if self.schema: cast_in_data = self.schema(in_data) @@ -642,15 +633,11 @@ def serialize( cast_in_data = self._json_encoder.default(cast_in_data) if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data, eliminate_whitespace=True) - return self._to_dict( - self.name, - next(prefix_separator_iterator) + self.name + '=' + quote(value) - ) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) + return self._to_dict(self.name, next(prefix_separator_iterator) + self.name + "=" + quote(value)) + raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) class CookieParameter(ParameterBase, StyleFormSerializer): - def __init__( self, name: str, @@ -659,7 +646,7 @@ def __init__( explode: typing.Optional[bool] = None, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, ): used_style = ParameterStyle.FORM if style is None and content is None and schema else style used_explode = self._get_default_explode(used_style) if explode is None else explode @@ -672,13 +659,14 @@ def __init__( explode=used_explode, allow_reserved=allow_reserved, schema=schema, - content=content + content=content, ) 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: cast_in_data = self.schema(in_data) @@ -697,7 +685,7 @@ def serialize( explode=self.explode, name=self.name, percent_encode=False, - prefix_separator_iterator=PrefixSeparatorIterator('', '&') + prefix_separator_iterator=PrefixSeparatorIterator("", "&"), ) return self._to_dict(self.name, value) # self.content will be length one @@ -707,7 +695,7 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self._to_dict(self.name, value) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) + raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) class HeaderParameter(ParameterBase, StyleSimpleSerializer): @@ -719,7 +707,7 @@ def __init__( explode: bool = False, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, ): super().__init__( name, @@ -729,7 +717,7 @@ def __init__( explode=explode, allow_reserved=allow_reserved, schema=schema, - content=content + content=content, ) @staticmethod @@ -744,7 +732,8 @@ 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: cast_in_data = self.schema(in_data) @@ -764,7 +753,7 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self.__to_headers(((self.name, value),)) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) + raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) class Encoding: @@ -793,6 +782,7 @@ class MediaType: The encoding object SHALL only apply to requestBody objects when the media type is multipart or application/x-www-form-urlencoded. """ + schema: typing.Optional[typing.Type[Schema]] = None encoding: typing.Optional[typing.Dict[str, Encoding]] = None @@ -807,7 +797,7 @@ def __init__( self, response: urllib3.HTTPResponse, body: typing.Union[Unset, Schema] = unset, - headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset + headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset, ): """ pycharm needs this to prevent 'Unexpected argument' warnings @@ -835,7 +825,7 @@ def __init__( ): self.headers = headers if content is not None and len(content) == 0: - raise ValueError('Invalid value for content, the content dict must have >= 1 entry') + raise ValueError("Invalid value for content, the content dict must have >= 1 entry") self.content = content self.response_cls = response_cls @@ -876,17 +866,16 @@ def __deserialize_application_octet_stream( a file will be written and returned """ if response.supports_chunked_reads(): - file_name = ( - self.__file_name_from_content_disposition(response.headers.get('content-disposition')) - or self.__file_name_from_response_url(response.geturl()) - ) + file_name = self.__file_name_from_content_disposition( + response.headers.get("content-disposition") + ) or self.__file_name_from_response_url(response.geturl()) if file_name is None: _fd, path = tempfile.mkstemp() else: path = os.path.join(tempfile.gettempdir(), file_name) - with open(path, 'wb') as new_file: + with open(path, "wb") as new_file: chunk_size = 1024 while True: data = response.read(chunk_size) @@ -895,27 +884,25 @@ def __deserialize_application_octet_stream( new_file.write(data) # release_conn is needed for streaming connections only response.release_conn() - new_file = open(path, 'rb') + new_file = open(path, "rb") return new_file else: 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(part.get_content_charset()) + part.get_param("name", header="Content-Disposition"): part.get_payload(decode=True).decode( + part.get_content_charset() + ) if part.get_content_charset() else part.get_payload() for part in msg.get_payload() } def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: - content_type = response.getheader('content-type') + content_type = response.getheader("content-type") deserialized_body = unset streamed = response.supports_chunked_reads() @@ -933,31 +920,22 @@ def deserialize(self, response: urllib3.HTTPResponse, configuration: Configurati body_schema = self.content[content_type].schema if body_schema is None: # some specs do not define response content media type schemas - return self.response_cls( - response=response, - headers=deserialized_headers, - body=unset - ) + return self.response_cls(response=response, headers=deserialized_headers, body=unset) if self._content_type_is_json(content_type): body_data = self.__deserialize_json(response) - elif content_type == 'application/octet-stream': + elif content_type == "application/octet-stream": body_data = self.__deserialize_application_octet_stream(response) - elif content_type.startswith('multipart/form-data'): + elif content_type.startswith("multipart/form-data"): body_data = self.__deserialize_multipart_form_data(response) - content_type = 'multipart/form-data' + content_type = "multipart/form-data" else: - raise NotImplementedError('Deserialization of {} has not yet been implemented'.format(content_type)) - deserialized_body = body_schema.from_openapi_data_oapg( - body_data, _configuration=configuration) + raise NotImplementedError("Deserialization of {} has not yet been implemented".format(content_type)) + deserialized_body = body_schema.from_openapi_data_oapg(body_data, _configuration=configuration) elif streamed: response.release_conn() - return self.response_cls( - response=response, - headers=deserialized_headers, - body=deserialized_body - ) + return self.response_cls(response=response, headers=deserialized_headers, body=deserialized_body) class ApiClient: @@ -990,7 +968,7 @@ def __init__( header_name: typing.Optional[str] = None, header_value: typing.Optional[str] = None, cookie: typing.Optional[str] = None, - pool_threads: int = 1 + pool_threads: int = 1, ): if configuration is None: configuration = Configuration() @@ -1003,7 +981,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.6/python' + self.user_agent = "OpenAPI-Generator/1.0.6/python" def __enter__(self): return self @@ -1016,13 +994,13 @@ def close(self): self._pool.close() self._pool.join() self._pool = None - if hasattr(atexit, 'unregister'): + if hasattr(atexit, "unregister"): atexit.unregister(self.close) @property def pool(self): """Create thread pool on first request - avoids instantiating unused threadpool for blocking clients. + avoids instantiating unused threadpool for blocking clients. """ if self._pool is None: atexit.register(self.close) @@ -1032,11 +1010,11 @@ def pool(self): @property def user_agent(self): """User agent for this API client""" - return self.default_headers['User-Agent'] + return self.default_headers["User-Agent"] @user_agent.setter def user_agent(self, value): - self.default_headers['User-Agent'] = value + self.default_headers["User-Agent"] = value def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value @@ -1053,15 +1031,13 @@ def __call_api( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, host: typing.Optional[str] = None, ) -> urllib3.HTTPResponse: - # header parameters used_headers = HTTPHeaderDict(self.default_headers) if self.cookie: - headers['Cookie'] = self.cookie + headers["Cookie"] = self.cookie # auth setting - self.update_params_for_auth(used_headers, - auth_settings, resource_path, method, body) + self.update_params_for_auth(used_headers, auth_settings, resource_path, method, body) # must happen after cookie setting and auth setting in case user is overriding those if headers: @@ -1159,7 +1135,7 @@ def call_api( stream, timeout, host, - ) + ), ) def request( @@ -1174,57 +1150,27 @@ def request( ) -> urllib3.HTTPResponse: """Makes the HTTP request using RESTClient.""" if method == "GET": - return self.rest_client.GET(url, - stream=stream, - timeout=timeout, - headers=headers) + return self.rest_client.GET(url, stream=stream, timeout=timeout, headers=headers) elif method == "HEAD": - return self.rest_client.HEAD(url, - stream=stream, - timeout=timeout, - headers=headers) + return self.rest_client.HEAD(url, stream=stream, timeout=timeout, headers=headers) elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) + return self.rest_client.OPTIONS( + url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body + ) elif method == "POST": - return self.rest_client.POST(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) + return self.rest_client.POST(url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body) elif method == "PUT": - return self.rest_client.PUT(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) + return self.rest_client.PUT(url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body) elif method == "PATCH": - return self.rest_client.PATCH(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) + return self.rest_client.PATCH( + url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body + ) elif method == "DELETE": - return self.rest_client.DELETE(url, - headers=headers, - stream=stream, - timeout=timeout, - body=body) + return self.rest_client.DELETE(url, headers=headers, stream=stream, timeout=timeout, body=body) else: - raise ApiValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) + raise ApiValueError("http method must be `GET`, `HEAD`, `OPTIONS`," " `POST`, `PATCH`, `PUT` or `DELETE`.") - def update_params_for_auth(self, headers, auth_settings, - resource_path, method, body): + def update_params_for_auth(self, headers, auth_settings, resource_path, method, body): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. @@ -1241,21 +1187,19 @@ def update_params_for_auth(self, headers, auth_settings, auth_setting = self.configuration.auth_settings().get(auth) if not auth_setting: continue - if auth_setting['in'] == 'cookie': - headers.add('Cookie', auth_setting['value']) - elif auth_setting['in'] == 'header': - if auth_setting['type'] != 'http-signature': - headers.add(auth_setting['key'], auth_setting['value']) - elif auth_setting['in'] == 'query': - """ TODO implement auth in query + if auth_setting["in"] == "cookie": + headers.add("Cookie", auth_setting["value"]) + elif auth_setting["in"] == "header": + if auth_setting["type"] != "http-signature": + headers.add(auth_setting["key"], auth_setting["value"]) + elif auth_setting["in"] == "query": + """TODO implement auth in query need to pass in prefix_separator_iterator and need to output resource_path with query params added """ raise ApiValueError("Auth in query not yet implemented") else: - raise ApiValueError( - 'Authentication token must be in `query` or `header`' - ) + raise ApiValueError("Authentication token must be in `query` or `header`") class Api: @@ -1271,7 +1215,9 @@ def __init__(self, api_client: typing.Optional[ApiClient] = None): self.api_client = api_client @staticmethod - def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any]): + def _verify_typed_dict_inputs_oapg( + cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any] + ): """ Ensures that: - required keys are present @@ -1290,13 +1236,13 @@ def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict] required_keys_with_unset_values.append(required_key) if missing_required_keys: raise ApiTypeError( - '{} missing {} required arguments: {}'.format( + "{} missing {} required arguments: {}".format( cls.__name__, len(missing_required_keys), missing_required_keys - ) - ) + ) + ) if required_keys_with_unset_values: raise ApiValueError( - '{} contains invalid unset values for {} required keys: {}'.format( + "{} contains invalid unset values for {} required keys: {}".format( cls.__name__, len(required_keys_with_unset_values), required_keys_with_unset_values ) ) @@ -1308,7 +1254,7 @@ def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict] disallowed_additional_keys.append(key) if disallowed_additional_keys: raise ApiTypeError( - '{} got {} unexpected keyword arguments: {}'.format( + "{} got {} unexpected keyword arguments: {}".format( cls.__name__, len(disallowed_additional_keys), disallowed_additional_keys ) ) @@ -1317,28 +1263,21 @@ def _get_host_oapg( self, operation_id: str, servers: typing.Tuple[typing.Dict[str, str], ...] = tuple(), - host_index: typing.Optional[int] = None + host_index: typing.Optional[int] = None, ) -> typing.Optional[str]: configuration = self.api_client.configuration try: if host_index is None: - index = configuration.server_operation_index.get( - operation_id, configuration.server_index - ) + index = configuration.server_operation_index.get(operation_id, configuration.server_index) else: index = host_index server_variables = configuration.server_operation_variables.get( operation_id, configuration.server_variables ) - host = configuration.get_host_from_settings( - index, variables=server_variables, servers=servers - ) + host = configuration.get_host_from_settings(index, variables=server_variables, servers=servers) except IndexError: if servers: - raise ApiValueError( - "Invalid host index. Must be 0 <= index < %s" % - len(servers) - ) + raise ApiValueError("Invalid host index. Must be 0 <= index < %s" % len(servers)) host = None return host @@ -1353,6 +1292,7 @@ class RequestBody(StyleFormSerializer, JSONDetector): A request body parameter content: content_type to MediaType Schema info """ + __json_encoder = JSONEncoder() def __init__( @@ -1362,44 +1302,39 @@ def __init__( ): self.required = required if len(content) == 0: - raise ValueError('Invalid value for content, the content dict must have >= 1 entry') + raise ValueError("Invalid value for content, the content dict must have >= 1 entry") self.content = content - def __serialize_json( - self, - in_data: typing.Any - ) -> typing.Dict[str, bytes]: + def __serialize_json(self, in_data: typing.Any) -> typing.Dict[str, bytes]: in_data = self.__json_encoder.default(in_data) - json_str = json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode( - "utf-8" - ) + json_str = json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode("utf-8") return dict(body=json_str) @staticmethod def __serialize_text_plain(in_data: typing.Any) -> typing.Dict[str, str]: if isinstance(in_data, frozendict.frozendict): - raise ValueError('Unable to serialize type frozendict.frozendict to text/plain') + raise ValueError("Unable to serialize type frozendict.frozendict to text/plain") elif isinstance(in_data, tuple): - raise ValueError('Unable to serialize type tuple to text/plain') + raise ValueError("Unable to serialize type tuple to text/plain") elif isinstance(in_data, NoneClass): - raise ValueError('Unable to serialize type NoneClass to text/plain') + raise ValueError("Unable to serialize type NoneClass to text/plain") elif isinstance(in_data, BoolClass): - raise ValueError('Unable to serialize type BoolClass to text/plain') + raise ValueError("Unable to serialize type BoolClass to text/plain") return dict(body=str(in_data)) def __multipart_json_item(self, key: str, value: Schema) -> RequestField: json_value = self.__json_encoder.default(value) request_field = RequestField(name=key, data=json.dumps(json_value)) - request_field.make_multipart(content_type='application/json') + request_field.make_multipart(content_type="application/json") return request_field def __multipart_form_item(self, key: str, value: Schema) -> RequestField: if isinstance(value, str): request_field = RequestField(name=key, data=str(value)) - request_field.make_multipart(content_type='text/plain') + request_field.make_multipart(content_type="text/plain") elif isinstance(value, bytes): request_field = RequestField(name=key, data=value) - request_field.make_multipart(content_type='application/octet-stream') + request_field.make_multipart(content_type="application/octet-stream") elif isinstance(value, FileIO): # TODO use content.encoding to limit allowed content types if they are present request_field = RequestField.from_tuples(key, (os.path.basename(value.name), value.read())) @@ -1408,11 +1343,9 @@ def __multipart_form_item(self, key: str, value: Schema) -> RequestField: request_field = self.__multipart_json_item(key=key, value=value) return request_field - def __serialize_multipart_form_data( - self, in_data: Schema - ) -> typing.Dict[str, typing.Tuple[RequestField, ...]]: + def __serialize_multipart_form_data(self, in_data: Schema) -> typing.Dict[str, typing.Tuple[RequestField, ...]]: if not isinstance(in_data, frozendict.frozendict): - raise ValueError(f'Unable to serialize {in_data} to multipart/form-data because it is not a dict of data') + raise ValueError(f"Unable to serialize {in_data} to multipart/form-data because it is not a dict of data") """ In a multipart/form-data request body, each schema property, or each element of a schema array property, takes a section in the payload with an internal header as defined by RFC7578. The serialization strategy @@ -1452,22 +1385,19 @@ def __serialize_application_octet_stream(self, in_data: BinarySchema) -> typing. in_data.close() return result - def __serialize_application_x_www_form_data( - self, in_data: typing.Any - ) -> SerializedRequestBody: + def __serialize_application_x_www_form_data(self, in_data: typing.Any) -> SerializedRequestBody: """ POST submission of form data in body """ if not isinstance(in_data, frozendict.frozendict): raise ValueError( - f'Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data') + f"Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data" + ) cast_in_data = self.__json_encoder.default(in_data) - value = self._serialize_form(cast_in_data, name='', explode=True, percent_encode=True) + value = self._serialize_form(cast_in_data, name="", explode=True, percent_encode=True) return dict(body=value) - def serialize( - self, in_data: typing.Any, content_type: str - ) -> SerializedRequestBody: + def serialize(self, in_data: typing.Any, content_type: str) -> SerializedRequestBody: """ If a str is returned then the result will be assigned to data when making the request If a tuple is returned then the result will be used as fields input in encode_multipart_formdata @@ -1488,12 +1418,12 @@ def serialize( # and content_type is multipart or application/x-www-form-urlencoded if self._content_type_is_json(content_type): return self.__serialize_json(cast_in_data) - elif content_type == 'text/plain': + elif content_type == "text/plain": return self.__serialize_text_plain(cast_in_data) - elif content_type == 'multipart/form-data': + elif content_type == "multipart/form-data": return self.__serialize_multipart_form_data(cast_in_data) - elif content_type == 'application/x-www-form-urlencoded': + elif content_type == "application/x-www-form-urlencoded": return self.__serialize_application_x_www_form_data(cast_in_data) - elif content_type == 'application/octet-stream': + elif content_type == "application/octet-stream": return self.__serialize_application_octet_stream(cast_in_data) - raise NotImplementedError('Serialization has not yet been implemented for {}'.format(content_type)) \ No newline at end of file + raise NotImplementedError("Serialization has not yet been implemented for {}".format(content_type)) diff --git a/launch/api_client/apis/__init__.py b/launch/api_client/apis/__init__.py index 7840f772..5ca66b80 100644 --- a/launch/api_client/apis/__init__.py +++ b/launch/api_client/apis/__init__.py @@ -1,3 +1,3 @@ # do not import all endpoints into this module because that uses a lot of memory and stack frames # if you need the ability to import all endpoints then import them from -# tags, paths, or path_to_api, or tag_to_api \ No newline at end of file +# tags, paths, or path_to_api, or tag_to_api diff --git a/launch/api_client/apis/path_to_api.py b/launch/api_client/apis/path_to_api.py index 4b5eab03..6f938fef 100644 --- a/launch/api_client/apis/path_to_api.py +++ b/launch/api_client/apis/path_to_api.py @@ -19,7 +19,7 @@ from launch.api_client.apis.paths.v1_sync_tasks import V1SyncTasks PathToApi = typing_extensions.TypedDict( - 'PathToApi', + "PathToApi", { PathValues.HEALTHCHECK: Healthcheck, PathValues.HEALTHZ: Healthz, @@ -37,7 +37,7 @@ PathValues.V1_MODELENDPOINTSSCHEMA_JSON: V1ModelEndpointsSchemaJson, PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID: V1ModelEndpointsModelEndpointId, PathValues.V1_SYNCTASKS: V1SyncTasks, - } + }, ) path_to_api = PathToApi( diff --git a/launch/api_client/apis/tag_to_api.py b/launch/api_client/apis/tag_to_api.py index f2a2dfcf..8b3c0d6d 100644 --- a/launch/api_client/apis/tag_to_api.py +++ b/launch/api_client/apis/tag_to_api.py @@ -4,10 +4,10 @@ from launch.api_client.apis.tags.default_api import DefaultApi TagToApi = typing_extensions.TypedDict( - 'TagToApi', + "TagToApi", { TagValues.DEFAULT: DefaultApi, - } + }, ) tag_to_api = TagToApi( diff --git a/launch/api_client/apis/tags/default_api.py b/launch/api_client/apis/tags/default_api.py index acabeccb..21691fd3 100644 --- a/launch/api_client/apis/tags/default_api.py +++ b/launch/api_client/apis/tags/default_api.py @@ -9,27 +9,37 @@ Generated by: https://openapi-generator.tech """ -from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost +from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ( + CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost, +) from launch.api_client.paths.v1_async_tasks.post import CreateAsyncInferenceTaskV1AsyncTasksPost from launch.api_client.paths.v1_batch_jobs.post import CreateBatchJobV1BatchJobsPost from launch.api_client.paths.v1_model_bundles.post import CreateModelBundleV1ModelBundlesPost from launch.api_client.paths.v1_model_endpoints.post import CreateModelEndpointV1ModelEndpointsPost from launch.api_client.paths.v1_sync_tasks.post import CreateSyncInferenceTaskV1SyncTasksPost -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ( + DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete, +) from launch.api_client.paths.v1_async_tasks_task_id.get import GetAsyncInferenceTaskV1AsyncTasksTaskIdGet from launch.api_client.paths.v1_batch_jobs_batch_job_id.get import GetBatchJobV1BatchJobsBatchJobIdGet from launch.api_client.paths.v1_model_bundles_latest.get import GetLatestModelBundleV1ModelBundlesLatestGet from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import GetModelBundleV1ModelBundlesModelBundleIdGet -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import GetModelEndpointV1ModelEndpointsModelEndpointIdGet +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ( + GetModelEndpointV1ModelEndpointsModelEndpointIdGet, +) from launch.api_client.paths.v1_model_endpoints_api.get import GetModelEndpointsApiV1ModelEndpointsApiGet -from launch.api_client.paths.v1_model_endpoints_schema_json.get import GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet +from launch.api_client.paths.v1_model_endpoints_schema_json.get import ( + GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet, +) from launch.api_client.paths.healthcheck.get import HealthcheckHealthcheckGet from launch.api_client.paths.healthz.get import HealthcheckHealthzGet from launch.api_client.paths.readyz.get import HealthcheckReadyzGet from launch.api_client.paths.v1_model_bundles.get import ListModelBundlesV1ModelBundlesGet from launch.api_client.paths.v1_model_endpoints.get import ListModelEndpointsV1ModelEndpointsGet from launch.api_client.paths.v1_batch_jobs_batch_job_id.put import UpdateBatchJobV1BatchJobsBatchJobIdPut -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ( + UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut, +) class DefaultApi( @@ -60,4 +70,5 @@ class DefaultApi( Do not edit the class manually. """ + pass diff --git a/launch/api_client/configuration.py b/launch/api_client/configuration.py index 92d13b9d..7807506d 100644 --- a/launch/api_client/configuration.py +++ b/launch/api_client/configuration.py @@ -20,78 +20,88 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = { - 'multipleOf', 'maximum', 'exclusiveMaximum', - 'minimum', 'exclusiveMinimum', 'maxLength', - 'minLength', 'pattern', 'maxItems', 'minItems', - 'uniqueItems', 'maxProperties', 'minProperties', + "multipleOf", + "maximum", + "exclusiveMaximum", + "minimum", + "exclusiveMinimum", + "maxLength", + "minLength", + "pattern", + "maxItems", + "minItems", + "uniqueItems", + "maxProperties", + "minProperties", } + class Configuration(object): """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - Do not edit the class manually. - - :param host: Base url - :param api_key: Dict to store API key(s). - Each entry in the dict specifies an API key. - The dict key is the name of the security scheme in the OAS specification. - The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer) - The dict key is the name of the security scheme in the OAS specification. - The dict value is an API key prefix when generating the auth data. - :param username: Username for HTTP basic authentication - :param password: Password for HTTP basic authentication - :param discard_unknown_keys: Boolean value indicating whether to discard - unknown properties. A server may send a response that includes additional - properties that are not known by the client in the following scenarios: - 1. The OpenAPI document is incomplete, i.e. it does not match the server - implementation. - 2. The client was generated using an older version of the OpenAPI document - and the server has been upgraded since then. - If a schema in the OpenAPI document defines the additionalProperties attribute, - then all undeclared properties received by the server are injected into the - additional properties map. In that case, there are undeclared properties, and - nothing to discard. - :param disabled_client_side_validations (string): Comma-separated list of - JSON schema validation keywords to disable JSON schema structural validation - rules. The following keywords may be specified: multipleOf, maximum, - exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, - maxItems, minItems. - By default, the validation is performed for data generated locally by the client - and data received from the server, independent of any validation performed by - the server side. If the input data does not satisfy the JSON schema validation - rules specified in the OpenAPI document, an exception is raised. - If disabled_client_side_validations is set, structural validation is - disabled. This can be useful to troubleshoot data validation problem, such as - when the OpenAPI document validation rules do not match the actual API data - received by the server. - :param server_index: Index to servers configuration. - :param server_variables: Mapping with string values to replace variables in - templated server configuration. The validation of enums is performed for - variables with defined enum values before. - :param server_operation_index: Mapping from operation ID to an index to server - configuration. - :param server_operation_variables: Mapping from operation ID to a mapping with - string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum values before. - - :Example: - - HTTP Basic Authentication Example. - Given the following security scheme in the OpenAPI specification: - components: - securitySchemes: - http_basic_auth: - type: http - scheme: basic - - Configure API client with HTTP basic authentication: - -conf = launch.api_client.Configuration( - username='the-user', - password='the-password', -) + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param host: Base url + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer) + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication + :param password: Password for HTTP basic authentication + :param discard_unknown_keys: Boolean value indicating whether to discard + unknown properties. A server may send a response that includes additional + properties that are not known by the client in the following scenarios: + 1. The OpenAPI document is incomplete, i.e. it does not match the server + implementation. + 2. The client was generated using an older version of the OpenAPI document + and the server has been upgraded since then. + If a schema in the OpenAPI document defines the additionalProperties attribute, + then all undeclared properties received by the server are injected into the + additional properties map. In that case, there are undeclared properties, and + nothing to discard. + :param disabled_client_side_validations (string): Comma-separated list of + JSON schema validation keywords to disable JSON schema structural validation + rules. The following keywords may be specified: multipleOf, maximum, + exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, + maxItems, minItems. + By default, the validation is performed for data generated locally by the client + and data received from the server, independent of any validation performed by + the server side. If the input data does not satisfy the JSON schema validation + rules specified in the OpenAPI document, an exception is raised. + If disabled_client_side_validations is set, structural validation is + disabled. This can be useful to troubleshoot data validation problem, such as + when the OpenAPI document validation rules do not match the actual API data + received by the server. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum values before. + + :Example: + + HTTP Basic Authentication Example. + Given the following security scheme in the OpenAPI specification: + components: + securitySchemes: + http_basic_auth: + type: http + scheme: basic + + Configure API client with HTTP basic authentication: + + conf = launch.api_client.Configuration( + username='the-user', + password='the-password', + ) """ @@ -109,8 +119,7 @@ def __init__( server_operation_index=None, server_operation_variables=None, ): - """Constructor - """ + """Constructor""" self._base_path = "http://localhost" if host is None else host """Default Base url """ @@ -139,7 +148,7 @@ def __init__( """ self.logger["package_logger"] = logging.getLogger("launch.api_client") self.logger["urllib3_logger"] = logging.getLogger("urllib3") - self.logger_format = '%(asctime)s %(levelname)s %(message)s' + self.logger_format = "%(asctime)s %(levelname)s %(message)s" """Log format """ self.logger_stream_handler = None @@ -187,7 +196,7 @@ def __init__( self.proxy_headers = None """Proxy headers """ - self.safe_chars_for_path_param = '' + self.safe_chars_for_path_param = "" """Safe chars for path_param """ self.retries = None @@ -204,7 +213,7 @@ def __deepcopy__(self, memo): result = cls.__new__(cls) memo[id(self)] = result for k, v in self.__dict__.items(): - if k not in ('logger', 'logger_file_handler'): + if k not in ("logger", "logger_file_handler"): setattr(result, k, copy.deepcopy(v, memo)) # shallow copy of loggers result.logger = copy.copy(self.logger) @@ -215,12 +224,11 @@ def __deepcopy__(self, memo): def __setattr__(self, name, value): object.__setattr__(self, name, value) - if name == 'disabled_client_side_validations': - s = set(filter(None, value.split(','))) + if name == "disabled_client_side_validations": + s = set(filter(None, value.split(","))) for v in s: if v not in JSON_SCHEMA_VALIDATION_KEYWORDS: - raise ApiValueError( - "Invalid keyword: '{0}''".format(v)) + raise ApiValueError("Invalid keyword: '{0}''".format(v)) self._disabled_client_side_validations = s @classmethod @@ -361,9 +369,7 @@ def get_basic_auth_token(self): password = "" if self.password is not None: password = self.password - return urllib3.util.make_headers( - basic_auth=username + ':' + password - ).get('authorization') + return urllib3.util.make_headers(basic_auth=username + ":" + password).get("authorization") def auth_settings(self): """Gets Auth Settings dict for api client. @@ -372,11 +378,11 @@ def auth_settings(self): """ auth = {} if self.username is not None and self.password is not None: - auth['HTTPBasic'] = { - 'type': 'basic', - 'in': 'header', - 'key': 'Authorization', - 'value': self.get_basic_auth_token() + auth["HTTPBasic"] = { + "type": "basic", + "in": "header", + "key": "Authorization", + "value": self.get_basic_auth_token(), } return auth @@ -385,12 +391,13 @@ def to_debug_report(self): :return: The report for debugging. """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.0.0\n"\ - "SDK Package Version: 1.0.6".\ - format(env=sys.platform, pyversion=sys.version) + return ( + "Python SDK Debug Report:\n" + "OS: {env}\n" + "Python Version: {pyversion}\n" + "Version of the API: 1.0.0\n" + "SDK Package Version: 1.0.6".format(env=sys.platform, pyversion=sys.version) + ) def get_host_settings(self): """Gets an array of host settings @@ -399,8 +406,8 @@ def get_host_settings(self): """ return [ { - 'url': "", - 'description': "No description provided", + "url": "", + "description": "No description provided", } ] @@ -422,22 +429,20 @@ def get_host_from_settings(self, index, variables=None, servers=None): except IndexError: raise ValueError( "Invalid index {0} when selecting the host settings. " - "Must be less than {1}".format(index, len(servers))) + "Must be less than {1}".format(index, len(servers)) + ) - url = server['url'] + url = server["url"] # go through variables and replace placeholders - for variable_name, variable in server.get('variables', {}).items(): - used_value = variables.get( - variable_name, variable['default_value']) + for variable_name, variable in server.get("variables", {}).items(): + used_value = variables.get(variable_name, variable["default_value"]) - if 'enum_values' in variable \ - and used_value not in variable['enum_values']: + if "enum_values" in variable and used_value not in variable["enum_values"]: raise ValueError( "The variable `{0}` in the host URL has invalid value " - "{1}. Must be {2}.".format( - variable_name, variables[variable_name], - variable['enum_values'])) + "{1}. Must be {2}.".format(variable_name, variables[variable_name], variable["enum_values"]) + ) url = url.replace("{" + variable_name + "}", used_value) diff --git a/launch/api_client/exceptions.py b/launch/api_client/exceptions.py index 46687131..f461e207 100644 --- a/launch/api_client/exceptions.py +++ b/launch/api_client/exceptions.py @@ -19,9 +19,8 @@ class OpenApiException(Exception): class ApiTypeError(OpenApiException, TypeError): - def __init__(self, msg, path_to_item=None, valid_classes=None, - key_type=None): - """ Raises an exception for TypeErrors + def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None): + """Raises an exception for TypeErrors Args: msg (str): the exception message @@ -124,11 +123,9 @@ def headers(self) -> typing.Optional[HTTPHeaderDict]: def __str__(self): """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) + error_message = "({0})\n" "Reason: {1}\n".format(self.status, self.reason) if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) + error_message += "HTTP response headers: {0}\n".format(self.headers) if self.body: error_message += "HTTP response body: {0}\n".format(self.body) diff --git a/launch/api_client/model/batch_job_serialization_format.py b/launch/api_client/model/batch_job_serialization_format.py index 5586e157..64095984 100644 --- a/launch/api_client/model/batch_job_serialization_format.py +++ b/launch/api_client/model/batch_job_serialization_format.py @@ -23,10 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class BatchJobSerializationFormat( - schemas.EnumBase, - schemas.StrSchema -): +class BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,17 +32,16 @@ class BatchJobSerializationFormat( An enumeration. """ - class MetaOapg: enum_value_to_name = { "JSON": "JSON", "PICKLE": "PICKLE", } - + @schemas.classproperty def JSON(cls): return cls("JSON") - + @schemas.classproperty def PICKLE(cls): return cls("PICKLE") diff --git a/launch/api_client/model/batch_job_serialization_format.pyi b/launch/api_client/model/batch_job_serialization_format.pyi index e19c5161..306f694f 100644 --- a/launch/api_client/model/batch_job_serialization_format.pyi +++ b/launch/api_client/model/batch_job_serialization_format.pyi @@ -22,11 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class BatchJobSerializationFormat( - schemas.EnumBase, - schemas.StrSchema -): +class BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,11 +30,10 @@ class BatchJobSerializationFormat( An enumeration. """ - + @schemas.classproperty def JSON(cls): return cls("JSON") - @schemas.classproperty def PICKLE(cls): return cls("PICKLE") diff --git a/launch/api_client/model/batch_job_status.py b/launch/api_client/model/batch_job_status.py index 530ad403..b6c5f1c1 100644 --- a/launch/api_client/model/batch_job_status.py +++ b/launch/api_client/model/batch_job_status.py @@ -23,10 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class BatchJobStatus( - schemas.EnumBase, - schemas.StrSchema -): +class BatchJobStatus(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,7 +32,6 @@ class BatchJobStatus( An enumeration. """ - class MetaOapg: enum_value_to_name = { "PENDING": "PENDING", @@ -45,27 +41,27 @@ class MetaOapg: "CANCELLED": "CANCELLED", "UNDEFINED": "UNDEFINED", } - + @schemas.classproperty def PENDING(cls): return cls("PENDING") - + @schemas.classproperty def RUNNING(cls): return cls("RUNNING") - + @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") - + @schemas.classproperty def FAILURE(cls): return cls("FAILURE") - + @schemas.classproperty def CANCELLED(cls): return cls("CANCELLED") - + @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/batch_job_status.pyi b/launch/api_client/model/batch_job_status.pyi index 0d337988..92e00149 100644 --- a/launch/api_client/model/batch_job_status.pyi +++ b/launch/api_client/model/batch_job_status.pyi @@ -22,11 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class BatchJobStatus( - schemas.EnumBase, - schemas.StrSchema -): +class BatchJobStatus(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,27 +30,22 @@ class BatchJobStatus( An enumeration. """ - + @schemas.classproperty def PENDING(cls): return cls("PENDING") - @schemas.classproperty def RUNNING(cls): return cls("RUNNING") - @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") - @schemas.classproperty def FAILURE(cls): return cls("FAILURE") - @schemas.classproperty def CANCELLED(cls): return cls("CANCELLED") - @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/callback_auth.py b/launch/api_client/model/callback_auth.py index a3af0a7c..9c0a040b 100644 --- a/launch/api_client/model/callback_auth.py +++ b/launch/api_client/model/callback_auth.py @@ -32,20 +32,18 @@ class CallbackAuth( Do not edit the class manually. """ - class MetaOapg: - @staticmethod def discriminator(): return { - 'kind': { - 'CallbackBasicAuth': CallbackBasicAuth, - 'CallbackmTLSAuth': CallbackmTLSAuth, - 'basic': CallbackBasicAuth, - 'mtls': CallbackmTLSAuth, + "kind": { + "CallbackBasicAuth": CallbackBasicAuth, + "CallbackmTLSAuth": CallbackmTLSAuth, + "basic": CallbackBasicAuth, + "mtls": CallbackmTLSAuth, } } - + @classmethod @functools.lru_cache() def one_of(cls): @@ -61,13 +59,44 @@ def one_of(cls): CallbackmTLSAuth, ] - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'CallbackAuth': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CallbackAuth": return super().__new__( cls, *_args, @@ -75,5 +104,6 @@ def __new__( **kwargs, ) + from launch.api_client.model.callback_basic_auth import CallbackBasicAuth from launch.api_client.model.callbackm_tls_auth import CallbackmTLSAuth diff --git a/launch/api_client/model/callback_auth.pyi b/launch/api_client/model/callback_auth.pyi index 584516de..78418a72 100644 --- a/launch/api_client/model/callback_auth.pyi +++ b/launch/api_client/model/callback_auth.pyi @@ -22,7 +22,6 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - class CallbackAuth( schemas.ComposedSchema, ): @@ -32,20 +31,17 @@ class CallbackAuth( Do not edit the class manually. """ - class MetaOapg: - @staticmethod def discriminator(): return { - 'kind': { - 'CallbackBasicAuth': CallbackBasicAuth, - 'CallbackmTLSAuth': CallbackmTLSAuth, - 'basic': CallbackBasicAuth, - 'mtls': CallbackmTLSAuth, + "kind": { + "CallbackBasicAuth": CallbackBasicAuth, + "CallbackmTLSAuth": CallbackmTLSAuth, + "basic": CallbackBasicAuth, + "mtls": CallbackmTLSAuth, } } - @classmethod @functools.lru_cache() def one_of(cls): @@ -60,14 +56,44 @@ class CallbackAuth( CallbackBasicAuth, CallbackmTLSAuth, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'CallbackAuth': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CallbackAuth": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callback_basic_auth.py b/launch/api_client/model/callback_basic_auth.py index 1b26f739..41648753 100644 --- a/launch/api_client/model/callback_basic_auth.py +++ b/launch/api_client/model/callback_basic_auth.py @@ -23,40 +23,31 @@ from launch.api_client import schemas # noqa: F401 -class CallbackBasicAuth( - schemas.DictSchema -): +class CallbackBasicAuth(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "password", "kind", "username", } - + class properties: - - - class kind( - schemas.EnumBase, - schemas.StrSchema - ): - - + class kind(schemas.EnumBase, schemas.StrSchema): class MetaOapg: enum_value_to_name = { "basic": "BASIC", } - + @schemas.classproperty def BASIC(cls): return cls("basic") + password = schemas.StrSchema username = schemas.StrSchema __annotations__ = { @@ -64,53 +55,106 @@ def BASIC(cls): "password": password, "username": username, } - + password: MetaOapg.properties.password kind: MetaOapg.properties.kind username: MetaOapg.properties.username - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - + def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - + def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... - + def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["kind", "password", "username", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "kind", + "password", + "username", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - + def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - + def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... - + def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: + ... + @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["kind", "password", "username", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "kind", + "password", + "username", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - password: typing.Union[MetaOapg.properties.password, str, ], - kind: typing.Union[MetaOapg.properties.kind, str, ], - username: typing.Union[MetaOapg.properties.username, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + password: typing.Union[ + MetaOapg.properties.password, + str, + ], + kind: typing.Union[ + MetaOapg.properties.kind, + str, + ], + username: typing.Union[ + MetaOapg.properties.username, + str, + ], _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], - ) -> 'CallbackBasicAuth': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CallbackBasicAuth": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callback_basic_auth.pyi b/launch/api_client/model/callback_basic_auth.pyi index 50b20d27..3420fd8f 100644 --- a/launch/api_client/model/callback_basic_auth.pyi +++ b/launch/api_client/model/callback_basic_auth.pyi @@ -22,32 +22,22 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class CallbackBasicAuth( - schemas.DictSchema -): +class CallbackBasicAuth(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "password", "kind", "username", } - + class properties: - - - class kind( - schemas.EnumBase, - schemas.StrSchema - ): - + class kind(schemas.EnumBase, schemas.StrSchema): @schemas.classproperty def BASIC(cls): return cls("basic") @@ -58,53 +48,87 @@ class CallbackBasicAuth( "password": password, "username": username, } - password: MetaOapg.properties.password kind: MetaOapg.properties.kind username: MetaOapg.properties.username - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["kind", "password", "username", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "kind", + "password", + "username", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... - @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["kind", "password", "username", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "kind", + "password", + "username", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - password: typing.Union[MetaOapg.properties.password, str, ], - kind: typing.Union[MetaOapg.properties.kind, str, ], - username: typing.Union[MetaOapg.properties.username, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + password: typing.Union[ + MetaOapg.properties.password, + str, + ], + kind: typing.Union[ + MetaOapg.properties.kind, + str, + ], + username: typing.Union[ + MetaOapg.properties.username, + str, + ], _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], - ) -> 'CallbackBasicAuth': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CallbackBasicAuth": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callbackm_tls_auth.py b/launch/api_client/model/callbackm_tls_auth.py index 1ed275f9..fcef6e85 100644 --- a/launch/api_client/model/callbackm_tls_auth.py +++ b/launch/api_client/model/callbackm_tls_auth.py @@ -23,94 +23,139 @@ from launch.api_client import schemas # noqa: F401 -class CallbackmTLSAuth( - schemas.DictSchema -): +class CallbackmTLSAuth(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "kind", "cert", "key", } - + class properties: cert = schemas.StrSchema key = schemas.StrSchema - - - class kind( - schemas.EnumBase, - schemas.StrSchema - ): - - + + class kind(schemas.EnumBase, schemas.StrSchema): class MetaOapg: enum_value_to_name = { "mtls": "MTLS", } - + @schemas.classproperty def MTLS(cls): return cls("mtls") + __annotations__ = { "cert": cert, "key": key, "kind": kind, } - + kind: MetaOapg.properties.kind cert: MetaOapg.properties.cert key: MetaOapg.properties.key - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... - + def __getitem__(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... - + def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - + def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cert", "key", "kind", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cert", + "key", + "kind", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... - + def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... - + def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - + def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: + ... + @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["cert", "key", "kind", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cert", + "key", + "kind", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - kind: typing.Union[MetaOapg.properties.kind, str, ], - cert: typing.Union[MetaOapg.properties.cert, str, ], - key: typing.Union[MetaOapg.properties.key, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + kind: typing.Union[ + MetaOapg.properties.kind, + str, + ], + cert: typing.Union[ + MetaOapg.properties.cert, + str, + ], + key: typing.Union[ + MetaOapg.properties.key, + str, + ], _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], - ) -> 'CallbackmTLSAuth': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CallbackmTLSAuth": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callbackm_tls_auth.pyi b/launch/api_client/model/callbackm_tls_auth.pyi index 8aeeb00a..c665b838 100644 --- a/launch/api_client/model/callbackm_tls_auth.pyi +++ b/launch/api_client/model/callbackm_tls_auth.pyi @@ -22,34 +22,25 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class CallbackmTLSAuth( - schemas.DictSchema -): +class CallbackmTLSAuth(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "kind", "cert", "key", } - + class properties: cert = schemas.StrSchema key = schemas.StrSchema - - - class kind( - schemas.EnumBase, - schemas.StrSchema - ): - + + class kind(schemas.EnumBase, schemas.StrSchema): @schemas.classproperty def MTLS(cls): return cls("mtls") @@ -58,53 +49,87 @@ class CallbackmTLSAuth( "key": key, "kind": kind, } - kind: MetaOapg.properties.kind cert: MetaOapg.properties.cert key: MetaOapg.properties.key - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cert", "key", "kind", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cert", + "key", + "kind", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - @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["cert", "key", "kind", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cert", + "key", + "kind", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - kind: typing.Union[MetaOapg.properties.kind, str, ], - cert: typing.Union[MetaOapg.properties.cert, str, ], - key: typing.Union[MetaOapg.properties.key, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + kind: typing.Union[ + MetaOapg.properties.kind, + str, + ], + cert: typing.Union[ + MetaOapg.properties.cert, + str, + ], + key: typing.Union[ + MetaOapg.properties.key, + str, + ], _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], - ) -> 'CallbackmTLSAuth': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CallbackmTLSAuth": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/clone_model_bundle_request.py b/launch/api_client/model/clone_model_bundle_request.py index 97fdfdd2..777c6c50 100644 --- a/launch/api_client/model/clone_model_bundle_request.py +++ b/launch/api_client/model/clone_model_bundle_request.py @@ -53,9 +53,7 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["new_app_config"] - ) -> MetaOapg.properties.new_app_config: + def __getitem__(self, name: typing_extensions.Literal["new_app_config"]) -> MetaOapg.properties.new_app_config: ... @typing.overload diff --git a/launch/api_client/model/clone_model_bundle_request.pyi b/launch/api_client/model/clone_model_bundle_request.pyi index dcd3da4f..0293a604 100644 --- a/launch/api_client/model/clone_model_bundle_request.pyi +++ b/launch/api_client/model/clone_model_bundle_request.pyi @@ -49,9 +49,7 @@ class CloneModelBundleRequest(schemas.DictSchema): 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: ... + 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__( @@ -75,9 +73,7 @@ class CloneModelBundleRequest(schemas.DictSchema): 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: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/clone_model_bundle_v1_request.py b/launch/api_client/model/clone_model_bundle_v1_request.py index 52b9f905..2af569ad 100644 --- a/launch/api_client/model/clone_model_bundle_v1_request.py +++ b/launch/api_client/model/clone_model_bundle_v1_request.py @@ -23,9 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class CloneModelBundleV1Request( - schemas.DictSchema -): +class CloneModelBundleV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,12 +32,11 @@ class CloneModelBundleV1Request( 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 @@ -47,44 +44,95 @@ class properties: "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: ... - + 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: ... - + 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]): + 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: ... - + 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]: ... - + 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]): + 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, + *_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': + **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, diff --git a/launch/api_client/model/clone_model_bundle_v1_request.pyi b/launch/api_client/model/clone_model_bundle_v1_request.pyi index 6d01d861..d8afa0ae 100644 --- a/launch/api_client/model/clone_model_bundle_v1_request.pyi +++ b/launch/api_client/model/clone_model_bundle_v1_request.pyi @@ -22,10 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class CloneModelBundleV1Request( - schemas.DictSchema -): +class CloneModelBundleV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,12 +31,11 @@ class CloneModelBundleV1Request( 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 @@ -47,44 +43,80 @@ class CloneModelBundleV1Request( "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: ... - + 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]): + 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: ... - + 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]: ... - + 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]): + 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, + *_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': + **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, diff --git a/launch/api_client/model/create_async_task_response.py b/launch/api_client/model/create_async_task_response.py index 3f339ae1..ad871abc 100644 --- a/launch/api_client/model/create_async_task_response.py +++ b/launch/api_client/model/create_async_task_response.py @@ -43,9 +43,7 @@ class properties: task_id: MetaOapg.properties.task_id @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload @@ -55,9 +53,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "task_id", - ], + typing_extensions.Literal["task_id",], str, ], ): @@ -65,9 +61,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload @@ -77,9 +71,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "task_id", - ], + typing_extensions.Literal["task_id",], str, ], ): diff --git a/launch/api_client/model/create_async_task_response.pyi b/launch/api_client/model/create_async_task_response.pyi index d5d11a32..ea463023 100644 --- a/launch/api_client/model/create_async_task_response.pyi +++ b/launch/api_client/model/create_async_task_response.pyi @@ -41,36 +41,26 @@ class CreateAsyncTaskResponse(schemas.DictSchema): task_id: MetaOapg.properties.task_id @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: ... + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "task_id", - ], + typing_extensions.Literal["task_id",], str, ], ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "task_id", - ], + typing_extensions.Literal["task_id",], str, ], ): diff --git a/launch/api_client/model/create_async_task_v1_response.py b/launch/api_client/model/create_async_task_v1_response.py index 5805b46f..07676dbc 100644 --- a/launch/api_client/model/create_async_task_v1_response.py +++ b/launch/api_client/model/create_async_task_v1_response.py @@ -23,57 +23,77 @@ from launch.api_client import schemas # noqa: F401 -class CreateAsyncTaskV1Response( - schemas.DictSchema -): +class CreateAsyncTaskV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "task_id", } - + class properties: task_id = schemas.StrSchema __annotations__ = { "task_id": task_id, } - + task_id: MetaOapg.properties.task_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: + ... + @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["task_id", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - task_id: typing.Union[MetaOapg.properties.task_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + task_id: typing.Union[ + MetaOapg.properties.task_id, + str, + ], _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], - ) -> 'CreateAsyncTaskV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateAsyncTaskV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_async_task_v1_response.pyi b/launch/api_client/model/create_async_task_v1_response.pyi index 3e9fcb1b..a59f858a 100644 --- a/launch/api_client/model/create_async_task_v1_response.pyi +++ b/launch/api_client/model/create_async_task_v1_response.pyi @@ -22,58 +22,66 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateAsyncTaskV1Response( - schemas.DictSchema -): +class CreateAsyncTaskV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "task_id", } - + class properties: task_id = schemas.StrSchema __annotations__ = { "task_id": task_id, } - task_id: MetaOapg.properties.task_id - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - @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["task_id", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - task_id: typing.Union[MetaOapg.properties.task_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + task_id: typing.Union[ + MetaOapg.properties.task_id, + str, + ], _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], - ) -> 'CreateAsyncTaskV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateAsyncTaskV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_batch_job_request.py b/launch/api_client/model/create_batch_job_request.py index 23daf7d9..ff1b9340 100644 --- a/launch/api_client/model/create_batch_job_request.py +++ b/launch/api_client/model/create_batch_job_request.py @@ -47,18 +47,14 @@ class MetaOapg: def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) @@ -106,9 +102,7 @@ def serialization_format() -> typing.Type["BatchJobSerializationFormat"]: labels: MetaOapg.properties.labels @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["input_path"] - ) -> MetaOapg.properties.input_path: + def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... @typing.overload @@ -116,21 +110,15 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["resource_requests"] - ) -> "CreateBatchJobResourceRequests": + def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["serialization_format"] - ) -> "BatchJobSerializationFormat": + def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... @typing.overload @@ -154,33 +142,23 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["input_path"] - ) -> MetaOapg.properties.input_path: + def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["resource_requests"] - ) -> "CreateBatchJobResourceRequests": + def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["serialization_format"] - ) -> "BatchJobSerializationFormat": + def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... @typing.overload diff --git a/launch/api_client/model/create_batch_job_request.pyi b/launch/api_client/model/create_batch_job_request.pyi index 6a48d5a9..0107d0d8 100644 --- a/launch/api_client/model/create_batch_job_request.pyi +++ b/launch/api_client/model/create_batch_job_request.pyi @@ -45,17 +45,13 @@ class CreateBatchJobRequest(schemas.DictSchema): additional_properties = schemas.StrSchema def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( @@ -98,25 +94,17 @@ class CreateBatchJobRequest(schemas.DictSchema): labels: MetaOapg.properties.labels @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["input_path"] - ) -> MetaOapg.properties.input_path: ... + def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["resource_requests"] - ) -> "CreateBatchJobResourceRequests": ... + def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["serialization_format"] - ) -> "BatchJobSerializationFormat": ... + def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -135,13 +123,9 @@ class CreateBatchJobRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["input_path"] - ) -> MetaOapg.properties.input_path: ... + def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_bundle_id"] @@ -155,9 +139,7 @@ class CreateBatchJobRequest(schemas.DictSchema): self, name: typing_extensions.Literal["serialization_format"] ) -> "BatchJobSerializationFormat": ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/create_batch_job_resource_requests.py b/launch/api_client/model/create_batch_job_resource_requests.py index c1f62452..f37f8a06 100644 --- a/launch/api_client/model/create_batch_job_resource_requests.py +++ b/launch/api_client/model/create_batch_job_resource_requests.py @@ -23,31 +23,23 @@ from launch.api_client import schemas # noqa: F401 -class CreateBatchJobResourceRequests( - schemas.DictSchema -): +class CreateBatchJobResourceRequests(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: - - class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -63,38 +55,67 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType + gpus = schemas.IntSchema max_workers = schemas.IntSchema - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -110,33 +131,62 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + per_worker = schemas.IntSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -152,20 +202,52 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + __annotations__ = { "cpus": cpus, "gpu_type": gpu_type, @@ -175,77 +257,206 @@ def __new__( "per_worker": per_worker, "storage": storage, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpu_type", + "gpus", + "max_workers", + "memory", + "per_worker", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cpus"] + ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpus"] + ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpu_type", + "gpus", + "max_workers", + "memory", + "per_worker", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'CreateBatchJobResourceRequests': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateBatchJobResourceRequests": return super().__new__( cls, *_args, @@ -260,4 +471,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/create_batch_job_resource_requests.pyi b/launch/api_client/model/create_batch_job_resource_requests.pyi index 38ca0898..fcbe8e04 100644 --- a/launch/api_client/model/create_batch_job_resource_requests.pyi +++ b/launch/api_client/model/create_batch_job_resource_requests.pyi @@ -22,32 +22,23 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateBatchJobResourceRequests( - schemas.DictSchema -): +class CreateBatchJobResourceRequests(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: - - class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -63,38 +54,64 @@ class CreateBatchJobResourceRequests( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType gpus = schemas.IntSchema max_workers = schemas.IntSchema - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -110,14 +127,44 @@ class CreateBatchJobResourceRequests( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, @@ -125,18 +172,15 @@ class CreateBatchJobResourceRequests( **kwargs, ) per_worker = schemas.IntSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -152,14 +196,44 @@ class CreateBatchJobResourceRequests( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, @@ -175,77 +249,171 @@ class CreateBatchJobResourceRequests( "per_worker": per_worker, "storage": storage, } - @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpu_type", + "gpus", + "max_workers", + "memory", + "per_worker", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cpus"] + ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpus"] + ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpu_type", + "gpus", + "max_workers", + "memory", + "per_worker", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'CreateBatchJobResourceRequests': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateBatchJobResourceRequests": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_batch_job_response.py b/launch/api_client/model/create_batch_job_response.py index 7e9fb2e2..2b2c3325 100644 --- a/launch/api_client/model/create_batch_job_response.py +++ b/launch/api_client/model/create_batch_job_response.py @@ -53,9 +53,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "job_id", - ], + typing_extensions.Literal["job_id",], str, ], ): @@ -63,9 +61,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["job_id"] - ) -> MetaOapg.properties.job_id: + def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... @typing.overload @@ -75,9 +71,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "job_id", - ], + typing_extensions.Literal["job_id",], str, ], ): diff --git a/launch/api_client/model/create_batch_job_response.pyi b/launch/api_client/model/create_batch_job_response.pyi index eba9c832..2421b064 100644 --- a/launch/api_client/model/create_batch_job_response.pyi +++ b/launch/api_client/model/create_batch_job_response.pyi @@ -41,36 +41,26 @@ class CreateBatchJobResponse(schemas.DictSchema): job_id: MetaOapg.properties.job_id @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["job_id"] - ) -> MetaOapg.properties.job_id: ... + def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "job_id", - ], + typing_extensions.Literal["job_id",], str, ], ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["job_id"] - ) -> MetaOapg.properties.job_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "job_id", - ], + typing_extensions.Literal["job_id",], str, ], ): diff --git a/launch/api_client/model/create_batch_job_v1_request.py b/launch/api_client/model/create_batch_job_v1_request.py index 03f4e079..4e4bc41b 100644 --- a/launch/api_client/model/create_batch_job_v1_request.py +++ b/launch/api_client/model/create_batch_job_v1_request.py @@ -23,16 +23,13 @@ from launch.api_client import schemas # noqa: F401 -class CreateBatchJobV1Request( - schemas.DictSchema -): +class CreateBatchJobV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "model_bundle_id", @@ -41,47 +38,50 @@ class MetaOapg: "input_path", "labels", } - + class properties: input_path = schemas.StrSchema - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + model_bundle_id = schemas.StrSchema - + @staticmethod - def resource_requests() -> typing.Type['CreateBatchJobResourceRequests']: + def resource_requests() -> typing.Type["CreateBatchJobResourceRequests"]: return CreateBatchJobResourceRequests - + @staticmethod - def serialization_format() -> typing.Type['BatchJobSerializationFormat']: + def serialization_format() -> typing.Type["BatchJobSerializationFormat"]: return BatchJobSerializationFormat + __annotations__ = { "input_path": input_path, "labels": labels, @@ -89,69 +89,131 @@ def serialization_format() -> typing.Type['BatchJobSerializationFormat']: "resource_requests": resource_requests, "serialization_format": serialization_format, } - + model_bundle_id: MetaOapg.properties.model_bundle_id - resource_requests: 'CreateBatchJobResourceRequests' - serialization_format: 'BatchJobSerializationFormat' + resource_requests: "CreateBatchJobResourceRequests" + serialization_format: "BatchJobSerializationFormat" input_path: MetaOapg.properties.input_path labels: MetaOapg.properties.labels - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... - + def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... - + def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... - + def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "input_path", + "labels", + "model_bundle_id", + "resource_requests", + "serialization_format", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... - + def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... - + def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... - + def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": + ... + @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["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "input_path", + "labels", + "model_bundle_id", + "resource_requests", + "serialization_format", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], - resource_requests: 'CreateBatchJobResourceRequests', - serialization_format: 'BatchJobSerializationFormat', - input_path: typing.Union[MetaOapg.properties.input_path, str, ], - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, + str, + ], + resource_requests: "CreateBatchJobResourceRequests", + serialization_format: "BatchJobSerializationFormat", + input_path: typing.Union[ + MetaOapg.properties.input_path, + str, + ], + labels: typing.Union[ + MetaOapg.properties.labels, + dict, + frozendict.frozendict, + ], _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], - ) -> 'CreateBatchJobV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateBatchJobV1Request": return super().__new__( cls, *_args, @@ -164,5 +226,6 @@ def __new__( **kwargs, ) + from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests diff --git a/launch/api_client/model/create_batch_job_v1_request.pyi b/launch/api_client/model/create_batch_job_v1_request.pyi index 34b6fb0c..4ce47ef4 100644 --- a/launch/api_client/model/create_batch_job_v1_request.pyi +++ b/launch/api_client/model/create_batch_job_v1_request.pyi @@ -22,17 +22,13 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateBatchJobV1Request( - schemas.DictSchema -): +class CreateBatchJobV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "model_bundle_id", @@ -41,32 +37,30 @@ class CreateBatchJobV1Request( "input_path", "labels", } - + class properties: input_path = schemas.StrSchema - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, @@ -74,13 +68,12 @@ class CreateBatchJobV1Request( **kwargs, ) model_bundle_id = schemas.StrSchema - + @staticmethod - def resource_requests() -> typing.Type['CreateBatchJobResourceRequests']: + def resource_requests() -> typing.Type["CreateBatchJobResourceRequests"]: return CreateBatchJobResourceRequests - @staticmethod - def serialization_format() -> typing.Type['BatchJobSerializationFormat']: + def serialization_format() -> typing.Type["BatchJobSerializationFormat"]: return BatchJobSerializationFormat __annotations__ = { "input_path": input_path, @@ -89,69 +82,112 @@ class CreateBatchJobV1Request( "resource_requests": resource_requests, "serialization_format": serialization_format, } - model_bundle_id: MetaOapg.properties.model_bundle_id - resource_requests: 'CreateBatchJobResourceRequests' - serialization_format: 'BatchJobSerializationFormat' + resource_requests: "CreateBatchJobResourceRequests" + serialization_format: "BatchJobSerializationFormat" input_path: MetaOapg.properties.input_path labels: MetaOapg.properties.labels - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... - + def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... - + def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "input_path", + "labels", + "model_bundle_id", + "resource_requests", + "serialization_format", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["resource_requests"] + ) -> "CreateBatchJobResourceRequests": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["serialization_format"] + ) -> "BatchJobSerializationFormat": ... @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["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "input_path", + "labels", + "model_bundle_id", + "resource_requests", + "serialization_format", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], - resource_requests: 'CreateBatchJobResourceRequests', - serialization_format: 'BatchJobSerializationFormat', - input_path: typing.Union[MetaOapg.properties.input_path, str, ], - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, + str, + ], + resource_requests: "CreateBatchJobResourceRequests", + serialization_format: "BatchJobSerializationFormat", + input_path: typing.Union[ + MetaOapg.properties.input_path, + str, + ], + labels: typing.Union[ + MetaOapg.properties.labels, + dict, + frozendict.frozendict, + ], _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], - ) -> 'CreateBatchJobV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateBatchJobV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_batch_job_v1_response.py b/launch/api_client/model/create_batch_job_v1_response.py index 48561f4d..aff4d6d0 100644 --- a/launch/api_client/model/create_batch_job_v1_response.py +++ b/launch/api_client/model/create_batch_job_v1_response.py @@ -23,57 +23,77 @@ from launch.api_client import schemas # noqa: F401 -class CreateBatchJobV1Response( - schemas.DictSchema -): +class CreateBatchJobV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "job_id", } - + class properties: job_id = schemas.StrSchema __annotations__ = { "job_id": job_id, } - + job_id: MetaOapg.properties.job_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... - + def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... - + def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: + ... + @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["job_id", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - job_id: typing.Union[MetaOapg.properties.job_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + job_id: typing.Union[ + MetaOapg.properties.job_id, + str, + ], _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], - ) -> 'CreateBatchJobV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateBatchJobV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_batch_job_v1_response.pyi b/launch/api_client/model/create_batch_job_v1_response.pyi index 01425585..314712bd 100644 --- a/launch/api_client/model/create_batch_job_v1_response.pyi +++ b/launch/api_client/model/create_batch_job_v1_response.pyi @@ -22,58 +22,66 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateBatchJobV1Response( - schemas.DictSchema -): +class CreateBatchJobV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "job_id", } - + class properties: job_id = schemas.StrSchema __annotations__ = { "job_id": job_id, } - job_id: MetaOapg.properties.job_id - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... - @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["job_id", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - job_id: typing.Union[MetaOapg.properties.job_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + job_id: typing.Union[ + MetaOapg.properties.job_id, + str, + ], _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], - ) -> 'CreateBatchJobV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateBatchJobV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_bundle_request.py b/launch/api_client/model/create_model_bundle_request.py index 042b0883..4a2921c5 100644 --- a/launch/api_client/model/create_model_bundle_request.py +++ b/launch/api_client/model/create_model_bundle_request.py @@ -103,15 +103,11 @@ def packaging_type() -> typing.Type["ModelBundlePackagingType"]: env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload @@ -119,33 +115,23 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["app_config"] - ) -> MetaOapg.properties.app_config: + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["schema_location"] - ) -> MetaOapg.properties.schema_location: + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... @typing.overload @@ -172,15 +158,11 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload @@ -188,9 +170,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload @@ -266,9 +246,7 @@ def __new__( MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, packaging_type: typing.Union["ModelBundlePackagingType", schemas.Unset] = schemas.unset, - schema_location: typing.Union[ - MetaOapg.properties.schema_location, str, schemas.Unset - ] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, diff --git a/launch/api_client/model/create_model_bundle_request.pyi b/launch/api_client/model/create_model_bundle_request.pyi index 746bb18e..754e6560 100644 --- a/launch/api_client/model/create_model_bundle_request.pyi +++ b/launch/api_client/model/create_model_bundle_request.pyi @@ -96,31 +96,19 @@ class CreateModelBundleRequest(schemas.DictSchema): env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": ... + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: ... + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: ... + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["app_config"] - ) -> MetaOapg.properties.app_config: ... + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": ... + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["schema_location"] @@ -146,21 +134,13 @@ class CreateModelBundleRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": ... + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: ... + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["name"] - ) -> MetaOapg.properties.name: ... + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: ... + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["app_config"] @@ -178,9 +158,7 @@ class CreateModelBundleRequest(schemas.DictSchema): self, name: typing_extensions.Literal["schema_location"] ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -225,9 +203,7 @@ class CreateModelBundleRequest(schemas.DictSchema): MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, packaging_type: typing.Union["ModelBundlePackagingType", schemas.Unset] = schemas.unset, - schema_location: typing.Union[ - MetaOapg.properties.schema_location, str, schemas.Unset - ] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, diff --git a/launch/api_client/model/create_model_bundle_response.py b/launch/api_client/model/create_model_bundle_response.py index f51185f5..1fb4dc13 100644 --- a/launch/api_client/model/create_model_bundle_response.py +++ b/launch/api_client/model/create_model_bundle_response.py @@ -45,9 +45,7 @@ class properties: model_bundle_id: MetaOapg.properties.model_bundle_id @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -57,9 +55,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundle_id", - ], + typing_extensions.Literal["model_bundle_id",], str, ], ): @@ -67,9 +63,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -79,9 +73,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundle_id", - ], + typing_extensions.Literal["model_bundle_id",], str, ], ): diff --git a/launch/api_client/model/create_model_bundle_response.pyi b/launch/api_client/model/create_model_bundle_response.pyi index c7145f61..30718f7d 100644 --- a/launch/api_client/model/create_model_bundle_response.pyi +++ b/launch/api_client/model/create_model_bundle_response.pyi @@ -51,9 +51,7 @@ class CreateModelBundleResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundle_id", - ], + typing_extensions.Literal["model_bundle_id",], str, ], ): @@ -64,15 +62,11 @@ class CreateModelBundleResponse(schemas.DictSchema): self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundle_id", - ], + typing_extensions.Literal["model_bundle_id",], str, ], ): diff --git a/launch/api_client/model/create_model_bundle_v1_request.py b/launch/api_client/model/create_model_bundle_v1_request.py index d797e244..04e452ed 100644 --- a/launch/api_client/model/create_model_bundle_v1_request.py +++ b/launch/api_client/model/create_model_bundle_v1_request.py @@ -23,9 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class CreateModelBundleV1Request( - schemas.DictSchema -): +class CreateModelBundleV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,7 +32,6 @@ class CreateModelBundleV1Request( Request object for creating a Model Bundle. """ - class MetaOapg: required = { "requirements", @@ -43,41 +40,50 @@ class MetaOapg: "location", "env_params", } - + class properties: - @staticmethod - def env_params() -> typing.Type['ModelBundleEnvironmentParams']: + def env_params() -> typing.Type["ModelBundleEnvironmentParams"]: return ModelBundleEnvironmentParams + location = schemas.StrSchema name = schemas.StrSchema - + @staticmethod - def packaging_type() -> typing.Type['ModelBundlePackagingType']: + def packaging_type() -> typing.Type["ModelBundlePackagingType"]: return ModelBundlePackagingType - - - class requirements( - schemas.ListSchema - ): - - + + class requirements(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'requirements': + ) -> "requirements": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + app_config = schemas.DictSchema metadata = schemas.DictSchema schema_location = schemas.StrSchema @@ -91,90 +97,174 @@ def __getitem__(self, i: int) -> MetaOapg.items: "metadata": metadata, "schema_location": schema_location, } - + requirements: MetaOapg.properties.requirements - packaging_type: 'ModelBundlePackagingType' + packaging_type: "ModelBundlePackagingType" name: MetaOapg.properties.name location: MetaOapg.properties.location - env_params: 'ModelBundleEnvironmentParams' - + env_params: "ModelBundleEnvironmentParams" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... - + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... - + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "env_params", + "location", + "name", + "packaging_type", + "requirements", + "app_config", + "metadata", + "schema_location", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["app_config"] + ) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["schema_location"] + ) -> typing.Union[MetaOapg.properties.schema_location, 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["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "env_params", + "location", + "name", + "packaging_type", + "requirements", + "app_config", + "metadata", + "schema_location", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], - packaging_type: 'ModelBundlePackagingType', - name: typing.Union[MetaOapg.properties.name, str, ], - location: typing.Union[MetaOapg.properties.location, str, ], - env_params: 'ModelBundleEnvironmentParams', - app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + requirements: typing.Union[ + MetaOapg.properties.requirements, + list, + tuple, + ], + packaging_type: "ModelBundlePackagingType", + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + location: typing.Union[ + MetaOapg.properties.location, + str, + ], + env_params: "ModelBundleEnvironmentParams", + app_config: typing.Union[ + MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + metadata: typing.Union[ + MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, schema_location: typing.Union[MetaOapg.properties.schema_location, str, 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], - ) -> 'CreateModelBundleV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelBundleV1Request": return super().__new__( cls, *_args, @@ -190,5 +280,6 @@ def __new__( **kwargs, ) + from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/create_model_bundle_v1_request.pyi b/launch/api_client/model/create_model_bundle_v1_request.pyi index c951cd74..2cc59c5b 100644 --- a/launch/api_client/model/create_model_bundle_v1_request.pyi +++ b/launch/api_client/model/create_model_bundle_v1_request.pyi @@ -22,10 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateModelBundleV1Request( - schemas.DictSchema -): +class CreateModelBundleV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,7 +31,6 @@ class CreateModelBundleV1Request( Request object for creating a Model Bundle. """ - class MetaOapg: required = { "requirements", @@ -43,39 +39,44 @@ class CreateModelBundleV1Request( "location", "env_params", } - + class properties: - @staticmethod - def env_params() -> typing.Type['ModelBundleEnvironmentParams']: + def env_params() -> typing.Type["ModelBundleEnvironmentParams"]: return ModelBundleEnvironmentParams location = schemas.StrSchema name = schemas.StrSchema - + @staticmethod - def packaging_type() -> typing.Type['ModelBundlePackagingType']: + def packaging_type() -> typing.Type["ModelBundlePackagingType"]: return ModelBundlePackagingType - - - class requirements( - schemas.ListSchema - ): - - + + class requirements(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'requirements': + ) -> "requirements": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) app_config = schemas.DictSchema @@ -91,90 +92,137 @@ class CreateModelBundleV1Request( "metadata": metadata, "schema_location": schema_location, } - requirements: MetaOapg.properties.requirements - packaging_type: 'ModelBundlePackagingType' + packaging_type: "ModelBundlePackagingType" name: MetaOapg.properties.name location: MetaOapg.properties.location - env_params: 'ModelBundleEnvironmentParams' - + env_params: "ModelBundleEnvironmentParams" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... - + def __getitem__( + self, name: typing_extensions.Literal["schema_location"] + ) -> MetaOapg.properties.schema_location: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "env_params", + "location", + "name", + "packaging_type", + "requirements", + "app_config", + "metadata", + "schema_location", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["app_config"] + ) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["schema_location"] + ) -> typing.Union[MetaOapg.properties.schema_location, 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["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "env_params", + "location", + "name", + "packaging_type", + "requirements", + "app_config", + "metadata", + "schema_location", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], - packaging_type: 'ModelBundlePackagingType', - name: typing.Union[MetaOapg.properties.name, str, ], - location: typing.Union[MetaOapg.properties.location, str, ], - env_params: 'ModelBundleEnvironmentParams', - app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + requirements: typing.Union[ + MetaOapg.properties.requirements, + list, + tuple, + ], + packaging_type: "ModelBundlePackagingType", + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + location: typing.Union[ + MetaOapg.properties.location, + str, + ], + env_params: "ModelBundleEnvironmentParams", + app_config: typing.Union[ + MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + metadata: typing.Union[ + MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, schema_location: typing.Union[MetaOapg.properties.schema_location, str, 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], - ) -> 'CreateModelBundleV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelBundleV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_bundle_v1_response.py b/launch/api_client/model/create_model_bundle_v1_response.py index 638bd0cb..ddd0c0ef 100644 --- a/launch/api_client/model/create_model_bundle_v1_response.py +++ b/launch/api_client/model/create_model_bundle_v1_response.py @@ -23,9 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class CreateModelBundleV1Response( - schemas.DictSchema -): +class CreateModelBundleV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,48 +32,70 @@ class CreateModelBundleV1Response( Response object for creating a Model Bundle. """ - class MetaOapg: required = { "model_bundle_id", } - + class properties: model_bundle_id = schemas.StrSchema __annotations__ = { "model_bundle_id": model_bundle_id, } - + model_bundle_id: MetaOapg.properties.model_bundle_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + ... + @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["model_bundle_id", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, + str, + ], _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], - ) -> 'CreateModelBundleV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelBundleV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_bundle_v1_response.pyi b/launch/api_client/model/create_model_bundle_v1_response.pyi index c7da6274..629324d9 100644 --- a/launch/api_client/model/create_model_bundle_v1_response.pyi +++ b/launch/api_client/model/create_model_bundle_v1_response.pyi @@ -22,10 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateModelBundleV1Response( - schemas.DictSchema -): +class CreateModelBundleV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,48 +31,63 @@ class CreateModelBundleV1Response( Response object for creating a Model Bundle. """ - class MetaOapg: required = { "model_bundle_id", } - + class properties: model_bundle_id = schemas.StrSchema __annotations__ = { "model_bundle_id": model_bundle_id, } - model_bundle_id: MetaOapg.properties.model_bundle_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @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["model_bundle_id", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, + str, + ], _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], - ) -> 'CreateModelBundleV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelBundleV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_endpoint_request.py b/launch/api_client/model/create_model_endpoint_request.py index 56aca0e6..26c7c1cb 100644 --- a/launch/api_client/model/create_model_endpoint_request.py +++ b/launch/api_client/model/create_model_endpoint_request.py @@ -128,18 +128,14 @@ class MetaOapg: def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) @@ -419,9 +415,7 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload @@ -429,21 +423,15 @@ def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -451,21 +439,15 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["billing_tags"] - ) -> MetaOapg.properties.billing_tags: + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload @@ -479,9 +461,7 @@ def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload @@ -491,15 +471,11 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["prewarm"] - ) -> MetaOapg.properties.prewarm: + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload @@ -541,9 +517,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload @@ -551,39 +525,27 @@ def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -591,9 +553,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload @@ -615,9 +575,7 @@ def get_item_oapg( ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload @@ -768,9 +726,7 @@ def __new__( MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, diff --git a/launch/api_client/model/create_model_endpoint_request.pyi b/launch/api_client/model/create_model_endpoint_request.pyi index b1a37806..3741c1c3 100644 --- a/launch/api_client/model/create_model_endpoint_request.pyi +++ b/launch/api_client/model/create_model_endpoint_request.pyi @@ -123,17 +123,13 @@ class CreateModelEndpointRequest(schemas.DictSchema): additional_properties = schemas.StrSchema def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( @@ -380,31 +376,19 @@ class CreateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": ... + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: ... + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: ... + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: ... + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] @@ -412,17 +396,11 @@ class CreateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: ... + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["billing_tags"] - ) -> MetaOapg.properties.billing_tags: ... + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -430,21 +408,15 @@ class CreateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: ... + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["prewarm"] - ) -> MetaOapg.properties.prewarm: ... + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: ... + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -477,49 +449,29 @@ class CreateModelEndpointRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cpus"] - ) -> MetaOapg.properties.cpus: ... + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": ... + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpus"] - ) -> MetaOapg.properties.gpus: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: ... + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: ... + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: ... + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["name"] - ) -> MetaOapg.properties.name: ... + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: ... + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["billing_tags"] @@ -533,9 +485,7 @@ class CreateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["default_callback_url"] ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["optimize_costs"] @@ -553,9 +503,7 @@ class CreateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["storage"] ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -675,9 +623,7 @@ class CreateModelEndpointRequest(schemas.DictSchema): MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, diff --git a/launch/api_client/model/create_model_endpoint_response.py b/launch/api_client/model/create_model_endpoint_response.py index 716018f7..4f3144b3 100644 --- a/launch/api_client/model/create_model_endpoint_response.py +++ b/launch/api_client/model/create_model_endpoint_response.py @@ -55,9 +55,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): @@ -77,9 +75,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): diff --git a/launch/api_client/model/create_model_endpoint_response.pyi b/launch/api_client/model/create_model_endpoint_response.pyi index 6c562738..f11048d6 100644 --- a/launch/api_client/model/create_model_endpoint_response.pyi +++ b/launch/api_client/model/create_model_endpoint_response.pyi @@ -49,9 +49,7 @@ class CreateModelEndpointResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): @@ -62,15 +60,11 @@ class CreateModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["endpoint_creation_task_id"] ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): diff --git a/launch/api_client/model/create_model_endpoint_v1_request.py b/launch/api_client/model/create_model_endpoint_v1_request.py index b3198236..be1ab377 100644 --- a/launch/api_client/model/create_model_endpoint_v1_request.py +++ b/launch/api_client/model/create_model_endpoint_v1_request.py @@ -23,16 +23,13 @@ from launch.api_client import schemas # noqa: F401 -class CreateModelEndpointV1Request( - schemas.DictSchema -): +class CreateModelEndpointV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_type", @@ -47,20 +44,16 @@ class MetaOapg: "per_worker", "labels", } - + class properties: - - class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -76,83 +69,102 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def endpoint_type() -> typing.Type['ModelEndpointType']: + def endpoint_type() -> typing.Type["ModelEndpointType"]: return ModelEndpointType - - - class gpus( - schemas.IntSchema - ): - - + + class gpus(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - - class max_workers( - schemas.IntSchema - ): - - + + class max_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -168,99 +180,125 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + metadata = schemas.DictSchema - - - class min_workers( - schemas.IntSchema - ): - - + + class min_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 + model_bundle_id = schemas.StrSchema - - - class name( - schemas.StrSchema - ): - - + + class name(schemas.StrSchema): class MetaOapg: max_length = 63 + per_worker = schemas.IntSchema billing_tags = schemas.DictSchema - + @staticmethod - def default_callback_auth() -> typing.Type['CallbackAuth']: + def default_callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth - - - class default_callback_url( - schemas.StrSchema - ): - - + + class default_callback_url(schemas.StrSchema): class MetaOapg: - format = 'uri' + format = "uri" max_length = 2083 min_length = 1 - + @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType + high_priority = schemas.BoolSchema optimize_costs = schemas.BoolSchema - - - class post_inference_hooks( - schemas.ListSchema - ): - - + + class post_inference_hooks(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'post_inference_hooks': + ) -> "post_inference_hooks": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + prewarm = schemas.BoolSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -276,20 +314,52 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + __annotations__ = { "cpus": cpus, "endpoint_type": endpoint_type, @@ -312,8 +382,8 @@ def __new__( "prewarm": prewarm, "storage": storage, } - - endpoint_type: 'ModelEndpointType' + + endpoint_type: "ModelEndpointType" metadata: MetaOapg.properties.metadata memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus @@ -324,168 +394,391 @@ def __new__( name: MetaOapg.properties.name per_worker: MetaOapg.properties.per_worker labels: MetaOapg.properties.labels - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... - + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> MetaOapg.properties.default_callback_url: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... - + def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... - + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... - + def __getitem__( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> MetaOapg.properties.post_inference_hooks: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... - + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "endpoint_type", + "gpus", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "name", + "per_worker", + "billing_tags", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "high_priority", + "optimize_costs", + "post_inference_hooks", + "prewarm", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["billing_tags"] + ) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["high_priority"] + ) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["prewarm"] + ) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "endpoint_type", + "gpus", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "name", + "per_worker", + "billing_tags", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "high_priority", + "optimize_costs", + "post_inference_hooks", + "prewarm", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_type: 'ModelEndpointType', - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], - name: typing.Union[MetaOapg.properties.name, str, ], - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], - billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_type: "ModelEndpointType", + metadata: typing.Union[ + MetaOapg.properties.metadata, + dict, + frozendict.frozendict, + ], + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + max_workers: typing.Union[ + MetaOapg.properties.max_workers, + decimal.Decimal, + int, + ], + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, + str, + ], + min_workers: typing.Union[ + MetaOapg.properties.min_workers, + decimal.Decimal, + int, + ], + gpus: typing.Union[ + MetaOapg.properties.gpus, + decimal.Decimal, + int, + ], + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + per_worker: typing.Union[ + MetaOapg.properties.per_worker, + decimal.Decimal, + int, + ], + labels: typing.Union[ + MetaOapg.properties.labels, + dict, + frozendict.frozendict, + ], + billing_tags: typing.Union[ + MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[ + MetaOapg.properties.default_callback_url, str, schemas.Unset + ] = schemas.unset, + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + post_inference_hooks: typing.Union[ + MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset + ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'CreateModelEndpointV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelEndpointV1Request": return super().__new__( cls, *_args, @@ -513,6 +806,7 @@ def __new__( **kwargs, ) + from launch.api_client.model.callback_auth import CallbackAuth from launch.api_client.model.gpu_type import GpuType from launch.api_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/create_model_endpoint_v1_request.pyi b/launch/api_client/model/create_model_endpoint_v1_request.pyi index d1849c99..ff0193ad 100644 --- a/launch/api_client/model/create_model_endpoint_v1_request.pyi +++ b/launch/api_client/model/create_model_endpoint_v1_request.pyi @@ -22,17 +22,13 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateModelEndpointV1Request( - schemas.DictSchema -): +class CreateModelEndpointV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_type", @@ -47,20 +43,16 @@ class CreateModelEndpointV1Request( "per_worker", "labels", } - + class properties: - - class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -76,77 +68,95 @@ class CreateModelEndpointV1Request( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - @staticmethod - def endpoint_type() -> typing.Type['ModelEndpointType']: + def endpoint_type() -> typing.Type["ModelEndpointType"]: return ModelEndpointType - - - class gpus( - schemas.IntSchema - ): + + class gpus(schemas.IntSchema): pass - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - - class max_workers( - schemas.IntSchema - ): + + class max_workers(schemas.IntSchema): pass - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -162,14 +172,44 @@ class CreateModelEndpointV1Request( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, @@ -177,73 +217,66 @@ class CreateModelEndpointV1Request( **kwargs, ) metadata = schemas.DictSchema - - - class min_workers( - schemas.IntSchema - ): + + class min_workers(schemas.IntSchema): pass model_bundle_id = schemas.StrSchema - - - class name( - schemas.StrSchema - ): + + class name(schemas.StrSchema): pass per_worker = schemas.IntSchema billing_tags = schemas.DictSchema - + @staticmethod - def default_callback_auth() -> typing.Type['CallbackAuth']: + def default_callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth - - - class default_callback_url( - schemas.StrSchema - ): + + class default_callback_url(schemas.StrSchema): pass - @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType high_priority = schemas.BoolSchema optimize_costs = schemas.BoolSchema - - - class post_inference_hooks( - schemas.ListSchema - ): - - + + class post_inference_hooks(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'post_inference_hooks': + ) -> "post_inference_hooks": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) prewarm = schemas.BoolSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -259,14 +292,44 @@ class CreateModelEndpointV1Request( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, @@ -295,8 +358,7 @@ class CreateModelEndpointV1Request( "prewarm": prewarm, "storage": storage, } - - endpoint_type: 'ModelEndpointType' + endpoint_type: "ModelEndpointType" metadata: MetaOapg.properties.metadata memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus @@ -307,168 +369,309 @@ class CreateModelEndpointV1Request( name: MetaOapg.properties.name per_worker: MetaOapg.properties.per_worker labels: MetaOapg.properties.labels - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> MetaOapg.properties.default_callback_url: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... - + def __getitem__( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "endpoint_type", + "gpus", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "name", + "per_worker", + "billing_tags", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "high_priority", + "optimize_costs", + "post_inference_hooks", + "prewarm", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["billing_tags"] + ) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["high_priority"] + ) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["prewarm"] + ) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "endpoint_type", + "gpus", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "name", + "per_worker", + "billing_tags", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "high_priority", + "optimize_costs", + "post_inference_hooks", + "prewarm", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_type: 'ModelEndpointType', - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], - name: typing.Union[MetaOapg.properties.name, str, ], - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], - billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_type: "ModelEndpointType", + metadata: typing.Union[ + MetaOapg.properties.metadata, + dict, + frozendict.frozendict, + ], + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + max_workers: typing.Union[ + MetaOapg.properties.max_workers, + decimal.Decimal, + int, + ], + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, + str, + ], + min_workers: typing.Union[ + MetaOapg.properties.min_workers, + decimal.Decimal, + int, + ], + gpus: typing.Union[ + MetaOapg.properties.gpus, + decimal.Decimal, + int, + ], + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + per_worker: typing.Union[ + MetaOapg.properties.per_worker, + decimal.Decimal, + int, + ], + labels: typing.Union[ + MetaOapg.properties.labels, + dict, + frozendict.frozendict, + ], + billing_tags: typing.Union[ + MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[ + MetaOapg.properties.default_callback_url, str, schemas.Unset + ] = schemas.unset, + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + post_inference_hooks: typing.Union[ + MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset + ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'CreateModelEndpointV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelEndpointV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_endpoint_v1_response.py b/launch/api_client/model/create_model_endpoint_v1_response.py index 6f344894..16079382 100644 --- a/launch/api_client/model/create_model_endpoint_v1_response.py +++ b/launch/api_client/model/create_model_endpoint_v1_response.py @@ -23,57 +23,81 @@ from launch.api_client import schemas # noqa: F401 -class CreateModelEndpointV1Response( - schemas.DictSchema -): +class CreateModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_creation_task_id", } - + class properties: endpoint_creation_task_id = schemas.StrSchema __annotations__ = { "endpoint_creation_task_id": endpoint_creation_task_id, } - + endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: + ... + @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["endpoint_creation_task_id", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_creation_task_id: typing.Union[ + MetaOapg.properties.endpoint_creation_task_id, + str, + ], _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], - ) -> 'CreateModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_endpoint_v1_response.pyi b/launch/api_client/model/create_model_endpoint_v1_response.pyi index 0b696784..935ba49a 100644 --- a/launch/api_client/model/create_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/create_model_endpoint_v1_response.pyi @@ -22,58 +22,70 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateModelEndpointV1Response( - schemas.DictSchema -): +class CreateModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_creation_task_id", } - + class properties: endpoint_creation_task_id = schemas.StrSchema __annotations__ = { "endpoint_creation_task_id": endpoint_creation_task_id, } - endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: ... @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["endpoint_creation_task_id", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_creation_task_id: typing.Union[ + MetaOapg.properties.endpoint_creation_task_id, + str, + ], _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], - ) -> 'CreateModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/delete_model_endpoint_response.py b/launch/api_client/model/delete_model_endpoint_response.py index 3525cd4e..8609b0d5 100644 --- a/launch/api_client/model/delete_model_endpoint_response.py +++ b/launch/api_client/model/delete_model_endpoint_response.py @@ -43,9 +43,7 @@ class properties: deleted: MetaOapg.properties.deleted @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deleted"] - ) -> MetaOapg.properties.deleted: + def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload @@ -55,9 +53,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "deleted", - ], + typing_extensions.Literal["deleted",], str, ], ): @@ -65,9 +61,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["deleted"] - ) -> MetaOapg.properties.deleted: + def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload @@ -77,9 +71,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "deleted", - ], + typing_extensions.Literal["deleted",], str, ], ): diff --git a/launch/api_client/model/delete_model_endpoint_response.pyi b/launch/api_client/model/delete_model_endpoint_response.pyi index e74f51b3..a5b0efdd 100644 --- a/launch/api_client/model/delete_model_endpoint_response.pyi +++ b/launch/api_client/model/delete_model_endpoint_response.pyi @@ -41,36 +41,26 @@ class DeleteModelEndpointResponse(schemas.DictSchema): deleted: MetaOapg.properties.deleted @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deleted"] - ) -> MetaOapg.properties.deleted: ... + def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "deleted", - ], + typing_extensions.Literal["deleted",], str, ], ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["deleted"] - ) -> MetaOapg.properties.deleted: ... + def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "deleted", - ], + typing_extensions.Literal["deleted",], str, ], ): diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.py b/launch/api_client/model/delete_model_endpoint_v1_response.py index dea0d23d..abf0b181 100644 --- a/launch/api_client/model/delete_model_endpoint_v1_response.py +++ b/launch/api_client/model/delete_model_endpoint_v1_response.py @@ -23,57 +23,77 @@ from launch.api_client import schemas # noqa: F401 -class DeleteModelEndpointV1Response( - schemas.DictSchema -): +class DeleteModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "deleted", } - + class properties: deleted = schemas.BoolSchema __annotations__ = { "deleted": deleted, } - + deleted: MetaOapg.properties.deleted - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... - + def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... - + def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: + ... + @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["deleted", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - deleted: typing.Union[MetaOapg.properties.deleted, bool, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + deleted: typing.Union[ + MetaOapg.properties.deleted, + bool, + ], _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], - ) -> 'DeleteModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "DeleteModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.pyi b/launch/api_client/model/delete_model_endpoint_v1_response.pyi index f8cc65ff..d4a97022 100644 --- a/launch/api_client/model/delete_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/delete_model_endpoint_v1_response.pyi @@ -22,58 +22,66 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class DeleteModelEndpointV1Response( - schemas.DictSchema -): +class DeleteModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "deleted", } - + class properties: deleted = schemas.BoolSchema __annotations__ = { "deleted": deleted, } - deleted: MetaOapg.properties.deleted - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... - @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["deleted", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - deleted: typing.Union[MetaOapg.properties.deleted, bool, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + deleted: typing.Union[ + MetaOapg.properties.deleted, + bool, + ], _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], - ) -> 'DeleteModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "DeleteModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/endpoint_predict_request.py b/launch/api_client/model/endpoint_predict_request.py index 571e046a..48eaaf0a 100644 --- a/launch/api_client/model/endpoint_predict_request.py +++ b/launch/api_client/model/endpoint_predict_request.py @@ -59,21 +59,15 @@ def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "Call ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["callback_url"] - ) -> MetaOapg.properties.callback_url: + def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["cloudpickle"] - ) -> MetaOapg.properties.cloudpickle: + def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["return_pickled"] - ) -> MetaOapg.properties.return_pickled: + def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... @typing.overload @@ -184,15 +178,9 @@ def __new__( schemas.Unset, ] = schemas.unset, callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - callback_url: typing.Union[ - MetaOapg.properties.callback_url, str, schemas.Unset - ] = schemas.unset, - cloudpickle: typing.Union[ - MetaOapg.properties.cloudpickle, str, schemas.Unset - ] = schemas.unset, - return_pickled: typing.Union[ - MetaOapg.properties.return_pickled, bool, schemas.Unset - ] = schemas.unset, + callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, + cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, + return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ diff --git a/launch/api_client/model/endpoint_predict_request.pyi b/launch/api_client/model/endpoint_predict_request.pyi index 03516a99..656cb6f8 100644 --- a/launch/api_client/model/endpoint_predict_request.pyi +++ b/launch/api_client/model/endpoint_predict_request.pyi @@ -52,17 +52,11 @@ class EndpointPredictRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "CallbackAuth": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["callback_url"] - ) -> MetaOapg.properties.callback_url: ... + def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["cloudpickle"] - ) -> MetaOapg.properties.cloudpickle: ... + def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["return_pickled"] - ) -> MetaOapg.properties.return_pickled: ... + def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... @typing.overload @@ -108,9 +102,7 @@ class EndpointPredictRequest(schemas.DictSchema): self, name: typing_extensions.Literal["url"] ) -> typing.Union[MetaOapg.properties.url, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -153,15 +145,9 @@ class EndpointPredictRequest(schemas.DictSchema): schemas.Unset, ] = schemas.unset, callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - callback_url: typing.Union[ - MetaOapg.properties.callback_url, str, schemas.Unset - ] = schemas.unset, - cloudpickle: typing.Union[ - MetaOapg.properties.cloudpickle, str, schemas.Unset - ] = schemas.unset, - return_pickled: typing.Union[ - MetaOapg.properties.return_pickled, bool, schemas.Unset - ] = schemas.unset, + callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, + cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, + return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ diff --git a/launch/api_client/model/endpoint_predict_v1_request.py b/launch/api_client/model/endpoint_predict_v1_request.py index 79f2c87b..28a7b332 100644 --- a/launch/api_client/model/endpoint_predict_v1_request.py +++ b/launch/api_client/model/endpoint_predict_v1_request.py @@ -23,24 +23,21 @@ from launch.api_client import schemas # noqa: F401 -class EndpointPredictV1Request( - schemas.DictSchema -): +class EndpointPredictV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: args = schemas.AnyTypeSchema - + @staticmethod - def callback_auth() -> typing.Type['CallbackAuth']: + def callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth + callback_url = schemas.StrSchema cloudpickle = schemas.StrSchema return_pickled = schemas.BoolSchema @@ -53,70 +50,157 @@ def callback_auth() -> typing.Type['CallbackAuth']: "return_pickled": return_pickled, "url": url, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["args"]) -> MetaOapg.properties.args: ... - + def __getitem__(self, name: typing_extensions.Literal["args"]) -> MetaOapg.properties.args: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "CallbackAuth": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... - + def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... - + def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... - + def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... - + def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "args", + "callback_auth", + "callback_url", + "cloudpickle", + "return_pickled", + "url", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["args"]) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["args"] + ) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["callback_url"]) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["callback_url"] + ) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cloudpickle"]) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cloudpickle"] + ) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["return_pickled"]) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["return_pickled"] + ) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["url"]) -> typing.Union[MetaOapg.properties.url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["url"] + ) -> typing.Union[MetaOapg.properties.url, 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["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "args", + "callback_auth", + "callback_url", + "cloudpickle", + "return_pickled", + "url", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - args: typing.Union[MetaOapg.properties.args, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + args: typing.Union[ + MetaOapg.properties.args, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, 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], - ) -> 'EndpointPredictV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "EndpointPredictV1Request": return super().__new__( cls, *_args, @@ -130,4 +214,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.callback_auth import CallbackAuth diff --git a/launch/api_client/model/endpoint_predict_v1_request.pyi b/launch/api_client/model/endpoint_predict_v1_request.pyi index 018c61dc..defbd0d4 100644 --- a/launch/api_client/model/endpoint_predict_v1_request.pyi +++ b/launch/api_client/model/endpoint_predict_v1_request.pyi @@ -22,24 +22,19 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class EndpointPredictV1Request( - schemas.DictSchema -): +class EndpointPredictV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: args = schemas.AnyTypeSchema - + @staticmethod - def callback_auth() -> typing.Type['CallbackAuth']: + def callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth callback_url = schemas.StrSchema cloudpickle = schemas.StrSchema @@ -53,70 +48,126 @@ class EndpointPredictV1Request( "return_pickled": return_pickled, "url": url, } - @typing.overload def __getitem__(self, name: typing_extensions.Literal["args"]) -> MetaOapg.properties.args: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "CallbackAuth": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "args", + "callback_auth", + "callback_url", + "cloudpickle", + "return_pickled", + "url", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["args"]) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["args"] + ) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["callback_url"]) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["callback_url"] + ) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cloudpickle"]) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cloudpickle"] + ) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["return_pickled"]) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["return_pickled"] + ) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["url"]) -> typing.Union[MetaOapg.properties.url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["url"] + ) -> typing.Union[MetaOapg.properties.url, 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["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "args", + "callback_auth", + "callback_url", + "cloudpickle", + "return_pickled", + "url", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - args: typing.Union[MetaOapg.properties.args, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + args: typing.Union[ + MetaOapg.properties.args, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, 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], - ) -> 'EndpointPredictV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "EndpointPredictV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/get_async_task_response.py b/launch/api_client/model/get_async_task_response.py index f50a32ac..a344586b 100644 --- a/launch/api_client/model/get_async_task_response.py +++ b/launch/api_client/model/get_async_task_response.py @@ -58,9 +58,7 @@ def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus" ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload @@ -68,9 +66,7 @@ def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["traceback"] - ) -> MetaOapg.properties.traceback: + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... @typing.overload @@ -97,9 +93,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatu ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload diff --git a/launch/api_client/model/get_async_task_response.pyi b/launch/api_client/model/get_async_task_response.pyi index 9117c7a1..8dacef03 100644 --- a/launch/api_client/model/get_async_task_response.pyi +++ b/launch/api_client/model/get_async_task_response.pyi @@ -53,17 +53,11 @@ class GetAsyncTaskResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: ... + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["result"] - ) -> MetaOapg.properties.result: ... + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["traceback"] - ) -> MetaOapg.properties.traceback: ... + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -83,9 +77,7 @@ class GetAsyncTaskResponse(schemas.DictSchema): @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["result"] @@ -95,9 +87,7 @@ class GetAsyncTaskResponse(schemas.DictSchema): self, name: typing_extensions.Literal["traceback"] ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/get_async_task_v1_response.py b/launch/api_client/model/get_async_task_v1_response.py index 101107ad..f3340657 100644 --- a/launch/api_client/model/get_async_task_v1_response.py +++ b/launch/api_client/model/get_async_task_v1_response.py @@ -23,27 +23,24 @@ from launch.api_client import schemas # noqa: F401 -class GetAsyncTaskV1Response( - schemas.DictSchema -): +class GetAsyncTaskV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "task_id", "status", } - + class properties: - @staticmethod - def status() -> typing.Type['TaskStatus']: + def status() -> typing.Type["TaskStatus"]: return TaskStatus + task_id = schemas.StrSchema result = schemas.AnyTypeSchema traceback = schemas.StrSchema @@ -53,59 +50,133 @@ def status() -> typing.Type['TaskStatus']: "result": result, "traceback": traceback, } - + task_id: MetaOapg.properties.task_id - status: 'TaskStatus' - + status: "TaskStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... - + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "task_id", "result", "traceback", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "task_id", + "result", + "traceback", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["result"] + ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["traceback"] + ) -> typing.Union[MetaOapg.properties.traceback, 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["status", "task_id", "result", "traceback", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "task_id", + "result", + "traceback", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - task_id: typing.Union[MetaOapg.properties.task_id, str, ], - status: 'TaskStatus', - result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + task_id: typing.Union[ + MetaOapg.properties.task_id, + str, + ], + status: "TaskStatus", + result: typing.Union[ + MetaOapg.properties.result, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, traceback: typing.Union[MetaOapg.properties.traceback, str, 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], - ) -> 'GetAsyncTaskV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "GetAsyncTaskV1Response": return super().__new__( cls, *_args, @@ -117,4 +188,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.task_status import TaskStatus diff --git a/launch/api_client/model/get_async_task_v1_response.pyi b/launch/api_client/model/get_async_task_v1_response.pyi index d560363f..b7c6e8c4 100644 --- a/launch/api_client/model/get_async_task_v1_response.pyi +++ b/launch/api_client/model/get_async_task_v1_response.pyi @@ -22,27 +22,22 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class GetAsyncTaskV1Response( - schemas.DictSchema -): +class GetAsyncTaskV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "task_id", "status", } - + class properties: - @staticmethod - def status() -> typing.Type['TaskStatus']: + def status() -> typing.Type["TaskStatus"]: return TaskStatus task_id = schemas.StrSchema result = schemas.AnyTypeSchema @@ -53,59 +48,110 @@ class GetAsyncTaskV1Response( "result": result, "traceback": traceback, } - task_id: MetaOapg.properties.task_id - status: 'TaskStatus' - + status: "TaskStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "task_id", "result", "traceback", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "task_id", + "result", + "traceback", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["result"] + ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["traceback"] + ) -> typing.Union[MetaOapg.properties.traceback, 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["status", "task_id", "result", "traceback", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "task_id", + "result", + "traceback", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - task_id: typing.Union[MetaOapg.properties.task_id, str, ], - status: 'TaskStatus', - result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + task_id: typing.Union[ + MetaOapg.properties.task_id, + str, + ], + status: "TaskStatus", + result: typing.Union[ + MetaOapg.properties.result, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, traceback: typing.Union[MetaOapg.properties.traceback, str, 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], - ) -> 'GetAsyncTaskV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "GetAsyncTaskV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/get_batch_job_response.py b/launch/api_client/model/get_batch_job_response.py index 28daa803..e3ca3b04 100644 --- a/launch/api_client/model/get_batch_job_response.py +++ b/launch/api_client/model/get_batch_job_response.py @@ -57,9 +57,7 @@ def status() -> typing.Type["BatchJobStatus"]: status: "BatchJobStatus" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["duration"] - ) -> MetaOapg.properties.duration: + def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... @typing.overload @@ -103,9 +101,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["duration"] - ) -> MetaOapg.properties.duration: + def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... @typing.overload diff --git a/launch/api_client/model/get_batch_job_response.pyi b/launch/api_client/model/get_batch_job_response.pyi index c8b24ecf..ae4b676d 100644 --- a/launch/api_client/model/get_batch_job_response.pyi +++ b/launch/api_client/model/get_batch_job_response.pyi @@ -54,9 +54,7 @@ class GetBatchJobResponse(schemas.DictSchema): status: "BatchJobStatus" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["duration"] - ) -> MetaOapg.properties.duration: ... + def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload @@ -68,9 +66,7 @@ class GetBatchJobResponse(schemas.DictSchema): self, name: typing_extensions.Literal["num_tasks_pending"] ) -> MetaOapg.properties.num_tasks_pending: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["result"] - ) -> MetaOapg.properties.result: ... + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -89,9 +85,7 @@ class GetBatchJobResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["duration"] - ) -> MetaOapg.properties.duration: ... + def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload @@ -107,9 +101,7 @@ class GetBatchJobResponse(schemas.DictSchema): self, name: typing_extensions.Literal["result"] ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/get_batch_job_v1_response.py b/launch/api_client/model/get_batch_job_v1_response.py index d6a779c6..f51b1a60 100644 --- a/launch/api_client/model/get_batch_job_v1_response.py +++ b/launch/api_client/model/get_batch_job_v1_response.py @@ -23,28 +23,26 @@ from launch.api_client import schemas # noqa: F401 -class GetBatchJobV1Response( - schemas.DictSchema -): +class GetBatchJobV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "duration", "status", } - + class properties: duration = schemas.NumberSchema - + @staticmethod - def status() -> typing.Type['BatchJobStatus']: + def status() -> typing.Type["BatchJobStatus"]: return BatchJobStatus + num_tasks_completed = schemas.IntSchema num_tasks_pending = schemas.IntSchema result = schemas.StrSchema @@ -55,66 +53,137 @@ def status() -> typing.Type['BatchJobStatus']: "num_tasks_pending": num_tasks_pending, "result": result, } - + duration: MetaOapg.properties.duration - status: 'BatchJobStatus' - + status: "BatchJobStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... - + def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_tasks_completed"]) -> MetaOapg.properties.num_tasks_completed: ... - + def __getitem__( + self, name: typing_extensions.Literal["num_tasks_completed"] + ) -> MetaOapg.properties.num_tasks_completed: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_tasks_pending"]) -> MetaOapg.properties.num_tasks_pending: ... - + def __getitem__( + self, name: typing_extensions.Literal["num_tasks_pending"] + ) -> MetaOapg.properties.num_tasks_pending: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "duration", + "status", + "num_tasks_completed", + "num_tasks_pending", + "result", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... - + def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_completed"]) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["num_tasks_completed"] + ) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_pending"]) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["num_tasks_pending"] + ) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["result"] + ) -> typing.Union[MetaOapg.properties.result, 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["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "duration", + "status", + "num_tasks_completed", + "num_tasks_pending", + "result", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - duration: typing.Union[MetaOapg.properties.duration, decimal.Decimal, int, float, ], - status: 'BatchJobStatus', - num_tasks_completed: typing.Union[MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset] = schemas.unset, - num_tasks_pending: typing.Union[MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + duration: typing.Union[ + MetaOapg.properties.duration, + decimal.Decimal, + int, + float, + ], + status: "BatchJobStatus", + num_tasks_completed: typing.Union[ + MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + num_tasks_pending: typing.Union[ + MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, result: typing.Union[MetaOapg.properties.result, str, 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], - ) -> 'GetBatchJobV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "GetBatchJobV1Response": return super().__new__( cls, *_args, @@ -127,4 +196,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.batch_job_status import BatchJobStatus diff --git a/launch/api_client/model/get_batch_job_v1_response.pyi b/launch/api_client/model/get_batch_job_v1_response.pyi index b0b58d48..5ad4a9b0 100644 --- a/launch/api_client/model/get_batch_job_v1_response.pyi +++ b/launch/api_client/model/get_batch_job_v1_response.pyi @@ -22,28 +22,24 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class GetBatchJobV1Response( - schemas.DictSchema -): +class GetBatchJobV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "duration", "status", } - + class properties: duration = schemas.NumberSchema - + @staticmethod - def status() -> typing.Type['BatchJobStatus']: + def status() -> typing.Type["BatchJobStatus"]: return BatchJobStatus num_tasks_completed = schemas.IntSchema num_tasks_pending = schemas.IntSchema @@ -55,66 +51,110 @@ class GetBatchJobV1Response( "num_tasks_pending": num_tasks_pending, "result": result, } - duration: MetaOapg.properties.duration - status: 'BatchJobStatus' - + status: "BatchJobStatus" + @typing.overload def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_tasks_completed"]) -> MetaOapg.properties.num_tasks_completed: ... - + def __getitem__( + self, name: typing_extensions.Literal["num_tasks_completed"] + ) -> MetaOapg.properties.num_tasks_completed: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_tasks_pending"]) -> MetaOapg.properties.num_tasks_pending: ... - + def __getitem__( + self, name: typing_extensions.Literal["num_tasks_pending"] + ) -> MetaOapg.properties.num_tasks_pending: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "duration", + "status", + "num_tasks_completed", + "num_tasks_pending", + "result", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_completed"]) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["num_tasks_completed"] + ) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_pending"]) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["num_tasks_pending"] + ) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["result"] + ) -> typing.Union[MetaOapg.properties.result, 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["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "duration", + "status", + "num_tasks_completed", + "num_tasks_pending", + "result", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - duration: typing.Union[MetaOapg.properties.duration, decimal.Decimal, int, float, ], - status: 'BatchJobStatus', - num_tasks_completed: typing.Union[MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset] = schemas.unset, - num_tasks_pending: typing.Union[MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + duration: typing.Union[ + MetaOapg.properties.duration, + decimal.Decimal, + int, + float, + ], + status: "BatchJobStatus", + num_tasks_completed: typing.Union[ + MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + num_tasks_pending: typing.Union[ + MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, result: typing.Union[MetaOapg.properties.result, str, 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], - ) -> 'GetBatchJobV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "GetBatchJobV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/get_model_endpoint_response.py b/launch/api_client/model/get_model_endpoint_response.py index 1257117e..4f69ecea 100644 --- a/launch/api_client/model/get_model_endpoint_response.py +++ b/launch/api_client/model/get_model_endpoint_response.py @@ -84,18 +84,14 @@ class MetaOapg: def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) @@ -191,27 +187,19 @@ def resource_state() -> typing.Type["ModelEndpointResourceState"]: status: "ModelEndpointStatus" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["bundle_name"] - ) -> MetaOapg.properties.bundle_name: + def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_by"] - ) -> MetaOapg.properties.created_by: + def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["destination"] - ) -> MetaOapg.properties.destination: + def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... @typing.overload @@ -223,9 +211,7 @@ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.propert ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["last_updated_at"] - ) -> MetaOapg.properties.last_updated_at: + def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... @typing.overload @@ -237,15 +223,11 @@ def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpoi ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["aws_role"] - ) -> MetaOapg.properties.aws_role: + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload @@ -255,15 +237,11 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deployment_name"] - ) -> MetaOapg.properties.deployment_name: + def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deployment_state"] - ) -> "ModelEndpointDeploymentState": + def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": ... @typing.overload @@ -271,15 +249,11 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["num_queued_items"] - ) -> MetaOapg.properties.num_queued_items: + def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: ... @typing.overload @@ -289,9 +263,7 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["resource_state"] - ) -> "ModelEndpointResourceState": + def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": ... @typing.overload @@ -336,33 +308,23 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["bundle_name"] - ) -> MetaOapg.properties.bundle_name: + def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_by"] - ) -> MetaOapg.properties.created_by: + def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["destination"] - ) -> MetaOapg.properties.destination: + def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload @@ -370,9 +332,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.prope ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["last_updated_at"] - ) -> MetaOapg.properties.last_updated_at: + def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... @typing.overload @@ -526,15 +486,9 @@ def __new__( default_callback_url: typing.Union[ MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, - deployment_name: typing.Union[ - MetaOapg.properties.deployment_name, str, schemas.Unset - ] = schemas.unset, - deployment_state: typing.Union[ - "ModelEndpointDeploymentState", schemas.Unset - ] = schemas.unset, - labels: typing.Union[ - MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, + deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, + deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, @@ -545,9 +499,7 @@ def __new__( MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[ - MetaOapg.properties.results_s3_bucket, str, schemas.Unset - ] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, diff --git a/launch/api_client/model/get_model_endpoint_response.pyi b/launch/api_client/model/get_model_endpoint_response.pyi index 5add04a0..972990d2 100644 --- a/launch/api_client/model/get_model_endpoint_response.pyi +++ b/launch/api_client/model/get_model_endpoint_response.pyi @@ -76,17 +76,13 @@ class GetModelEndpointResponse(schemas.DictSchema): additional_properties = schemas.StrSchema def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( @@ -175,25 +171,15 @@ class GetModelEndpointResponse(schemas.DictSchema): status: "ModelEndpointStatus" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["bundle_name"] - ) -> MetaOapg.properties.bundle_name: ... + def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: ... + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_by"] - ) -> MetaOapg.properties.created_by: ... + def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["destination"] - ) -> MetaOapg.properties.destination: ... + def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": ... + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload @@ -205,13 +191,9 @@ class GetModelEndpointResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["aws_role"] - ) -> MetaOapg.properties.aws_role: ... + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -221,17 +203,11 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["deployment_name"] ) -> MetaOapg.properties.deployment_name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deployment_state"] - ) -> "ModelEndpointDeploymentState": ... + def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["num_queued_items"] @@ -241,9 +217,7 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["resource_state"] - ) -> "ModelEndpointResourceState": ... + def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["results_s3_bucket"] @@ -281,25 +255,15 @@ class GetModelEndpointResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["bundle_name"] - ) -> MetaOapg.properties.bundle_name: ... + def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: ... + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_by"] - ) -> MetaOapg.properties.created_by: ... + def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["destination"] - ) -> MetaOapg.properties.destination: ... + def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": ... + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload @@ -307,9 +271,7 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["last_updated_at"] ) -> MetaOapg.properties.last_updated_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["name"] - ) -> MetaOapg.properties.name: ... + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload @@ -357,9 +319,7 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["results_s3_bucket"] ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -432,15 +392,9 @@ class GetModelEndpointResponse(schemas.DictSchema): default_callback_url: typing.Union[ MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, - deployment_name: typing.Union[ - MetaOapg.properties.deployment_name, str, schemas.Unset - ] = schemas.unset, - deployment_state: typing.Union[ - "ModelEndpointDeploymentState", schemas.Unset - ] = schemas.unset, - labels: typing.Union[ - MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, + deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, + deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, @@ -451,9 +405,7 @@ class GetModelEndpointResponse(schemas.DictSchema): MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[ - MetaOapg.properties.results_s3_bucket, str, schemas.Unset - ] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, diff --git a/launch/api_client/model/get_model_endpoint_v1_response.py b/launch/api_client/model/get_model_endpoint_v1_response.py index 49bcbab2..0ac6056a 100644 --- a/launch/api_client/model/get_model_endpoint_v1_response.py +++ b/launch/api_client/model/get_model_endpoint_v1_response.py @@ -23,16 +23,13 @@ from launch.api_client import schemas # noqa: F401 -class GetModelEndpointV1Response( - schemas.DictSchema -): +class GetModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_type", @@ -45,102 +42,111 @@ class MetaOapg: "created_by", "status", } - + class properties: bundle_name = schemas.StrSchema created_at = schemas.DateTimeSchema created_by = schemas.StrSchema destination = schemas.StrSchema - + @staticmethod - def endpoint_type() -> typing.Type['ModelEndpointType']: + def endpoint_type() -> typing.Type["ModelEndpointType"]: return ModelEndpointType + id = schemas.StrSchema last_updated_at = schemas.DateTimeSchema name = schemas.StrSchema - + @staticmethod - def status() -> typing.Type['ModelEndpointStatus']: + def status() -> typing.Type["ModelEndpointStatus"]: return ModelEndpointStatus + aws_role = schemas.StrSchema - + @staticmethod - def default_callback_auth() -> typing.Type['CallbackAuth']: + def default_callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth - - - class default_callback_url( - schemas.StrSchema - ): - - + + class default_callback_url(schemas.StrSchema): class MetaOapg: - format = 'uri' + format = "uri" max_length = 2083 min_length = 1 + deployment_name = schemas.StrSchema - + @staticmethod - def deployment_state() -> typing.Type['ModelEndpointDeploymentState']: + def deployment_state() -> typing.Type["ModelEndpointDeploymentState"]: return ModelEndpointDeploymentState - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + metadata = schemas.DictSchema num_queued_items = schemas.IntSchema - - - class post_inference_hooks( - schemas.ListSchema - ): - - + + class post_inference_hooks(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'post_inference_hooks': + ) -> "post_inference_hooks": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) - + @staticmethod - def resource_state() -> typing.Type['ModelEndpointResourceState']: + def resource_state() -> typing.Type["ModelEndpointResourceState"]: return ModelEndpointResourceState + results_s3_bucket = schemas.StrSchema __annotations__ = { "bundle_name": bundle_name, @@ -164,8 +170,8 @@ def resource_state() -> typing.Type['ModelEndpointResourceState']: "resource_state": resource_state, "results_s3_bucket": results_s3_bucket, } - - endpoint_type: 'ModelEndpointType' + + endpoint_type: "ModelEndpointType" last_updated_at: MetaOapg.properties.last_updated_at destination: MetaOapg.properties.destination name: MetaOapg.properties.name @@ -173,169 +179,340 @@ def resource_state() -> typing.Type['ModelEndpointResourceState']: bundle_name: MetaOapg.properties.bundle_name id: MetaOapg.properties.id created_by: MetaOapg.properties.created_by - status: 'ModelEndpointStatus' - + status: "ModelEndpointStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... - + def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... - + def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - + def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... - + def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... - + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> MetaOapg.properties.default_callback_url: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: ... - + def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> 'ModelEndpointDeploymentState': ... - + def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: ... - + def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... - + def __getitem__( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> MetaOapg.properties.post_inference_hooks: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> 'ModelEndpointResourceState': ... - + def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... - + def __getitem__( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> MetaOapg.properties.results_s3_bucket: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "bundle_name", + "created_at", + "created_by", + "destination", + "endpoint_type", + "id", + "last_updated_at", + "name", + "status", + "aws_role", + "default_callback_auth", + "default_callback_url", + "deployment_name", + "deployment_state", + "labels", + "metadata", + "num_queued_items", + "post_inference_hooks", + "resource_state", + "results_s3_bucket", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... - + def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... - + def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - + def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... - + def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["aws_role"] + ) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deployment_name"]) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["deployment_name"] + ) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deployment_state"]) -> typing.Union['ModelEndpointDeploymentState', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["deployment_state"] + ) -> typing.Union["ModelEndpointDeploymentState", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["num_queued_items"]) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["num_queued_items"] + ) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource_state"]) -> typing.Union['ModelEndpointResourceState', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["resource_state"] + ) -> typing.Union["ModelEndpointResourceState", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> typing.Union[MetaOapg.properties.results_s3_bucket, 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["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "bundle_name", + "created_at", + "created_by", + "destination", + "endpoint_type", + "id", + "last_updated_at", + "name", + "status", + "aws_role", + "default_callback_auth", + "default_callback_url", + "deployment_name", + "deployment_state", + "labels", + "metadata", + "num_queued_items", + "post_inference_hooks", + "resource_state", + "results_s3_bucket", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_type: 'ModelEndpointType', - last_updated_at: typing.Union[MetaOapg.properties.last_updated_at, str, datetime, ], - destination: typing.Union[MetaOapg.properties.destination, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], - bundle_name: typing.Union[MetaOapg.properties.bundle_name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - created_by: typing.Union[MetaOapg.properties.created_by, str, ], - status: 'ModelEndpointStatus', + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_type: "ModelEndpointType", + last_updated_at: typing.Union[ + MetaOapg.properties.last_updated_at, + str, + datetime, + ], + destination: typing.Union[ + MetaOapg.properties.destination, + str, + ], + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + created_at: typing.Union[ + MetaOapg.properties.created_at, + str, + datetime, + ], + bundle_name: typing.Union[ + MetaOapg.properties.bundle_name, + str, + ], + id: typing.Union[ + MetaOapg.properties.id, + str, + ], + created_by: typing.Union[ + MetaOapg.properties.created_by, + str, + ], + status: "ModelEndpointStatus", aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[ + MetaOapg.properties.default_callback_url, str, schemas.Unset + ] = schemas.unset, deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, - deployment_state: typing.Union['ModelEndpointDeploymentState', schemas.Unset] = schemas.unset, + deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - num_queued_items: typing.Union[MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, - resource_state: typing.Union['ModelEndpointResourceState', schemas.Unset] = schemas.unset, + metadata: typing.Union[ + MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + num_queued_items: typing.Union[ + MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + post_inference_hooks: typing.Union[ + MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset + ] = schemas.unset, + resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, 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], - ) -> 'GetModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "GetModelEndpointV1Response": return super().__new__( cls, *_args, @@ -363,6 +540,7 @@ def __new__( **kwargs, ) + from launch.api_client.model.callback_auth import CallbackAuth from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState diff --git a/launch/api_client/model/get_model_endpoint_v1_response.pyi b/launch/api_client/model/get_model_endpoint_v1_response.pyi index 9daf947d..8920b5f9 100644 --- a/launch/api_client/model/get_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/get_model_endpoint_v1_response.pyi @@ -22,17 +22,13 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class GetModelEndpointV1Response( - schemas.DictSchema -): +class GetModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_type", @@ -45,62 +41,57 @@ class GetModelEndpointV1Response( "created_by", "status", } - + class properties: bundle_name = schemas.StrSchema created_at = schemas.DateTimeSchema created_by = schemas.StrSchema destination = schemas.StrSchema - + @staticmethod - def endpoint_type() -> typing.Type['ModelEndpointType']: + def endpoint_type() -> typing.Type["ModelEndpointType"]: return ModelEndpointType id = schemas.StrSchema last_updated_at = schemas.DateTimeSchema name = schemas.StrSchema - + @staticmethod - def status() -> typing.Type['ModelEndpointStatus']: + def status() -> typing.Type["ModelEndpointStatus"]: return ModelEndpointStatus aws_role = schemas.StrSchema - + @staticmethod - def default_callback_auth() -> typing.Type['CallbackAuth']: + def default_callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth - - - class default_callback_url( - schemas.StrSchema - ): + + class default_callback_url(schemas.StrSchema): pass deployment_name = schemas.StrSchema - + @staticmethod - def deployment_state() -> typing.Type['ModelEndpointDeploymentState']: + def deployment_state() -> typing.Type["ModelEndpointDeploymentState"]: return ModelEndpointDeploymentState - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, @@ -109,32 +100,37 @@ class GetModelEndpointV1Response( ) metadata = schemas.DictSchema num_queued_items = schemas.IntSchema - - - class post_inference_hooks( - schemas.ListSchema - ): - - + + class post_inference_hooks(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'post_inference_hooks': + ) -> "post_inference_hooks": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) - @staticmethod - def resource_state() -> typing.Type['ModelEndpointResourceState']: + def resource_state() -> typing.Type["ModelEndpointResourceState"]: return ModelEndpointResourceState results_s3_bucket = schemas.StrSchema __annotations__ = { @@ -159,8 +155,7 @@ class GetModelEndpointV1Response( "resource_state": resource_state, "results_s3_bucket": results_s3_bucket, } - - endpoint_type: 'ModelEndpointType' + endpoint_type: "ModelEndpointType" last_updated_at: MetaOapg.properties.last_updated_at destination: MetaOapg.properties.destination name: MetaOapg.properties.name @@ -168,169 +163,262 @@ class GetModelEndpointV1Response( bundle_name: MetaOapg.properties.bundle_name id: MetaOapg.properties.id created_by: MetaOapg.properties.created_by - status: 'ModelEndpointStatus' - + status: "ModelEndpointStatus" + @typing.overload def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... - + def __getitem__( + self, name: typing_extensions.Literal["last_updated_at"] + ) -> MetaOapg.properties.last_updated_at: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> MetaOapg.properties.default_callback_url: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: ... - + def __getitem__( + self, name: typing_extensions.Literal["deployment_name"] + ) -> MetaOapg.properties.deployment_name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> 'ModelEndpointDeploymentState': ... - + def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: ... - + def __getitem__( + self, name: typing_extensions.Literal["num_queued_items"] + ) -> MetaOapg.properties.num_queued_items: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... - + def __getitem__( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> 'ModelEndpointResourceState': ... - + def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... - + def __getitem__( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> MetaOapg.properties.results_s3_bucket: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "bundle_name", + "created_at", + "created_by", + "destination", + "endpoint_type", + "id", + "last_updated_at", + "name", + "status", + "aws_role", + "default_callback_auth", + "default_callback_url", + "deployment_name", + "deployment_state", + "labels", + "metadata", + "num_queued_items", + "post_inference_hooks", + "resource_state", + "results_s3_bucket", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["last_updated_at"] + ) -> MetaOapg.properties.last_updated_at: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["aws_role"] + ) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deployment_name"]) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["deployment_name"] + ) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deployment_state"]) -> typing.Union['ModelEndpointDeploymentState', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["deployment_state"] + ) -> typing.Union["ModelEndpointDeploymentState", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["num_queued_items"]) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["num_queued_items"] + ) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource_state"]) -> typing.Union['ModelEndpointResourceState', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["resource_state"] + ) -> typing.Union["ModelEndpointResourceState", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> typing.Union[MetaOapg.properties.results_s3_bucket, 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["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "bundle_name", + "created_at", + "created_by", + "destination", + "endpoint_type", + "id", + "last_updated_at", + "name", + "status", + "aws_role", + "default_callback_auth", + "default_callback_url", + "deployment_name", + "deployment_state", + "labels", + "metadata", + "num_queued_items", + "post_inference_hooks", + "resource_state", + "results_s3_bucket", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_type: 'ModelEndpointType', - last_updated_at: typing.Union[MetaOapg.properties.last_updated_at, str, datetime, ], - destination: typing.Union[MetaOapg.properties.destination, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], - bundle_name: typing.Union[MetaOapg.properties.bundle_name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - created_by: typing.Union[MetaOapg.properties.created_by, str, ], - status: 'ModelEndpointStatus', + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_type: "ModelEndpointType", + last_updated_at: typing.Union[ + MetaOapg.properties.last_updated_at, + str, + datetime, + ], + destination: typing.Union[ + MetaOapg.properties.destination, + str, + ], + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + created_at: typing.Union[ + MetaOapg.properties.created_at, + str, + datetime, + ], + bundle_name: typing.Union[ + MetaOapg.properties.bundle_name, + str, + ], + id: typing.Union[ + MetaOapg.properties.id, + str, + ], + created_by: typing.Union[ + MetaOapg.properties.created_by, + str, + ], + status: "ModelEndpointStatus", aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[ + MetaOapg.properties.default_callback_url, str, schemas.Unset + ] = schemas.unset, deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, - deployment_state: typing.Union['ModelEndpointDeploymentState', schemas.Unset] = schemas.unset, + deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - num_queued_items: typing.Union[MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, - resource_state: typing.Union['ModelEndpointResourceState', schemas.Unset] = schemas.unset, + metadata: typing.Union[ + MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + num_queued_items: typing.Union[ + MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + post_inference_hooks: typing.Union[ + MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset + ] = schemas.unset, + resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, 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], - ) -> 'GetModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "GetModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/gpu_type.py b/launch/api_client/model/gpu_type.py index 34158fa2..4620b94b 100644 --- a/launch/api_client/model/gpu_type.py +++ b/launch/api_client/model/gpu_type.py @@ -23,10 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class GpuType( - schemas.EnumBase, - schemas.StrSchema -): +class GpuType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,22 +32,21 @@ class GpuType( Lists allowed GPU types for Launch. """ - class MetaOapg: enum_value_to_name = { "nvidia-tesla-t4": "TESLAT4", "nvidia-ampere-a10": "AMPEREA10", "nvidia-a100": "A100", } - + @schemas.classproperty def TESLAT4(cls): return cls("nvidia-tesla-t4") - + @schemas.classproperty def AMPEREA10(cls): return cls("nvidia-ampere-a10") - + @schemas.classproperty def A100(cls): return cls("nvidia-a100") diff --git a/launch/api_client/model/gpu_type.pyi b/launch/api_client/model/gpu_type.pyi index 2c8853fe..4e384840 100644 --- a/launch/api_client/model/gpu_type.pyi +++ b/launch/api_client/model/gpu_type.pyi @@ -22,11 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class GpuType( - schemas.EnumBase, - schemas.StrSchema -): +class GpuType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,15 +30,13 @@ class GpuType( Lists allowed GPU types for Launch. """ - + @schemas.classproperty def TESLAT4(cls): return cls("nvidia-tesla-t4") - @schemas.classproperty def AMPEREA10(cls): return cls("nvidia-ampere-a10") - @schemas.classproperty def A100(cls): return cls("nvidia-a100") diff --git a/launch/api_client/model/http_validation_error.py b/launch/api_client/model/http_validation_error.py index e19f05b2..3e9a150d 100644 --- a/launch/api_client/model/http_validation_error.py +++ b/launch/api_client/model/http_validation_error.py @@ -23,77 +23,89 @@ from launch.api_client import schemas # noqa: F401 -class HTTPValidationError( - schemas.DictSchema -): +class HTTPValidationError(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: - - - class detail( - schemas.ListSchema - ): - - + class detail(schemas.ListSchema): class MetaOapg: - @staticmethod - def items() -> typing.Type['ValidationError']: + def items() -> typing.Type["ValidationError"]: return ValidationError - + def __new__( cls, - _arg: typing.Union[typing.Tuple['ValidationError'], typing.List['ValidationError']], + _arg: typing.Union[typing.Tuple["ValidationError"], typing.List["ValidationError"]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'detail': + ) -> "detail": return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> 'ValidationError': + + def __getitem__(self, i: int) -> "ValidationError": return super().__getitem__(i) + __annotations__ = { "detail": detail, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: ... - + def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["detail"]) -> typing.Union[MetaOapg.properties.detail, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["detail"] + ) -> typing.Union[MetaOapg.properties.detail, 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["detail", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["detail",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], detail: typing.Union[MetaOapg.properties.detail, list, tuple, 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], - ) -> 'HTTPValidationError': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "HTTPValidationError": return super().__new__( cls, *_args, @@ -102,4 +114,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.validation_error import ValidationError diff --git a/launch/api_client/model/http_validation_error.pyi b/launch/api_client/model/http_validation_error.pyi index fa6a6998..0c9c6067 100644 --- a/launch/api_client/model/http_validation_error.pyi +++ b/launch/api_client/model/http_validation_error.pyi @@ -22,78 +22,75 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class HTTPValidationError( - schemas.DictSchema -): +class HTTPValidationError(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: - - - class detail( - schemas.ListSchema - ): - - + class detail(schemas.ListSchema): class MetaOapg: - @staticmethod - def items() -> typing.Type['ValidationError']: + def items() -> typing.Type["ValidationError"]: return ValidationError - def __new__( cls, - _arg: typing.Union[typing.Tuple['ValidationError'], typing.List['ValidationError']], + _arg: typing.Union[typing.Tuple["ValidationError"], typing.List["ValidationError"]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'detail': + ) -> "detail": return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> 'ValidationError': + def __getitem__(self, i: int) -> "ValidationError": return super().__getitem__(i) __annotations__ = { "detail": detail, } - @typing.overload def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["detail"]) -> typing.Union[MetaOapg.properties.detail, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["detail"] + ) -> typing.Union[MetaOapg.properties.detail, 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["detail", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["detail",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], detail: typing.Union[MetaOapg.properties.detail, list, tuple, 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], - ) -> 'HTTPValidationError': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "HTTPValidationError": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/list_model_bundles_response.py b/launch/api_client/model/list_model_bundles_response.py index 6718f67c..95aa0740 100644 --- a/launch/api_client/model/list_model_bundles_response.py +++ b/launch/api_client/model/list_model_bundles_response.py @@ -45,9 +45,7 @@ def items() -> typing.Type["ModelBundleResponse"]: def __new__( cls, - _arg: typing.Union[ - typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"] - ], + _arg: typing.Union[typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"]], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "model_bundles": return super().__new__( @@ -66,9 +64,7 @@ def __getitem__(self, i: int) -> "ModelBundleResponse": model_bundles: MetaOapg.properties.model_bundles @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundles"] - ) -> MetaOapg.properties.model_bundles: + def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload @@ -78,9 +74,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundles", - ], + typing_extensions.Literal["model_bundles",], str, ], ): @@ -88,9 +82,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundles"] - ) -> MetaOapg.properties.model_bundles: + def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload @@ -100,9 +92,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundles", - ], + typing_extensions.Literal["model_bundles",], str, ], ): diff --git a/launch/api_client/model/list_model_bundles_response.pyi b/launch/api_client/model/list_model_bundles_response.pyi index 67698b2d..1b13ff50 100644 --- a/launch/api_client/model/list_model_bundles_response.pyi +++ b/launch/api_client/model/list_model_bundles_response.pyi @@ -43,9 +43,7 @@ class ListModelBundlesResponse(schemas.DictSchema): return ModelBundleResponse def __new__( cls, - _arg: typing.Union[ - typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"] - ], + _arg: typing.Union[typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"]], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "model_bundles": return super().__new__( @@ -61,36 +59,26 @@ class ListModelBundlesResponse(schemas.DictSchema): model_bundles: MetaOapg.properties.model_bundles @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundles"] - ) -> MetaOapg.properties.model_bundles: ... + def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundles", - ], + typing_extensions.Literal["model_bundles",], str, ], ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundles"] - ) -> MetaOapg.properties.model_bundles: ... + def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundles", - ], + typing_extensions.Literal["model_bundles",], str, ], ): diff --git a/launch/api_client/model/list_model_bundles_v1_response.py b/launch/api_client/model/list_model_bundles_v1_response.py index 330b8226..8646c50c 100644 --- a/launch/api_client/model/list_model_bundles_v1_response.py +++ b/launch/api_client/model/list_model_bundles_v1_response.py @@ -23,9 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class ListModelBundlesV1Response( - schemas.DictSchema -): +class ListModelBundlesV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,73 +32,90 @@ class ListModelBundlesV1Response( Response object for listing Model Bundles. """ - class MetaOapg: required = { "model_bundles", } - + class properties: - - - class model_bundles( - schemas.ListSchema - ): - - + class model_bundles(schemas.ListSchema): class MetaOapg: - @staticmethod - def items() -> typing.Type['ModelBundleV1Response']: + def items() -> typing.Type["ModelBundleV1Response"]: return ModelBundleV1Response - + def __new__( cls, - _arg: typing.Union[typing.Tuple['ModelBundleV1Response'], typing.List['ModelBundleV1Response']], + _arg: typing.Union[typing.Tuple["ModelBundleV1Response"], typing.List["ModelBundleV1Response"]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'model_bundles': + ) -> "model_bundles": return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> 'ModelBundleV1Response': + + def __getitem__(self, i: int) -> "ModelBundleV1Response": return super().__getitem__(i) + __annotations__ = { "model_bundles": model_bundles, } - + model_bundles: MetaOapg.properties.model_bundles - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... - + def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... - + def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: + ... + @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["model_bundles", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_bundles: typing.Union[MetaOapg.properties.model_bundles, list, tuple, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_bundles: typing.Union[ + MetaOapg.properties.model_bundles, + list, + tuple, + ], _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], - ) -> 'ListModelBundlesV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ListModelBundlesV1Response": return super().__new__( cls, *_args, @@ -109,4 +124,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response diff --git a/launch/api_client/model/list_model_bundles_v1_response.pyi b/launch/api_client/model/list_model_bundles_v1_response.pyi index 99555d85..fc889e81 100644 --- a/launch/api_client/model/list_model_bundles_v1_response.pyi +++ b/launch/api_client/model/list_model_bundles_v1_response.pyi @@ -22,10 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ListModelBundlesV1Response( - schemas.DictSchema -): +class ListModelBundlesV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,73 +31,76 @@ class ListModelBundlesV1Response( Response object for listing Model Bundles. """ - class MetaOapg: required = { "model_bundles", } - + class properties: - - - class model_bundles( - schemas.ListSchema - ): - - + class model_bundles(schemas.ListSchema): class MetaOapg: - @staticmethod - def items() -> typing.Type['ModelBundleV1Response']: + def items() -> typing.Type["ModelBundleV1Response"]: return ModelBundleV1Response - def __new__( cls, - _arg: typing.Union[typing.Tuple['ModelBundleV1Response'], typing.List['ModelBundleV1Response']], + _arg: typing.Union[typing.Tuple["ModelBundleV1Response"], typing.List["ModelBundleV1Response"]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'model_bundles': + ) -> "model_bundles": return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> 'ModelBundleV1Response': + def __getitem__(self, i: int) -> "ModelBundleV1Response": return super().__getitem__(i) __annotations__ = { "model_bundles": model_bundles, } - model_bundles: MetaOapg.properties.model_bundles - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... - @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["model_bundles", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_bundles: typing.Union[MetaOapg.properties.model_bundles, list, tuple, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_bundles: typing.Union[ + MetaOapg.properties.model_bundles, + list, + tuple, + ], _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], - ) -> 'ListModelBundlesV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ListModelBundlesV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/list_model_endpoints_response.py b/launch/api_client/model/list_model_endpoints_response.py index 54938121..0bbe42bb 100644 --- a/launch/api_client/model/list_model_endpoints_response.py +++ b/launch/api_client/model/list_model_endpoints_response.py @@ -65,9 +65,7 @@ def __getitem__(self, i: int) -> "GetModelEndpointResponse": model_endpoints: MetaOapg.properties.model_endpoints @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_endpoints"] - ) -> MetaOapg.properties.model_endpoints: + def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... @typing.overload @@ -77,9 +75,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "model_endpoints", - ], + typing_extensions.Literal["model_endpoints",], str, ], ): @@ -87,9 +83,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_endpoints"] - ) -> MetaOapg.properties.model_endpoints: + def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... @typing.overload @@ -99,9 +93,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "model_endpoints", - ], + typing_extensions.Literal["model_endpoints",], str, ], ): diff --git a/launch/api_client/model/list_model_endpoints_response.pyi b/launch/api_client/model/list_model_endpoints_response.pyi index e9fe854d..0e493c12 100644 --- a/launch/api_client/model/list_model_endpoints_response.pyi +++ b/launch/api_client/model/list_model_endpoints_response.pyi @@ -68,9 +68,7 @@ class ListModelEndpointsResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "model_endpoints", - ], + typing_extensions.Literal["model_endpoints",], str, ], ): @@ -81,15 +79,11 @@ class ListModelEndpointsResponse(schemas.DictSchema): self, name: typing_extensions.Literal["model_endpoints"] ) -> MetaOapg.properties.model_endpoints: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "model_endpoints", - ], + typing_extensions.Literal["model_endpoints",], str, ], ): diff --git a/launch/api_client/model/list_model_endpoints_v1_response.py b/launch/api_client/model/list_model_endpoints_v1_response.py index 4c7007ac..bb6f2446 100644 --- a/launch/api_client/model/list_model_endpoints_v1_response.py +++ b/launch/api_client/model/list_model_endpoints_v1_response.py @@ -23,82 +23,99 @@ from launch.api_client import schemas # noqa: F401 -class ListModelEndpointsV1Response( - schemas.DictSchema -): +class ListModelEndpointsV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "model_endpoints", } - + class properties: - - - class model_endpoints( - schemas.ListSchema - ): - - + class model_endpoints(schemas.ListSchema): class MetaOapg: - @staticmethod - def items() -> typing.Type['GetModelEndpointV1Response']: + def items() -> typing.Type["GetModelEndpointV1Response"]: return GetModelEndpointV1Response - + def __new__( cls, - _arg: typing.Union[typing.Tuple['GetModelEndpointV1Response'], typing.List['GetModelEndpointV1Response']], + _arg: typing.Union[ + typing.Tuple["GetModelEndpointV1Response"], typing.List["GetModelEndpointV1Response"] + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'model_endpoints': + ) -> "model_endpoints": return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> 'GetModelEndpointV1Response': + + def __getitem__(self, i: int) -> "GetModelEndpointV1Response": return super().__getitem__(i) + __annotations__ = { "model_endpoints": model_endpoints, } - + model_endpoints: MetaOapg.properties.model_endpoints - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... - + def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... - + def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: + ... + @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["model_endpoints", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_endpoints: typing.Union[MetaOapg.properties.model_endpoints, list, tuple, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_endpoints: typing.Union[ + MetaOapg.properties.model_endpoints, + list, + tuple, + ], _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], - ) -> 'ListModelEndpointsV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ListModelEndpointsV1Response": return super().__new__( cls, *_args, @@ -107,4 +124,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response diff --git a/launch/api_client/model/list_model_endpoints_v1_response.pyi b/launch/api_client/model/list_model_endpoints_v1_response.pyi index 742211e6..ccce3f43 100644 --- a/launch/api_client/model/list_model_endpoints_v1_response.pyi +++ b/launch/api_client/model/list_model_endpoints_v1_response.pyi @@ -22,83 +22,89 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ListModelEndpointsV1Response( - schemas.DictSchema -): +class ListModelEndpointsV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "model_endpoints", } - + class properties: - - - class model_endpoints( - schemas.ListSchema - ): - - + class model_endpoints(schemas.ListSchema): class MetaOapg: - @staticmethod - def items() -> typing.Type['GetModelEndpointV1Response']: + def items() -> typing.Type["GetModelEndpointV1Response"]: return GetModelEndpointV1Response - def __new__( cls, - _arg: typing.Union[typing.Tuple['GetModelEndpointV1Response'], typing.List['GetModelEndpointV1Response']], + _arg: typing.Union[ + typing.Tuple["GetModelEndpointV1Response"], typing.List["GetModelEndpointV1Response"] + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'model_endpoints': + ) -> "model_endpoints": return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> 'GetModelEndpointV1Response': + def __getitem__(self, i: int) -> "GetModelEndpointV1Response": return super().__getitem__(i) __annotations__ = { "model_endpoints": model_endpoints, } - model_endpoints: MetaOapg.properties.model_endpoints - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_endpoints"] + ) -> MetaOapg.properties.model_endpoints: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_endpoints"] + ) -> MetaOapg.properties.model_endpoints: ... @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["model_endpoints", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_endpoints: typing.Union[MetaOapg.properties.model_endpoints, list, tuple, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_endpoints: typing.Union[ + MetaOapg.properties.model_endpoints, + list, + tuple, + ], _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], - ) -> 'ListModelEndpointsV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ListModelEndpointsV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_bundle_environment_params.py b/launch/api_client/model/model_bundle_environment_params.py index 037698eb..fbdcc619 100644 --- a/launch/api_client/model/model_bundle_environment_params.py +++ b/launch/api_client/model/model_bundle_environment_params.py @@ -23,29 +23,26 @@ from launch.api_client import schemas # noqa: F401 -class ModelBundleEnvironmentParams( - schemas.DictSchema -): +class ModelBundleEnvironmentParams(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - This is the entity-layer class for the Model Bundle environment parameters. Being an -entity-layer class, it should be a plain data object. + This is the entity-layer class for the Model Bundle environment parameters. Being an + entity-layer class, it should be a plain data object. """ - class MetaOapg: required = { "framework_type", } - + class properties: - @staticmethod - def framework_type() -> typing.Type['ModelBundleFrameworkType']: + def framework_type() -> typing.Type["ModelBundleFrameworkType"]: return ModelBundleFrameworkType + ecr_repo = schemas.StrSchema image_tag = schemas.StrSchema pytorch_image_tag = schemas.StrSchema @@ -57,65 +54,129 @@ def framework_type() -> typing.Type['ModelBundleFrameworkType']: "pytorch_image_tag": pytorch_image_tag, "tensorflow_version": tensorflow_version, } - - framework_type: 'ModelBundleFrameworkType' - + + framework_type: "ModelBundleFrameworkType" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... - + def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFrameworkType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: ... - + def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: ... - + def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> MetaOapg.properties.pytorch_image_tag: ... - + def __getitem__( + self, name: typing_extensions.Literal["pytorch_image_tag"] + ) -> MetaOapg.properties.pytorch_image_tag: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tensorflow_version"]) -> MetaOapg.properties.tensorflow_version: ... - + def __getitem__( + self, name: typing_extensions.Literal["tensorflow_version"] + ) -> MetaOapg.properties.tensorflow_version: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "framework_type", + "ecr_repo", + "image_tag", + "pytorch_image_tag", + "tensorflow_version", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... - + def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFrameworkType": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ecr_repo"]) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["ecr_repo"] + ) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["image_tag"]) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["image_tag"] + ) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["pytorch_image_tag"] + ) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tensorflow_version"]) -> typing.Union[MetaOapg.properties.tensorflow_version, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["tensorflow_version"] + ) -> typing.Union[MetaOapg.properties.tensorflow_version, 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["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "framework_type", + "ecr_repo", + "image_tag", + "pytorch_image_tag", + "tensorflow_version", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - framework_type: 'ModelBundleFrameworkType', + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + framework_type: "ModelBundleFrameworkType", ecr_repo: typing.Union[MetaOapg.properties.ecr_repo, str, schemas.Unset] = schemas.unset, image_tag: typing.Union[MetaOapg.properties.image_tag, str, schemas.Unset] = schemas.unset, pytorch_image_tag: typing.Union[MetaOapg.properties.pytorch_image_tag, str, schemas.Unset] = schemas.unset, tensorflow_version: typing.Union[MetaOapg.properties.tensorflow_version, str, 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], - ) -> 'ModelBundleEnvironmentParams': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelBundleEnvironmentParams": return super().__new__( cls, *_args, @@ -128,4 +189,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.model_bundle_framework_type import ModelBundleFrameworkType diff --git a/launch/api_client/model/model_bundle_environment_params.pyi b/launch/api_client/model/model_bundle_environment_params.pyi index 34f9c425..b266edaf 100644 --- a/launch/api_client/model/model_bundle_environment_params.pyi +++ b/launch/api_client/model/model_bundle_environment_params.pyi @@ -22,29 +22,24 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelBundleEnvironmentParams( - schemas.DictSchema -): +class ModelBundleEnvironmentParams(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - This is the entity-layer class for the Model Bundle environment parameters. Being an -entity-layer class, it should be a plain data object. + This is the entity-layer class for the Model Bundle environment parameters. Being an + entity-layer class, it should be a plain data object. """ - class MetaOapg: required = { "framework_type", } - + class properties: - @staticmethod - def framework_type() -> typing.Type['ModelBundleFrameworkType']: + def framework_type() -> typing.Type["ModelBundleFrameworkType"]: return ModelBundleFrameworkType ecr_repo = schemas.StrSchema image_tag = schemas.StrSchema @@ -57,65 +52,102 @@ entity-layer class, it should be a plain data object. "pytorch_image_tag": pytorch_image_tag, "tensorflow_version": tensorflow_version, } - - framework_type: 'ModelBundleFrameworkType' - + framework_type: "ModelBundleFrameworkType" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... - + def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFrameworkType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> MetaOapg.properties.pytorch_image_tag: ... - + def __getitem__( + self, name: typing_extensions.Literal["pytorch_image_tag"] + ) -> MetaOapg.properties.pytorch_image_tag: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tensorflow_version"]) -> MetaOapg.properties.tensorflow_version: ... - + def __getitem__( + self, name: typing_extensions.Literal["tensorflow_version"] + ) -> MetaOapg.properties.tensorflow_version: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "framework_type", + "ecr_repo", + "image_tag", + "pytorch_image_tag", + "tensorflow_version", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... - + def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFrameworkType": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ecr_repo"]) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["ecr_repo"] + ) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["image_tag"]) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["image_tag"] + ) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["pytorch_image_tag"] + ) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tensorflow_version"]) -> typing.Union[MetaOapg.properties.tensorflow_version, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["tensorflow_version"] + ) -> typing.Union[MetaOapg.properties.tensorflow_version, 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["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "framework_type", + "ecr_repo", + "image_tag", + "pytorch_image_tag", + "tensorflow_version", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - framework_type: 'ModelBundleFrameworkType', + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + framework_type: "ModelBundleFrameworkType", ecr_repo: typing.Union[MetaOapg.properties.ecr_repo, str, schemas.Unset] = schemas.unset, image_tag: typing.Union[MetaOapg.properties.image_tag, str, schemas.Unset] = schemas.unset, pytorch_image_tag: typing.Union[MetaOapg.properties.pytorch_image_tag, str, schemas.Unset] = schemas.unset, tensorflow_version: typing.Union[MetaOapg.properties.tensorflow_version, str, 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], - ) -> 'ModelBundleEnvironmentParams': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelBundleEnvironmentParams": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_bundle_framework_type.py b/launch/api_client/model/model_bundle_framework_type.py index 3a11569b..c7ecb2d8 100644 --- a/launch/api_client/model/model_bundle_framework_type.py +++ b/launch/api_client/model/model_bundle_framework_type.py @@ -23,10 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class ModelBundleFrameworkType( - schemas.EnumBase, - schemas.StrSchema -): +class ModelBundleFrameworkType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,22 +32,21 @@ class ModelBundleFrameworkType( The canonical list of possible machine learning frameworks of Model Bundles. """ - class MetaOapg: enum_value_to_name = { "pytorch": "PYTORCH", "tensorflow": "TENSORFLOW", "custom_base_image": "CUSTOM_BASE_IMAGE", } - + @schemas.classproperty def PYTORCH(cls): return cls("pytorch") - + @schemas.classproperty def TENSORFLOW(cls): return cls("tensorflow") - + @schemas.classproperty def CUSTOM_BASE_IMAGE(cls): return cls("custom_base_image") diff --git a/launch/api_client/model/model_bundle_framework_type.pyi b/launch/api_client/model/model_bundle_framework_type.pyi index bba8559d..9e08e72a 100644 --- a/launch/api_client/model/model_bundle_framework_type.pyi +++ b/launch/api_client/model/model_bundle_framework_type.pyi @@ -22,11 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelBundleFrameworkType( - schemas.EnumBase, - schemas.StrSchema -): +class ModelBundleFrameworkType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,15 +30,13 @@ class ModelBundleFrameworkType( The canonical list of possible machine learning frameworks of Model Bundles. """ - + @schemas.classproperty def PYTORCH(cls): return cls("pytorch") - @schemas.classproperty def TENSORFLOW(cls): return cls("tensorflow") - @schemas.classproperty def CUSTOM_BASE_IMAGE(cls): return cls("custom_base_image") diff --git a/launch/api_client/model/model_bundle_order_by.py b/launch/api_client/model/model_bundle_order_by.py index fd5679d9..9fa5758b 100644 --- a/launch/api_client/model/model_bundle_order_by.py +++ b/launch/api_client/model/model_bundle_order_by.py @@ -23,10 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class ModelBundleOrderBy( - schemas.EnumBase, - schemas.StrSchema -): +class ModelBundleOrderBy(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,17 +32,16 @@ class ModelBundleOrderBy( The canonical list of possible orderings of Model Bundles. """ - class MetaOapg: enum_value_to_name = { "newest": "NEWEST", "oldest": "OLDEST", } - + @schemas.classproperty def NEWEST(cls): return cls("newest") - + @schemas.classproperty def OLDEST(cls): return cls("oldest") diff --git a/launch/api_client/model/model_bundle_order_by.pyi b/launch/api_client/model/model_bundle_order_by.pyi index 8183c616..76189ebb 100644 --- a/launch/api_client/model/model_bundle_order_by.pyi +++ b/launch/api_client/model/model_bundle_order_by.pyi @@ -22,11 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelBundleOrderBy( - schemas.EnumBase, - schemas.StrSchema -): +class ModelBundleOrderBy(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,11 +30,10 @@ class ModelBundleOrderBy( The canonical list of possible orderings of Model Bundles. """ - + @schemas.classproperty def NEWEST(cls): return cls("newest") - @schemas.classproperty def OLDEST(cls): return cls("oldest") diff --git a/launch/api_client/model/model_bundle_packaging_type.py b/launch/api_client/model/model_bundle_packaging_type.py index 7f92d164..e9d25774 100644 --- a/launch/api_client/model/model_bundle_packaging_type.py +++ b/launch/api_client/model/model_bundle_packaging_type.py @@ -23,36 +23,32 @@ from launch.api_client import schemas # noqa: F401 -class ModelBundlePackagingType( - schemas.EnumBase, - schemas.StrSchema -): +class ModelBundlePackagingType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - The canonical list of possible packaging types for Model Bundles. + The canonical list of possible packaging types for Model Bundles. -These values broadly determine how the model endpoint will obtain its code & dependencies. + These values broadly determine how the model endpoint will obtain its code & dependencies. """ - class MetaOapg: enum_value_to_name = { "cloudpickle": "CLOUDPICKLE", "zip": "ZIP", "lira": "LIRA", } - + @schemas.classproperty def CLOUDPICKLE(cls): return cls("cloudpickle") - + @schemas.classproperty def ZIP(cls): return cls("zip") - + @schemas.classproperty def LIRA(cls): return cls("lira") diff --git a/launch/api_client/model/model_bundle_packaging_type.pyi b/launch/api_client/model/model_bundle_packaging_type.pyi index f2a66978..1c310f5a 100644 --- a/launch/api_client/model/model_bundle_packaging_type.pyi +++ b/launch/api_client/model/model_bundle_packaging_type.pyi @@ -22,29 +22,23 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelBundlePackagingType( - schemas.EnumBase, - schemas.StrSchema -): +class ModelBundlePackagingType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - The canonical list of possible packaging types for Model Bundles. + The canonical list of possible packaging types for Model Bundles. -These values broadly determine how the model endpoint will obtain its code & dependencies. + These values broadly determine how the model endpoint will obtain its code & dependencies. """ - + @schemas.classproperty def CLOUDPICKLE(cls): return cls("cloudpickle") - @schemas.classproperty def ZIP(cls): return cls("zip") - @schemas.classproperty def LIRA(cls): return cls("lira") diff --git a/launch/api_client/model/model_bundle_response.py b/launch/api_client/model/model_bundle_response.py index 26d0ebbe..e88b734b 100644 --- a/launch/api_client/model/model_bundle_response.py +++ b/launch/api_client/model/model_bundle_response.py @@ -150,15 +150,11 @@ def __getitem__(self, i: int) -> MetaOapg.items: env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload @@ -166,15 +162,11 @@ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.propert ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload @@ -188,27 +180,19 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["app_config"] - ) -> MetaOapg.properties.app_config: + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["schema_location"] - ) -> MetaOapg.properties.schema_location: + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... @typing.overload @@ -238,15 +222,11 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload @@ -254,15 +234,11 @@ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.prope ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload @@ -276,15 +252,11 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload @@ -367,9 +339,7 @@ def __new__( app_config: typing.Union[ MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - schema_location: typing.Union[ - MetaOapg.properties.schema_location, str, schemas.Unset - ] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, diff --git a/launch/api_client/model/model_bundle_response.pyi b/launch/api_client/model/model_bundle_response.pyi index 5289789d..88263af6 100644 --- a/launch/api_client/model/model_bundle_response.pyi +++ b/launch/api_client/model/model_bundle_response.pyi @@ -141,23 +141,15 @@ class ModelBundleResponse(schemas.DictSchema): env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: ... + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": ... + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: ... + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_artifact_ids"] @@ -165,17 +157,11 @@ class ModelBundleResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": ... + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: ... + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["app_config"] - ) -> MetaOapg.properties.app_config: ... + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["schema_location"] @@ -204,39 +190,25 @@ class ModelBundleResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: ... + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": ... + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: ... + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_artifact_ids"] ) -> MetaOapg.properties.model_artifact_ids: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["name"] - ) -> MetaOapg.properties.name: ... + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": ... + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: ... + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["app_config"] @@ -246,9 +218,7 @@ class ModelBundleResponse(schemas.DictSchema): self, name: typing_extensions.Literal["schema_location"] ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -312,9 +282,7 @@ class ModelBundleResponse(schemas.DictSchema): app_config: typing.Union[ MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - schema_location: typing.Union[ - MetaOapg.properties.schema_location, str, schemas.Unset - ] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, diff --git a/launch/api_client/model/model_bundle_v1_response.py b/launch/api_client/model/model_bundle_v1_response.py index d3a56489..ba816e41 100644 --- a/launch/api_client/model/model_bundle_v1_response.py +++ b/launch/api_client/model/model_bundle_v1_response.py @@ -23,9 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class ModelBundleV1Response( - schemas.DictSchema -): +class ModelBundleV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,7 +32,6 @@ class ModelBundleV1Response( Response object for a single Model Bundle. """ - class MetaOapg: required = { "metadata", @@ -47,67 +44,86 @@ class MetaOapg: "id", "env_params", } - + class properties: created_at = schemas.DateTimeSchema - + @staticmethod - def env_params() -> typing.Type['ModelBundleEnvironmentParams']: + def env_params() -> typing.Type["ModelBundleEnvironmentParams"]: return ModelBundleEnvironmentParams + id = schemas.StrSchema location = schemas.StrSchema metadata = schemas.DictSchema - - - class model_artifact_ids( - schemas.ListSchema - ): - - + + class model_artifact_ids(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'model_artifact_ids': + ) -> "model_artifact_ids": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + name = schemas.StrSchema - + @staticmethod - def packaging_type() -> typing.Type['ModelBundlePackagingType']: + def packaging_type() -> typing.Type["ModelBundlePackagingType"]: return ModelBundlePackagingType - - - class requirements( - schemas.ListSchema - ): - - + + class requirements(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'requirements': + ) -> "requirements": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + app_config = schemas.DictSchema schema_location = schemas.StrSchema __annotations__ = { @@ -123,115 +139,226 @@ def __getitem__(self, i: int) -> MetaOapg.items: "app_config": app_config, "schema_location": schema_location, } - + metadata: MetaOapg.properties.metadata requirements: MetaOapg.properties.requirements model_artifact_ids: MetaOapg.properties.model_artifact_ids - packaging_type: 'ModelBundlePackagingType' + packaging_type: "ModelBundlePackagingType" name: MetaOapg.properties.name created_at: MetaOapg.properties.created_at location: MetaOapg.properties.location id: MetaOapg.properties.id - env_params: 'ModelBundleEnvironmentParams' - + env_params: "ModelBundleEnvironmentParams" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_artifact_ids"] + ) -> MetaOapg.properties.model_artifact_ids: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... - + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... - + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "created_at", + "env_params", + "id", + "location", + "metadata", + "model_artifact_ids", + "name", + "packaging_type", + "requirements", + "app_config", + "schema_location", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_artifact_ids"] + ) -> MetaOapg.properties.model_artifact_ids: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["app_config"] + ) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["schema_location"] + ) -> typing.Union[MetaOapg.properties.schema_location, 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["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "created_at", + "env_params", + "id", + "location", + "metadata", + "model_artifact_ids", + "name", + "packaging_type", + "requirements", + "app_config", + "schema_location", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], - requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], - model_artifact_ids: typing.Union[MetaOapg.properties.model_artifact_ids, list, tuple, ], - packaging_type: 'ModelBundlePackagingType', - name: typing.Union[MetaOapg.properties.name, str, ], - created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], - location: typing.Union[MetaOapg.properties.location, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - env_params: 'ModelBundleEnvironmentParams', - app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + metadata: typing.Union[ + MetaOapg.properties.metadata, + dict, + frozendict.frozendict, + ], + requirements: typing.Union[ + MetaOapg.properties.requirements, + list, + tuple, + ], + model_artifact_ids: typing.Union[ + MetaOapg.properties.model_artifact_ids, + list, + tuple, + ], + packaging_type: "ModelBundlePackagingType", + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + created_at: typing.Union[ + MetaOapg.properties.created_at, + str, + datetime, + ], + location: typing.Union[ + MetaOapg.properties.location, + str, + ], + id: typing.Union[ + MetaOapg.properties.id, + str, + ], + env_params: "ModelBundleEnvironmentParams", + app_config: typing.Union[ + MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, schema_location: typing.Union[MetaOapg.properties.schema_location, str, 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], - ) -> 'ModelBundleV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelBundleV1Response": return super().__new__( cls, *_args, @@ -250,5 +377,6 @@ def __new__( **kwargs, ) + from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/model_bundle_v1_response.pyi b/launch/api_client/model/model_bundle_v1_response.pyi index 8c3f0594..07b30379 100644 --- a/launch/api_client/model/model_bundle_v1_response.pyi +++ b/launch/api_client/model/model_bundle_v1_response.pyi @@ -22,10 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelBundleV1Response( - schemas.DictSchema -): +class ModelBundleV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,7 +31,6 @@ class ModelBundleV1Response( Response object for a single Model Bundle. """ - class MetaOapg: required = { "metadata", @@ -47,65 +43,77 @@ class ModelBundleV1Response( "id", "env_params", } - + class properties: created_at = schemas.DateTimeSchema - + @staticmethod - def env_params() -> typing.Type['ModelBundleEnvironmentParams']: + def env_params() -> typing.Type["ModelBundleEnvironmentParams"]: return ModelBundleEnvironmentParams id = schemas.StrSchema location = schemas.StrSchema metadata = schemas.DictSchema - - - class model_artifact_ids( - schemas.ListSchema - ): - - + + class model_artifact_ids(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'model_artifact_ids': + ) -> "model_artifact_ids": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) name = schemas.StrSchema - + @staticmethod - def packaging_type() -> typing.Type['ModelBundlePackagingType']: + def packaging_type() -> typing.Type["ModelBundlePackagingType"]: return ModelBundlePackagingType - - - class requirements( - schemas.ListSchema - ): - - + + class requirements(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'requirements': + ) -> "requirements": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) app_config = schemas.DictSchema @@ -123,115 +131,177 @@ class ModelBundleV1Response( "app_config": app_config, "schema_location": schema_location, } - metadata: MetaOapg.properties.metadata requirements: MetaOapg.properties.requirements model_artifact_ids: MetaOapg.properties.model_artifact_ids - packaging_type: 'ModelBundlePackagingType' + packaging_type: "ModelBundlePackagingType" name: MetaOapg.properties.name created_at: MetaOapg.properties.created_at location: MetaOapg.properties.location id: MetaOapg.properties.id - env_params: 'ModelBundleEnvironmentParams' - + env_params: "ModelBundleEnvironmentParams" + @typing.overload def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_artifact_ids"] + ) -> MetaOapg.properties.model_artifact_ids: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... - + def __getitem__( + self, name: typing_extensions.Literal["schema_location"] + ) -> MetaOapg.properties.schema_location: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "created_at", + "env_params", + "id", + "location", + "metadata", + "model_artifact_ids", + "name", + "packaging_type", + "requirements", + "app_config", + "schema_location", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_artifact_ids"] + ) -> MetaOapg.properties.model_artifact_ids: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["app_config"] + ) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["schema_location"] + ) -> typing.Union[MetaOapg.properties.schema_location, 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["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "created_at", + "env_params", + "id", + "location", + "metadata", + "model_artifact_ids", + "name", + "packaging_type", + "requirements", + "app_config", + "schema_location", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], - requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], - model_artifact_ids: typing.Union[MetaOapg.properties.model_artifact_ids, list, tuple, ], - packaging_type: 'ModelBundlePackagingType', - name: typing.Union[MetaOapg.properties.name, str, ], - created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], - location: typing.Union[MetaOapg.properties.location, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - env_params: 'ModelBundleEnvironmentParams', - app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + metadata: typing.Union[ + MetaOapg.properties.metadata, + dict, + frozendict.frozendict, + ], + requirements: typing.Union[ + MetaOapg.properties.requirements, + list, + tuple, + ], + model_artifact_ids: typing.Union[ + MetaOapg.properties.model_artifact_ids, + list, + tuple, + ], + packaging_type: "ModelBundlePackagingType", + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + created_at: typing.Union[ + MetaOapg.properties.created_at, + str, + datetime, + ], + location: typing.Union[ + MetaOapg.properties.location, + str, + ], + id: typing.Union[ + MetaOapg.properties.id, + str, + ], + env_params: "ModelBundleEnvironmentParams", + app_config: typing.Union[ + MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, schema_location: typing.Union[MetaOapg.properties.schema_location, str, 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], - ) -> 'ModelBundleV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelBundleV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_deployment_state.py b/launch/api_client/model/model_endpoint_deployment_state.py index d613d10d..1682bb71 100644 --- a/launch/api_client/model/model_endpoint_deployment_state.py +++ b/launch/api_client/model/model_endpoint_deployment_state.py @@ -23,9 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class ModelEndpointDeploymentState( - schemas.DictSchema -): +class ModelEndpointDeploymentState(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,52 +32,32 @@ class ModelEndpointDeploymentState( This is the entity-layer class for the deployment settings related to a Model Endpoint. """ - class MetaOapg: required = { "max_workers", "min_workers", "per_worker", } - + class properties: - - - class max_workers( - schemas.IntSchema - ): - - + class max_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 - - - class min_workers( - schemas.IntSchema - ): - - + + class min_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 + per_worker = schemas.IntSchema - - - class available_workers( - schemas.IntSchema - ): - - + + class available_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 - - - class unavailable_workers( - schemas.IntSchema - ): - - + + class unavailable_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 + __annotations__ = { "max_workers": max_workers, "min_workers": min_workers, @@ -87,67 +65,143 @@ class MetaOapg: "available_workers": available_workers, "unavailable_workers": unavailable_workers, } - + max_workers: MetaOapg.properties.max_workers min_workers: MetaOapg.properties.min_workers per_worker: MetaOapg.properties.per_worker - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available_workers"]) -> MetaOapg.properties.available_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["available_workers"] + ) -> MetaOapg.properties.available_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["unavailable_workers"]) -> MetaOapg.properties.unavailable_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["unavailable_workers"] + ) -> MetaOapg.properties.unavailable_workers: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "max_workers", + "min_workers", + "per_worker", + "available_workers", + "unavailable_workers", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available_workers"]) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["available_workers"] + ) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["unavailable_workers"]) -> typing.Union[MetaOapg.properties.unavailable_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["unavailable_workers"] + ) -> typing.Union[MetaOapg.properties.unavailable_workers, 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["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "max_workers", + "min_workers", + "per_worker", + "available_workers", + "unavailable_workers", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], - available_workers: typing.Union[MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - unavailable_workers: typing.Union[MetaOapg.properties.unavailable_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + max_workers: typing.Union[ + MetaOapg.properties.max_workers, + decimal.Decimal, + int, + ], + min_workers: typing.Union[ + MetaOapg.properties.min_workers, + decimal.Decimal, + int, + ], + per_worker: typing.Union[ + MetaOapg.properties.per_worker, + decimal.Decimal, + int, + ], + available_workers: typing.Union[ + MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + unavailable_workers: typing.Union[ + MetaOapg.properties.unavailable_workers, decimal.Decimal, int, 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], - ) -> 'ModelEndpointDeploymentState': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelEndpointDeploymentState": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_deployment_state.pyi b/launch/api_client/model/model_endpoint_deployment_state.pyi index 65d9de9d..af8a29f8 100644 --- a/launch/api_client/model/model_endpoint_deployment_state.pyi +++ b/launch/api_client/model/model_endpoint_deployment_state.pyi @@ -22,10 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelEndpointDeploymentState( - schemas.DictSchema -): +class ModelEndpointDeploymentState(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,39 +31,25 @@ class ModelEndpointDeploymentState( This is the entity-layer class for the deployment settings related to a Model Endpoint. """ - class MetaOapg: required = { "max_workers", "min_workers", "per_worker", } - + class properties: - - - class max_workers( - schemas.IntSchema - ): + class max_workers(schemas.IntSchema): pass - - - class min_workers( - schemas.IntSchema - ): + + class min_workers(schemas.IntSchema): pass per_worker = schemas.IntSchema - - - class available_workers( - schemas.IntSchema - ): + + class available_workers(schemas.IntSchema): pass - - - class unavailable_workers( - schemas.IntSchema - ): + + class unavailable_workers(schemas.IntSchema): pass __annotations__ = { "max_workers": max_workers, @@ -75,67 +58,116 @@ class ModelEndpointDeploymentState( "available_workers": available_workers, "unavailable_workers": unavailable_workers, } - max_workers: MetaOapg.properties.max_workers min_workers: MetaOapg.properties.min_workers per_worker: MetaOapg.properties.per_worker - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available_workers"]) -> MetaOapg.properties.available_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["available_workers"] + ) -> MetaOapg.properties.available_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["unavailable_workers"]) -> MetaOapg.properties.unavailable_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["unavailable_workers"] + ) -> MetaOapg.properties.unavailable_workers: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "max_workers", + "min_workers", + "per_worker", + "available_workers", + "unavailable_workers", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available_workers"]) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["available_workers"] + ) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["unavailable_workers"]) -> typing.Union[MetaOapg.properties.unavailable_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["unavailable_workers"] + ) -> typing.Union[MetaOapg.properties.unavailable_workers, 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["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "max_workers", + "min_workers", + "per_worker", + "available_workers", + "unavailable_workers", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], - available_workers: typing.Union[MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - unavailable_workers: typing.Union[MetaOapg.properties.unavailable_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + max_workers: typing.Union[ + MetaOapg.properties.max_workers, + decimal.Decimal, + int, + ], + min_workers: typing.Union[ + MetaOapg.properties.min_workers, + decimal.Decimal, + int, + ], + per_worker: typing.Union[ + MetaOapg.properties.per_worker, + decimal.Decimal, + int, + ], + available_workers: typing.Union[ + MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + unavailable_workers: typing.Union[ + MetaOapg.properties.unavailable_workers, decimal.Decimal, int, 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], - ) -> 'ModelEndpointDeploymentState': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelEndpointDeploymentState": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_order_by.py b/launch/api_client/model/model_endpoint_order_by.py index 85a5d7e0..87e6a3e7 100644 --- a/launch/api_client/model/model_endpoint_order_by.py +++ b/launch/api_client/model/model_endpoint_order_by.py @@ -23,10 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class ModelEndpointOrderBy( - schemas.EnumBase, - schemas.StrSchema -): +class ModelEndpointOrderBy(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,22 +32,21 @@ class ModelEndpointOrderBy( The canonical list of possible orderings of Model Bundles. """ - class MetaOapg: enum_value_to_name = { "newest": "NEWEST", "oldest": "OLDEST", "alphabetical": "ALPHABETICAL", } - + @schemas.classproperty def NEWEST(cls): return cls("newest") - + @schemas.classproperty def OLDEST(cls): return cls("oldest") - + @schemas.classproperty def ALPHABETICAL(cls): return cls("alphabetical") diff --git a/launch/api_client/model/model_endpoint_order_by.pyi b/launch/api_client/model/model_endpoint_order_by.pyi index 891a380d..00acf464 100644 --- a/launch/api_client/model/model_endpoint_order_by.pyi +++ b/launch/api_client/model/model_endpoint_order_by.pyi @@ -22,11 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelEndpointOrderBy( - schemas.EnumBase, - schemas.StrSchema -): +class ModelEndpointOrderBy(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,15 +30,13 @@ class ModelEndpointOrderBy( The canonical list of possible orderings of Model Bundles. """ - + @schemas.classproperty def NEWEST(cls): return cls("newest") - @schemas.classproperty def OLDEST(cls): return cls("oldest") - @schemas.classproperty def ALPHABETICAL(cls): return cls("alphabetical") diff --git a/launch/api_client/model/model_endpoint_resource_state.py b/launch/api_client/model/model_endpoint_resource_state.py index e232a176..920408f8 100644 --- a/launch/api_client/model/model_endpoint_resource_state.py +++ b/launch/api_client/model/model_endpoint_resource_state.py @@ -23,9 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class ModelEndpointResourceState( - schemas.DictSchema -): +class ModelEndpointResourceState(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,27 +32,22 @@ class ModelEndpointResourceState( This is the entity-layer class for the resource settings per worker of a Model Endpoint. """ - class MetaOapg: required = { "memory", "cpus", "gpus", } - + class properties: - - class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -70,41 +63,64 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - - class gpus( - schemas.IntSchema - ): - - + + class gpus(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -120,37 +136,66 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType + optimize_costs = schemas.BoolSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -166,20 +211,52 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + __annotations__ = { "cpus": cpus, "gpus": gpus, @@ -188,74 +265,193 @@ def __new__( "optimize_costs": optimize_costs, "storage": storage, } - + memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus gpus: MetaOapg.properties.gpus - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... - + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpus", + "memory", + "gpu_type", + "optimize_costs", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpus", + "memory", + "gpu_type", + "optimize_costs", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + gpus: typing.Union[ + MetaOapg.properties.gpus, + decimal.Decimal, + int, + ], + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'ModelEndpointResourceState': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelEndpointResourceState": return super().__new__( cls, *_args, @@ -269,4 +465,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/model_endpoint_resource_state.pyi b/launch/api_client/model/model_endpoint_resource_state.pyi index d114992c..c34afbb1 100644 --- a/launch/api_client/model/model_endpoint_resource_state.pyi +++ b/launch/api_client/model/model_endpoint_resource_state.pyi @@ -22,10 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelEndpointResourceState( - schemas.DictSchema -): +class ModelEndpointResourceState(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,27 +31,22 @@ class ModelEndpointResourceState( This is the entity-layer class for the resource settings per worker of a Model Endpoint. """ - class MetaOapg: required = { "memory", "cpus", "gpus", } - + class properties: - - class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -70,38 +62,62 @@ class ModelEndpointResourceState( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - - class gpus( - schemas.IntSchema - ): + + class gpus(schemas.IntSchema): pass - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -117,37 +133,63 @@ class ModelEndpointResourceState( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType optimize_costs = schemas.BoolSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -163,14 +205,44 @@ class ModelEndpointResourceState( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, @@ -185,74 +257,162 @@ class ModelEndpointResourceState( "optimize_costs": optimize_costs, "storage": storage, } - memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus gpus: MetaOapg.properties.gpus - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpus", + "memory", + "gpu_type", + "optimize_costs", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpus", + "memory", + "gpu_type", + "optimize_costs", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + gpus: typing.Union[ + MetaOapg.properties.gpus, + decimal.Decimal, + int, + ], + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'ModelEndpointResourceState': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelEndpointResourceState": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_status.py b/launch/api_client/model/model_endpoint_status.py index c1ceaf1b..445e3498 100644 --- a/launch/api_client/model/model_endpoint_status.py +++ b/launch/api_client/model/model_endpoint_status.py @@ -23,10 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class ModelEndpointStatus( - schemas.EnumBase, - schemas.StrSchema -): +class ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,7 +32,6 @@ class ModelEndpointStatus( An enumeration. """ - class MetaOapg: enum_value_to_name = { "READY": "READY", @@ -44,23 +40,23 @@ class MetaOapg: "UPDATE_FAILED": "UPDATE_FAILED", "DELETE_IN_PROGRESS": "DELETE_IN_PROGRESS", } - + @schemas.classproperty def READY(cls): return cls("READY") - + @schemas.classproperty def UPDATE_PENDING(cls): return cls("UPDATE_PENDING") - + @schemas.classproperty def UPDATE_IN_PROGRESS(cls): return cls("UPDATE_IN_PROGRESS") - + @schemas.classproperty def UPDATE_FAILED(cls): return cls("UPDATE_FAILED") - + @schemas.classproperty def DELETE_IN_PROGRESS(cls): return cls("DELETE_IN_PROGRESS") diff --git a/launch/api_client/model/model_endpoint_status.pyi b/launch/api_client/model/model_endpoint_status.pyi index 2c69f8c7..596b3bd7 100644 --- a/launch/api_client/model/model_endpoint_status.pyi +++ b/launch/api_client/model/model_endpoint_status.pyi @@ -22,11 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelEndpointStatus( - schemas.EnumBase, - schemas.StrSchema -): +class ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,23 +30,19 @@ class ModelEndpointStatus( An enumeration. """ - + @schemas.classproperty def READY(cls): return cls("READY") - @schemas.classproperty def UPDATE_PENDING(cls): return cls("UPDATE_PENDING") - @schemas.classproperty def UPDATE_IN_PROGRESS(cls): return cls("UPDATE_IN_PROGRESS") - @schemas.classproperty def UPDATE_FAILED(cls): return cls("UPDATE_FAILED") - @schemas.classproperty def DELETE_IN_PROGRESS(cls): return cls("DELETE_IN_PROGRESS") diff --git a/launch/api_client/model/model_endpoint_type.py b/launch/api_client/model/model_endpoint_type.py index 5c5037b8..3e23ae80 100644 --- a/launch/api_client/model/model_endpoint_type.py +++ b/launch/api_client/model/model_endpoint_type.py @@ -23,10 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class ModelEndpointType( - schemas.EnumBase, - schemas.StrSchema -): +class ModelEndpointType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,17 +32,16 @@ class ModelEndpointType( An enumeration. """ - class MetaOapg: enum_value_to_name = { "async": "ASYNC", "sync": "SYNC", } - + @schemas.classproperty def ASYNC(cls): return cls("async") - + @schemas.classproperty def SYNC(cls): return cls("sync") diff --git a/launch/api_client/model/model_endpoint_type.pyi b/launch/api_client/model/model_endpoint_type.pyi index 15fd296f..c5e640c9 100644 --- a/launch/api_client/model/model_endpoint_type.pyi +++ b/launch/api_client/model/model_endpoint_type.pyi @@ -22,11 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelEndpointType( - schemas.EnumBase, - schemas.StrSchema -): +class ModelEndpointType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,11 +30,10 @@ class ModelEndpointType( An enumeration. """ - + @schemas.classproperty def ASYNC(cls): return cls("async") - @schemas.classproperty def SYNC(cls): return cls("sync") diff --git a/launch/api_client/model/request_schema.py b/launch/api_client/model/request_schema.py index 3546ebfd..3dc04b7e 100644 --- a/launch/api_client/model/request_schema.py +++ b/launch/api_client/model/request_schema.py @@ -21,4 +21,5 @@ import frozendict # noqa: F401 from launch.api_client import schemas # noqa: F401 + RequestSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/request_schema.pyi b/launch/api_client/model/request_schema.pyi index 113fed8a..e5da4cba 100644 --- a/launch/api_client/model/request_schema.pyi +++ b/launch/api_client/model/request_schema.pyi @@ -21,4 +21,5 @@ import uuid # noqa: F401 import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 + RequestSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/response_schema.py b/launch/api_client/model/response_schema.py index 816504b4..2fb37b63 100644 --- a/launch/api_client/model/response_schema.py +++ b/launch/api_client/model/response_schema.py @@ -21,4 +21,5 @@ import frozendict # noqa: F401 from launch.api_client import schemas # noqa: F401 + ResponseSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/response_schema.pyi b/launch/api_client/model/response_schema.pyi index b31db7e3..c3179237 100644 --- a/launch/api_client/model/response_schema.pyi +++ b/launch/api_client/model/response_schema.pyi @@ -21,4 +21,5 @@ import uuid # noqa: F401 import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 + ResponseSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/sync_endpoint_predict_response.py b/launch/api_client/model/sync_endpoint_predict_response.py index 2d0797a6..b88f87d2 100644 --- a/launch/api_client/model/sync_endpoint_predict_response.py +++ b/launch/api_client/model/sync_endpoint_predict_response.py @@ -58,9 +58,7 @@ def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["traceback"] - ) -> MetaOapg.properties.traceback: + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... @typing.overload diff --git a/launch/api_client/model/sync_endpoint_predict_response.pyi b/launch/api_client/model/sync_endpoint_predict_response.pyi index 4342348b..b547fcea 100644 --- a/launch/api_client/model/sync_endpoint_predict_response.pyi +++ b/launch/api_client/model/sync_endpoint_predict_response.pyi @@ -49,13 +49,9 @@ class SyncEndpointPredictResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["result"] - ) -> MetaOapg.properties.result: ... + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["traceback"] - ) -> MetaOapg.properties.traceback: ... + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -82,9 +78,7 @@ class SyncEndpointPredictResponse(schemas.DictSchema): self, name: typing_extensions.Literal["traceback"] ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/sync_endpoint_predict_v1_response.py b/launch/api_client/model/sync_endpoint_predict_v1_response.py index 08311f09..fd4f9da8 100644 --- a/launch/api_client/model/sync_endpoint_predict_v1_response.py +++ b/launch/api_client/model/sync_endpoint_predict_v1_response.py @@ -23,26 +23,23 @@ from launch.api_client import schemas # noqa: F401 -class SyncEndpointPredictV1Response( - schemas.DictSchema -): +class SyncEndpointPredictV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "status", } - + class properties: - @staticmethod - def status() -> typing.Type['TaskStatus']: + def status() -> typing.Type["TaskStatus"]: return TaskStatus + result = schemas.AnyTypeSchema traceback = schemas.StrSchema __annotations__ = { @@ -50,51 +47,118 @@ def status() -> typing.Type['TaskStatus']: "result": result, "traceback": traceback, } - - status: 'TaskStatus' - + + status: "TaskStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... - + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "result", "traceback", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "result", + "traceback", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["result"] + ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["traceback"] + ) -> typing.Union[MetaOapg.properties.traceback, 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["status", "result", "traceback", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "result", + "traceback", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - status: 'TaskStatus', - result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + status: "TaskStatus", + result: typing.Union[ + MetaOapg.properties.result, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, traceback: typing.Union[MetaOapg.properties.traceback, str, 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], - ) -> 'SyncEndpointPredictV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "SyncEndpointPredictV1Response": return super().__new__( cls, *_args, @@ -105,4 +169,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.task_status import TaskStatus diff --git a/launch/api_client/model/sync_endpoint_predict_v1_response.pyi b/launch/api_client/model/sync_endpoint_predict_v1_response.pyi index 063e0357..abfa01e7 100644 --- a/launch/api_client/model/sync_endpoint_predict_v1_response.pyi +++ b/launch/api_client/model/sync_endpoint_predict_v1_response.pyi @@ -22,26 +22,21 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class SyncEndpointPredictV1Response( - schemas.DictSchema -): +class SyncEndpointPredictV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "status", } - + class properties: - @staticmethod - def status() -> typing.Type['TaskStatus']: + def status() -> typing.Type["TaskStatus"]: return TaskStatus result = schemas.AnyTypeSchema traceback = schemas.StrSchema @@ -50,51 +45,99 @@ class SyncEndpointPredictV1Response( "result": result, "traceback": traceback, } - - status: 'TaskStatus' - + status: "TaskStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "result", "traceback", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "result", + "traceback", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["result"] + ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["traceback"] + ) -> typing.Union[MetaOapg.properties.traceback, 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["status", "result", "traceback", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "result", + "traceback", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - status: 'TaskStatus', - result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + status: "TaskStatus", + result: typing.Union[ + MetaOapg.properties.result, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, traceback: typing.Union[MetaOapg.properties.traceback, str, 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], - ) -> 'SyncEndpointPredictV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "SyncEndpointPredictV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/task_status.py b/launch/api_client/model/task_status.py index d162efff..5d223f9a 100644 --- a/launch/api_client/model/task_status.py +++ b/launch/api_client/model/task_status.py @@ -23,10 +23,7 @@ from launch.api_client import schemas # noqa: F401 -class TaskStatus( - schemas.EnumBase, - schemas.StrSchema -): +class TaskStatus(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,7 +32,6 @@ class TaskStatus( An enumeration. """ - class MetaOapg: enum_value_to_name = { "PENDING": "PENDING", @@ -44,23 +40,23 @@ class MetaOapg: "FAILURE": "FAILURE", "UNDEFINED": "UNDEFINED", } - + @schemas.classproperty def PENDING(cls): return cls("PENDING") - + @schemas.classproperty def STARTED(cls): return cls("STARTED") - + @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") - + @schemas.classproperty def FAILURE(cls): return cls("FAILURE") - + @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/task_status.pyi b/launch/api_client/model/task_status.pyi index 1a313148..9a612f3e 100644 --- a/launch/api_client/model/task_status.pyi +++ b/launch/api_client/model/task_status.pyi @@ -22,11 +22,7 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class TaskStatus( - schemas.EnumBase, - schemas.StrSchema -): +class TaskStatus(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,23 +30,19 @@ class TaskStatus( An enumeration. """ - + @schemas.classproperty def PENDING(cls): return cls("PENDING") - @schemas.classproperty def STARTED(cls): return cls("STARTED") - @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") - @schemas.classproperty def FAILURE(cls): return cls("FAILURE") - @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/update_batch_job_request.py b/launch/api_client/model/update_batch_job_request.py index 882b380d..48340bea 100644 --- a/launch/api_client/model/update_batch_job_request.py +++ b/launch/api_client/model/update_batch_job_request.py @@ -53,9 +53,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "cancel", - ], + typing_extensions.Literal["cancel",], str, ], ): @@ -63,9 +61,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cancel"] - ) -> MetaOapg.properties.cancel: + def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... @typing.overload @@ -75,9 +71,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "cancel", - ], + typing_extensions.Literal["cancel",], str, ], ): diff --git a/launch/api_client/model/update_batch_job_request.pyi b/launch/api_client/model/update_batch_job_request.pyi index af407069..8c060506 100644 --- a/launch/api_client/model/update_batch_job_request.pyi +++ b/launch/api_client/model/update_batch_job_request.pyi @@ -41,36 +41,26 @@ class UpdateBatchJobRequest(schemas.DictSchema): cancel: MetaOapg.properties.cancel @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["cancel"] - ) -> MetaOapg.properties.cancel: ... + def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "cancel", - ], + typing_extensions.Literal["cancel",], str, ], ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cancel"] - ) -> MetaOapg.properties.cancel: ... + def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "cancel", - ], + typing_extensions.Literal["cancel",], str, ], ): diff --git a/launch/api_client/model/update_batch_job_response.py b/launch/api_client/model/update_batch_job_response.py index a7175781..b4c260f8 100644 --- a/launch/api_client/model/update_batch_job_response.py +++ b/launch/api_client/model/update_batch_job_response.py @@ -43,9 +43,7 @@ class properties: success: MetaOapg.properties.success @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["success"] - ) -> MetaOapg.properties.success: + def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload @@ -55,9 +53,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "success", - ], + typing_extensions.Literal["success",], str, ], ): @@ -65,9 +61,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["success"] - ) -> MetaOapg.properties.success: + def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload @@ -77,9 +71,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "success", - ], + typing_extensions.Literal["success",], str, ], ): diff --git a/launch/api_client/model/update_batch_job_response.pyi b/launch/api_client/model/update_batch_job_response.pyi index b6a583f8..b6ed2feb 100644 --- a/launch/api_client/model/update_batch_job_response.pyi +++ b/launch/api_client/model/update_batch_job_response.pyi @@ -41,36 +41,26 @@ class UpdateBatchJobResponse(schemas.DictSchema): success: MetaOapg.properties.success @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["success"] - ) -> MetaOapg.properties.success: ... + def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "success", - ], + typing_extensions.Literal["success",], str, ], ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["success"] - ) -> MetaOapg.properties.success: ... + def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "success", - ], + typing_extensions.Literal["success",], str, ], ): diff --git a/launch/api_client/model/update_batch_job_v1_request.py b/launch/api_client/model/update_batch_job_v1_request.py index abf9b3a1..c5b0c591 100644 --- a/launch/api_client/model/update_batch_job_v1_request.py +++ b/launch/api_client/model/update_batch_job_v1_request.py @@ -23,57 +23,77 @@ from launch.api_client import schemas # noqa: F401 -class UpdateBatchJobV1Request( - schemas.DictSchema -): +class UpdateBatchJobV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "cancel", } - + class properties: cancel = schemas.BoolSchema __annotations__ = { "cancel": cancel, } - + cancel: MetaOapg.properties.cancel - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... - + def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... - + def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: + ... + @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["cancel", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - cancel: typing.Union[MetaOapg.properties.cancel, bool, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + cancel: typing.Union[ + MetaOapg.properties.cancel, + bool, + ], _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], - ) -> 'UpdateBatchJobV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateBatchJobV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_batch_job_v1_request.pyi b/launch/api_client/model/update_batch_job_v1_request.pyi index 96a62273..6a65ff37 100644 --- a/launch/api_client/model/update_batch_job_v1_request.pyi +++ b/launch/api_client/model/update_batch_job_v1_request.pyi @@ -22,58 +22,66 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class UpdateBatchJobV1Request( - schemas.DictSchema -): +class UpdateBatchJobV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "cancel", } - + class properties: cancel = schemas.BoolSchema __annotations__ = { "cancel": cancel, } - cancel: MetaOapg.properties.cancel - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... - @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["cancel", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - cancel: typing.Union[MetaOapg.properties.cancel, bool, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + cancel: typing.Union[ + MetaOapg.properties.cancel, + bool, + ], _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], - ) -> 'UpdateBatchJobV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateBatchJobV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_batch_job_v1_response.py b/launch/api_client/model/update_batch_job_v1_response.py index 4f702046..51d26e90 100644 --- a/launch/api_client/model/update_batch_job_v1_response.py +++ b/launch/api_client/model/update_batch_job_v1_response.py @@ -23,57 +23,77 @@ from launch.api_client import schemas # noqa: F401 -class UpdateBatchJobV1Response( - schemas.DictSchema -): +class UpdateBatchJobV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "success", } - + class properties: success = schemas.BoolSchema __annotations__ = { "success": success, } - + success: MetaOapg.properties.success - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - + def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - + def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: + ... + @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["success", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + success: typing.Union[ + MetaOapg.properties.success, + bool, + ], _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], - ) -> 'UpdateBatchJobV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateBatchJobV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_batch_job_v1_response.pyi b/launch/api_client/model/update_batch_job_v1_response.pyi index ff8a3d63..49355934 100644 --- a/launch/api_client/model/update_batch_job_v1_response.pyi +++ b/launch/api_client/model/update_batch_job_v1_response.pyi @@ -22,58 +22,66 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class UpdateBatchJobV1Response( - schemas.DictSchema -): +class UpdateBatchJobV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "success", } - + class properties: success = schemas.BoolSchema __annotations__ = { "success": success, } - success: MetaOapg.properties.success - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - @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["success", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + success: typing.Union[ + MetaOapg.properties.success, + bool, + ], _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], - ) -> 'UpdateBatchJobV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateBatchJobV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_model_endpoint_request.py b/launch/api_client/model/update_model_endpoint_request.py index e2f76f75..0a592f5f 100644 --- a/launch/api_client/model/update_model_endpoint_request.py +++ b/launch/api_client/model/update_model_endpoint_request.py @@ -127,18 +127,14 @@ class MetaOapg: def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) @@ -370,15 +366,11 @@ def __new__( } @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["aws_role"] - ) -> MetaOapg.properties.aws_role: + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["billing_tags"] - ) -> MetaOapg.properties.billing_tags: + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... @typing.overload @@ -386,9 +378,7 @@ def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload @@ -410,9 +400,7 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload @@ -420,33 +408,23 @@ def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload @@ -456,9 +434,7 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["prewarm"] - ) -> MetaOapg.properties.prewarm: + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... @typing.overload @@ -468,9 +444,7 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload @@ -538,9 +512,7 @@ def get_item_oapg( ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload @@ -689,15 +661,9 @@ def __new__( MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - gpus: typing.Union[ - MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - labels: typing.Union[ - MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - max_workers: typing.Union[ - MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, memory: typing.Union[ MetaOapg.properties.memory, dict, @@ -721,25 +687,15 @@ def __new__( metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - min_workers: typing.Union[ - MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - model_bundle_id: typing.Union[ - MetaOapg.properties.model_bundle_id, str, schemas.Unset - ] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, - per_worker: typing.Union[ - MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[ - MetaOapg.properties.results_s3_bucket, str, schemas.Unset - ] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/update_model_endpoint_request.pyi b/launch/api_client/model/update_model_endpoint_request.pyi index f357ee05..9e376da4 100644 --- a/launch/api_client/model/update_model_endpoint_request.pyi +++ b/launch/api_client/model/update_model_endpoint_request.pyi @@ -118,17 +118,13 @@ class UpdateModelEndpointRequest(schemas.DictSchema): additional_properties = schemas.StrSchema def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( @@ -348,19 +344,13 @@ class UpdateModelEndpointRequest(schemas.DictSchema): "storage": storage, } @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["aws_role"] - ) -> MetaOapg.properties.aws_role: ... + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["billing_tags"] - ) -> MetaOapg.properties.billing_tags: ... + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -370,53 +360,35 @@ class UpdateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: ... + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: ... + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: ... + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: ... + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: ... + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["prewarm"] - ) -> MetaOapg.properties.prewarm: ... + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["results_s3_bucket"] ) -> MetaOapg.properties.results_s3_bucket: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: ... + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -469,9 +441,7 @@ class UpdateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["default_callback_url"] ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["gpus"] @@ -525,9 +495,7 @@ class UpdateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["storage"] ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -591,15 +559,9 @@ class UpdateModelEndpointRequest(schemas.DictSchema): MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - gpus: typing.Union[ - MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - labels: typing.Union[ - MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - max_workers: typing.Union[ - MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, memory: typing.Union[ MetaOapg.properties.memory, dict, @@ -623,25 +585,15 @@ class UpdateModelEndpointRequest(schemas.DictSchema): metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - min_workers: typing.Union[ - MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - model_bundle_id: typing.Union[ - MetaOapg.properties.model_bundle_id, str, schemas.Unset - ] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, - per_worker: typing.Union[ - MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[ - MetaOapg.properties.results_s3_bucket, str, schemas.Unset - ] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/update_model_endpoint_response.py b/launch/api_client/model/update_model_endpoint_response.py index 9e3df010..20d54a28 100644 --- a/launch/api_client/model/update_model_endpoint_response.py +++ b/launch/api_client/model/update_model_endpoint_response.py @@ -55,9 +55,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): @@ -77,9 +75,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): diff --git a/launch/api_client/model/update_model_endpoint_response.pyi b/launch/api_client/model/update_model_endpoint_response.pyi index e8fa304d..692169f5 100644 --- a/launch/api_client/model/update_model_endpoint_response.pyi +++ b/launch/api_client/model/update_model_endpoint_response.pyi @@ -49,9 +49,7 @@ class UpdateModelEndpointResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): @@ -62,15 +60,11 @@ class UpdateModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["endpoint_creation_task_id"] ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): diff --git a/launch/api_client/model/update_model_endpoint_v1_request.py b/launch/api_client/model/update_model_endpoint_v1_request.py index 769f2fe7..797ad059 100644 --- a/launch/api_client/model/update_model_endpoint_v1_request.py +++ b/launch/api_client/model/update_model_endpoint_v1_request.py @@ -23,33 +23,26 @@ from launch.api_client import schemas # noqa: F401 -class UpdateModelEndpointV1Request( - schemas.DictSchema -): +class UpdateModelEndpointV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: aws_role = schemas.StrSchema billing_tags = schemas.DictSchema - - + class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -65,99 +58,114 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def default_callback_auth() -> typing.Type['CallbackAuth']: + def default_callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth - - - class default_callback_url( - schemas.StrSchema - ): - - + + class default_callback_url(schemas.StrSchema): class MetaOapg: - format = 'uri' + format = "uri" max_length = 2083 min_length = 1 - + @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType - - - class gpus( - schemas.IntSchema - ): - - + + class gpus(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 + high_priority = schemas.BoolSchema - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - - class max_workers( - schemas.IntSchema - ): - - + + class max_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -173,70 +181,104 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + metadata = schemas.DictSchema - - - class min_workers( - schemas.IntSchema - ): - - + + class min_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 + model_bundle_id = schemas.StrSchema optimize_costs = schemas.BoolSchema per_worker = schemas.IntSchema - - - class post_inference_hooks( - schemas.ListSchema - ): - - + + class post_inference_hooks(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'post_inference_hooks': + ) -> "post_inference_hooks": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + prewarm = schemas.BoolSchema results_s3_bucket = schemas.StrSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -252,20 +294,52 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + __annotations__ = { "aws_role": aws_role, "billing_tags": billing_tags, @@ -288,168 +362,389 @@ def __new__( "results_s3_bucket": results_s3_bucket, "storage": storage, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... - + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... - + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> MetaOapg.properties.default_callback_url: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... - + def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... - + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... - + def __getitem__( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> MetaOapg.properties.post_inference_hooks: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... - + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... - + def __getitem__( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> MetaOapg.properties.results_s3_bucket: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "aws_role", + "billing_tags", + "cpus", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "gpus", + "high_priority", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "optimize_costs", + "per_worker", + "post_inference_hooks", + "prewarm", + "results_s3_bucket", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["aws_role"] + ) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["billing_tags"] + ) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cpus"] + ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpus"] + ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["high_priority"] + ) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["min_workers"] + ) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["prewarm"] + ) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "aws_role", + "billing_tags", + "cpus", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "gpus", + "high_priority", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "optimize_costs", + "per_worker", + "post_inference_hooks", + "prewarm", + "results_s3_bucket", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, - billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, + billing_tags: typing.Union[ + MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[ + MetaOapg.properties.default_callback_url, str, schemas.Unset + ] = schemas.unset, + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + metadata: typing.Union[ + MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + post_inference_hooks: typing.Union[ + MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset + ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'UpdateModelEndpointV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateModelEndpointV1Request": return super().__new__( cls, *_args, @@ -477,5 +772,6 @@ def __new__( **kwargs, ) + from launch.api_client.model.callback_auth import CallbackAuth from launch.api_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/update_model_endpoint_v1_request.pyi b/launch/api_client/model/update_model_endpoint_v1_request.pyi index 9aadf01d..ee8fe367 100644 --- a/launch/api_client/model/update_model_endpoint_v1_request.pyi +++ b/launch/api_client/model/update_model_endpoint_v1_request.pyi @@ -22,34 +22,26 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class UpdateModelEndpointV1Request( - schemas.DictSchema -): +class UpdateModelEndpointV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: aws_role = schemas.StrSchema billing_tags = schemas.DictSchema - - + class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -65,88 +57,102 @@ class UpdateModelEndpointV1Request( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - @staticmethod - def default_callback_auth() -> typing.Type['CallbackAuth']: + def default_callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth - - - class default_callback_url( - schemas.StrSchema - ): + + class default_callback_url(schemas.StrSchema): pass - @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType - - - class gpus( - schemas.IntSchema - ): + + class gpus(schemas.IntSchema): pass high_priority = schemas.BoolSchema - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - - class max_workers( - schemas.IntSchema - ): + + class max_workers(schemas.IntSchema): pass - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -162,14 +168,44 @@ class UpdateModelEndpointV1Request( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, @@ -177,52 +213,52 @@ class UpdateModelEndpointV1Request( **kwargs, ) metadata = schemas.DictSchema - - - class min_workers( - schemas.IntSchema - ): + + class min_workers(schemas.IntSchema): pass model_bundle_id = schemas.StrSchema optimize_costs = schemas.BoolSchema per_worker = schemas.IntSchema - - - class post_inference_hooks( - schemas.ListSchema - ): - - + + class post_inference_hooks(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'post_inference_hooks': + ) -> "post_inference_hooks": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) prewarm = schemas.BoolSchema results_s3_bucket = schemas.StrSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -238,14 +274,44 @@ class UpdateModelEndpointV1Request( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, @@ -274,168 +340,304 @@ class UpdateModelEndpointV1Request( "results_s3_bucket": results_s3_bucket, "storage": storage, } - @typing.overload def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> MetaOapg.properties.default_callback_url: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... - + def __getitem__( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... - + def __getitem__( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> MetaOapg.properties.results_s3_bucket: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "aws_role", + "billing_tags", + "cpus", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "gpus", + "high_priority", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "optimize_costs", + "per_worker", + "post_inference_hooks", + "prewarm", + "results_s3_bucket", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["aws_role"] + ) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["billing_tags"] + ) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cpus"] + ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpus"] + ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["high_priority"] + ) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["min_workers"] + ) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["prewarm"] + ) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "aws_role", + "billing_tags", + "cpus", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "gpus", + "high_priority", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "optimize_costs", + "per_worker", + "post_inference_hooks", + "prewarm", + "results_s3_bucket", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, - billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, + billing_tags: typing.Union[ + MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[ + MetaOapg.properties.default_callback_url, str, schemas.Unset + ] = schemas.unset, + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + metadata: typing.Union[ + MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + post_inference_hooks: typing.Union[ + MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset + ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'UpdateModelEndpointV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateModelEndpointV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_model_endpoint_v1_response.py b/launch/api_client/model/update_model_endpoint_v1_response.py index 7aeff47a..c0621795 100644 --- a/launch/api_client/model/update_model_endpoint_v1_response.py +++ b/launch/api_client/model/update_model_endpoint_v1_response.py @@ -23,57 +23,81 @@ from launch.api_client import schemas # noqa: F401 -class UpdateModelEndpointV1Response( - schemas.DictSchema -): +class UpdateModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_creation_task_id", } - + class properties: endpoint_creation_task_id = schemas.StrSchema __annotations__ = { "endpoint_creation_task_id": endpoint_creation_task_id, } - + endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: + ... + @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["endpoint_creation_task_id", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_creation_task_id: typing.Union[ + MetaOapg.properties.endpoint_creation_task_id, + str, + ], _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], - ) -> 'UpdateModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_model_endpoint_v1_response.pyi b/launch/api_client/model/update_model_endpoint_v1_response.pyi index 87aa1609..f384bb82 100644 --- a/launch/api_client/model/update_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/update_model_endpoint_v1_response.pyi @@ -22,58 +22,70 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class UpdateModelEndpointV1Response( - schemas.DictSchema -): +class UpdateModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_creation_task_id", } - + class properties: endpoint_creation_task_id = schemas.StrSchema __annotations__ = { "endpoint_creation_task_id": endpoint_creation_task_id, } - endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: ... @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["endpoint_creation_task_id", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_creation_task_id: typing.Union[ + MetaOapg.properties.endpoint_creation_task_id, + str, + ], _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], - ) -> 'UpdateModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/validation_error.py b/launch/api_client/model/validation_error.py index 42a25b83..402f6e68 100644 --- a/launch/api_client/model/validation_error.py +++ b/launch/api_client/model/validation_error.py @@ -23,43 +23,30 @@ from launch.api_client import schemas # noqa: F401 -class ValidationError( - schemas.DictSchema -): +class ValidationError(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "msg", "loc", "type", } - + class properties: - - - class loc( - schemas.ListSchema - ): - - + class loc(schemas.ListSchema): class MetaOapg: - - class items( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -74,34 +61,109 @@ def any_of(cls): cls.any_of_0, cls.any_of_1, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'items': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "items": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'loc': + ) -> "loc": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + msg = schemas.StrSchema type = schemas.StrSchema __annotations__ = { @@ -109,53 +171,107 @@ def __getitem__(self, i: int) -> MetaOapg.items: "msg": msg, "type": type, } - + msg: MetaOapg.properties.msg loc: MetaOapg.properties.loc type: MetaOapg.properties.type - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... - + def __getitem__(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - + def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - + def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["loc", "msg", "type", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "loc", + "msg", + "type", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... - + def get_item_oapg(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - + def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - + def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: + ... + @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["loc", "msg", "type", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "loc", + "msg", + "type", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - msg: typing.Union[MetaOapg.properties.msg, str, ], - loc: typing.Union[MetaOapg.properties.loc, list, tuple, ], - type: typing.Union[MetaOapg.properties.type, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + msg: typing.Union[ + MetaOapg.properties.msg, + str, + ], + loc: typing.Union[ + MetaOapg.properties.loc, + list, + tuple, + ], + type: typing.Union[ + MetaOapg.properties.type, + str, + ], _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], - ) -> 'ValidationError': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ValidationError": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/validation_error.pyi b/launch/api_client/model/validation_error.pyi index c6a35dac..b6d07049 100644 --- a/launch/api_client/model/validation_error.pyi +++ b/launch/api_client/model/validation_error.pyi @@ -22,44 +22,30 @@ import frozendict # noqa: F401 from launch_client import schemas # noqa: F401 - -class ValidationError( - schemas.DictSchema -): +class ValidationError(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "msg", "loc", "type", } - + class properties: - - - class loc( - schemas.ListSchema - ): - - + class loc(schemas.ListSchema): class MetaOapg: - - class items( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -74,32 +60,103 @@ class ValidationError( cls.any_of_0, cls.any_of_1, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'items': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "items": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'loc': + ) -> "loc": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) msg = schemas.StrSchema @@ -109,53 +166,88 @@ class ValidationError( "msg": msg, "type": type, } - msg: MetaOapg.properties.msg loc: MetaOapg.properties.loc type: MetaOapg.properties.type - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["loc", "msg", "type", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "loc", + "msg", + "type", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - @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["loc", "msg", "type", ], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "loc", + "msg", + "type", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - msg: typing.Union[MetaOapg.properties.msg, str, ], - loc: typing.Union[MetaOapg.properties.loc, list, tuple, ], - type: typing.Union[MetaOapg.properties.type, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + msg: typing.Union[ + MetaOapg.properties.msg, + str, + ], + loc: typing.Union[ + MetaOapg.properties.loc, + list, + tuple, + ], + type: typing.Union[ + MetaOapg.properties.type, + str, + ], _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], - ) -> 'ValidationError': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ValidationError": return super().__new__( cls, *_args, diff --git a/launch/api_client/paths/healthcheck/__init__.py b/launch/api_client/paths/healthcheck/__init__.py index b0eea9c5..ae6dcb46 100644 --- a/launch/api_client/paths/healthcheck/__init__.py +++ b/launch/api_client/paths/healthcheck/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.HEALTHCHECK \ No newline at end of file +path = PathValues.HEALTHCHECK diff --git a/launch/api_client/paths/healthcheck/get.py b/launch/api_client/paths/healthcheck/get.py index 287d610d..33c030f1 100644 --- a/launch/api_client/paths/healthcheck/get.py +++ b/launch/api_client/paths/healthcheck/get.py @@ -33,25 +33,20 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, + "200": _response_for_200, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -62,9 +57,8 @@ def _healthcheck_healthcheck_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _healthcheck_healthcheck_get_oapg( @@ -73,7 +67,8 @@ def _healthcheck_healthcheck_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _healthcheck_healthcheck_get_oapg( @@ -82,10 +77,8 @@ def _healthcheck_healthcheck_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _healthcheck_healthcheck_get_oapg( self, @@ -106,11 +99,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, stream=stream, timeout=timeout, @@ -126,11 +119,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -145,9 +134,8 @@ def healthcheck_healthcheck_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def healthcheck_healthcheck_get( @@ -156,7 +144,8 @@ def healthcheck_healthcheck_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def healthcheck_healthcheck_get( @@ -165,10 +154,8 @@ def healthcheck_healthcheck_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def healthcheck_healthcheck_get( self, @@ -181,7 +168,7 @@ def healthcheck_healthcheck_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -195,9 +182,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -206,7 +192,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -215,10 +202,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -231,7 +216,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/healthcheck/get.pyi b/launch/api_client/paths/healthcheck/get.pyi index 152c27b6..911ec01f 100644 --- a/launch/api_client/paths/healthcheck/get.pyi +++ b/launch/api_client/paths/healthcheck/get.pyi @@ -27,27 +27,19 @@ from launch_client import schemas # noqa: F401 SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -57,10 +49,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _healthcheck_healthcheck_get_oapg( self, @@ -69,7 +58,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _healthcheck_healthcheck_get_oapg( self, @@ -77,11 +65,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _healthcheck_healthcheck_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -101,11 +85,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, stream=stream, timeout=timeout, @@ -121,15 +105,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class HealthcheckHealthcheckGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -140,10 +119,7 @@ class HealthcheckHealthcheckGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def healthcheck_healthcheck_get( self, @@ -152,7 +128,6 @@ class HealthcheckHealthcheckGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def healthcheck_healthcheck_get( self, @@ -160,11 +135,7 @@ class HealthcheckHealthcheckGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def healthcheck_healthcheck_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -176,10 +147,9 @@ class HealthcheckHealthcheckGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -190,10 +160,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -202,7 +169,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -210,11 +176,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -226,7 +188,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/healthz/__init__.py b/launch/api_client/paths/healthz/__init__.py index b4e79532..3253e712 100644 --- a/launch/api_client/paths/healthz/__init__.py +++ b/launch/api_client/paths/healthz/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.HEALTHZ \ No newline at end of file +path = PathValues.HEALTHZ diff --git a/launch/api_client/paths/healthz/get.py b/launch/api_client/paths/healthz/get.py index e8aabd4b..f000cb08 100644 --- a/launch/api_client/paths/healthz/get.py +++ b/launch/api_client/paths/healthz/get.py @@ -33,25 +33,20 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, + "200": _response_for_200, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -62,9 +57,8 @@ def _healthcheck_healthz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _healthcheck_healthz_get_oapg( @@ -73,7 +67,8 @@ def _healthcheck_healthz_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _healthcheck_healthz_get_oapg( @@ -82,10 +77,8 @@ def _healthcheck_healthz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _healthcheck_healthz_get_oapg( self, @@ -106,11 +99,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, stream=stream, timeout=timeout, @@ -126,11 +119,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -145,9 +134,8 @@ def healthcheck_healthz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def healthcheck_healthz_get( @@ -156,7 +144,8 @@ def healthcheck_healthz_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def healthcheck_healthz_get( @@ -165,10 +154,8 @@ def healthcheck_healthz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def healthcheck_healthz_get( self, @@ -181,7 +168,7 @@ def healthcheck_healthz_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -195,9 +182,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -206,7 +192,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -215,10 +202,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -231,7 +216,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/healthz/get.pyi b/launch/api_client/paths/healthz/get.pyi index 21f0bdfe..624df6f0 100644 --- a/launch/api_client/paths/healthz/get.pyi +++ b/launch/api_client/paths/healthz/get.pyi @@ -27,27 +27,19 @@ from launch_client import schemas # noqa: F401 SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -57,10 +49,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _healthcheck_healthz_get_oapg( self, @@ -69,7 +58,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _healthcheck_healthz_get_oapg( self, @@ -77,11 +65,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _healthcheck_healthz_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -101,11 +85,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, stream=stream, timeout=timeout, @@ -121,15 +105,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class HealthcheckHealthzGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -140,10 +119,7 @@ class HealthcheckHealthzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def healthcheck_healthz_get( self, @@ -152,7 +128,6 @@ class HealthcheckHealthzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def healthcheck_healthz_get( self, @@ -160,11 +135,7 @@ class HealthcheckHealthzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def healthcheck_healthz_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -176,10 +147,9 @@ class HealthcheckHealthzGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -190,10 +160,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -202,7 +169,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -210,11 +176,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -226,7 +188,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/readyz/__init__.py b/launch/api_client/paths/readyz/__init__.py index 4b5a5af4..9b49ccf0 100644 --- a/launch/api_client/paths/readyz/__init__.py +++ b/launch/api_client/paths/readyz/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.READYZ \ No newline at end of file +path = PathValues.READYZ diff --git a/launch/api_client/paths/readyz/get.py b/launch/api_client/paths/readyz/get.py index ef5201be..c25dffab 100644 --- a/launch/api_client/paths/readyz/get.py +++ b/launch/api_client/paths/readyz/get.py @@ -33,25 +33,20 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, + "200": _response_for_200, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -62,9 +57,8 @@ def _healthcheck_readyz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _healthcheck_readyz_get_oapg( @@ -73,7 +67,8 @@ def _healthcheck_readyz_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _healthcheck_readyz_get_oapg( @@ -82,10 +77,8 @@ def _healthcheck_readyz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _healthcheck_readyz_get_oapg( self, @@ -106,11 +99,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, stream=stream, timeout=timeout, @@ -126,11 +119,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -145,9 +134,8 @@ def healthcheck_readyz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def healthcheck_readyz_get( @@ -156,7 +144,8 @@ def healthcheck_readyz_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def healthcheck_readyz_get( @@ -165,10 +154,8 @@ def healthcheck_readyz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def healthcheck_readyz_get( self, @@ -181,7 +168,7 @@ def healthcheck_readyz_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -195,9 +182,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -206,7 +192,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -215,10 +202,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -231,7 +216,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/readyz/get.pyi b/launch/api_client/paths/readyz/get.pyi index 5f8d2904..0a47d385 100644 --- a/launch/api_client/paths/readyz/get.pyi +++ b/launch/api_client/paths/readyz/get.pyi @@ -27,27 +27,19 @@ from launch_client import schemas # noqa: F401 SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -57,10 +49,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _healthcheck_readyz_get_oapg( self, @@ -69,7 +58,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _healthcheck_readyz_get_oapg( self, @@ -77,11 +65,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _healthcheck_readyz_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -101,11 +85,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, stream=stream, timeout=timeout, @@ -121,15 +105,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class HealthcheckReadyzGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -140,10 +119,7 @@ class HealthcheckReadyzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def healthcheck_readyz_get( self, @@ -152,7 +128,6 @@ class HealthcheckReadyzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def healthcheck_readyz_get( self, @@ -160,11 +135,7 @@ class HealthcheckReadyzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def healthcheck_readyz_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -176,10 +147,9 @@ class HealthcheckReadyzGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -190,10 +160,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -202,7 +169,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -210,11 +176,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -226,7 +188,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_async_tasks/__init__.py b/launch/api_client/paths/v1_async_tasks/__init__.py index 72df600f..aafe0cc4 100644 --- a/launch/api_client/paths/v1_async_tasks/__init__.py +++ b/launch/api_client/paths/v1_async_tasks/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_ASYNCTASKS \ No newline at end of file +path = PathValues.V1_ASYNCTASKS diff --git a/launch/api_client/paths/v1_async_tasks/post.py b/launch/api_client/paths/v1_async_tasks/post.py index f795a6a0..ce3a2b1f 100644 --- a/launch/api_client/paths/v1_async_tasks/post.py +++ b/launch/api_client/paths/v1_async_tasks/post.py @@ -34,17 +34,15 @@ # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestRequiredQueryParams", { + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], }, - total=False ) +RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): @@ -64,13 +62,12 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = CreateAsyncTaskV1Response @@ -78,17 +75,14 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -97,26 +91,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -130,9 +119,8 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( @@ -144,10 +132,8 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( @@ -159,7 +145,8 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( @@ -171,15 +158,13 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _create_async_inference_task_v1_async_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -196,9 +181,7 @@ class instances used_path = path.value prefix_separator_iterator = None - for parameter in ( - request_query_model_endpoint_id, - ): + for parameter in (request_query_model_endpoint_id,): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -212,22 +195,23 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -246,11 +230,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -268,9 +248,8 @@ def create_async_inference_task_v1_async_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_async_inference_task_v1_async_tasks_post( @@ -282,10 +261,8 @@ def create_async_inference_task_v1_async_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_async_inference_task_v1_async_tasks_post( @@ -297,7 +274,8 @@ def create_async_inference_task_v1_async_tasks_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def create_async_inference_task_v1_async_tasks_post( @@ -309,15 +287,13 @@ def create_async_inference_task_v1_async_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def create_async_inference_task_v1_async_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -331,7 +307,7 @@ def create_async_inference_task_v1_async_tasks_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -348,9 +324,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -362,10 +337,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -377,7 +350,8 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def post( @@ -389,15 +363,13 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -411,7 +383,5 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_async_tasks/post.pyi b/launch/api_client/paths/v1_async_tasks/post.pyi index f9c2ffc0..9ea89434 100644 --- a/launch/api_client/paths/v1_async_tasks/post.pyi +++ b/launch/api_client/paths/v1_async_tasks/post.pyi @@ -32,23 +32,19 @@ from launch_client.model.create_async_task_v1_response import CreateAsyncTaskV1R # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestRequiredQueryParams", { + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], }, - total=False ) - +RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass - request_query_model_endpoint_id = api_client.QueryParameter( name="model_endpoint_id", style=api_client.ParameterStyle.FORM, @@ -59,56 +55,41 @@ request_query_model_endpoint_id = api_client.QueryParameter( # body param SchemaForRequestBodyApplicationJson = EndpointPredictV1Request - request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateAsyncTaskV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -121,10 +102,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( self, @@ -135,11 +113,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( self, @@ -151,7 +125,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( self, @@ -162,15 +135,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _create_async_inference_task_v1_async_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -187,9 +156,7 @@ class BaseApi(api_client.Api): used_path = path.value prefix_separator_iterator = None - for parameter in ( - request_query_model_endpoint_id, - ): + for parameter in (request_query_model_endpoint_id,): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -203,22 +170,23 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -237,15 +205,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -259,10 +222,7 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_async_inference_task_v1_async_tasks_post( self, @@ -273,11 +233,7 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_async_inference_task_v1_async_tasks_post( self, @@ -289,7 +245,6 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def create_async_inference_task_v1_async_tasks_post( self, @@ -300,15 +255,11 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def create_async_inference_task_v1_async_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -322,10 +273,9 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -339,10 +289,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -353,11 +300,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -369,7 +312,6 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def post( self, @@ -380,15 +322,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -402,7 +340,5 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_async_tasks_task_id/__init__.py b/launch/api_client/paths/v1_async_tasks_task_id/__init__.py index ef09b1e6..21c8a0fc 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/__init__.py +++ b/launch/api_client/paths/v1_async_tasks_task_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_ASYNCTASKS_TASK_ID \ No newline at end of file +path = PathValues.V1_ASYNCTASKS_TASK_ID diff --git a/launch/api_client/paths/v1_async_tasks_task_id/get.py b/launch/api_client/paths/v1_async_tasks_task_id/get.py index 5d4dca8e..cb217bd3 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/get.py +++ b/launch/api_client/paths/v1_async_tasks_task_id/get.py @@ -33,17 +33,15 @@ # Path params TaskIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'task_id': typing.Union[TaskIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "task_id": typing.Union[ + TaskIdSchema, + str, + ], }, - total=False ) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -57,7 +55,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = GetAsyncTaskV1Response @@ -65,17 +63,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -84,26 +79,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -115,9 +105,8 @@ def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( @@ -127,7 +116,8 @@ def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( @@ -137,10 +127,8 @@ def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, @@ -160,9 +148,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_task_id, - ): + for parameter in (request_path_task_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -170,17 +156,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -197,11 +183,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -217,9 +199,8 @@ def get_async_inference_task_v1_async_tasks_task_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( @@ -229,7 +210,8 @@ def get_async_inference_task_v1_async_tasks_task_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( @@ -239,10 +221,8 @@ def get_async_inference_task_v1_async_tasks_task_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_async_inference_task_v1_async_tasks_task_id_get( self, @@ -257,7 +237,7 @@ def get_async_inference_task_v1_async_tasks_task_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -272,9 +252,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -284,7 +263,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -294,10 +274,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -312,7 +290,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_async_tasks_task_id/get.pyi b/launch/api_client/paths/v1_async_tasks_task_id/get.pyi index 3e667842..ea07ac69 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/get.pyi +++ b/launch/api_client/paths/v1_async_tasks_task_id/get.pyi @@ -31,23 +31,19 @@ from launch_client.model.get_async_task_v1_response import GetAsyncTaskV1Respons # Path params TaskIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'task_id': typing.Union[TaskIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "task_id": typing.Union[ + TaskIdSchema, + str, + ], }, - total=False ) - +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_task_id = api_client.PathParameter( name="task_id", style=api_client.ParameterStyle.SIMPLE, @@ -56,46 +52,33 @@ request_path_task_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = GetAsyncTaskV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -106,10 +89,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, @@ -119,7 +99,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, @@ -128,11 +107,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -151,9 +126,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_task_id, - ): + for parameter in (request_path_task_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -161,17 +134,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -188,15 +161,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -208,10 +176,7 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( self, @@ -221,7 +186,6 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( self, @@ -230,11 +194,7 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_async_inference_task_v1_async_tasks_task_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -248,10 +208,9 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -263,10 +222,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -276,7 +232,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -285,11 +240,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -303,7 +254,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_batch_jobs/__init__.py b/launch/api_client/paths/v1_batch_jobs/__init__.py index 65e727af..3d5cef58 100644 --- a/launch/api_client/paths/v1_batch_jobs/__init__.py +++ b/launch/api_client/paths/v1_batch_jobs/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_BATCHJOBS \ No newline at end of file +path = PathValues.V1_BATCHJOBS diff --git a/launch/api_client/paths/v1_batch_jobs/post.py b/launch/api_client/paths/v1_batch_jobs/post.py index 75a0574e..10d5e660 100644 --- a/launch/api_client/paths/v1_batch_jobs/post.py +++ b/launch/api_client/paths/v1_batch_jobs/post.py @@ -37,13 +37,12 @@ request_body_create_batch_job_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = CreateBatchJobV1Response @@ -51,17 +50,14 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -70,26 +66,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -102,9 +93,8 @@ def _create_batch_job_v1_batch_jobs_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( @@ -115,10 +105,8 @@ def _create_batch_job_v1_batch_jobs_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( @@ -129,7 +117,8 @@ def _create_batch_job_v1_batch_jobs_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( @@ -140,15 +129,13 @@ def _create_batch_job_v1_batch_jobs_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _create_batch_job_v1_batch_jobs_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,22 +153,23 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_create_batch_job_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -200,11 +188,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -221,9 +205,8 @@ def create_batch_job_v1_batch_jobs_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_batch_job_v1_batch_jobs_post( @@ -234,10 +217,8 @@ def create_batch_job_v1_batch_jobs_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_batch_job_v1_batch_jobs_post( @@ -248,7 +229,8 @@ def create_batch_job_v1_batch_jobs_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def create_batch_job_v1_batch_jobs_post( @@ -259,15 +241,13 @@ def create_batch_job_v1_batch_jobs_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def create_batch_job_v1_batch_jobs_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -279,7 +259,7 @@ def create_batch_job_v1_batch_jobs_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -295,9 +275,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -308,10 +287,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -322,7 +299,8 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def post( @@ -333,15 +311,13 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -353,7 +329,5 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_batch_jobs/post.pyi b/launch/api_client/paths/v1_batch_jobs/post.pyi index 7b84b5b8..0c706ecf 100644 --- a/launch/api_client/paths/v1_batch_jobs/post.pyi +++ b/launch/api_client/paths/v1_batch_jobs/post.pyi @@ -32,56 +32,41 @@ from launch_client.model.http_validation_error import HTTPValidationError # body param SchemaForRequestBodyApplicationJson = CreateBatchJobV1Request - request_body_create_batch_job_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateBatchJobV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -93,10 +78,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( self, @@ -106,11 +88,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( self, @@ -121,7 +99,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( self, @@ -131,15 +108,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _create_batch_job_v1_batch_jobs_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,22 +130,23 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_create_batch_job_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -191,15 +165,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class CreateBatchJobV1BatchJobsPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -212,10 +181,7 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_batch_job_v1_batch_jobs_post( self, @@ -225,11 +191,7 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_batch_job_v1_batch_jobs_post( self, @@ -240,7 +202,6 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def create_batch_job_v1_batch_jobs_post( self, @@ -250,15 +211,11 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def create_batch_job_v1_batch_jobs_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -270,10 +227,9 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -286,10 +242,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -299,11 +252,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -314,7 +263,6 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def post( self, @@ -324,15 +272,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -344,7 +288,5 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py index 0acdf21c..3fa32eda 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_BATCHJOBS_BATCH_JOB_ID \ No newline at end of file +path = PathValues.V1_BATCHJOBS_BATCH_JOB_ID diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py index d4b52f6f..831ee0d7 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py @@ -33,17 +33,15 @@ # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "batch_job_id": typing.Union[ + BatchJobIdSchema, + str, + ], }, - total=False ) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -57,7 +55,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = GetBatchJobV1Response @@ -65,17 +63,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -84,26 +79,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -115,9 +105,8 @@ def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( @@ -127,7 +116,8 @@ def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( @@ -137,10 +127,8 @@ def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, @@ -160,9 +148,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_batch_job_id, - ): + for parameter in (request_path_batch_job_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -170,17 +156,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -197,11 +183,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -217,9 +199,8 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( @@ -229,7 +210,8 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( @@ -239,10 +221,8 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_batch_job_v1_batch_jobs_batch_job_id_get( self, @@ -257,7 +237,7 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -272,9 +252,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -284,7 +263,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -294,10 +274,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -312,7 +290,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi index 23da620e..bb63ce60 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi @@ -31,23 +31,19 @@ from launch_client.model.http_validation_error import HTTPValidationError # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "batch_job_id": typing.Union[ + BatchJobIdSchema, + str, + ], }, - total=False ) - +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_batch_job_id = api_client.PathParameter( name="batch_job_id", style=api_client.ParameterStyle.SIMPLE, @@ -56,46 +52,33 @@ request_path_batch_job_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = GetBatchJobV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -106,10 +89,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, @@ -119,7 +99,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, @@ -128,11 +107,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -151,9 +126,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_batch_job_id, - ): + for parameter in (request_path_batch_job_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -161,17 +134,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -188,15 +161,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -208,10 +176,7 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( self, @@ -221,7 +186,6 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( self, @@ -230,11 +194,7 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_batch_job_v1_batch_jobs_batch_job_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -248,10 +208,9 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -263,10 +222,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -276,7 +232,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -285,11 +240,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -303,7 +254,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py index f0cc38b4..c13bed49 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py @@ -34,17 +34,15 @@ # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "batch_job_id": typing.Union[ + BatchJobIdSchema, + str, + ], }, - total=False ) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -63,13 +61,12 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): request_body_update_batch_job_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = UpdateBatchJobV1Response @@ -77,17 +74,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -96,26 +90,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -129,9 +118,8 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( @@ -143,10 +131,8 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( @@ -158,7 +144,8 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( @@ -170,15 +157,13 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -195,9 +180,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_batch_job_id, - ): + for parameter in (request_path_batch_job_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -205,28 +188,29 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_update_batch_job_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='put'.upper(), + method="put".upper(), headers=_headers, fields=_fields, body=_body, @@ -245,11 +229,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -267,9 +247,8 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( @@ -281,10 +260,8 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( @@ -296,7 +273,8 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( @@ -308,15 +286,13 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def update_batch_job_v1_batch_jobs_batch_job_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -330,7 +306,7 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -347,9 +323,8 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def put( @@ -361,10 +336,8 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def put( @@ -376,7 +349,8 @@ def put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def put( @@ -388,15 +362,13 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -410,7 +382,5 @@ def put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi index cf381c97..cf47ae96 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi @@ -32,23 +32,19 @@ from launch_client.model.update_batch_job_v1_request import UpdateBatchJobV1Requ # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "batch_job_id": typing.Union[ + BatchJobIdSchema, + str, + ], }, - total=False ) - +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_batch_job_id = api_client.PathParameter( name="batch_job_id", style=api_client.ParameterStyle.SIMPLE, @@ -58,56 +54,41 @@ request_path_batch_job_id = api_client.PathParameter( # body param SchemaForRequestBodyApplicationJson = UpdateBatchJobV1Request - request_body_update_batch_job_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = UpdateBatchJobV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -120,10 +101,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, @@ -134,11 +112,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, @@ -150,7 +124,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, @@ -161,15 +134,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -186,9 +155,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_batch_job_id, - ): + for parameter in (request_path_batch_job_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -196,28 +163,29 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_update_batch_job_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='put'.upper(), + method="put".upper(), headers=_headers, fields=_fields, body=_body, @@ -236,15 +204,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -258,10 +221,7 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( self, @@ -272,11 +232,7 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( self, @@ -288,7 +244,6 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( self, @@ -299,15 +254,11 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def update_batch_job_v1_batch_jobs_batch_job_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -321,10 +272,9 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -338,10 +288,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def put( self, @@ -352,11 +299,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def put( self, @@ -368,7 +311,6 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def put( self, @@ -379,15 +321,11 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -401,7 +339,5 @@ class ApiForput(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles/__init__.py b/launch/api_client/paths/v1_model_bundles/__init__.py index 02168487..46bf5ae2 100644 --- a/launch/api_client/paths/v1_model_bundles/__init__.py +++ b/launch/api_client/paths/v1_model_bundles/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES \ No newline at end of file +path = PathValues.V1_MODELBUNDLES diff --git a/launch/api_client/paths/v1_model_bundles/get.py b/launch/api_client/paths/v1_model_bundles/get.py index dfeb1cdb..b960b6b2 100644 --- a/launch/api_client/paths/v1_model_bundles/get.py +++ b/launch/api_client/paths/v1_model_bundles/get.py @@ -34,18 +34,17 @@ # Query params ModelNameSchema = schemas.StrSchema OrderBySchema = ModelBundleOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) +RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestOptionalQueryParams", { - 'model_name': typing.Union[ModelNameSchema, str, ], - 'order_by': typing.Union[OrderBySchema, ], + "model_name": typing.Union[ + ModelNameSchema, + str, + ], + "order_by": typing.Union[OrderBySchema,], }, - total=False + total=False, ) @@ -66,7 +65,7 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = ListModelBundlesV1Response @@ -74,17 +73,14 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -93,26 +89,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -124,9 +115,8 @@ def _list_model_bundles_v1_model_bundles_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( @@ -136,7 +126,8 @@ def _list_model_bundles_v1_model_bundles_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( @@ -146,10 +137,8 @@ def _list_model_bundles_v1_model_bundles_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _list_model_bundles_v1_model_bundles_get_oapg( self, @@ -186,11 +175,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -207,11 +196,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -227,9 +212,8 @@ def list_model_bundles_v1_model_bundles_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def list_model_bundles_v1_model_bundles_get( @@ -239,7 +223,8 @@ def list_model_bundles_v1_model_bundles_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def list_model_bundles_v1_model_bundles_get( @@ -249,10 +234,8 @@ def list_model_bundles_v1_model_bundles_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def list_model_bundles_v1_model_bundles_get( self, @@ -267,7 +250,7 @@ def list_model_bundles_v1_model_bundles_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -282,9 +265,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -294,7 +276,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -304,10 +287,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -322,7 +303,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles/get.pyi b/launch/api_client/paths/v1_model_bundles/get.pyi index b912a1ef..1f999cdf 100644 --- a/launch/api_client/paths/v1_model_bundles/get.pyi +++ b/launch/api_client/paths/v1_model_bundles/get.pyi @@ -32,25 +32,22 @@ from launch_client.model.http_validation_error import HTTPValidationError # Query params ModelNameSchema = schemas.StrSchema OrderBySchema = ModelBundleOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) +RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestOptionalQueryParams", { - 'model_name': typing.Union[ModelNameSchema, str, ], - 'order_by': typing.Union[OrderBySchema, ], + "model_name": typing.Union[ + ModelNameSchema, + str, + ], + "order_by": typing.Union[OrderBySchema,], }, - total=False + total=False, ) - class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass - request_query_model_name = api_client.QueryParameter( name="model_name", style=api_client.ParameterStyle.FORM, @@ -65,46 +62,33 @@ request_query_order_by = api_client.QueryParameter( ) SchemaFor200ResponseBodyApplicationJson = ListModelBundlesV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -115,10 +99,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( self, @@ -128,7 +109,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( self, @@ -137,11 +117,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _list_model_bundles_v1_model_bundles_get_oapg( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -177,11 +153,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -198,15 +174,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class ListModelBundlesV1ModelBundlesGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -218,10 +189,7 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def list_model_bundles_v1_model_bundles_get( self, @@ -231,7 +199,6 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def list_model_bundles_v1_model_bundles_get( self, @@ -240,11 +207,7 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def list_model_bundles_v1_model_bundles_get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -258,10 +221,9 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -273,10 +235,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -286,7 +245,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -295,11 +253,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -313,7 +267,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles/post.py b/launch/api_client/paths/v1_model_bundles/post.py index 69f5290e..5b346798 100644 --- a/launch/api_client/paths/v1_model_bundles/post.py +++ b/launch/api_client/paths/v1_model_bundles/post.py @@ -37,13 +37,12 @@ request_body_create_model_bundle_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response @@ -51,17 +50,14 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -70,26 +66,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -102,9 +93,8 @@ def _create_model_bundle_v1_model_bundles_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( @@ -115,10 +105,8 @@ def _create_model_bundle_v1_model_bundles_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( @@ -129,7 +117,8 @@ def _create_model_bundle_v1_model_bundles_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( @@ -140,15 +129,13 @@ def _create_model_bundle_v1_model_bundles_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _create_model_bundle_v1_model_bundles_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,22 +153,23 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_create_model_bundle_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -200,11 +188,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -221,9 +205,8 @@ def create_model_bundle_v1_model_bundles_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_model_bundle_v1_model_bundles_post( @@ -234,10 +217,8 @@ def create_model_bundle_v1_model_bundles_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_model_bundle_v1_model_bundles_post( @@ -248,7 +229,8 @@ def create_model_bundle_v1_model_bundles_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def create_model_bundle_v1_model_bundles_post( @@ -259,15 +241,13 @@ def create_model_bundle_v1_model_bundles_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def create_model_bundle_v1_model_bundles_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -279,7 +259,7 @@ def create_model_bundle_v1_model_bundles_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -295,9 +275,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -308,10 +287,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -322,7 +299,8 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def post( @@ -333,15 +311,13 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -353,7 +329,5 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles/post.pyi b/launch/api_client/paths/v1_model_bundles/post.pyi index 552173d6..dca88f5e 100644 --- a/launch/api_client/paths/v1_model_bundles/post.pyi +++ b/launch/api_client/paths/v1_model_bundles/post.pyi @@ -32,56 +32,41 @@ from launch_client.model.create_model_bundle_v1_response import CreateModelBundl # body param SchemaForRequestBodyApplicationJson = CreateModelBundleV1Request - request_body_create_model_bundle_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -93,10 +78,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( self, @@ -106,11 +88,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( self, @@ -121,7 +99,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( self, @@ -131,15 +108,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _create_model_bundle_v1_model_bundles_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,22 +130,23 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_create_model_bundle_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -191,15 +165,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class CreateModelBundleV1ModelBundlesPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -212,10 +181,7 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_model_bundle_v1_model_bundles_post( self, @@ -225,11 +191,7 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_model_bundle_v1_model_bundles_post( self, @@ -240,7 +202,6 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def create_model_bundle_v1_model_bundles_post( self, @@ -250,15 +211,11 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def create_model_bundle_v1_model_bundles_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -270,10 +227,9 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -286,10 +242,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -299,11 +252,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -314,7 +263,6 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def post( self, @@ -324,15 +272,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -344,7 +288,5 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py b/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py index b5c960ff..35511bd5 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES_CLONEWITHCHANGES \ No newline at end of file +path = PathValues.V1_MODELBUNDLES_CLONEWITHCHANGES diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py index ce1d294b..91fadac5 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py @@ -37,13 +37,12 @@ request_body_clone_model_bundle_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response @@ -51,17 +50,14 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -70,26 +66,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -102,9 +93,8 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( @@ -115,10 +105,8 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( @@ -129,7 +117,8 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( @@ -140,15 +129,13 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,22 +153,23 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_clone_model_bundle_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -200,11 +188,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -221,9 +205,8 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( @@ -234,10 +217,8 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( @@ -248,7 +229,8 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( @@ -259,15 +241,13 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -279,7 +259,7 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -295,9 +275,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -308,10 +287,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -322,7 +299,8 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def post( @@ -333,15 +311,13 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -353,7 +329,5 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi index 4a15bd23..66d1fe99 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi @@ -32,56 +32,41 @@ from launch_client.model.clone_model_bundle_v1_request import CloneModelBundleV1 # body param SchemaForRequestBodyApplicationJson = CloneModelBundleV1Request - request_body_clone_model_bundle_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -93,10 +78,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, @@ -106,11 +88,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, @@ -121,7 +99,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, @@ -131,15 +108,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,22 +130,23 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_clone_model_bundle_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -191,15 +165,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -212,10 +181,7 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, @@ -225,11 +191,7 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, @@ -240,7 +202,6 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, @@ -250,15 +211,11 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -270,10 +227,9 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -286,10 +242,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -299,11 +252,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -314,7 +263,6 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def post( self, @@ -324,15 +272,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -344,7 +288,5 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles_latest/__init__.py b/launch/api_client/paths/v1_model_bundles_latest/__init__.py index e8834ca7..b5e54b32 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/__init__.py +++ b/launch/api_client/paths/v1_model_bundles_latest/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES_LATEST \ No newline at end of file +path = PathValues.V1_MODELBUNDLES_LATEST diff --git a/launch/api_client/paths/v1_model_bundles_latest/get.py b/launch/api_client/paths/v1_model_bundles_latest/get.py index 1cde5141..983d12c0 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/get.py +++ b/launch/api_client/paths/v1_model_bundles_latest/get.py @@ -33,17 +33,15 @@ # Query params ModelNameSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'model_name': typing.Union[ModelNameSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestRequiredQueryParams", { + "model_name": typing.Union[ + ModelNameSchema, + str, + ], }, - total=False ) +RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): @@ -58,7 +56,7 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response @@ -66,17 +64,14 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -85,26 +80,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -116,9 +106,8 @@ def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( @@ -128,7 +117,8 @@ def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( @@ -138,10 +128,8 @@ def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, @@ -161,9 +149,7 @@ class instances used_path = path.value prefix_separator_iterator = None - for parameter in ( - request_query_model_name, - ): + for parameter in (request_query_model_name,): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -177,11 +163,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -198,11 +184,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -218,9 +200,8 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( @@ -230,7 +211,8 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( @@ -240,10 +222,8 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_latest_model_bundle_v1_model_bundles_latest_get( self, @@ -258,7 +238,7 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -273,9 +253,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -285,7 +264,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -295,10 +275,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -313,7 +291,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles_latest/get.pyi b/launch/api_client/paths/v1_model_bundles_latest/get.pyi index 6bd40f45..5fd25f78 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/get.pyi +++ b/launch/api_client/paths/v1_model_bundles_latest/get.pyi @@ -31,23 +31,19 @@ from launch_client.model.http_validation_error import HTTPValidationError # Query params ModelNameSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'model_name': typing.Union[ModelNameSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestRequiredQueryParams", { + "model_name": typing.Union[ + ModelNameSchema, + str, + ], }, - total=False ) - +RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass - request_query_model_name = api_client.QueryParameter( name="model_name", style=api_client.ParameterStyle.FORM, @@ -57,46 +53,33 @@ request_query_model_name = api_client.QueryParameter( ) SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -107,10 +90,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, @@ -120,7 +100,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, @@ -129,11 +108,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -152,9 +127,7 @@ class BaseApi(api_client.Api): used_path = path.value prefix_separator_iterator = None - for parameter in ( - request_query_model_name, - ): + for parameter in (request_query_model_name,): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -168,11 +141,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -189,15 +162,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -209,10 +177,7 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( self, @@ -222,7 +187,6 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( self, @@ -231,11 +195,7 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_latest_model_bundle_v1_model_bundles_latest_get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -249,10 +209,9 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -264,10 +223,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -277,7 +233,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -286,11 +241,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -304,7 +255,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py b/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py index aeafa82e..d3532d3a 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES_MODEL_BUNDLE_ID \ No newline at end of file +path = PathValues.V1_MODELBUNDLES_MODEL_BUNDLE_ID diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py index 638fe89d..083da20c 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py @@ -33,17 +33,15 @@ # Path params ModelBundleIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'model_bundle_id': typing.Union[ModelBundleIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "model_bundle_id": typing.Union[ + ModelBundleIdSchema, + str, + ], }, - total=False ) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -57,7 +55,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response @@ -65,17 +63,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -84,26 +79,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -115,9 +105,8 @@ def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( @@ -127,7 +116,8 @@ def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( @@ -137,10 +127,8 @@ def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, @@ -160,9 +148,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_model_bundle_id, - ): + for parameter in (request_path_model_bundle_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -170,17 +156,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -197,11 +183,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -217,9 +199,8 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( @@ -229,7 +210,8 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( @@ -239,10 +221,8 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, @@ -257,7 +237,7 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -272,9 +252,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -284,7 +263,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -294,10 +274,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -312,7 +290,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi index 6053dffd..940b93e4 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi @@ -31,23 +31,19 @@ from launch_client.model.http_validation_error import HTTPValidationError # Path params ModelBundleIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'model_bundle_id': typing.Union[ModelBundleIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "model_bundle_id": typing.Union[ + ModelBundleIdSchema, + str, + ], }, - total=False ) - +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_model_bundle_id = api_client.PathParameter( name="model_bundle_id", style=api_client.ParameterStyle.SIMPLE, @@ -56,46 +52,33 @@ request_path_model_bundle_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -106,10 +89,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, @@ -119,7 +99,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, @@ -128,11 +107,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -151,9 +126,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_model_bundle_id, - ): + for parameter in (request_path_model_bundle_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -161,17 +134,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -188,15 +161,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -208,10 +176,7 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, @@ -221,7 +186,6 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, @@ -230,11 +194,7 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -248,10 +208,9 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -263,10 +222,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -276,7 +232,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -285,11 +240,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -303,7 +254,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints/__init__.py b/launch/api_client/paths/v1_model_endpoints/__init__.py index 63a2873d..f58f6045 100644 --- a/launch/api_client/paths/v1_model_endpoints/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTS \ No newline at end of file +path = PathValues.V1_MODELENDPOINTS diff --git a/launch/api_client/paths/v1_model_endpoints/get.py b/launch/api_client/paths/v1_model_endpoints/get.py index d61dd75c..de3ee515 100644 --- a/launch/api_client/paths/v1_model_endpoints/get.py +++ b/launch/api_client/paths/v1_model_endpoints/get.py @@ -34,18 +34,17 @@ # Query params NameSchema = schemas.StrSchema OrderBySchema = ModelEndpointOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) +RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestOptionalQueryParams", { - 'name': typing.Union[NameSchema, str, ], - 'order_by': typing.Union[OrderBySchema, ], + "name": typing.Union[ + NameSchema, + str, + ], + "order_by": typing.Union[OrderBySchema,], }, - total=False + total=False, ) @@ -66,7 +65,7 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = ListModelEndpointsV1Response @@ -74,17 +73,14 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -93,26 +89,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -124,9 +115,8 @@ def _list_model_endpoints_v1_model_endpoints_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( @@ -136,7 +126,8 @@ def _list_model_endpoints_v1_model_endpoints_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( @@ -146,10 +137,8 @@ def _list_model_endpoints_v1_model_endpoints_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _list_model_endpoints_v1_model_endpoints_get_oapg( self, @@ -186,11 +175,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -207,11 +196,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -227,9 +212,8 @@ def list_model_endpoints_v1_model_endpoints_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def list_model_endpoints_v1_model_endpoints_get( @@ -239,7 +223,8 @@ def list_model_endpoints_v1_model_endpoints_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def list_model_endpoints_v1_model_endpoints_get( @@ -249,10 +234,8 @@ def list_model_endpoints_v1_model_endpoints_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def list_model_endpoints_v1_model_endpoints_get( self, @@ -267,7 +250,7 @@ def list_model_endpoints_v1_model_endpoints_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -282,9 +265,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -294,7 +276,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -304,10 +287,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -322,7 +303,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints/get.pyi b/launch/api_client/paths/v1_model_endpoints/get.pyi index ba836ff4..d6142b77 100644 --- a/launch/api_client/paths/v1_model_endpoints/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints/get.pyi @@ -32,25 +32,22 @@ from launch_client.model.model_endpoint_order_by import ModelEndpointOrderBy # Query params NameSchema = schemas.StrSchema OrderBySchema = ModelEndpointOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) +RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestOptionalQueryParams", { - 'name': typing.Union[NameSchema, str, ], - 'order_by': typing.Union[OrderBySchema, ], + "name": typing.Union[ + NameSchema, + str, + ], + "order_by": typing.Union[OrderBySchema,], }, - total=False + total=False, ) - class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass - request_query_name = api_client.QueryParameter( name="name", style=api_client.ParameterStyle.FORM, @@ -65,46 +62,33 @@ request_query_order_by = api_client.QueryParameter( ) SchemaFor200ResponseBodyApplicationJson = ListModelEndpointsV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -115,10 +99,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( self, @@ -128,7 +109,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( self, @@ -137,11 +117,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _list_model_endpoints_v1_model_endpoints_get_oapg( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -177,11 +153,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -198,15 +174,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class ListModelEndpointsV1ModelEndpointsGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -218,10 +189,7 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def list_model_endpoints_v1_model_endpoints_get( self, @@ -231,7 +199,6 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def list_model_endpoints_v1_model_endpoints_get( self, @@ -240,11 +207,7 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def list_model_endpoints_v1_model_endpoints_get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -258,10 +221,9 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -273,10 +235,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -286,7 +245,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -295,11 +253,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -313,7 +267,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints/post.py b/launch/api_client/paths/v1_model_endpoints/post.py index 6daab4f2..97e931e0 100644 --- a/launch/api_client/paths/v1_model_endpoints/post.py +++ b/launch/api_client/paths/v1_model_endpoints/post.py @@ -37,13 +37,12 @@ request_body_create_model_endpoint_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = CreateModelEndpointV1Response @@ -51,17 +50,14 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -70,26 +66,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -102,9 +93,8 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( @@ -115,10 +105,8 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( @@ -129,7 +117,8 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( @@ -140,15 +129,13 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _create_model_endpoint_v1_model_endpoints_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,22 +153,23 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_create_model_endpoint_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -200,11 +188,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -221,9 +205,8 @@ def create_model_endpoint_v1_model_endpoints_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( @@ -234,10 +217,8 @@ def create_model_endpoint_v1_model_endpoints_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( @@ -248,7 +229,8 @@ def create_model_endpoint_v1_model_endpoints_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( @@ -259,15 +241,13 @@ def create_model_endpoint_v1_model_endpoints_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def create_model_endpoint_v1_model_endpoints_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -279,7 +259,7 @@ def create_model_endpoint_v1_model_endpoints_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -295,9 +275,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -308,10 +287,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -322,7 +299,8 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def post( @@ -333,15 +311,13 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -353,7 +329,5 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints/post.pyi b/launch/api_client/paths/v1_model_endpoints/post.pyi index ede948a4..796136ac 100644 --- a/launch/api_client/paths/v1_model_endpoints/post.pyi +++ b/launch/api_client/paths/v1_model_endpoints/post.pyi @@ -32,56 +32,41 @@ from launch_client.model.http_validation_error import HTTPValidationError # body param SchemaForRequestBodyApplicationJson = CreateModelEndpointV1Request - request_body_create_model_endpoint_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateModelEndpointV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -93,10 +78,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( self, @@ -106,11 +88,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( self, @@ -121,7 +99,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( self, @@ -131,15 +108,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _create_model_endpoint_v1_model_endpoints_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,22 +130,23 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_create_model_endpoint_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -191,15 +165,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class CreateModelEndpointV1ModelEndpointsPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -212,10 +181,7 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( self, @@ -225,11 +191,7 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( self, @@ -240,7 +202,6 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def create_model_endpoint_v1_model_endpoints_post( self, @@ -250,15 +211,11 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def create_model_endpoint_v1_model_endpoints_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -270,10 +227,9 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -286,10 +242,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -299,11 +252,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -314,7 +263,6 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def post( self, @@ -324,15 +272,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -344,7 +288,5 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_api/__init__.py b/launch/api_client/paths/v1_model_endpoints_api/__init__.py index 69585e08..c4f1910d 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints_api/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTSAPI \ No newline at end of file +path = PathValues.V1_MODELENDPOINTSAPI diff --git a/launch/api_client/paths/v1_model_endpoints_api/get.py b/launch/api_client/paths/v1_model_endpoints_api/get.py index b6d33bc2..155428cd 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/get.py +++ b/launch/api_client/paths/v1_model_endpoints_api/get.py @@ -28,7 +28,7 @@ from . import path _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @@ -36,25 +36,20 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, + "200": _response_for_200, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -65,9 +60,8 @@ def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( @@ -76,7 +70,8 @@ def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( @@ -85,10 +80,8 @@ def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, @@ -109,11 +102,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -130,11 +123,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -149,9 +138,8 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( @@ -160,7 +148,8 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( @@ -169,10 +158,8 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_model_endpoints_api_v1_model_endpoints_api_get( self, @@ -185,7 +172,7 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -199,9 +186,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -210,7 +196,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -219,10 +206,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -235,7 +220,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_api/get.pyi b/launch/api_client/paths/v1_model_endpoints_api/get.pyi index c2bd2937..9d5af22f 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_api/get.pyi @@ -27,27 +27,19 @@ from launch_client import schemas # noqa: F401 SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -57,10 +49,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, @@ -69,7 +58,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, @@ -77,11 +65,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -101,11 +85,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -122,15 +106,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -141,10 +120,7 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( self, @@ -153,7 +129,6 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( self, @@ -161,11 +136,7 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_model_endpoints_api_v1_model_endpoints_api_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -177,10 +148,9 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -191,10 +161,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -203,7 +170,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -211,11 +177,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -227,7 +189,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py index e382b4ff..fb6cdf7c 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID \ No newline at end of file +path = PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py index 4968608b..797a9c9a 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py @@ -33,17 +33,15 @@ # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], }, - total=False ) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -57,7 +55,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = DeleteModelEndpointV1Response @@ -65,17 +63,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -84,26 +79,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -115,9 +105,8 @@ def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( @@ -127,7 +116,8 @@ def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( @@ -137,10 +127,8 @@ def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, @@ -160,9 +148,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_model_endpoint_id, - ): + for parameter in (request_path_model_endpoint_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -170,17 +156,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='delete'.upper(), + method="delete".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -197,11 +183,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -217,9 +199,8 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( @@ -229,7 +210,8 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( @@ -239,10 +221,8 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, @@ -257,7 +237,7 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -272,9 +252,8 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def delete( @@ -284,7 +263,8 @@ def delete( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def delete( @@ -294,10 +274,8 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def delete( self, @@ -312,7 +290,5 @@ def delete( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi index 70c4cda2..e3fdccf8 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi @@ -31,23 +31,19 @@ from launch_client.model.http_validation_error import HTTPValidationError # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], }, - total=False ) - +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_model_endpoint_id = api_client.PathParameter( name="model_endpoint_id", style=api_client.ParameterStyle.SIMPLE, @@ -56,46 +52,33 @@ request_path_model_endpoint_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = DeleteModelEndpointV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -106,10 +89,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, @@ -119,7 +99,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, @@ -128,11 +107,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -151,9 +126,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_model_endpoint_id, - ): + for parameter in (request_path_model_endpoint_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -161,17 +134,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='delete'.upper(), + method="delete".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -188,15 +161,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -208,10 +176,7 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, @@ -221,7 +186,6 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, @@ -230,11 +194,7 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -248,10 +208,9 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -263,10 +222,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def delete( self, @@ -276,7 +232,6 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def delete( self, @@ -285,11 +240,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def delete( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -303,7 +254,5 @@ class ApiFordelete(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py index 94382ce9..4a93041c 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py @@ -33,17 +33,15 @@ # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], }, - total=False ) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -57,7 +55,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = GetModelEndpointV1Response @@ -65,17 +63,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -84,26 +79,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -115,9 +105,8 @@ def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( @@ -127,7 +116,8 @@ def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( @@ -137,10 +127,8 @@ def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, @@ -160,9 +148,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_model_endpoint_id, - ): + for parameter in (request_path_model_endpoint_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -170,17 +156,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -197,11 +183,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -217,9 +199,8 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( @@ -229,7 +210,8 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( @@ -239,10 +221,8 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, @@ -257,7 +237,7 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -272,9 +252,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -284,7 +263,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -294,10 +274,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -312,7 +290,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi index 1538b496..8b526509 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi @@ -31,23 +31,19 @@ from launch_client.model.http_validation_error import HTTPValidationError # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], }, - total=False ) - +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_model_endpoint_id = api_client.PathParameter( name="model_endpoint_id", style=api_client.ParameterStyle.SIMPLE, @@ -56,46 +52,33 @@ request_path_model_endpoint_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = GetModelEndpointV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -106,10 +89,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, @@ -119,7 +99,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, @@ -128,11 +107,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -151,9 +126,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_model_endpoint_id, - ): + for parameter in (request_path_model_endpoint_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -161,17 +134,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -188,15 +161,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -208,10 +176,7 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, @@ -221,7 +186,6 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, @@ -230,11 +194,7 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -248,10 +208,9 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -263,10 +222,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -276,7 +232,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -285,11 +240,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -303,7 +254,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py index 3d96a934..e8cb8aa6 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py @@ -34,17 +34,15 @@ # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], }, - total=False ) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -63,13 +61,12 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): request_body_update_model_endpoint_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = UpdateModelEndpointV1Response @@ -77,17 +74,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -96,26 +90,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -129,9 +118,8 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( @@ -143,10 +131,8 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( @@ -158,7 +144,8 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( @@ -170,15 +157,13 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -195,9 +180,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_model_endpoint_id, - ): + for parameter in (request_path_model_endpoint_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -205,28 +188,29 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_update_model_endpoint_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='put'.upper(), + method="put".upper(), headers=_headers, fields=_fields, body=_body, @@ -245,11 +229,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -267,9 +247,8 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( @@ -281,10 +260,8 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( @@ -296,7 +273,8 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( @@ -308,15 +286,13 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -330,7 +306,7 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -347,9 +323,8 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def put( @@ -361,10 +336,8 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def put( @@ -376,7 +349,8 @@ def put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def put( @@ -388,15 +362,13 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -410,7 +382,5 @@ def put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi index 0012df0a..cab57c97 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi @@ -32,23 +32,19 @@ from launch_client.model.update_model_endpoint_v1_request import UpdateModelEndp # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', + "RequestRequiredPathParams", { + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], }, - total=False ) - +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_model_endpoint_id = api_client.PathParameter( name="model_endpoint_id", style=api_client.ParameterStyle.SIMPLE, @@ -58,56 +54,41 @@ request_path_model_endpoint_id = api_client.PathParameter( # body param SchemaForRequestBodyApplicationJson = UpdateModelEndpointV1Request - request_body_update_model_endpoint_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = UpdateModelEndpointV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -120,10 +101,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, @@ -134,11 +112,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, @@ -150,7 +124,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, @@ -161,15 +134,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -186,9 +155,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_model_endpoint_id, - ): + for parameter in (request_path_model_endpoint_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -196,28 +163,29 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_update_model_endpoint_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='put'.upper(), + method="put".upper(), headers=_headers, fields=_fields, body=_body, @@ -236,15 +204,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -258,10 +221,7 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, @@ -272,11 +232,7 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, @@ -288,7 +244,6 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, @@ -299,15 +254,11 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -321,10 +272,9 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -338,10 +288,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def put( self, @@ -352,11 +299,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def put( self, @@ -368,7 +311,6 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def put( self, @@ -379,15 +321,11 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -401,7 +339,5 @@ class ApiForput(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py b/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py index bbefa10f..4dd4f68d 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTSSCHEMA_JSON \ No newline at end of file +path = PathValues.V1_MODELENDPOINTSSCHEMA_JSON diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/get.py b/launch/api_client/paths/v1_model_endpoints_schema_json/get.py index 8c24a455..249a9c9b 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/get.py +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/get.py @@ -28,7 +28,7 @@ from . import path _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @@ -36,25 +36,20 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, + "200": _response_for_200, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -65,9 +60,8 @@ def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( @@ -76,7 +70,8 @@ def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( @@ -85,10 +80,8 @@ def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, @@ -109,11 +102,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -130,11 +123,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -149,9 +138,8 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( @@ -160,7 +148,8 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( @@ -169,10 +158,8 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, @@ -185,7 +172,7 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -199,9 +186,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -210,7 +196,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -219,10 +206,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -235,7 +220,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi b/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi index 780a5c95..07a5d0e8 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi @@ -27,27 +27,19 @@ from launch_client import schemas # noqa: F401 SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -57,10 +49,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, @@ -69,7 +58,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, @@ -77,11 +65,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -101,11 +85,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -122,15 +106,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -141,10 +120,7 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, @@ -153,7 +129,6 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, @@ -161,11 +136,7 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -177,10 +148,9 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -191,10 +161,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -203,7 +170,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -211,11 +177,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -227,7 +189,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_sync_tasks/__init__.py b/launch/api_client/paths/v1_sync_tasks/__init__.py index 0ad403fe..e05b06c3 100644 --- a/launch/api_client/paths/v1_sync_tasks/__init__.py +++ b/launch/api_client/paths/v1_sync_tasks/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_SYNCTASKS \ No newline at end of file +path = PathValues.V1_SYNCTASKS diff --git a/launch/api_client/paths/v1_sync_tasks/post.py b/launch/api_client/paths/v1_sync_tasks/post.py index 590fc5b5..7ae95348 100644 --- a/launch/api_client/paths/v1_sync_tasks/post.py +++ b/launch/api_client/paths/v1_sync_tasks/post.py @@ -34,17 +34,15 @@ # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestRequiredQueryParams", { + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], }, - total=False ) +RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): @@ -64,13 +62,12 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = SyncEndpointPredictV1Response @@ -78,17 +75,14 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -97,26 +91,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -130,9 +119,8 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( @@ -144,10 +132,8 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( @@ -159,7 +145,8 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( @@ -171,15 +158,13 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -196,9 +181,7 @@ class instances used_path = path.value prefix_separator_iterator = None - for parameter in ( - request_query_model_endpoint_id, - ): + for parameter in (request_query_model_endpoint_id,): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -212,22 +195,23 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -246,11 +230,7 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response @@ -268,9 +248,8 @@ def create_sync_inference_task_v1_sync_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( @@ -282,10 +261,8 @@ def create_sync_inference_task_v1_sync_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( @@ -297,7 +274,8 @@ def create_sync_inference_task_v1_sync_tasks_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( @@ -309,15 +287,13 @@ def create_sync_inference_task_v1_sync_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def create_sync_inference_task_v1_sync_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -331,7 +307,7 @@ def create_sync_inference_task_v1_sync_tasks_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -348,9 +324,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -362,10 +337,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -377,7 +350,8 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def post( @@ -389,15 +363,13 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -411,7 +383,5 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_sync_tasks/post.pyi b/launch/api_client/paths/v1_sync_tasks/post.pyi index 1802b388..1b5d8e54 100644 --- a/launch/api_client/paths/v1_sync_tasks/post.pyi +++ b/launch/api_client/paths/v1_sync_tasks/post.pyi @@ -32,23 +32,19 @@ from launch_client.model.sync_endpoint_predict_v1_response import SyncEndpointPr # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestRequiredQueryParams", { + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], }, - total=False ) - +RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass - request_query_model_endpoint_id = api_client.QueryParameter( name="model_endpoint_id", style=api_client.ParameterStyle.FORM, @@ -59,56 +55,41 @@ request_query_model_endpoint_id = api_client.QueryParameter( # body param SchemaForRequestBodyApplicationJson = EndpointPredictV1Request - request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = SyncEndpointPredictV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -121,10 +102,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, @@ -135,11 +113,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, @@ -151,7 +125,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, @@ -162,15 +135,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -187,9 +156,7 @@ class BaseApi(api_client.Api): used_path = path.value prefix_separator_iterator = None - for parameter in ( - request_query_model_endpoint_id, - ): + for parameter in (request_query_model_endpoint_id,): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -203,22 +170,23 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -237,15 +205,10 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response - class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -259,10 +222,7 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( self, @@ -273,11 +233,7 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( self, @@ -289,7 +245,6 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def create_sync_inference_task_v1_sync_tasks_post( self, @@ -300,15 +255,11 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def create_sync_inference_task_v1_sync_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -322,10 +273,9 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -339,10 +289,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -353,11 +300,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -369,7 +312,6 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def post( self, @@ -380,15 +322,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -402,7 +340,5 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/rest.py b/launch/api_client/rest.py index 89aa1230..3faf0bd6 100644 --- a/launch/api_client/rest.py +++ b/launch/api_client/rest.py @@ -25,7 +25,6 @@ class RESTClientObject(object): - def __init__(self, configuration, pools_size=4, maxsize=None): # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 @@ -48,13 +47,13 @@ def __init__(self, configuration, pools_size=4, maxsize=None): addition_pool_args = {} if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + addition_pool_args["assert_hostname"] = configuration.assert_hostname # noqa: E501 if configuration.retries is not None: - addition_pool_args['retries'] = configuration.retries + addition_pool_args["retries"] = configuration.retries if configuration.socket_options is not None: - addition_pool_args['socket_options'] = configuration.socket_options + addition_pool_args["socket_options"] = configuration.socket_options if maxsize is None: if configuration.connection_pool_maxsize is not None: @@ -73,7 +72,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): key_file=configuration.key_file, proxy_url=configuration.proxy, proxy_headers=configuration.proxy_headers, - **addition_pool_args + **addition_pool_args, ) else: self.pool_manager = urllib3.PoolManager( @@ -83,7 +82,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): ca_certs=ca_certs, cert_file=configuration.cert_file, key_file=configuration.key_file, - **addition_pool_args + **addition_pool_args, ) def request( @@ -114,13 +113,10 @@ def request( (connection, read) timeouts. """ method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] + assert method in ["GET", "HEAD", "DELETE", "POST", "PUT", "PATCH", "OPTIONS"] if fields and body: - raise ApiValueError( - "body parameter cannot be used with fields parameter." - ) + raise ApiValueError("body parameter cannot be used with fields parameter.") fields = fields or {} headers = headers or {} @@ -128,53 +124,49 @@ def request( if timeout: if isinstance(timeout, (int, float)): # noqa: E501,F821 timeout = urllib3.Timeout(total=timeout) - elif (isinstance(timeout, tuple) and - len(timeout) == 2): + elif isinstance(timeout, tuple) and len(timeout) == 2: timeout = urllib3.Timeout(connect=timeout[0], read=timeout[1]) try: # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if 'Content-Type' not in headers and body is None: + if method in ["POST", "PUT", "PATCH", "OPTIONS", "DELETE"]: + if "Content-Type" not in headers and body is None: r = self.pool_manager.request( - method, - url, - preload_content=not stream, - timeout=timeout, - headers=headers + method, url, preload_content=not stream, timeout=timeout, headers=headers ) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + elif headers["Content-Type"] == "application/x-www-form-urlencoded": # noqa: E501 r = self.pool_manager.request( - method, url, + method, + url, body=body, fields=fields, encode_multipart=False, preload_content=not stream, timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': + headers=headers, + ) + elif headers["Content-Type"] == "multipart/form-data": # must del headers['Content-Type'], or the correct # Content-Type which generated by urllib3 will be # overwritten. - del headers['Content-Type'] + del headers["Content-Type"] r = self.pool_manager.request( - method, url, + method, + url, fields=fields, encode_multipart=True, preload_content=not stream, timeout=timeout, - headers=headers) + headers=headers, + ) # Pass a `string` parameter directly in the body to support # other content types than Json when `body` argument is # provided in serialized form elif isinstance(body, str) or isinstance(body, bytes): request_body = body r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=not stream, - timeout=timeout, - headers=headers) + method, url, body=request_body, preload_content=not stream, timeout=timeout, headers=headers + ) else: # Cannot generate the request from given parameters msg = """Cannot prepare a request message for provided @@ -183,10 +175,7 @@ def request( raise ApiException(status=0, reason=msg) # For `GET`, `HEAD` else: - r = self.pool_manager.request(method, url, - preload_content=not stream, - timeout=timeout, - headers=headers) + r = self.pool_manager.request(method, url, preload_content=not stream, timeout=timeout, headers=headers) except urllib3.exceptions.SSLError as e: msg = "{0}\n{1}".format(type(e).__name__, str(e)) raise ApiException(status=0, reason=msg) @@ -197,58 +186,23 @@ def request( return r - def GET(self, url, headers=None, stream=False, - timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("GET", url, - headers=headers, - stream=stream, - timeout=timeout, - fields=fields) - - def HEAD(self, url, headers=None, stream=False, - timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("HEAD", url, - headers=headers, - stream=stream, - timeout=timeout, - fields=fields) - - def OPTIONS(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("OPTIONS", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def DELETE(self, url, headers=None, body=None, - stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("DELETE", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def POST(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("POST", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def PUT(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("PUT", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def PATCH(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("PATCH", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) + def GET(self, url, headers=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("GET", url, headers=headers, stream=stream, timeout=timeout, fields=fields) + + def HEAD(self, url, headers=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("HEAD", url, headers=headers, stream=stream, timeout=timeout, fields=fields) + + def OPTIONS(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("OPTIONS", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) + + def DELETE(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("DELETE", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) + + def POST(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("POST", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) + + def PUT(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("PUT", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) + + def PATCH(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("PATCH", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) diff --git a/launch/api_client/schemas.py b/launch/api_client/schemas.py index a8c70520..46e9c6c4 100644 --- a/launch/api_client/schemas.py +++ b/launch/api_client/schemas.py @@ -36,8 +36,10 @@ class Unset(object): An instance of this class is set as the default value for object type(dict) properties that are optional When a property has an unset value, that property will not be assigned in the dict """ + pass + unset = Unset() none_type = type(None) @@ -53,12 +55,12 @@ class FileIO(io.FileIO): def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader]): if isinstance(_arg, (io.FileIO, io.BufferedReader)): if _arg.closed: - raise ApiValueError('Invalid file state; file is closed and must be open') + raise ApiValueError("Invalid file state; file is closed and must be open") _arg.close() inst = super(FileIO, cls).__new__(cls, _arg.name) super(FileIO, inst).__init__(_arg.name) return inst - raise ApiValueError('FileIO must be passed _arg which contains the open file') + raise ApiValueError("FileIO must be passed _arg which contains the open file") def __init__(self, _arg: typing.Union[io.FileIO, io.BufferedReader]): pass @@ -82,13 +84,16 @@ class ValidationMetadata(frozendict.frozendict): """ A class storing metadata that is needed to validate OpenApi Schema payloads """ + def __new__( cls, - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']), + path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(["args[0]"]), from_server: bool = False, configuration: typing.Optional[Configuration] = None, seen_classes: typing.FrozenSet[typing.Type] = frozenset(), - validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]] = frozendict.frozendict() + validated_path_to_schemas: typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type] + ] = frozendict.frozendict(), ): """ Args: @@ -115,7 +120,7 @@ def __new__( from_server=from_server, configuration=configuration, seen_classes=seen_classes, - validated_path_to_schemas=validated_path_to_schemas + validated_path_to_schemas=validated_path_to_schemas, ) def validation_ran_earlier(self, cls: type) -> bool: @@ -129,23 +134,25 @@ def validation_ran_earlier(self, cls: type) -> bool: @property def path_to_item(self) -> typing.Tuple[typing.Union[str, int], ...]: - return self.get('path_to_item') + return self.get("path_to_item") @property def from_server(self) -> bool: - return self.get('from_server') + return self.get("from_server") @property def configuration(self) -> typing.Optional[Configuration]: - return self.get('configuration') + return self.get("configuration") @property def seen_classes(self) -> typing.FrozenSet[typing.Type]: - return self.get('seen_classes') + return self.get("seen_classes") @property - def validated_path_to_schemas(self) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]]: - return self.get('validated_path_to_schemas') + def validated_path_to_schemas( + self, + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]]: + return self.get("validated_path_to_schemas") def add_deeper_validated_schemas(validation_metadata: ValidationMetadata, path_to_schemas: dict): @@ -155,7 +162,7 @@ def add_deeper_validated_schemas(validation_metadata: ValidationMetadata, path_t for path_to_item, schemas in validation_metadata.validated_path_to_schemas.items(): if len(path_to_item) < len(current_path_to_item): continue - path_begins_with_current_path = path_to_item[:len(current_path_to_item)] == current_path_to_item + path_begins_with_current_path = path_to_item[: len(current_path_to_item)] == current_path_to_item if path_begins_with_current_path: other_path_to_schemas[path_to_item] = schemas update(path_to_schemas, other_path_to_schemas) @@ -166,6 +173,7 @@ class Singleton: Enums and singletons are the same The same instance is returned for a given key of (cls, _arg) """ + _instances = {} def __new__(cls, _arg: typing.Any, **kwargs): @@ -189,16 +197,15 @@ def __new__(cls, _arg: typing.Any, **kwargs): def __repr__(self): if isinstance(self, NoneClass): - return f'<{self.__class__.__name__}: None>' + return f"<{self.__class__.__name__}: None>" elif isinstance(self, BoolClass): if bool(self): - return f'<{self.__class__.__name__}: True>' - return f'<{self.__class__.__name__}: False>' - return f'<{self.__class__.__name__}: {super().__repr__()}>' + return f"<{self.__class__.__name__}: True>" + return f"<{self.__class__.__name__}: False>" + return f"<{self.__class__.__name__}: {super().__repr__()}>" class classproperty: - def __init__(self, fget): self.fget = fget @@ -229,7 +236,7 @@ def __bool__(self) -> bool: for key, instance in self._instances.items(): if self is instance: return bool(key[1]) - raise ValueError('Unable to find the boolean value of this instance') + raise ValueError("Unable to find the boolean value of this instance") class MetaOapgTyped: @@ -239,30 +246,39 @@ class MetaOapgTyped: inclusive_minimum: typing.Union[int, float] max_items: int min_items: int - discriminator: typing.Dict[str, typing.Dict[str, typing.Type['Schema']]] - + discriminator: typing.Dict[str, typing.Dict[str, typing.Type["Schema"]]] class properties: # to hold object properties pass - additional_properties: typing.Optional[typing.Type['Schema']] + additional_properties: typing.Optional[typing.Type["Schema"]] max_properties: int min_properties: int - all_of: typing.List[typing.Type['Schema']] - one_of: typing.List[typing.Type['Schema']] - any_of: typing.List[typing.Type['Schema']] - not_schema: typing.Type['Schema'] + all_of: typing.List[typing.Type["Schema"]] + one_of: typing.List[typing.Type["Schema"]] + any_of: typing.List[typing.Type["Schema"]] + not_schema: typing.Type["Schema"] max_length: int min_length: int - items: typing.Type['Schema'] + items: typing.Type["Schema"] class Schema: """ the base class of all swagger/openapi schemas/models """ - __inheritable_primitive_types_set = {decimal.Decimal, str, tuple, frozendict.frozendict, FileIO, bytes, BoolClass, NoneClass} + + __inheritable_primitive_types_set = { + decimal.Decimal, + str, + tuple, + frozendict.frozendict, + FileIO, + bytes, + BoolClass, + NoneClass, + } _types: typing.Set[typing.Type] MetaOapg = MetaOapgTyped @@ -277,7 +293,9 @@ def __get_valid_classes_phrase(input_classes): return "is one of [{0}]".format(", ".join(all_class_names)) @staticmethod - def _get_class_oapg(item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type['Schema']]) -> typing.Type['Schema']: + def _get_class_oapg( + item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type["Schema"]] + ) -> typing.Type["Schema"]: if isinstance(item_cls, types.FunctionType): # referenced schema return item_cls() @@ -287,9 +305,7 @@ def _get_class_oapg(item_cls: typing.Union[types.FunctionType, staticmethod, typ return item_cls @classmethod - def __type_error_message( - cls, var_value=None, var_name=None, valid_classes=None, key_type=None - ): + def __type_error_message(cls, var_value=None, var_name=None, valid_classes=None, key_type=None): """ Keyword Args: var_value (any): the variable which has the type_error @@ -332,7 +348,10 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: + ) -> typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], + typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], + ]: """ Schema _validate_oapg All keyword validation except for type checking was done in calling stack frames @@ -361,7 +380,9 @@ def _validate_oapg( @staticmethod def _process_schema_classes_oapg( - schema_classes: typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]] + schema_classes: typing.Set[ + typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple] + ] ): """ Processes and mutates schema_classes @@ -381,10 +402,8 @@ def _process_schema_classes_oapg( @classmethod def __get_new_cls( - cls, - arg, - validation_metadata: ValidationMetadata - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']]: + cls, arg, validation_metadata: ValidationMetadata + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]]: """ Make a new dynamic class and return an instance of that class We are making an instance of cls, but instead of making cls @@ -423,8 +442,7 @@ def __get_new_cls( 3. N number of schema classes, classes in path_to_schemas: BoolClass/NoneClass/tuple/frozendict.frozendict/str/Decimal/bytes/FileIo """ cls._process_schema_classes_oapg(schema_classes) - enum_schema = any( - issubclass(this_cls, EnumBase) for this_cls in schema_classes) + enum_schema = any(issubclass(this_cls, EnumBase) for this_cls in schema_classes) inheritable_primitive_type = schema_classes.intersection(cls.__inheritable_primitive_types_set) chosen_schema_classes = schema_classes - inheritable_primitive_type suffix = tuple(inheritable_primitive_type) @@ -432,7 +450,7 @@ def __get_new_cls( suffix = (Singleton,) + suffix used_classes = tuple(sorted(chosen_schema_classes, key=lambda a_cls: a_cls.__name__)) + suffix - mfg_cls = get_new_class(class_name='DynamicSchema', bases=used_classes) + mfg_cls = get_new_class(class_name="DynamicSchema", bases=used_classes) path_to_schemas[path] = mfg_cls return path_to_schemas @@ -442,7 +460,7 @@ def _get_new_instance_without_conversion_oapg( cls, arg: typing.Any, path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] + path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]], ): # We have a Dynamic class and we are making an instance of it if issubclass(cls, frozendict.frozendict) and issubclass(cls, DictBase): @@ -471,16 +489,16 @@ def from_openapi_data_oapg( decimal.Decimal, bool, None, - 'Schema', + "Schema", dict, frozendict.frozendict, tuple, list, io.FileIO, io.BufferedReader, - bytes + bytes, ], - _configuration: typing.Optional[Configuration] + _configuration: typing.Optional[Configuration], ): """ Schema from_openapi_data_oapg @@ -489,13 +507,12 @@ def from_openapi_data_oapg( validated_path_to_schemas = {} arg = cast_to_allowed_types(arg, from_server, validated_path_to_schemas) validation_metadata = ValidationMetadata( - from_server=from_server, configuration=_configuration, validated_path_to_schemas=validated_path_to_schemas) + from_server=from_server, configuration=_configuration, validated_path_to_schemas=validated_path_to_schemas + ) path_to_schemas = cls.__get_new_cls(arg, validation_metadata) new_cls = path_to_schemas[validation_metadata.path_to_item] new_inst = new_cls._get_new_instance_without_conversion_oapg( - arg, - validation_metadata.path_to_item, - path_to_schemas + arg, validation_metadata.path_to_item, path_to_schemas ) return new_inst @@ -512,7 +529,41 @@ def __get_input_dict(*args, **kwargs) -> frozendict.frozendict: def __remove_unsets(kwargs): return {key: val for key, val in kwargs.items() if val is not unset} - def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], _configuration: typing.Optional[Configuration] = None, **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset]): + def __new__( + cls, + *_args: typing.Union[ + dict, + frozendict.frozendict, + list, + tuple, + decimal.Decimal, + float, + int, + str, + date, + datetime, + bool, + None, + "Schema", + ], + _configuration: typing.Optional[Configuration] = None, + **kwargs: typing.Union[ + dict, + frozendict.frozendict, + list, + tuple, + decimal.Decimal, + float, + int, + str, + date, + datetime, + bool, + None, + "Schema", + Unset, + ], + ): """ Schema __new__ @@ -527,35 +578,59 @@ def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict, list, tuple, """ __kwargs = cls.__remove_unsets(kwargs) if not _args and not __kwargs: - raise TypeError( - 'No input given. args or kwargs must be given.' - ) + raise TypeError("No input given. args or kwargs must be given.") if not __kwargs and _args and not isinstance(_args[0], dict): __arg = _args[0] else: __arg = cls.__get_input_dict(*_args, **__kwargs) __from_server = False __validated_path_to_schemas = {} - __arg = cast_to_allowed_types( - __arg, __from_server, __validated_path_to_schemas) + __arg = cast_to_allowed_types(__arg, __from_server, __validated_path_to_schemas) __validation_metadata = ValidationMetadata( - configuration=_configuration, from_server=__from_server, validated_path_to_schemas=__validated_path_to_schemas) + configuration=_configuration, + from_server=__from_server, + validated_path_to_schemas=__validated_path_to_schemas, + ) __path_to_schemas = cls.__get_new_cls(__arg, __validation_metadata) __new_cls = __path_to_schemas[__validation_metadata.path_to_item] return __new_cls._get_new_instance_without_conversion_oapg( - __arg, - __validation_metadata.path_to_item, - __path_to_schemas + __arg, __validation_metadata.path_to_item, __path_to_schemas ) def __init__( self, *_args: typing.Union[ - dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], + dict, + frozendict.frozendict, + list, + tuple, + decimal.Decimal, + float, + int, + str, + date, + datetime, + bool, + None, + "Schema", + ], _configuration: typing.Optional[Configuration] = None, **kwargs: typing.Union[ - dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset - ] + dict, + frozendict.frozendict, + list, + tuple, + decimal.Decimal, + float, + int, + str, + date, + datetime, + bool, + None, + "Schema", + Unset, + ], ): """ this is needed to fix 'Unexpected argument' warning in pycharm @@ -565,6 +640,7 @@ def __init__( """ pass + """ import itertools data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool') @@ -594,269 +670,399 @@ def __init__( BoolMixin = BoolClass BytesMixin = bytes FileMixin = FileIO + # qty 2 class BinaryMixin(bytes, FileIO): pass + class NoneFrozenDictMixin(NoneClass, frozendict.frozendict): pass + class NoneTupleMixin(NoneClass, tuple): pass + class NoneStrMixin(NoneClass, str): pass + class NoneDecimalMixin(NoneClass, decimal.Decimal): pass + class NoneBoolMixin(NoneClass, BoolClass): pass + class FrozenDictTupleMixin(frozendict.frozendict, tuple): pass + class FrozenDictStrMixin(frozendict.frozendict, str): pass + class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal): pass + class FrozenDictBoolMixin(frozendict.frozendict, BoolClass): pass + class TupleStrMixin(tuple, str): pass + class TupleDecimalMixin(tuple, decimal.Decimal): pass + class TupleBoolMixin(tuple, BoolClass): pass + class StrDecimalMixin(str, decimal.Decimal): pass + class StrBoolMixin(str, BoolClass): pass + class DecimalBoolMixin(decimal.Decimal, BoolClass): pass + # qty 3 class NoneFrozenDictTupleMixin(NoneClass, frozendict.frozendict, tuple): pass + class NoneFrozenDictStrMixin(NoneClass, frozendict.frozendict, str): pass + class NoneFrozenDictDecimalMixin(NoneClass, frozendict.frozendict, decimal.Decimal): pass + class NoneFrozenDictBoolMixin(NoneClass, frozendict.frozendict, BoolClass): pass + class NoneTupleStrMixin(NoneClass, tuple, str): pass + class NoneTupleDecimalMixin(NoneClass, tuple, decimal.Decimal): pass + class NoneTupleBoolMixin(NoneClass, tuple, BoolClass): pass + class NoneStrDecimalMixin(NoneClass, str, decimal.Decimal): pass + class NoneStrBoolMixin(NoneClass, str, BoolClass): pass + class NoneDecimalBoolMixin(NoneClass, decimal.Decimal, BoolClass): pass + class FrozenDictTupleStrMixin(frozendict.frozendict, tuple, str): pass + class FrozenDictTupleDecimalMixin(frozendict.frozendict, tuple, decimal.Decimal): pass + class FrozenDictTupleBoolMixin(frozendict.frozendict, tuple, BoolClass): pass + class FrozenDictStrDecimalMixin(frozendict.frozendict, str, decimal.Decimal): pass + class FrozenDictStrBoolMixin(frozendict.frozendict, str, BoolClass): pass + class FrozenDictDecimalBoolMixin(frozendict.frozendict, decimal.Decimal, BoolClass): pass + class TupleStrDecimalMixin(tuple, str, decimal.Decimal): pass + class TupleStrBoolMixin(tuple, str, BoolClass): pass + class TupleDecimalBoolMixin(tuple, decimal.Decimal, BoolClass): pass + class StrDecimalBoolMixin(str, decimal.Decimal, BoolClass): pass + # qty 4 class NoneFrozenDictTupleStrMixin(NoneClass, frozendict.frozendict, tuple, str): pass + class NoneFrozenDictTupleDecimalMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal): pass + class NoneFrozenDictTupleBoolMixin(NoneClass, frozendict.frozendict, tuple, BoolClass): pass + class NoneFrozenDictStrDecimalMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal): pass + class NoneFrozenDictStrBoolMixin(NoneClass, frozendict.frozendict, str, BoolClass): pass + class NoneFrozenDictDecimalBoolMixin(NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass): pass + class NoneTupleStrDecimalMixin(NoneClass, tuple, str, decimal.Decimal): pass + class NoneTupleStrBoolMixin(NoneClass, tuple, str, BoolClass): pass + class NoneTupleDecimalBoolMixin(NoneClass, tuple, decimal.Decimal, BoolClass): pass + class NoneStrDecimalBoolMixin(NoneClass, str, decimal.Decimal, BoolClass): pass + class FrozenDictTupleStrDecimalMixin(frozendict.frozendict, tuple, str, decimal.Decimal): pass + class FrozenDictTupleStrBoolMixin(frozendict.frozendict, tuple, str, BoolClass): pass + class FrozenDictTupleDecimalBoolMixin(frozendict.frozendict, tuple, decimal.Decimal, BoolClass): pass + class FrozenDictStrDecimalBoolMixin(frozendict.frozendict, str, decimal.Decimal, BoolClass): pass + class TupleStrDecimalBoolMixin(tuple, str, decimal.Decimal, BoolClass): pass + # qty 5 class NoneFrozenDictTupleStrDecimalMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal): pass + class NoneFrozenDictTupleStrBoolMixin(NoneClass, frozendict.frozendict, tuple, str, BoolClass): pass + class NoneFrozenDictTupleDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass): pass + class NoneFrozenDictStrDecimalBoolMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass): pass + class NoneTupleStrDecimalBoolMixin(NoneClass, tuple, str, decimal.Decimal, BoolClass): pass + class FrozenDictTupleStrDecimalBoolMixin(frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): pass + # qty 6 - class NoneFrozenDictTupleStrDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): + class NoneFrozenDictTupleStrDecimalBoolMixin( + NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass + ): pass + # qty 8 - class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes): + class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin( + NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes + ): pass + else: # qty 1 class NoneMixin: _types = {NoneClass} + class FrozenDictMixin: _types = {frozendict.frozendict} + class TupleMixin: _types = {tuple} + class StrMixin: _types = {str} + class DecimalMixin: _types = {decimal.Decimal} + class BoolMixin: _types = {BoolClass} + class BytesMixin: _types = {bytes} + class FileMixin: _types = {FileIO} + # qty 2 class BinaryMixin: _types = {bytes, FileIO} + class NoneFrozenDictMixin: _types = {NoneClass, frozendict.frozendict} + class NoneTupleMixin: _types = {NoneClass, tuple} + class NoneStrMixin: _types = {NoneClass, str} + class NoneDecimalMixin: _types = {NoneClass, decimal.Decimal} + class NoneBoolMixin: _types = {NoneClass, BoolClass} + class FrozenDictTupleMixin: _types = {frozendict.frozendict, tuple} + class FrozenDictStrMixin: _types = {frozendict.frozendict, str} + class FrozenDictDecimalMixin: _types = {frozendict.frozendict, decimal.Decimal} + class FrozenDictBoolMixin: _types = {frozendict.frozendict, BoolClass} + class TupleStrMixin: _types = {tuple, str} + class TupleDecimalMixin: _types = {tuple, decimal.Decimal} + class TupleBoolMixin: _types = {tuple, BoolClass} + class StrDecimalMixin: _types = {str, decimal.Decimal} + class StrBoolMixin: _types = {str, BoolClass} + class DecimalBoolMixin: _types = {decimal.Decimal, BoolClass} + # qty 3 class NoneFrozenDictTupleMixin: _types = {NoneClass, frozendict.frozendict, tuple} + class NoneFrozenDictStrMixin: _types = {NoneClass, frozendict.frozendict, str} + class NoneFrozenDictDecimalMixin: _types = {NoneClass, frozendict.frozendict, decimal.Decimal} + class NoneFrozenDictBoolMixin: _types = {NoneClass, frozendict.frozendict, BoolClass} + class NoneTupleStrMixin: _types = {NoneClass, tuple, str} + class NoneTupleDecimalMixin: _types = {NoneClass, tuple, decimal.Decimal} + class NoneTupleBoolMixin: _types = {NoneClass, tuple, BoolClass} + class NoneStrDecimalMixin: _types = {NoneClass, str, decimal.Decimal} + class NoneStrBoolMixin: _types = {NoneClass, str, BoolClass} + class NoneDecimalBoolMixin: _types = {NoneClass, decimal.Decimal, BoolClass} + class FrozenDictTupleStrMixin: _types = {frozendict.frozendict, tuple, str} + class FrozenDictTupleDecimalMixin: _types = {frozendict.frozendict, tuple, decimal.Decimal} + class FrozenDictTupleBoolMixin: _types = {frozendict.frozendict, tuple, BoolClass} + class FrozenDictStrDecimalMixin: _types = {frozendict.frozendict, str, decimal.Decimal} + class FrozenDictStrBoolMixin: _types = {frozendict.frozendict, str, BoolClass} + class FrozenDictDecimalBoolMixin: _types = {frozendict.frozendict, decimal.Decimal, BoolClass} + class TupleStrDecimalMixin: _types = {tuple, str, decimal.Decimal} + class TupleStrBoolMixin: _types = {tuple, str, BoolClass} + class TupleDecimalBoolMixin: _types = {tuple, decimal.Decimal, BoolClass} + class StrDecimalBoolMixin: _types = {str, decimal.Decimal, BoolClass} + # qty 4 class NoneFrozenDictTupleStrMixin: _types = {NoneClass, frozendict.frozendict, tuple, str} + class NoneFrozenDictTupleDecimalMixin: _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal} + class NoneFrozenDictTupleBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, BoolClass} + class NoneFrozenDictStrDecimalMixin: _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal} + class NoneFrozenDictStrBoolMixin: _types = {NoneClass, frozendict.frozendict, str, BoolClass} + class NoneFrozenDictDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass} + class NoneTupleStrDecimalMixin: _types = {NoneClass, tuple, str, decimal.Decimal} + class NoneTupleStrBoolMixin: _types = {NoneClass, tuple, str, BoolClass} + class NoneTupleDecimalBoolMixin: _types = {NoneClass, tuple, decimal.Decimal, BoolClass} + class NoneStrDecimalBoolMixin: _types = {NoneClass, str, decimal.Decimal, BoolClass} + class FrozenDictTupleStrDecimalMixin: _types = {frozendict.frozendict, tuple, str, decimal.Decimal} + class FrozenDictTupleStrBoolMixin: _types = {frozendict.frozendict, tuple, str, BoolClass} + class FrozenDictTupleDecimalBoolMixin: _types = {frozendict.frozendict, tuple, decimal.Decimal, BoolClass} + class FrozenDictStrDecimalBoolMixin: _types = {frozendict.frozendict, str, decimal.Decimal, BoolClass} + class TupleStrDecimalBoolMixin: _types = {tuple, str, decimal.Decimal, BoolClass} + # qty 5 class NoneFrozenDictTupleStrDecimalMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal} + class NoneFrozenDictTupleStrBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, BoolClass} + class NoneFrozenDictTupleDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass} + class NoneFrozenDictStrDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass} + class NoneTupleStrDecimalBoolMixin: _types = {NoneClass, tuple, str, decimal.Decimal, BoolClass} + class FrozenDictTupleStrDecimalBoolMixin: _types = {frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} + # qty 6 class NoneFrozenDictTupleStrDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} + # qty 8 class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes} @@ -876,9 +1082,11 @@ def _is_json_validation_enabled_oapg(schema_keyword, configuration=None): configuration (Configuration): the configuration class. """ - return (configuration is None or - not hasattr(configuration, '_disabled_client_side_validations') or - schema_keyword not in configuration._disabled_client_side_validations) + return ( + configuration is None + or not hasattr(configuration, "_disabled_client_side_validations") + or schema_keyword not in configuration._disabled_client_side_validations + ) @staticmethod def _raise_validation_error_message_oapg(value, constraint_msg, constraint_value, path_to_item, additional_txt=""): @@ -899,7 +1107,10 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: + ) -> typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], + typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], + ]: """ EnumBase _validate_oapg Validates that arg is in the enum's allowed values @@ -907,7 +1118,11 @@ def _validate_oapg( try: cls.MetaOapg.enum_value_to_name[arg] except KeyError: - raise ApiValueError("Invalid value {} passed in to {}, allowed_values={}".format(arg, cls, cls.MetaOapg.enum_value_to_name.keys())) + raise ApiValueError( + "Invalid value {} passed in to {}, allowed_values={}".format( + arg, cls, cls.MetaOapg.enum_value_to_name.keys() + ) + ) return super()._validate_oapg(arg, validation_metadata=validation_metadata) @@ -951,68 +1166,69 @@ def as_str_oapg(self) -> str: @property def as_date_oapg(self) -> date: - raise Exception('not implemented') + raise Exception("not implemented") @property def as_datetime_oapg(self) -> datetime: - raise Exception('not implemented') + raise Exception("not implemented") @property def as_decimal_oapg(self) -> decimal.Decimal: - raise Exception('not implemented') + raise Exception("not implemented") @property def as_uuid_oapg(self) -> uuid.UUID: - raise Exception('not implemented') + raise Exception("not implemented") @classmethod - def __check_str_validations( - cls, - arg: str, - validation_metadata: ValidationMetadata - ): - if not hasattr(cls, 'MetaOapg'): + def __check_str_validations(cls, arg: str, validation_metadata: ValidationMetadata): + if not hasattr(cls, "MetaOapg"): return - if (cls._is_json_validation_enabled_oapg('maxLength', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'max_length') and - len(arg) > cls.MetaOapg.max_length): + if ( + cls._is_json_validation_enabled_oapg("maxLength", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "max_length") + and len(arg) > cls.MetaOapg.max_length + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="length must be less than or equal to", constraint_value=cls.MetaOapg.max_length, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('minLength', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'min_length') and - len(arg) < cls.MetaOapg.min_length): + if ( + cls._is_json_validation_enabled_oapg("minLength", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "min_length") + and len(arg) < cls.MetaOapg.min_length + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="length must be greater than or equal to", constraint_value=cls.MetaOapg.min_length, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('pattern', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'regex')): + if cls._is_json_validation_enabled_oapg("pattern", validation_metadata.configuration) and hasattr( + cls.MetaOapg, "regex" + ): for regex_dict in cls.MetaOapg.regex: - flags = regex_dict.get('flags', 0) - if not re.search(regex_dict['pattern'], arg, flags=flags): + flags = regex_dict.get("flags", 0) + if not re.search(regex_dict["pattern"], arg, flags=flags): if flags != 0: # Don't print the regex flags if the flags are not # specified in the OAS document. cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must match regular expression", - constraint_value=regex_dict['pattern'], + constraint_value=regex_dict["pattern"], path_to_item=validation_metadata.path_to_item, - additional_txt=" with flags=`{}`".format(flags) + additional_txt=" with flags=`{}`".format(flags), ) cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must match regular expression", - constraint_value=regex_dict['pattern'], - path_to_item=validation_metadata.path_to_item + constraint_value=regex_dict["pattern"], + path_to_item=validation_metadata.path_to_item, ) @classmethod @@ -1020,7 +1236,10 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: + ) -> typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], + typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], + ]: """ StrBase _validate_oapg Validates that validations pass @@ -1061,22 +1280,21 @@ def _validate_oapg( class CustomIsoparser(isoparser): - @_takes_ascii def parse_isodatetime(self, dt_str): components, pos = self._parse_isodate(dt_str) if len(dt_str) > pos: - if self._sep is None or dt_str[pos:pos + 1] == self._sep: - components += self._parse_isotime(dt_str[pos + 1:]) + if self._sep is None or dt_str[pos : pos + 1] == self._sep: + components += self._parse_isotime(dt_str[pos + 1 :]) else: - raise ValueError('String contains unknown ISO components') + raise ValueError("String contains unknown ISO components") if len(components) > 3 and components[3] == 24: components[3] = 0 return datetime(*components) + timedelta(days=1) if len(components) <= 3: - raise ValueError('Value is not a datetime') + raise ValueError("Value is not a datetime") return datetime(*components) @@ -1085,10 +1303,10 @@ def parse_isodate(self, datestr): components, pos = self._parse_isodate(datestr) if len(datestr) > pos: - raise ValueError('String contains invalid time components') + raise ValueError("String contains invalid time components") if len(components) > 3: - raise ValueError('String contains invalid time components') + raise ValueError("String contains invalid time components") return date(*components) @@ -1214,7 +1432,7 @@ def as_int_oapg(self) -> int: if self.as_tuple().exponent < 0: # this could be represented as an integer but should be represented as a float # because that's what it was serialized from - raise ApiValueError(f'{self} is not an integer') + raise ApiValueError(f"{self} is not an integer") self._as_int = int(self) return self._as_int @@ -1224,79 +1442,85 @@ def as_float_oapg(self) -> float: return self._as_float except AttributeError: if self.as_tuple().exponent >= 0: - raise ApiValueError(f'{self} is not a float') + raise ApiValueError(f"{self} is not a float") self._as_float = float(self) return self._as_float @classmethod - def __check_numeric_validations( - cls, - arg, - validation_metadata: ValidationMetadata - ): - if not hasattr(cls, 'MetaOapg'): + def __check_numeric_validations(cls, arg, validation_metadata: ValidationMetadata): + if not hasattr(cls, "MetaOapg"): return - if cls._is_json_validation_enabled_oapg('multipleOf', - validation_metadata.configuration) and hasattr(cls.MetaOapg, 'multiple_of'): + if cls._is_json_validation_enabled_oapg("multipleOf", validation_metadata.configuration) and hasattr( + cls.MetaOapg, "multiple_of" + ): multiple_of_value = cls.MetaOapg.multiple_of - if (not (float(arg) / multiple_of_value).is_integer()): + if not (float(arg) / multiple_of_value).is_integer(): # Note 'multipleOf' will be as good as the floating point arithmetic. cls._raise_validation_error_message_oapg( value=arg, constraint_msg="value must be a multiple of", constraint_value=multiple_of_value, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) checking_max_or_min_values = any( - hasattr(cls.MetaOapg, validation_key) for validation_key in { - 'exclusive_maximum', - 'inclusive_maximum', - 'exclusive_minimum', - 'inclusive_minimum', + hasattr(cls.MetaOapg, validation_key) + for validation_key in { + "exclusive_maximum", + "inclusive_maximum", + "exclusive_minimum", + "inclusive_minimum", } ) if not checking_max_or_min_values: return - if (cls._is_json_validation_enabled_oapg('exclusiveMaximum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'exclusive_maximum') and - arg >= cls.MetaOapg.exclusive_maximum): + if ( + cls._is_json_validation_enabled_oapg("exclusiveMaximum", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "exclusive_maximum") + and arg >= cls.MetaOapg.exclusive_maximum + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value less than", constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('maximum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'inclusive_maximum') and - arg > cls.MetaOapg.inclusive_maximum): + if ( + cls._is_json_validation_enabled_oapg("maximum", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "inclusive_maximum") + and arg > cls.MetaOapg.inclusive_maximum + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value less than or equal to", constraint_value=cls.MetaOapg.inclusive_maximum, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('exclusiveMinimum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'exclusive_minimum') and - arg <= cls.MetaOapg.exclusive_minimum): + if ( + cls._is_json_validation_enabled_oapg("exclusiveMinimum", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "exclusive_minimum") + and arg <= cls.MetaOapg.exclusive_minimum + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value greater than", constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('minimum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'inclusive_minimum') and - arg < cls.MetaOapg.inclusive_minimum): + if ( + cls._is_json_validation_enabled_oapg("minimum", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "inclusive_minimum") + and arg < cls.MetaOapg.inclusive_minimum + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value greater than or equal to", constraint_value=cls.MetaOapg.inclusive_minimum, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) @classmethod @@ -1304,7 +1528,10 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: + ) -> typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], + typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], + ]: """ NumberBase _validate_oapg Validates that validations pass @@ -1334,59 +1561,64 @@ def __validate_items(cls, list_items, validation_metadata: ValidationMetadata): # if we have definitions for an items schema, use it # otherwise accept anything - item_cls = getattr(cls.MetaOapg, 'items', UnsetAnyTypeSchema) + item_cls = getattr(cls.MetaOapg, "items", UnsetAnyTypeSchema) item_cls = cls._get_class_oapg(item_cls) path_to_schemas = {} for i, value in enumerate(list_items): item_validation_metadata = ValidationMetadata( from_server=validation_metadata.from_server, configuration=validation_metadata.configuration, - path_to_item=validation_metadata.path_to_item+(i,), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas + path_to_item=validation_metadata.path_to_item + (i,), + validated_path_to_schemas=validation_metadata.validated_path_to_schemas, ) if item_validation_metadata.validation_ran_earlier(item_cls): add_deeper_validated_schemas(item_validation_metadata, path_to_schemas) continue - other_path_to_schemas = item_cls._validate_oapg( - value, validation_metadata=item_validation_metadata) + other_path_to_schemas = item_cls._validate_oapg(value, validation_metadata=item_validation_metadata) update(path_to_schemas, other_path_to_schemas) return path_to_schemas @classmethod - def __check_tuple_validations( - cls, arg, - validation_metadata: ValidationMetadata): - if not hasattr(cls, 'MetaOapg'): + def __check_tuple_validations(cls, arg, validation_metadata: ValidationMetadata): + if not hasattr(cls, "MetaOapg"): return - if (cls._is_json_validation_enabled_oapg('maxItems', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'max_items') and - len(arg) > cls.MetaOapg.max_items): + if ( + cls._is_json_validation_enabled_oapg("maxItems", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "max_items") + and len(arg) > cls.MetaOapg.max_items + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of items must be less than or equal to", constraint_value=cls.MetaOapg.max_items, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('minItems', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'min_items') and - len(arg) < cls.MetaOapg.min_items): + if ( + cls._is_json_validation_enabled_oapg("minItems", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "min_items") + and len(arg) < cls.MetaOapg.min_items + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of items must be greater than or equal to", constraint_value=cls.MetaOapg.min_items, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('uniqueItems', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'unique_items') and cls.MetaOapg.unique_items and arg): + if ( + cls._is_json_validation_enabled_oapg("uniqueItems", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "unique_items") + and cls.MetaOapg.unique_items + and arg + ): unique_items = set(arg) if len(arg) > len(unique_items): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="duplicate items were found, and the tuple must not contain duplicates because", - constraint_value='unique_items==True', - path_to_item=validation_metadata.path_to_item + constraint_value="unique_items==True", + path_to_item=validation_metadata.path_to_item, ) @classmethod @@ -1420,7 +1652,7 @@ def _validate_oapg( from_server=validation_metadata.from_server, path_to_item=validation_metadata.path_to_item, seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas + validated_path_to_schemas=validation_metadata.validated_path_to_schemas, ) other_path_to_schemas = cls.__validate_items(arg, validation_metadata=updated_vm) update(_path_to_schemas, other_path_to_schemas) @@ -1428,24 +1660,20 @@ def _validate_oapg( @classmethod def _get_items_oapg( - cls: 'Schema', + cls: "Schema", arg: typing.List[typing.Any], path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] + path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]], ): - ''' + """ ListBase _get_items_oapg - ''' + """ cast_items = [] for i, value in enumerate(arg): item_path_to_item = path_to_item + (i,) item_cls = path_to_schemas[item_path_to_item] - new_value = item_cls._get_new_instance_without_conversion_oapg( - value, - item_path_to_item, - path_to_schemas - ) + new_value = item_cls._get_new_instance_without_conversion_oapg(value, item_path_to_item, path_to_schemas) cast_items.append(new_value) return cast_items @@ -1455,12 +1683,16 @@ class Discriminable: MetaOapg: MetaOapgTyped @classmethod - def _ensure_discriminator_value_present_oapg(cls, disc_property_name: str, validation_metadata: ValidationMetadata, *args): + def _ensure_discriminator_value_present_oapg( + cls, disc_property_name: str, validation_metadata: ValidationMetadata, *args + ): if not args or args and disc_property_name not in args[0]: # The input data does not contain the discriminator property raise ApiValueError( "Cannot deserialize input data due to missing discriminator. " - "The discriminator property '{}' is missing at path: {}".format(disc_property_name, validation_metadata.path_to_item) + "The discriminator property '{}' is missing at path: {}".format( + disc_property_name, validation_metadata.path_to_item + ) ) @classmethod @@ -1468,7 +1700,7 @@ def get_discriminated_class_oapg(cls, disc_property_name: str, disc_payload_valu """ Used in schemas with discriminators """ - if not hasattr(cls.MetaOapg, 'discriminator'): + if not hasattr(cls.MetaOapg, "discriminator"): return None disc = cls.MetaOapg.discriminator() if disc_property_name not in disc: @@ -1476,38 +1708,38 @@ def get_discriminated_class_oapg(cls, disc_property_name: str, disc_payload_valu discriminated_cls = disc[disc_property_name].get(disc_payload_value) if discriminated_cls is not None: return discriminated_cls - if not hasattr(cls, 'MetaOapg'): + if not hasattr(cls, "MetaOapg"): return None elif not ( - hasattr(cls.MetaOapg, 'all_of') or - hasattr(cls.MetaOapg, 'one_of') or - hasattr(cls.MetaOapg, 'any_of') + hasattr(cls.MetaOapg, "all_of") or hasattr(cls.MetaOapg, "one_of") or hasattr(cls.MetaOapg, "any_of") ): return None # TODO stop traveling if a cycle is hit - if hasattr(cls.MetaOapg, 'all_of'): + if hasattr(cls.MetaOapg, "all_of"): for allof_cls in cls.MetaOapg.all_of(): discriminated_cls = allof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) + disc_property_name=disc_property_name, disc_payload_value=disc_payload_value + ) if discriminated_cls is not None: return discriminated_cls - if hasattr(cls.MetaOapg, 'one_of'): + if hasattr(cls.MetaOapg, "one_of"): for oneof_cls in cls.MetaOapg.one_of(): discriminated_cls = oneof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) + disc_property_name=disc_property_name, disc_payload_value=disc_payload_value + ) if discriminated_cls is not None: return discriminated_cls - if hasattr(cls.MetaOapg, 'any_of'): + if hasattr(cls.MetaOapg, "any_of"): for anyof_cls in cls.MetaOapg.any_of(): discriminated_cls = anyof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) + disc_property_name=disc_property_name, disc_payload_value=disc_payload_value + ) if discriminated_cls is not None: return discriminated_cls return None class DictBase(Discriminable, ValidatorBase): - @classmethod def __validate_arg_presence(cls, arg): """ @@ -1530,10 +1762,10 @@ def __validate_arg_presence(cls, arg): """ seen_required_properties = set() invalid_arguments = [] - required_property_names = getattr(cls.MetaOapg, 'required', set()) - additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema) - properties = getattr(cls.MetaOapg, 'properties', {}) - property_annotations = getattr(properties, '__annotations__', {}) + required_property_names = getattr(cls.MetaOapg, "required", set()) + additional_properties = getattr(cls.MetaOapg, "additional_properties", UnsetAnyTypeSchema) + properties = getattr(cls.MetaOapg, "properties", {}) + property_annotations = getattr(properties, "__annotations__", {}) for property_name in arg: if property_name in required_property_names: seen_required_properties.add(property_name) @@ -1551,17 +1783,14 @@ def __validate_arg_presence(cls, arg): cls.__name__, len(missing_required_arguments), "s" if len(missing_required_arguments) > 1 else "", - missing_required_arguments + missing_required_arguments, ) ) if invalid_arguments: invalid_arguments.sort() raise ApiTypeError( "{} was passed {} invalid argument{}: {}".format( - cls.__name__, - len(invalid_arguments), - "s" if len(invalid_arguments) > 1 else "", - invalid_arguments + cls.__name__, len(invalid_arguments), "s" if len(invalid_arguments) > 1 else "", invalid_arguments ) ) @@ -1580,11 +1809,11 @@ def __validate_args(cls, arg, validation_metadata: ValidationMetadata): ApiTypeError - for missing required arguments, or for invalid properties """ path_to_schemas = {} - additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema) - properties = getattr(cls.MetaOapg, 'properties', {}) - property_annotations = getattr(properties, '__annotations__', {}) + additional_properties = getattr(cls.MetaOapg, "additional_properties", UnsetAnyTypeSchema) + properties = getattr(cls.MetaOapg, "properties", {}) + property_annotations = getattr(properties, "__annotations__", {}) for property_name, value in arg.items(): - path_to_item = validation_metadata.path_to_item+(property_name,) + path_to_item = validation_metadata.path_to_item + (property_name,) if property_name in property_annotations: schema = property_annotations[property_name] elif additional_properties is not NotAnyTypeSchema: @@ -1598,15 +1827,17 @@ def __validate_args(cls, arg, validation_metadata: ValidationMetadata): continue schema = additional_properties else: - raise ApiTypeError('Unable to find schema for value={} in class={} at path_to_item={}'.format( - value, cls, validation_metadata.path_to_item+(property_name,) - )) + raise ApiTypeError( + "Unable to find schema for value={} in class={} at path_to_item={}".format( + value, cls, validation_metadata.path_to_item + (property_name,) + ) + ) schema = cls._get_class_oapg(schema) arg_validation_metadata = ValidationMetadata( from_server=validation_metadata.from_server, configuration=validation_metadata.configuration, path_to_item=path_to_item, - validated_path_to_schemas=validation_metadata.validated_path_to_schemas + validated_path_to_schemas=validation_metadata.validated_path_to_schemas, ) if arg_validation_metadata.validation_ran_earlier(schema): add_deeper_validated_schemas(arg_validation_metadata, path_to_schemas) @@ -1616,31 +1847,31 @@ def __validate_args(cls, arg, validation_metadata: ValidationMetadata): return path_to_schemas @classmethod - def __check_dict_validations( - cls, - arg, - validation_metadata: ValidationMetadata - ): - if not hasattr(cls, 'MetaOapg'): + def __check_dict_validations(cls, arg, validation_metadata: ValidationMetadata): + if not hasattr(cls, "MetaOapg"): return - if (cls._is_json_validation_enabled_oapg('maxProperties', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'max_properties') and - len(arg) > cls.MetaOapg.max_properties): + if ( + cls._is_json_validation_enabled_oapg("maxProperties", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "max_properties") + and len(arg) > cls.MetaOapg.max_properties + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of properties must be less than or equal to", constraint_value=cls.MetaOapg.max_properties, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('minProperties', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'min_properties') and - len(arg) < cls.MetaOapg.min_properties): + if ( + cls._is_json_validation_enabled_oapg("minProperties", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "min_properties") + and len(arg) < cls.MetaOapg.min_properties + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of properties must be greater than or equal to", constraint_value=cls.MetaOapg.min_properties, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) @classmethod @@ -1680,14 +1911,15 @@ def _validate_oapg( disc_prop_name = list(discriminator.keys())[0] cls._ensure_discriminator_value_present_oapg(disc_prop_name, validation_metadata, arg) discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_prop_name, disc_payload_value=arg[disc_prop_name]) + disc_property_name=disc_prop_name, disc_payload_value=arg[disc_prop_name] + ) if discriminated_cls is None: raise ApiValueError( "Invalid discriminator value was passed in to {}.{} Only the values {} are allowed at {}".format( cls.__name__, disc_prop_name, list(discriminator[disc_prop_name].keys()), - validation_metadata.path_to_item + (disc_prop_name,) + validation_metadata.path_to_item + (disc_prop_name,), ) ) updated_vm = ValidationMetadata( @@ -1695,7 +1927,7 @@ def _validate_oapg( from_server=validation_metadata.from_server, path_to_item=validation_metadata.path_to_item, seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas + validated_path_to_schemas=validation_metadata.validated_path_to_schemas, ) if updated_vm.validation_ran_earlier(discriminated_cls): add_deeper_validated_schemas(updated_vm, _path_to_schemas) @@ -1709,7 +1941,7 @@ def _get_properties_oapg( cls, arg: typing.Dict[str, typing.Any], path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] + path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]], ): """ DictBase _get_properties_oapg, this is how properties are set @@ -1721,9 +1953,7 @@ def _get_properties_oapg( property_path_to_item = path_to_item + (property_name_js,) property_cls = path_to_schemas[property_path_to_item] new_value = property_cls._get_new_instance_without_conversion_oapg( - value, - property_path_to_item, - path_to_schemas + value, property_path_to_item, path_to_schemas ) dict_items[property_name_js] = new_value @@ -1731,7 +1961,7 @@ def _get_properties_oapg( def __setattr__(self, name: str, value: typing.Any): if not isinstance(self, FileIO): - raise AttributeError('property setting not supported on immutable instances') + raise AttributeError("property setting not supported on immutable instances") def __getattr__(self, name: str): """ @@ -1758,7 +1988,7 @@ def __getitem__(self, name: str): return super().__getattr__(name) return super().__getitem__(name) - def get_item_oapg(self, name: str) -> typing.Union['AnyTypeSchema', Unset]: + def get_item_oapg(self, name: str) -> typing.Union["AnyTypeSchema", Unset]: # dict_instance[name] accessor if not isinstance(self, frozendict.frozendict): raise NotImplementedError() @@ -1769,10 +1999,30 @@ def get_item_oapg(self, name: str) -> typing.Union['AnyTypeSchema', Unset]: def cast_to_allowed_types( - arg: typing.Union[str, date, datetime, uuid.UUID, decimal.Decimal, int, float, None, dict, frozendict.frozendict, list, tuple, bytes, Schema, io.FileIO, io.BufferedReader], + arg: typing.Union[ + str, + date, + datetime, + uuid.UUID, + decimal.Decimal, + int, + float, + None, + dict, + frozendict.frozendict, + list, + tuple, + bytes, + Schema, + io.FileIO, + io.BufferedReader, + ], from_server: bool, - validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]], - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']), + validated_path_to_schemas: typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], + typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], + ], + path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(["args[0]"]), ) -> typing.Union[frozendict.frozendict, tuple, decimal.Decimal, str, bytes, BoolClass, NoneClass, FileIO]: """ Casts the input payload arg into the allowed types @@ -1804,11 +2054,18 @@ def cast_to_allowed_types( schema_classes.add(cls) validated_path_to_schemas[path_to_item] = schema_classes - type_error = ApiTypeError(f"Invalid type. Required value type is str and passed type was {type(arg)} at {path_to_item}") + type_error = ApiTypeError( + f"Invalid type. Required value type is str and passed type was {type(arg)} at {path_to_item}" + ) if isinstance(arg, str): return str(arg) elif isinstance(arg, (dict, frozendict.frozendict)): - return frozendict.frozendict({key: cast_to_allowed_types(val, from_server, validated_path_to_schemas, path_to_item + (key,)) for key, val in arg.items()}) + return frozendict.frozendict( + { + key: cast_to_allowed_types(val, from_server, validated_path_to_schemas, path_to_item + (key,)) + for key, val in arg.items() + } + ) elif isinstance(arg, (bool, BoolClass)): """ this check must come before isinstance(arg, (int, float)) @@ -1824,10 +2081,15 @@ def cast_to_allowed_types( if decimal_from_float.as_integer_ratio()[1] == 1: # 9.0 -> Decimal('9.0') # 3.4028234663852886e+38 -> Decimal('340282346638528859811704183484516925440.0') - return decimal.Decimal(str(decimal_from_float)+'.0') + return decimal.Decimal(str(decimal_from_float) + ".0") return decimal_from_float elif isinstance(arg, (tuple, list)): - return tuple([cast_to_allowed_types(item, from_server, validated_path_to_schemas, path_to_item + (i,)) for i, item in enumerate(arg)]) + return tuple( + [ + cast_to_allowed_types(item, from_server, validated_path_to_schemas, path_to_item + (i,)) + for i, item in enumerate(arg) + ] + ) elif isinstance(arg, (none_type, NoneClass)): return NoneClass.NONE elif isinstance(arg, (date, datetime)): @@ -1844,11 +2106,10 @@ def cast_to_allowed_types( return bytes(arg) elif isinstance(arg, (io.FileIO, io.BufferedReader)): return FileIO(arg) - raise ValueError('Invalid type passed in got input={} type={}'.format(arg, type(arg))) + raise ValueError("Invalid type passed in got input={} type={}".format(arg, type(arg))) class ComposedBase(Discriminable): - @classmethod def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata): path_to_schemas = defaultdict(set) @@ -1898,12 +2159,7 @@ def __get_oneof_class( return path_to_schemas @classmethod - def __get_anyof_classes( - cls, - arg, - discriminated_cls, - validation_metadata: ValidationMetadata - ): + def __get_anyof_classes(cls, arg, discriminated_cls, validation_metadata: ValidationMetadata): anyof_classes = [] path_to_schemas = defaultdict(set) for anyof_cls in cls.MetaOapg.any_of(): @@ -1932,7 +2188,10 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: + ) -> typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], + typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], + ]: """ ComposedBase _validate_oapg We return dynamic classes of different bases depending upon the inputs @@ -1956,12 +2215,12 @@ def _validate_oapg( from_server=validation_metadata.from_server, path_to_item=validation_metadata.path_to_item, seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas + validated_path_to_schemas=validation_metadata.validated_path_to_schemas, ) # process composed schema discriminator = None - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'discriminator'): + if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "discriminator"): discriminator = cls.MetaOapg.discriminator() discriminated_cls = None if discriminator and arg and isinstance(arg, frozendict.frozendict): @@ -1969,7 +2228,8 @@ def _validate_oapg( cls._ensure_discriminator_value_present_oapg(disc_property_name, updated_vm, arg) # get discriminated_cls by looking at the dict in the current class discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=arg[disc_property_name]) + disc_property_name=disc_property_name, disc_payload_value=arg[disc_property_name] + ) if discriminated_cls is None: raise ApiValueError( "Invalid discriminator value '{}' was passed in to {}.{} Only the values {} are allowed at {}".format( @@ -1977,29 +2237,25 @@ def _validate_oapg( cls.__name__, disc_property_name, list(discriminator[disc_property_name].keys()), - updated_vm.path_to_item + (disc_property_name,) + updated_vm.path_to_item + (disc_property_name,), ) ) - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'all_of'): + if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "all_of"): other_path_to_schemas = cls.__get_allof_classes(arg, validation_metadata=updated_vm) update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'one_of'): + if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "one_of"): other_path_to_schemas = cls.__get_oneof_class( - arg, - discriminated_cls=discriminated_cls, - validation_metadata=updated_vm + arg, discriminated_cls=discriminated_cls, validation_metadata=updated_vm ) update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'any_of'): + if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "any_of"): other_path_to_schemas = cls.__get_anyof_classes( - arg, - discriminated_cls=discriminated_cls, - validation_metadata=updated_vm + arg, discriminated_cls=discriminated_cls, validation_metadata=updated_vm ) update(path_to_schemas, other_path_to_schemas) not_cls = None - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'not_schema'): + if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "not_schema"): not_cls = cls.MetaOapg.not_schema not_cls = cls._get_class_oapg(not_cls) if not_cls: @@ -2038,37 +2294,29 @@ class ComposedSchema( BoolBase, NoneBase, Schema, - NoneFrozenDictTupleStrDecimalBoolMixin + NoneFrozenDictTupleStrDecimalBoolMixin, ): @classmethod def from_openapi_data_oapg(cls, *args: typing.Any, _configuration: typing.Optional[Configuration] = None, **kwargs): if not args: if not kwargs: - raise ApiTypeError('{} is missing required input data in args or kwargs'.format(cls.__name__)) - args = (kwargs, ) + raise ApiTypeError("{} is missing required input data in args or kwargs".format(cls.__name__)) + args = (kwargs,) return super().from_openapi_data_oapg(args[0], _configuration=_configuration) -class ListSchema( - ListBase, - Schema, - TupleMixin -): - +class ListSchema(ListBase, Schema, TupleMixin): @classmethod - def from_openapi_data_oapg(cls, arg: typing.List[typing.Any], _configuration: typing.Optional[Configuration] = None): + def from_openapi_data_oapg( + cls, arg: typing.List[typing.Any], _configuration: typing.Optional[Configuration] = None + ): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[typing.List[typing.Any], typing.Tuple[typing.Any]], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) -class NoneSchema( - NoneBase, - Schema, - NoneMixin -): - +class NoneSchema(NoneBase, Schema, NoneMixin): @classmethod def from_openapi_data_oapg(cls, arg: None, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) @@ -2077,18 +2325,16 @@ def __new__(cls, _arg: None, **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) -class NumberSchema( - NumberBase, - Schema, - DecimalMixin -): +class NumberSchema(NumberBase, Schema, DecimalMixin): """ This is used for type: number with no format Both integers AND floats are accepted """ @classmethod - def from_openapi_data_oapg(cls, arg: typing.Union[int, float], _configuration: typing.Optional[Configuration] = None): + def from_openapi_data_oapg( + cls, arg: typing.Union[int, float], _configuration: typing.Optional[Configuration] = None + ): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[decimal.Decimal, int, float], **kwargs: Configuration): @@ -2107,7 +2353,6 @@ def as_int_oapg(self) -> int: @classmethod def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): if isinstance(arg, decimal.Decimal): - denominator = arg.as_integer_ratio()[-1] if denominator != 1: raise ApiValueError( @@ -2129,7 +2374,6 @@ def _validate_oapg( class IntSchema(IntBase, NumberSchema): - @classmethod def from_openapi_data_oapg(cls, arg: int, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) @@ -2163,10 +2407,7 @@ def _validate_oapg( return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Int32Schema( - Int32Base, - IntSchema -): +class Int32Schema(Int32Base, IntSchema): pass @@ -2195,16 +2436,13 @@ def _validate_oapg( return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Int64Schema( - Int64Base, - IntSchema -): +class Int64Schema(Int64Base, IntSchema): pass class Float32Base: - __inclusive_minimum = decimal.Decimal(-3.4028234663852886e+38) - __inclusive_maximum = decimal.Decimal(3.4028234663852886e+38) + __inclusive_minimum = decimal.Decimal(-3.4028234663852886e38) + __inclusive_maximum = decimal.Decimal(3.4028234663852886e38) @classmethod def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): @@ -2227,19 +2465,15 @@ def _validate_oapg( return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Float32Schema( - Float32Base, - NumberSchema -): - +class Float32Schema(Float32Base, NumberSchema): @classmethod def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) class Float64Base: - __inclusive_minimum = decimal.Decimal(-1.7976931348623157E+308) - __inclusive_maximum = decimal.Decimal(1.7976931348623157E+308) + __inclusive_minimum = decimal.Decimal(-1.7976931348623157e308) + __inclusive_maximum = decimal.Decimal(1.7976931348623157e308) @classmethod def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): @@ -2261,22 +2495,15 @@ def _validate_oapg( cls.__validate_format(arg, validation_metadata=validation_metadata) return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Float64Schema( - Float64Base, - NumberSchema -): +class Float64Schema(Float64Base, NumberSchema): @classmethod def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): # todo check format return super().from_openapi_data_oapg(arg, _configuration=_configuration) -class StrSchema( - StrBase, - Schema, - StrMixin -): +class StrSchema(StrBase, Schema, StrMixin): """ date + datetime string types must inherit from this class That is because one can validate a str payload as both: @@ -2285,7 +2512,7 @@ class StrSchema( """ @classmethod - def from_openapi_data_oapg(cls, arg: str, _configuration: typing.Optional[Configuration] = None) -> 'StrSchema': + def from_openapi_data_oapg(cls, arg: str, _configuration: typing.Optional[Configuration] = None) -> "StrSchema": return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: Configuration): @@ -2293,25 +2520,21 @@ def __new__(cls, _arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: C class UUIDSchema(UUIDBase, StrSchema): - def __new__(cls, _arg: typing.Union[str, uuid.UUID], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) class DateSchema(DateBase, StrSchema): - def __new__(cls, _arg: typing.Union[str, date], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) class DateTimeSchema(DateTimeBase, StrSchema): - def __new__(cls, _arg: typing.Union[str, datetime], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) class DecimalSchema(DecimalBase, StrSchema): - def __new__(cls, _arg: str, **kwargs: Configuration): """ Note: Decimals may not be passed in because cast_to_allowed_types is only invoked once for payloads @@ -2324,21 +2547,16 @@ def __new__(cls, _arg: str, **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) -class BytesSchema( - Schema, - BytesMixin -): +class BytesSchema(Schema, BytesMixin): """ this class will subclass bytes and is immutable """ + def __new__(cls, _arg: bytes, **kwargs: Configuration): return super(Schema, cls).__new__(cls, _arg) -class FileSchema( - Schema, - FileMixin -): +class FileSchema(Schema, FileMixin): """ This class is NOT immutable Dynamic classes are built using it for example when AnyType allows in binary data @@ -2364,12 +2582,7 @@ class BinaryBase: pass -class BinarySchema( - ComposedBase, - BinaryBase, - Schema, - BinaryMixin -): +class BinarySchema(ComposedBase, BinaryBase, Schema, BinaryMixin): class MetaOapg: @staticmethod def one_of(): @@ -2382,12 +2595,7 @@ def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwar return super().__new__(cls, _arg) -class BoolSchema( - BoolBase, - Schema, - BoolMixin -): - +class BoolSchema(BoolBase, Schema, BoolMixin): @classmethod def from_openapi_data_oapg(cls, arg: bool, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) @@ -2397,14 +2605,7 @@ def __new__(cls, _arg: bool, **kwargs: ValidationMetadata): class AnyTypeSchema( - DictBase, - ListBase, - NumberBase, - StrBase, - BoolBase, - NoneBase, - Schema, - NoneFrozenDictTupleStrDecimalBoolFileBytesMixin + DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase, Schema, NoneFrozenDictTupleStrDecimalBoolFileBytesMixin ): # Python representation of a schema defined as true or {} pass @@ -2431,7 +2632,7 @@ def __new__( cls, *_args, _configuration: typing.Optional[Configuration] = None, - ) -> 'NotAnyTypeSchema': + ) -> "NotAnyTypeSchema": return super().__new__( cls, *_args, @@ -2439,16 +2640,35 @@ def __new__( ) -class DictSchema( - DictBase, - Schema, - FrozenDictMixin -): +class DictSchema(DictBase, Schema, FrozenDictMixin): @classmethod - def from_openapi_data_oapg(cls, arg: typing.Dict[str, typing.Any], _configuration: typing.Optional[Configuration] = None): + def from_openapi_data_oapg( + cls, arg: typing.Dict[str, typing.Any], _configuration: typing.Optional[Configuration] = None + ): return super().from_openapi_data_oapg(arg, _configuration=_configuration) - def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict], **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, bytes, Schema, Unset, ValidationMetadata]): + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict], + **kwargs: typing.Union[ + dict, + frozendict.frozendict, + list, + tuple, + decimal.Decimal, + float, + int, + str, + date, + datetime, + bool, + None, + bytes, + Schema, + Unset, + ValidationMetadata, + ], + ): return super().__new__(cls, *_args, **kwargs) @@ -2457,8 +2677,7 @@ def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict], **kwargs: ty @functools.lru_cache() def get_new_class( - class_name: str, - bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...] + class_name: str, bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...] ) -> typing.Type[Schema]: """ Returns a new class that is made with the subclass bases @@ -2472,4 +2691,4 @@ def get_new_class( def log_cache_usage(cache_fn): if LOG_CACHE_USAGE: - print(cache_fn.__name__, cache_fn.cache_info()) \ No newline at end of file + print(cache_fn.__name__, cache_fn.cache_info()) From f5ce732954062e40a243be001e9d6e4380ec75b0 Mon Sep 17 00:00:00 2001 From: Anirudh-Scale Date: Mon, 20 Mar 2023 16:09:22 +0000 Subject: [PATCH 03/11] format isort --- launch/api_client/__init__.py | 14 ++- launch/api_client/api_client.py | 26 ++-- launch/api_client/apis/path_to_api.py | 34 +++-- .../v1_model_bundles_clone_with_changes.py | 4 +- .../paths/v1_model_bundles_model_bundle_id.py | 4 +- .../v1_model_endpoints_model_endpoint_id.py | 12 +- .../paths/v1_model_endpoints_schema_json.py | 4 +- launch/api_client/apis/tags/default_api.py | 62 +++++++--- launch/api_client/configuration.py | 4 +- .../model/batch_job_serialization_format.py | 4 +- .../model/batch_job_serialization_format.pyi | 5 +- launch/api_client/model/batch_job_status.py | 4 +- launch/api_client/model/batch_job_status.pyi | 5 +- launch/api_client/model/callback_auth.py | 4 +- launch/api_client/model/callback_auth.pyi | 5 +- .../api_client/model/callback_basic_auth.py | 4 +- .../api_client/model/callback_basic_auth.pyi | 5 +- launch/api_client/model/callbackm_tls_auth.py | 4 +- .../api_client/model/callbackm_tls_auth.pyi | 5 +- .../model/clone_model_bundle_request.py | 1 + .../model/clone_model_bundle_v1_request.py | 4 +- .../model/clone_model_bundle_v1_request.pyi | 5 +- .../model/create_async_task_response.py | 1 + .../model/create_async_task_v1_response.py | 4 +- .../model/create_async_task_v1_response.pyi | 5 +- .../model/create_batch_job_request.py | 9 +- .../model/create_batch_job_request.pyi | 8 +- .../create_batch_job_resource_requests.py | 4 +- .../create_batch_job_resource_requests.pyi | 5 +- .../model/create_batch_job_response.py | 1 + .../model/create_batch_job_v1_request.py | 12 +- .../model/create_batch_job_v1_request.pyi | 13 +- .../model/create_batch_job_v1_response.py | 4 +- .../model/create_batch_job_v1_response.pyi | 5 +- .../model/create_model_bundle_request.py | 9 +- .../model/create_model_bundle_request.pyi | 8 +- .../model/create_model_bundle_response.py | 1 + .../model/create_model_bundle_v1_request.py | 12 +- .../model/create_model_bundle_v1_request.pyi | 13 +- .../model/create_model_bundle_v1_response.py | 4 +- .../model/create_model_bundle_v1_response.pyi | 5 +- .../model/create_model_endpoint_request.py | 1 + .../model/create_model_endpoint_response.py | 1 + .../model/create_model_endpoint_v1_request.py | 4 +- .../create_model_endpoint_v1_request.pyi | 5 +- .../create_model_endpoint_v1_response.py | 4 +- .../create_model_endpoint_v1_response.pyi | 5 +- .../model/delete_model_endpoint_response.py | 1 + .../delete_model_endpoint_v1_response.py | 4 +- .../delete_model_endpoint_v1_response.pyi | 5 +- .../model/endpoint_predict_request.py | 1 + .../model/endpoint_predict_v1_request.py | 4 +- .../model/endpoint_predict_v1_request.pyi | 5 +- .../model/get_async_task_response.py | 1 + .../model/get_async_task_v1_response.py | 4 +- .../model/get_async_task_v1_response.pyi | 5 +- .../model/get_batch_job_response.py | 1 + .../model/get_batch_job_v1_response.py | 4 +- .../model/get_batch_job_v1_response.pyi | 5 +- .../model/get_model_endpoint_response.py | 9 +- .../model/get_model_endpoint_response.pyi | 8 +- .../model/get_model_endpoint_v1_response.py | 12 +- .../model/get_model_endpoint_v1_response.pyi | 13 +- launch/api_client/model/gpu_type.py | 4 +- launch/api_client/model/gpu_type.pyi | 5 +- .../api_client/model/http_validation_error.py | 4 +- .../model/http_validation_error.pyi | 5 +- .../model/list_model_bundles_response.py | 1 + .../model/list_model_bundles_v1_response.py | 8 +- .../model/list_model_bundles_v1_response.pyi | 5 +- .../model/list_model_endpoints_response.py | 5 +- .../model/list_model_endpoints_response.pyi | 4 +- .../model/list_model_endpoints_v1_response.py | 8 +- .../list_model_endpoints_v1_response.pyi | 9 +- .../model/model_bundle_environment_params.py | 8 +- .../model/model_bundle_environment_params.pyi | 9 +- .../model/model_bundle_framework.py | 1 + .../model/model_bundle_framework_type.py | 4 +- .../model/model_bundle_framework_type.pyi | 5 +- .../api_client/model/model_bundle_order_by.py | 4 +- .../model/model_bundle_order_by.pyi | 5 +- .../model/model_bundle_packaging_type.py | 4 +- .../model/model_bundle_packaging_type.pyi | 5 +- .../api_client/model/model_bundle_response.py | 9 +- .../model/model_bundle_response.pyi | 8 +- .../model/model_bundle_v1_response.py | 12 +- .../model/model_bundle_v1_response.pyi | 13 +- .../model/model_endpoint_deployment_state.py | 4 +- .../model/model_endpoint_deployment_state.pyi | 5 +- .../model/model_endpoint_order_by.py | 4 +- .../model/model_endpoint_order_by.pyi | 5 +- .../model/model_endpoint_resource_state.py | 4 +- .../model/model_endpoint_resource_state.pyi | 5 +- .../api_client/model/model_endpoint_status.py | 4 +- .../model/model_endpoint_status.pyi | 5 +- .../api_client/model/model_endpoint_type.py | 4 +- .../api_client/model/model_endpoint_type.pyi | 5 +- launch/api_client/model/request_schema.py | 4 +- launch/api_client/model/request_schema.pyi | 5 +- launch/api_client/model/response_schema.py | 4 +- launch/api_client/model/response_schema.pyi | 5 +- .../model/sync_endpoint_predict_response.py | 1 + .../sync_endpoint_predict_v1_response.py | 4 +- .../sync_endpoint_predict_v1_response.pyi | 5 +- launch/api_client/model/task_status.py | 4 +- launch/api_client/model/task_status.pyi | 5 +- .../model/update_batch_job_request.py | 1 + .../model/update_batch_job_response.py | 1 + .../model/update_batch_job_v1_request.py | 4 +- .../model/update_batch_job_v1_request.pyi | 5 +- .../model/update_batch_job_v1_response.py | 4 +- .../model/update_batch_job_v1_response.pyi | 5 +- .../model/update_model_endpoint_request.py | 1 + .../model/update_model_endpoint_response.py | 1 + .../model/update_model_endpoint_v1_request.py | 4 +- .../update_model_endpoint_v1_request.pyi | 5 +- .../update_model_endpoint_v1_response.py | 4 +- .../update_model_endpoint_v1_response.pyi | 5 +- launch/api_client/model/validation_error.py | 4 +- launch/api_client/model/validation_error.pyi | 5 +- launch/api_client/models/__init__.py | 116 +++++++++++++----- launch/api_client/paths/healthcheck/get.py | 14 +-- launch/api_client/paths/healthcheck/get.pyi | 15 +-- launch/api_client/paths/healthz/get.py | 14 +-- launch/api_client/paths/healthz/get.pyi | 15 +-- launch/api_client/paths/readyz/get.py | 14 +-- launch/api_client/paths/readyz/get.pyi | 15 +-- .../api_client/paths/v1_async_tasks/post.py | 23 ++-- .../api_client/paths/v1_async_tasks/post.pyi | 24 ++-- .../paths/v1_async_tasks_task_id/get.py | 19 ++- .../paths/v1_async_tasks_task_id/get.pyi | 20 ++- launch/api_client/paths/v1_batch_jobs/post.py | 23 ++-- .../api_client/paths/v1_batch_jobs/post.pyi | 24 ++-- .../paths/v1_batch_jobs_batch_job_id/get.py | 19 ++- .../paths/v1_batch_jobs_batch_job_id/get.pyi | 16 +-- .../paths/v1_batch_jobs_batch_job_id/put.py | 23 ++-- .../paths/v1_batch_jobs_batch_job_id/put.pyi | 24 ++-- .../api_client/paths/v1_model_bundles/get.py | 21 ++-- .../api_client/paths/v1_model_bundles/get.pyi | 22 ++-- .../api_client/paths/v1_model_bundles/post.py | 23 ++-- .../paths/v1_model_bundles/post.pyi | 24 ++-- .../post.py | 23 ++-- .../post.pyi | 24 ++-- .../paths/v1_model_bundles_latest/get.py | 19 ++- .../paths/v1_model_bundles_latest/get.pyi | 18 ++- .../v1_model_bundles_model_bundle_id/get.py | 19 ++- .../v1_model_bundles_model_bundle_id/get.pyi | 18 ++- .../paths/v1_model_endpoints/get.py | 23 ++-- .../paths/v1_model_endpoints/get.pyi | 20 ++- .../paths/v1_model_endpoints/post.py | 23 ++-- .../paths/v1_model_endpoints/post.pyi | 24 ++-- .../paths/v1_model_endpoints_api/get.py | 14 +-- .../paths/v1_model_endpoints_api/get.pyi | 15 +-- .../delete.py | 19 ++- .../delete.pyi | 20 ++- .../get.py | 19 ++- .../get.pyi | 20 ++- .../put.py | 23 ++-- .../put.pyi | 24 ++-- .../v1_model_endpoints_schema_json/get.py | 14 +-- .../v1_model_endpoints_schema_json/get.pyi | 15 +-- launch/api_client/paths/v1_sync_tasks/post.py | 23 ++-- .../api_client/paths/v1_sync_tasks/post.pyi | 24 ++-- launch/api_client/rest.py | 3 +- launch/api_client/schemas.py | 17 +-- 165 files changed, 905 insertions(+), 784 deletions(-) diff --git a/launch/api_client/__init__.py b/launch/api_client/__init__.py index 290cb8df..528259b2 100644 --- a/launch/api_client/__init__.py +++ b/launch/api_client/__init__.py @@ -20,9 +20,11 @@ from launch.api_client.configuration import Configuration # import exceptions -from launch.api_client.exceptions import OpenApiException -from launch.api_client.exceptions import ApiAttributeError -from launch.api_client.exceptions import ApiTypeError -from launch.api_client.exceptions import ApiValueError -from launch.api_client.exceptions import ApiKeyError -from launch.api_client.exceptions import ApiException +from launch.api_client.exceptions import ( + ApiAttributeError, + ApiException, + ApiKeyError, + ApiTypeError, + ApiValueError, + OpenApiException, +) diff --git a/launch/api_client/api_client.py b/launch/api_client/api_client.py index ed22d00e..a18d0ec5 100644 --- a/launch/api_client/api_client.py +++ b/launch/api_client/api_client.py @@ -8,39 +8,39 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -from decimal import Decimal -import enum +import atexit import email +import enum +import io import json import os -import io -import atexit -from multiprocessing.pool import ThreadPool import re import tempfile import typing +from dataclasses import dataclass +from decimal import Decimal +from multiprocessing.pool import ThreadPool +from urllib.parse import quote, urlparse + +import frozendict import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict -from urllib.parse import urlparse, quote from urllib3.fields import RequestField as RequestFieldBase -import frozendict - from launch.api_client import rest from launch.api_client.configuration import Configuration from launch.api_client.exceptions import ApiTypeError, ApiValueError from launch.api_client.schemas import ( - NoneClass, + BinarySchema, BoolClass, - Schema, FileIO, - BinarySchema, + NoneClass, + Schema, + Unset, date, datetime, none_type, - Unset, unset, ) diff --git a/launch/api_client/apis/path_to_api.py b/launch/api_client/apis/path_to_api.py index 6f938fef..89fa65fe 100644 --- a/launch/api_client/apis/path_to_api.py +++ b/launch/api_client/apis/path_to_api.py @@ -1,22 +1,38 @@ import typing_extensions -from launch.api_client.paths import PathValues from launch.api_client.apis.paths.healthcheck import Healthcheck from launch.api_client.apis.paths.healthz import Healthz from launch.api_client.apis.paths.readyz import Readyz from launch.api_client.apis.paths.v1_async_tasks import V1AsyncTasks -from launch.api_client.apis.paths.v1_async_tasks_task_id import V1AsyncTasksTaskId +from launch.api_client.apis.paths.v1_async_tasks_task_id import ( + V1AsyncTasksTaskId, +) from launch.api_client.apis.paths.v1_batch_jobs import V1BatchJobs -from launch.api_client.apis.paths.v1_batch_jobs_batch_job_id import V1BatchJobsBatchJobId +from launch.api_client.apis.paths.v1_batch_jobs_batch_job_id import ( + V1BatchJobsBatchJobId, +) 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 -from launch.api_client.apis.paths.v1_model_bundles_latest import V1ModelBundlesLatest -from launch.api_client.apis.paths.v1_model_bundles_model_bundle_id import V1ModelBundlesModelBundleId +from launch.api_client.apis.paths.v1_model_bundles_clone_with_changes import ( + V1ModelBundlesCloneWithChanges, +) +from launch.api_client.apis.paths.v1_model_bundles_latest import ( + V1ModelBundlesLatest, +) +from launch.api_client.apis.paths.v1_model_bundles_model_bundle_id import ( + V1ModelBundlesModelBundleId, +) from launch.api_client.apis.paths.v1_model_endpoints import V1ModelEndpoints -from launch.api_client.apis.paths.v1_model_endpoints_api import V1ModelEndpointsApi -from launch.api_client.apis.paths.v1_model_endpoints_schema_json import V1ModelEndpointsSchemaJson -from launch.api_client.apis.paths.v1_model_endpoints_model_endpoint_id import V1ModelEndpointsModelEndpointId +from launch.api_client.apis.paths.v1_model_endpoints_api import ( + V1ModelEndpointsApi, +) +from launch.api_client.apis.paths.v1_model_endpoints_model_endpoint_id import ( + V1ModelEndpointsModelEndpointId, +) +from launch.api_client.apis.paths.v1_model_endpoints_schema_json import ( + V1ModelEndpointsSchemaJson, +) from launch.api_client.apis.paths.v1_sync_tasks import V1SyncTasks +from launch.api_client.paths import PathValues PathToApi = typing_extensions.TypedDict( "PathToApi", diff --git a/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py b/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py index caf9cf08..df0644e3 100644 --- a/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py +++ b/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py @@ -1,4 +1,6 @@ -from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ApiForpost +from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ( + ApiForpost, +) class V1ModelBundlesCloneWithChanges( diff --git a/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py b/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py index c513ff35..0e646257 100644 --- a/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py +++ b/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py @@ -1,4 +1,6 @@ -from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ApiForget +from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ( + ApiForget, +) class V1ModelBundlesModelBundleId( diff --git a/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py b/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py index a4bd9dfb..7f4d3e3a 100644 --- a/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py +++ b/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py @@ -1,6 +1,12 @@ -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ApiForget -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ApiForput -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ApiFordelete +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ( + ApiFordelete, +) +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ( + ApiForget, +) +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ( + ApiForput, +) class V1ModelEndpointsModelEndpointId( diff --git a/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py b/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py index de361413..7c62f95b 100644 --- a/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py +++ b/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py @@ -1,4 +1,6 @@ -from launch.api_client.paths.v1_model_endpoints_schema_json.get import ApiForget +from launch.api_client.paths.v1_model_endpoints_schema_json.get import ( + ApiForget, +) class V1ModelEndpointsSchemaJson( diff --git a/launch/api_client/apis/tags/default_api.py b/launch/api_client/apis/tags/default_api.py index 21691fd3..6a2bb4aa 100644 --- a/launch/api_client/apis/tags/default_api.py +++ b/launch/api_client/apis/tags/default_api.py @@ -9,36 +9,62 @@ Generated by: https://openapi-generator.tech """ +from launch.api_client.paths.healthcheck.get import HealthcheckHealthcheckGet +from launch.api_client.paths.healthz.get import HealthcheckHealthzGet +from launch.api_client.paths.readyz.get import HealthcheckReadyzGet +from launch.api_client.paths.v1_async_tasks.post import ( + CreateAsyncInferenceTaskV1AsyncTasksPost, +) +from launch.api_client.paths.v1_async_tasks_task_id.get import ( + GetAsyncInferenceTaskV1AsyncTasksTaskIdGet, +) +from launch.api_client.paths.v1_batch_jobs.post import ( + CreateBatchJobV1BatchJobsPost, +) +from launch.api_client.paths.v1_batch_jobs_batch_job_id.get import ( + GetBatchJobV1BatchJobsBatchJobIdGet, +) +from launch.api_client.paths.v1_batch_jobs_batch_job_id.put import ( + UpdateBatchJobV1BatchJobsBatchJobIdPut, +) +from launch.api_client.paths.v1_model_bundles.get import ( + ListModelBundlesV1ModelBundlesGet, +) +from launch.api_client.paths.v1_model_bundles.post import ( + CreateModelBundleV1ModelBundlesPost, +) from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ( CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost, ) -from launch.api_client.paths.v1_async_tasks.post import CreateAsyncInferenceTaskV1AsyncTasksPost -from launch.api_client.paths.v1_batch_jobs.post import CreateBatchJobV1BatchJobsPost -from launch.api_client.paths.v1_model_bundles.post import CreateModelBundleV1ModelBundlesPost -from launch.api_client.paths.v1_model_endpoints.post import CreateModelEndpointV1ModelEndpointsPost -from launch.api_client.paths.v1_sync_tasks.post import CreateSyncInferenceTaskV1SyncTasksPost +from launch.api_client.paths.v1_model_bundles_latest.get import ( + GetLatestModelBundleV1ModelBundlesLatestGet, +) +from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ( + GetModelBundleV1ModelBundlesModelBundleIdGet, +) +from launch.api_client.paths.v1_model_endpoints.get import ( + ListModelEndpointsV1ModelEndpointsGet, +) +from launch.api_client.paths.v1_model_endpoints.post import ( + CreateModelEndpointV1ModelEndpointsPost, +) +from launch.api_client.paths.v1_model_endpoints_api.get import ( + GetModelEndpointsApiV1ModelEndpointsApiGet, +) from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ( DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete, ) -from launch.api_client.paths.v1_async_tasks_task_id.get import GetAsyncInferenceTaskV1AsyncTasksTaskIdGet -from launch.api_client.paths.v1_batch_jobs_batch_job_id.get import GetBatchJobV1BatchJobsBatchJobIdGet -from launch.api_client.paths.v1_model_bundles_latest.get import GetLatestModelBundleV1ModelBundlesLatestGet -from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import GetModelBundleV1ModelBundlesModelBundleIdGet from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ( GetModelEndpointV1ModelEndpointsModelEndpointIdGet, ) -from launch.api_client.paths.v1_model_endpoints_api.get import GetModelEndpointsApiV1ModelEndpointsApiGet +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ( + UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut, +) from launch.api_client.paths.v1_model_endpoints_schema_json.get import ( GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet, ) -from launch.api_client.paths.healthcheck.get import HealthcheckHealthcheckGet -from launch.api_client.paths.healthz.get import HealthcheckHealthzGet -from launch.api_client.paths.readyz.get import HealthcheckReadyzGet -from launch.api_client.paths.v1_model_bundles.get import ListModelBundlesV1ModelBundlesGet -from launch.api_client.paths.v1_model_endpoints.get import ListModelEndpointsV1ModelEndpointsGet -from launch.api_client.paths.v1_batch_jobs_batch_job_id.put import UpdateBatchJobV1BatchJobsBatchJobIdPut -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ( - UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut, +from launch.api_client.paths.v1_sync_tasks.post import ( + CreateSyncInferenceTaskV1SyncTasksPost, ) diff --git a/launch/api_client/configuration.py b/launch/api_client/configuration.py index 7807506d..bf4be79b 100644 --- a/launch/api_client/configuration.py +++ b/launch/api_client/configuration.py @@ -13,12 +13,12 @@ import logging import multiprocessing import sys +from http import client as http_client + import urllib3 -from http import client as http_client from launch.api_client.exceptions import ApiValueError - JSON_SCHEMA_VALIDATION_KEYWORDS = { "multipleOf", "maximum", diff --git a/launch/api_client/model/batch_job_serialization_format.py b/launch/api_client/model/batch_job_serialization_format.py index 64095984..7bfc3103 100644 --- a/launch/api_client/model/batch_job_serialization_format.py +++ b/launch/api_client/model/batch_job_serialization_format.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/batch_job_serialization_format.pyi b/launch/api_client/model/batch_job_serialization_format.pyi index 306f694f..7ebc5bff 100644 --- a/launch/api_client/model/batch_job_serialization_format.pyi +++ b/launch/api_client/model/batch_job_serialization_format.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): diff --git a/launch/api_client/model/batch_job_status.py b/launch/api_client/model/batch_job_status.py index b6c5f1c1..e2e71a79 100644 --- a/launch/api_client/model/batch_job_status.py +++ b/launch/api_client/model/batch_job_status.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/batch_job_status.pyi b/launch/api_client/model/batch_job_status.pyi index 92e00149..925b6634 100644 --- a/launch/api_client/model/batch_job_status.pyi +++ b/launch/api_client/model/batch_job_status.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class BatchJobStatus(schemas.EnumBase, schemas.StrSchema): diff --git a/launch/api_client/model/callback_auth.py b/launch/api_client/model/callback_auth.py index 9c0a040b..493310d9 100644 --- a/launch/api_client/model/callback_auth.py +++ b/launch/api_client/model/callback_auth.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/callback_auth.pyi b/launch/api_client/model/callback_auth.pyi index 78418a72..e7193634 100644 --- a/launch/api_client/model/callback_auth.pyi +++ b/launch/api_client/model/callback_auth.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class CallbackAuth( diff --git a/launch/api_client/model/callback_basic_auth.py b/launch/api_client/model/callback_basic_auth.py index 41648753..7e2027d6 100644 --- a/launch/api_client/model/callback_basic_auth.py +++ b/launch/api_client/model/callback_basic_auth.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/callback_basic_auth.pyi b/launch/api_client/model/callback_basic_auth.pyi index 3420fd8f..39f43b29 100644 --- a/launch/api_client/model/callback_basic_auth.pyi +++ b/launch/api_client/model/callback_basic_auth.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class CallbackBasicAuth(schemas.DictSchema): diff --git a/launch/api_client/model/callbackm_tls_auth.py b/launch/api_client/model/callbackm_tls_auth.py index fcef6e85..c153d503 100644 --- a/launch/api_client/model/callbackm_tls_auth.py +++ b/launch/api_client/model/callbackm_tls_auth.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/callbackm_tls_auth.pyi b/launch/api_client/model/callbackm_tls_auth.pyi index c665b838..ef8b7dc0 100644 --- a/launch/api_client/model/callbackm_tls_auth.pyi +++ b/launch/api_client/model/callbackm_tls_auth.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class CallbackmTLSAuth(schemas.DictSchema): diff --git a/launch/api_client/model/clone_model_bundle_request.py b/launch/api_client/model/clone_model_bundle_request.py index 777c6c50..02ca728c 100644 --- a/launch/api_client/model/clone_model_bundle_request.py +++ b/launch/api_client/model/clone_model_bundle_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/clone_model_bundle_v1_request.py b/launch/api_client/model/clone_model_bundle_v1_request.py index 2af569ad..dc711b84 100644 --- a/launch/api_client/model/clone_model_bundle_v1_request.py +++ b/launch/api_client/model/clone_model_bundle_v1_request.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/clone_model_bundle_v1_request.pyi b/launch/api_client/model/clone_model_bundle_v1_request.pyi index d8afa0ae..dc37a0dc 100644 --- a/launch/api_client/model/clone_model_bundle_v1_request.pyi +++ b/launch/api_client/model/clone_model_bundle_v1_request.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class CloneModelBundleV1Request(schemas.DictSchema): diff --git a/launch/api_client/model/create_async_task_response.py b/launch/api_client/model/create_async_task_response.py index ad871abc..8944ed10 100644 --- a/launch/api_client/model/create_async_task_response.py +++ b/launch/api_client/model/create_async_task_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/create_async_task_v1_response.py b/launch/api_client/model/create_async_task_v1_response.py index 07676dbc..0acca935 100644 --- a/launch/api_client/model/create_async_task_v1_response.py +++ b/launch/api_client/model/create_async_task_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/create_async_task_v1_response.pyi b/launch/api_client/model/create_async_task_v1_response.pyi index a59f858a..519e6dcd 100644 --- a/launch/api_client/model/create_async_task_v1_response.pyi +++ b/launch/api_client/model/create_async_task_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class CreateAsyncTaskV1Response(schemas.DictSchema): diff --git a/launch/api_client/model/create_batch_job_request.py b/launch/api_client/model/create_batch_job_request.py index ff1b9340..52864d0c 100644 --- a/launch/api_client/model/create_batch_job_request.py +++ b/launch/api_client/model/create_batch_job_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -232,5 +233,9 @@ def __new__( ) -from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat -from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests +from launch.api_client.model.batch_job_serialization_format import ( + BatchJobSerializationFormat, +) +from launch.api_client.model.create_batch_job_resource_requests import ( + CreateBatchJobResourceRequests, +) diff --git a/launch/api_client/model/create_batch_job_request.pyi b/launch/api_client/model/create_batch_job_request.pyi index 0107d0d8..a732e42e 100644 --- a/launch/api_client/model/create_batch_job_request.pyi +++ b/launch/api_client/model/create_batch_job_request.pyi @@ -205,5 +205,9 @@ class CreateBatchJobRequest(schemas.DictSchema): **kwargs, ) -from launch_client.model.batch_job_serialization_format import BatchJobSerializationFormat -from launch_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests +from launch_client.model.batch_job_serialization_format import ( + BatchJobSerializationFormat, +) +from launch_client.model.create_batch_job_resource_requests import ( + CreateBatchJobResourceRequests, +) diff --git a/launch/api_client/model/create_batch_job_resource_requests.py b/launch/api_client/model/create_batch_job_resource_requests.py index f37f8a06..48c4adb1 100644 --- a/launch/api_client/model/create_batch_job_resource_requests.py +++ b/launch/api_client/model/create_batch_job_resource_requests.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/create_batch_job_resource_requests.pyi b/launch/api_client/model/create_batch_job_resource_requests.pyi index fcbe8e04..c3f466a3 100644 --- a/launch/api_client/model/create_batch_job_resource_requests.pyi +++ b/launch/api_client/model/create_batch_job_resource_requests.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class CreateBatchJobResourceRequests(schemas.DictSchema): diff --git a/launch/api_client/model/create_batch_job_response.py b/launch/api_client/model/create_batch_job_response.py index 2b2c3325..f140358a 100644 --- a/launch/api_client/model/create_batch_job_response.py +++ b/launch/api_client/model/create_batch_job_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/create_batch_job_v1_request.py b/launch/api_client/model/create_batch_job_v1_request.py index 4e4bc41b..0dfcde1b 100644 --- a/launch/api_client/model/create_batch_job_v1_request.py +++ b/launch/api_client/model/create_batch_job_v1_request.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 @@ -227,5 +227,9 @@ def __new__( ) -from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat -from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests +from launch.api_client.model.batch_job_serialization_format import ( + BatchJobSerializationFormat, +) +from launch.api_client.model.create_batch_job_resource_requests import ( + CreateBatchJobResourceRequests, +) diff --git a/launch/api_client/model/create_batch_job_v1_request.pyi b/launch/api_client/model/create_batch_job_v1_request.pyi index 4ce47ef4..bca2db17 100644 --- a/launch/api_client/model/create_batch_job_v1_request.pyi +++ b/launch/api_client/model/create_batch_job_v1_request.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class CreateBatchJobV1Request(schemas.DictSchema): @@ -200,5 +199,9 @@ class CreateBatchJobV1Request(schemas.DictSchema): **kwargs, ) -from launch_client.model.batch_job_serialization_format import BatchJobSerializationFormat -from launch_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests +from launch_client.model.batch_job_serialization_format import ( + BatchJobSerializationFormat, +) +from launch_client.model.create_batch_job_resource_requests import ( + CreateBatchJobResourceRequests, +) diff --git a/launch/api_client/model/create_batch_job_v1_response.py b/launch/api_client/model/create_batch_job_v1_response.py index aff4d6d0..5db054c8 100644 --- a/launch/api_client/model/create_batch_job_v1_response.py +++ b/launch/api_client/model/create_batch_job_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/create_batch_job_v1_response.pyi b/launch/api_client/model/create_batch_job_v1_response.pyi index 314712bd..01665b22 100644 --- a/launch/api_client/model/create_batch_job_v1_response.pyi +++ b/launch/api_client/model/create_batch_job_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class CreateBatchJobV1Response(schemas.DictSchema): diff --git a/launch/api_client/model/create_model_bundle_request.py b/launch/api_client/model/create_model_bundle_request.py index 4a2921c5..c868221e 100644 --- a/launch/api_client/model/create_model_bundle_request.py +++ b/launch/api_client/model/create_model_bundle_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -281,5 +282,9 @@ def __new__( ) -from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch.api_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch.api_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/create_model_bundle_request.pyi b/launch/api_client/model/create_model_bundle_request.pyi index 754e6560..5cbf17ef 100644 --- a/launch/api_client/model/create_model_bundle_request.pyi +++ b/launch/api_client/model/create_model_bundle_request.pyi @@ -237,5 +237,9 @@ class CreateModelBundleRequest(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/create_model_bundle_response.py b/launch/api_client/model/create_model_bundle_response.py index 1fb4dc13..286e1a37 100644 --- a/launch/api_client/model/create_model_bundle_response.py +++ b/launch/api_client/model/create_model_bundle_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/create_model_bundle_v1_request.py b/launch/api_client/model/create_model_bundle_v1_request.py index 04e452ed..c5170611 100644 --- a/launch/api_client/model/create_model_bundle_v1_request.py +++ b/launch/api_client/model/create_model_bundle_v1_request.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 @@ -281,5 +281,9 @@ def __new__( ) -from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch.api_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch.api_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/create_model_bundle_v1_request.pyi b/launch/api_client/model/create_model_bundle_v1_request.pyi index 2cc59c5b..24f63ed8 100644 --- a/launch/api_client/model/create_model_bundle_v1_request.pyi +++ b/launch/api_client/model/create_model_bundle_v1_request.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class CreateModelBundleV1Request(schemas.DictSchema): @@ -238,5 +237,9 @@ class CreateModelBundleV1Request(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/create_model_bundle_v1_response.py b/launch/api_client/model/create_model_bundle_v1_response.py index ddd0c0ef..726207b0 100644 --- a/launch/api_client/model/create_model_bundle_v1_response.py +++ b/launch/api_client/model/create_model_bundle_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/create_model_bundle_v1_response.pyi b/launch/api_client/model/create_model_bundle_v1_response.pyi index 629324d9..6b03b26f 100644 --- a/launch/api_client/model/create_model_bundle_v1_response.pyi +++ b/launch/api_client/model/create_model_bundle_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class CreateModelBundleV1Response(schemas.DictSchema): diff --git a/launch/api_client/model/create_model_endpoint_request.py b/launch/api_client/model/create_model_endpoint_request.py index 26c7c1cb..c75f5328 100644 --- a/launch/api_client/model/create_model_endpoint_request.py +++ b/launch/api_client/model/create_model_endpoint_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/create_model_endpoint_response.py b/launch/api_client/model/create_model_endpoint_response.py index 4f3144b3..e2cdf9c1 100644 --- a/launch/api_client/model/create_model_endpoint_response.py +++ b/launch/api_client/model/create_model_endpoint_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/create_model_endpoint_v1_request.py b/launch/api_client/model/create_model_endpoint_v1_request.py index be1ab377..2717f643 100644 --- a/launch/api_client/model/create_model_endpoint_v1_request.py +++ b/launch/api_client/model/create_model_endpoint_v1_request.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/create_model_endpoint_v1_request.pyi b/launch/api_client/model/create_model_endpoint_v1_request.pyi index ff0193ad..d4e30084 100644 --- a/launch/api_client/model/create_model_endpoint_v1_request.pyi +++ b/launch/api_client/model/create_model_endpoint_v1_request.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class CreateModelEndpointV1Request(schemas.DictSchema): diff --git a/launch/api_client/model/create_model_endpoint_v1_response.py b/launch/api_client/model/create_model_endpoint_v1_response.py index 16079382..39cb7722 100644 --- a/launch/api_client/model/create_model_endpoint_v1_response.py +++ b/launch/api_client/model/create_model_endpoint_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/create_model_endpoint_v1_response.pyi b/launch/api_client/model/create_model_endpoint_v1_response.pyi index 935ba49a..ae27258e 100644 --- a/launch/api_client/model/create_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/create_model_endpoint_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class CreateModelEndpointV1Response(schemas.DictSchema): diff --git a/launch/api_client/model/delete_model_endpoint_response.py b/launch/api_client/model/delete_model_endpoint_response.py index 8609b0d5..54d4bbaa 100644 --- a/launch/api_client/model/delete_model_endpoint_response.py +++ b/launch/api_client/model/delete_model_endpoint_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.py b/launch/api_client/model/delete_model_endpoint_v1_response.py index abf0b181..afd67204 100644 --- a/launch/api_client/model/delete_model_endpoint_v1_response.py +++ b/launch/api_client/model/delete_model_endpoint_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.pyi b/launch/api_client/model/delete_model_endpoint_v1_response.pyi index d4a97022..c254be0b 100644 --- a/launch/api_client/model/delete_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/delete_model_endpoint_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class DeleteModelEndpointV1Response(schemas.DictSchema): diff --git a/launch/api_client/model/endpoint_predict_request.py b/launch/api_client/model/endpoint_predict_request.py index 48eaaf0a..c8cfed1c 100644 --- a/launch/api_client/model/endpoint_predict_request.py +++ b/launch/api_client/model/endpoint_predict_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/endpoint_predict_v1_request.py b/launch/api_client/model/endpoint_predict_v1_request.py index 28a7b332..2fcfd632 100644 --- a/launch/api_client/model/endpoint_predict_v1_request.py +++ b/launch/api_client/model/endpoint_predict_v1_request.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/endpoint_predict_v1_request.pyi b/launch/api_client/model/endpoint_predict_v1_request.pyi index defbd0d4..13dea9cf 100644 --- a/launch/api_client/model/endpoint_predict_v1_request.pyi +++ b/launch/api_client/model/endpoint_predict_v1_request.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class EndpointPredictV1Request(schemas.DictSchema): diff --git a/launch/api_client/model/get_async_task_response.py b/launch/api_client/model/get_async_task_response.py index a344586b..c21a3400 100644 --- a/launch/api_client/model/get_async_task_response.py +++ b/launch/api_client/model/get_async_task_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/get_async_task_v1_response.py b/launch/api_client/model/get_async_task_v1_response.py index f3340657..80939dab 100644 --- a/launch/api_client/model/get_async_task_v1_response.py +++ b/launch/api_client/model/get_async_task_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/get_async_task_v1_response.pyi b/launch/api_client/model/get_async_task_v1_response.pyi index b7c6e8c4..bf4524d5 100644 --- a/launch/api_client/model/get_async_task_v1_response.pyi +++ b/launch/api_client/model/get_async_task_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class GetAsyncTaskV1Response(schemas.DictSchema): diff --git a/launch/api_client/model/get_batch_job_response.py b/launch/api_client/model/get_batch_job_response.py index e3ca3b04..89a2f9d0 100644 --- a/launch/api_client/model/get_batch_job_response.py +++ b/launch/api_client/model/get_batch_job_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/get_batch_job_v1_response.py b/launch/api_client/model/get_batch_job_v1_response.py index f51b1a60..e5327ade 100644 --- a/launch/api_client/model/get_batch_job_v1_response.py +++ b/launch/api_client/model/get_batch_job_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/get_batch_job_v1_response.pyi b/launch/api_client/model/get_batch_job_v1_response.pyi index 5ad4a9b0..264bf1cb 100644 --- a/launch/api_client/model/get_batch_job_v1_response.pyi +++ b/launch/api_client/model/get_batch_job_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class GetBatchJobV1Response(schemas.DictSchema): diff --git a/launch/api_client/model/get_model_endpoint_response.py b/launch/api_client/model/get_model_endpoint_response.py index 4f69ecea..d497f926 100644 --- a/launch/api_client/model/get_model_endpoint_response.py +++ b/launch/api_client/model/get_model_endpoint_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -547,7 +548,11 @@ def __new__( from launch.api_client.model.callback_auth import CallbackAuth -from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState -from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState +from launch.api_client.model.model_endpoint_deployment_state import ( + ModelEndpointDeploymentState, +) +from launch.api_client.model.model_endpoint_resource_state import ( + ModelEndpointResourceState, +) from launch.api_client.model.model_endpoint_status import ModelEndpointStatus from launch.api_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/get_model_endpoint_response.pyi b/launch/api_client/model/get_model_endpoint_response.pyi index 972990d2..1d7670fa 100644 --- a/launch/api_client/model/get_model_endpoint_response.pyi +++ b/launch/api_client/model/get_model_endpoint_response.pyi @@ -452,7 +452,11 @@ class GetModelEndpointResponse(schemas.DictSchema): ) from launch_client.model.callback_auth import CallbackAuth -from launch_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState -from launch_client.model.model_endpoint_resource_state import ModelEndpointResourceState +from launch_client.model.model_endpoint_deployment_state import ( + ModelEndpointDeploymentState, +) +from launch_client.model.model_endpoint_resource_state import ( + ModelEndpointResourceState, +) from launch_client.model.model_endpoint_status import ModelEndpointStatus from launch_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/get_model_endpoint_v1_response.py b/launch/api_client/model/get_model_endpoint_v1_response.py index 0ac6056a..a14d8486 100644 --- a/launch/api_client/model/get_model_endpoint_v1_response.py +++ b/launch/api_client/model/get_model_endpoint_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 @@ -542,7 +542,11 @@ def __new__( from launch.api_client.model.callback_auth import CallbackAuth -from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState -from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState +from launch.api_client.model.model_endpoint_deployment_state import ( + ModelEndpointDeploymentState, +) +from launch.api_client.model.model_endpoint_resource_state import ( + ModelEndpointResourceState, +) from launch.api_client.model.model_endpoint_status import ModelEndpointStatus from launch.api_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/get_model_endpoint_v1_response.pyi b/launch/api_client/model/get_model_endpoint_v1_response.pyi index 8920b5f9..299c0026 100644 --- a/launch/api_client/model/get_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/get_model_endpoint_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class GetModelEndpointV1Response(schemas.DictSchema): @@ -447,7 +446,11 @@ class GetModelEndpointV1Response(schemas.DictSchema): ) from launch_client.model.callback_auth import CallbackAuth -from launch_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState -from launch_client.model.model_endpoint_resource_state import ModelEndpointResourceState +from launch_client.model.model_endpoint_deployment_state import ( + ModelEndpointDeploymentState, +) +from launch_client.model.model_endpoint_resource_state import ( + ModelEndpointResourceState, +) from launch_client.model.model_endpoint_status import ModelEndpointStatus from launch_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/gpu_type.py b/launch/api_client/model/gpu_type.py index 4620b94b..3d1ee053 100644 --- a/launch/api_client/model/gpu_type.py +++ b/launch/api_client/model/gpu_type.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/gpu_type.pyi b/launch/api_client/model/gpu_type.pyi index 4e384840..f24497d2 100644 --- a/launch/api_client/model/gpu_type.pyi +++ b/launch/api_client/model/gpu_type.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class GpuType(schemas.EnumBase, schemas.StrSchema): diff --git a/launch/api_client/model/http_validation_error.py b/launch/api_client/model/http_validation_error.py index 3e9a150d..51e9ef8b 100644 --- a/launch/api_client/model/http_validation_error.py +++ b/launch/api_client/model/http_validation_error.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/http_validation_error.pyi b/launch/api_client/model/http_validation_error.pyi index 0c9c6067..437f1853 100644 --- a/launch/api_client/model/http_validation_error.pyi +++ b/launch/api_client/model/http_validation_error.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class HTTPValidationError(schemas.DictSchema): diff --git a/launch/api_client/model/list_model_bundles_response.py b/launch/api_client/model/list_model_bundles_response.py index 95aa0740..7244cc2a 100644 --- a/launch/api_client/model/list_model_bundles_response.py +++ b/launch/api_client/model/list_model_bundles_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/list_model_bundles_v1_response.py b/launch/api_client/model/list_model_bundles_v1_response.py index 8646c50c..7d844835 100644 --- a/launch/api_client/model/list_model_bundles_v1_response.py +++ b/launch/api_client/model/list_model_bundles_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 @@ -125,4 +125,6 @@ def __new__( ) -from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response +from launch.api_client.model.model_bundle_v1_response import ( + ModelBundleV1Response, +) diff --git a/launch/api_client/model/list_model_bundles_v1_response.pyi b/launch/api_client/model/list_model_bundles_v1_response.pyi index fc889e81..421b33c7 100644 --- a/launch/api_client/model/list_model_bundles_v1_response.pyi +++ b/launch/api_client/model/list_model_bundles_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ListModelBundlesV1Response(schemas.DictSchema): diff --git a/launch/api_client/model/list_model_endpoints_response.py b/launch/api_client/model/list_model_endpoints_response.py index 0bbe42bb..a61104ca 100644 --- a/launch/api_client/model/list_model_endpoints_response.py +++ b/launch/api_client/model/list_model_endpoints_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -137,4 +138,6 @@ def __new__( ) -from launch.api_client.model.get_model_endpoint_response import GetModelEndpointResponse +from launch.api_client.model.get_model_endpoint_response import ( + GetModelEndpointResponse, +) diff --git a/launch/api_client/model/list_model_endpoints_response.pyi b/launch/api_client/model/list_model_endpoints_response.pyi index 0e493c12..e3ea97b8 100644 --- a/launch/api_client/model/list_model_endpoints_response.pyi +++ b/launch/api_client/model/list_model_endpoints_response.pyi @@ -125,4 +125,6 @@ class ListModelEndpointsResponse(schemas.DictSchema): **kwargs, ) -from launch_client.model.get_model_endpoint_response import GetModelEndpointResponse +from launch_client.model.get_model_endpoint_response import ( + GetModelEndpointResponse, +) diff --git a/launch/api_client/model/list_model_endpoints_v1_response.py b/launch/api_client/model/list_model_endpoints_v1_response.py index bb6f2446..a4884106 100644 --- a/launch/api_client/model/list_model_endpoints_v1_response.py +++ b/launch/api_client/model/list_model_endpoints_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 @@ -125,4 +125,6 @@ def __new__( ) -from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response +from launch.api_client.model.get_model_endpoint_v1_response import ( + GetModelEndpointV1Response, +) diff --git a/launch/api_client/model/list_model_endpoints_v1_response.pyi b/launch/api_client/model/list_model_endpoints_v1_response.pyi index ccce3f43..22ca5e6f 100644 --- a/launch/api_client/model/list_model_endpoints_v1_response.pyi +++ b/launch/api_client/model/list_model_endpoints_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ListModelEndpointsV1Response(schemas.DictSchema): @@ -113,4 +112,6 @@ class ListModelEndpointsV1Response(schemas.DictSchema): **kwargs, ) -from launch_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response +from launch_client.model.get_model_endpoint_v1_response import ( + GetModelEndpointV1Response, +) diff --git a/launch/api_client/model/model_bundle_environment_params.py b/launch/api_client/model/model_bundle_environment_params.py index fbdcc619..52633215 100644 --- a/launch/api_client/model/model_bundle_environment_params.py +++ b/launch/api_client/model/model_bundle_environment_params.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 @@ -190,4 +190,6 @@ def __new__( ) -from launch.api_client.model.model_bundle_framework_type import ModelBundleFrameworkType +from launch.api_client.model.model_bundle_framework_type import ( + ModelBundleFrameworkType, +) diff --git a/launch/api_client/model/model_bundle_environment_params.pyi b/launch/api_client/model/model_bundle_environment_params.pyi index b266edaf..54ace726 100644 --- a/launch/api_client/model/model_bundle_environment_params.pyi +++ b/launch/api_client/model/model_bundle_environment_params.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ModelBundleEnvironmentParams(schemas.DictSchema): @@ -160,4 +159,6 @@ class ModelBundleEnvironmentParams(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_framework_type import ModelBundleFrameworkType +from launch_client.model.model_bundle_framework_type import ( + ModelBundleFrameworkType, +) diff --git a/launch/api_client/model/model_bundle_framework.py b/launch/api_client/model/model_bundle_framework.py index 851f55f3..093cc562 100644 --- a/launch/api_client/model/model_bundle_framework.py +++ b/launch/api_client/model/model_bundle_framework.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/model_bundle_framework_type.py b/launch/api_client/model/model_bundle_framework_type.py index c7ecb2d8..cbbdb61d 100644 --- a/launch/api_client/model/model_bundle_framework_type.py +++ b/launch/api_client/model/model_bundle_framework_type.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/model_bundle_framework_type.pyi b/launch/api_client/model/model_bundle_framework_type.pyi index 9e08e72a..6dac94df 100644 --- a/launch/api_client/model/model_bundle_framework_type.pyi +++ b/launch/api_client/model/model_bundle_framework_type.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ModelBundleFrameworkType(schemas.EnumBase, schemas.StrSchema): diff --git a/launch/api_client/model/model_bundle_order_by.py b/launch/api_client/model/model_bundle_order_by.py index 9fa5758b..987734ac 100644 --- a/launch/api_client/model/model_bundle_order_by.py +++ b/launch/api_client/model/model_bundle_order_by.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/model_bundle_order_by.pyi b/launch/api_client/model/model_bundle_order_by.pyi index 76189ebb..caa21cef 100644 --- a/launch/api_client/model/model_bundle_order_by.pyi +++ b/launch/api_client/model/model_bundle_order_by.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ModelBundleOrderBy(schemas.EnumBase, schemas.StrSchema): diff --git a/launch/api_client/model/model_bundle_packaging_type.py b/launch/api_client/model/model_bundle_packaging_type.py index e9d25774..e97563f6 100644 --- a/launch/api_client/model/model_bundle_packaging_type.py +++ b/launch/api_client/model/model_bundle_packaging_type.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/model_bundle_packaging_type.pyi b/launch/api_client/model/model_bundle_packaging_type.pyi index 1c310f5a..0ff122fb 100644 --- a/launch/api_client/model/model_bundle_packaging_type.pyi +++ b/launch/api_client/model/model_bundle_packaging_type.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ModelBundlePackagingType(schemas.EnumBase, schemas.StrSchema): diff --git a/launch/api_client/model/model_bundle_response.py b/launch/api_client/model/model_bundle_response.py index e88b734b..6b25056a 100644 --- a/launch/api_client/model/model_bundle_response.py +++ b/launch/api_client/model/model_bundle_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -377,5 +378,9 @@ def __new__( ) -from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch.api_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch.api_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/model_bundle_response.pyi b/launch/api_client/model/model_bundle_response.pyi index 88263af6..818f37cb 100644 --- a/launch/api_client/model/model_bundle_response.pyi +++ b/launch/api_client/model/model_bundle_response.pyi @@ -319,5 +319,9 @@ class ModelBundleResponse(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/model_bundle_v1_response.py b/launch/api_client/model/model_bundle_v1_response.py index ba816e41..90bdef95 100644 --- a/launch/api_client/model/model_bundle_v1_response.py +++ b/launch/api_client/model/model_bundle_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 @@ -378,5 +378,9 @@ def __new__( ) -from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch.api_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch.api_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/model_bundle_v1_response.pyi b/launch/api_client/model/model_bundle_v1_response.pyi index 07b30379..44b97398 100644 --- a/launch/api_client/model/model_bundle_v1_response.pyi +++ b/launch/api_client/model/model_bundle_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ModelBundleV1Response(schemas.DictSchema): @@ -320,5 +319,9 @@ class ModelBundleV1Response(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/model_endpoint_deployment_state.py b/launch/api_client/model/model_endpoint_deployment_state.py index 1682bb71..c0a13dff 100644 --- a/launch/api_client/model/model_endpoint_deployment_state.py +++ b/launch/api_client/model/model_endpoint_deployment_state.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/model_endpoint_deployment_state.pyi b/launch/api_client/model/model_endpoint_deployment_state.pyi index af8a29f8..ff9c7ac0 100644 --- a/launch/api_client/model/model_endpoint_deployment_state.pyi +++ b/launch/api_client/model/model_endpoint_deployment_state.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ModelEndpointDeploymentState(schemas.DictSchema): diff --git a/launch/api_client/model/model_endpoint_order_by.py b/launch/api_client/model/model_endpoint_order_by.py index 87e6a3e7..e2eb86a1 100644 --- a/launch/api_client/model/model_endpoint_order_by.py +++ b/launch/api_client/model/model_endpoint_order_by.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/model_endpoint_order_by.pyi b/launch/api_client/model/model_endpoint_order_by.pyi index 00acf464..28193762 100644 --- a/launch/api_client/model/model_endpoint_order_by.pyi +++ b/launch/api_client/model/model_endpoint_order_by.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ModelEndpointOrderBy(schemas.EnumBase, schemas.StrSchema): diff --git a/launch/api_client/model/model_endpoint_resource_state.py b/launch/api_client/model/model_endpoint_resource_state.py index 920408f8..f6ed43ff 100644 --- a/launch/api_client/model/model_endpoint_resource_state.py +++ b/launch/api_client/model/model_endpoint_resource_state.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/model_endpoint_resource_state.pyi b/launch/api_client/model/model_endpoint_resource_state.pyi index c34afbb1..01d11482 100644 --- a/launch/api_client/model/model_endpoint_resource_state.pyi +++ b/launch/api_client/model/model_endpoint_resource_state.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ModelEndpointResourceState(schemas.DictSchema): diff --git a/launch/api_client/model/model_endpoint_status.py b/launch/api_client/model/model_endpoint_status.py index 445e3498..8703e65a 100644 --- a/launch/api_client/model/model_endpoint_status.py +++ b/launch/api_client/model/model_endpoint_status.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/model_endpoint_status.pyi b/launch/api_client/model/model_endpoint_status.pyi index 596b3bd7..8f1377bd 100644 --- a/launch/api_client/model/model_endpoint_status.pyi +++ b/launch/api_client/model/model_endpoint_status.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): diff --git a/launch/api_client/model/model_endpoint_type.py b/launch/api_client/model/model_endpoint_type.py index 3e23ae80..57c909ed 100644 --- a/launch/api_client/model/model_endpoint_type.py +++ b/launch/api_client/model/model_endpoint_type.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/model_endpoint_type.pyi b/launch/api_client/model/model_endpoint_type.pyi index c5e640c9..7a9bef5b 100644 --- a/launch/api_client/model/model_endpoint_type.pyi +++ b/launch/api_client/model/model_endpoint_type.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ModelEndpointType(schemas.EnumBase, schemas.StrSchema): diff --git a/launch/api_client/model/request_schema.py b/launch/api_client/model/request_schema.py index 3dc04b7e..48c12333 100644 --- a/launch/api_client/model/request_schema.py +++ b/launch/api_client/model/request_schema.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/request_schema.pyi b/launch/api_client/model/request_schema.pyi index e5da4cba..031787ad 100644 --- a/launch/api_client/model/request_schema.pyi +++ b/launch/api_client/model/request_schema.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 RequestSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/response_schema.py b/launch/api_client/model/response_schema.py index 2fb37b63..ac2a8608 100644 --- a/launch/api_client/model/response_schema.py +++ b/launch/api_client/model/response_schema.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/response_schema.pyi b/launch/api_client/model/response_schema.pyi index c3179237..800305f1 100644 --- a/launch/api_client/model/response_schema.pyi +++ b/launch/api_client/model/response_schema.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 ResponseSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/sync_endpoint_predict_response.py b/launch/api_client/model/sync_endpoint_predict_response.py index b88f87d2..3c497782 100644 --- a/launch/api_client/model/sync_endpoint_predict_response.py +++ b/launch/api_client/model/sync_endpoint_predict_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/sync_endpoint_predict_v1_response.py b/launch/api_client/model/sync_endpoint_predict_v1_response.py index fd4f9da8..e3753b5e 100644 --- a/launch/api_client/model/sync_endpoint_predict_v1_response.py +++ b/launch/api_client/model/sync_endpoint_predict_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/sync_endpoint_predict_v1_response.pyi b/launch/api_client/model/sync_endpoint_predict_v1_response.pyi index abfa01e7..49ae96fa 100644 --- a/launch/api_client/model/sync_endpoint_predict_v1_response.pyi +++ b/launch/api_client/model/sync_endpoint_predict_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class SyncEndpointPredictV1Response(schemas.DictSchema): diff --git a/launch/api_client/model/task_status.py b/launch/api_client/model/task_status.py index 5d223f9a..9693fad1 100644 --- a/launch/api_client/model/task_status.py +++ b/launch/api_client/model/task_status.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/task_status.pyi b/launch/api_client/model/task_status.pyi index 9a612f3e..d81b166f 100644 --- a/launch/api_client/model/task_status.pyi +++ b/launch/api_client/model/task_status.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class TaskStatus(schemas.EnumBase, schemas.StrSchema): diff --git a/launch/api_client/model/update_batch_job_request.py b/launch/api_client/model/update_batch_job_request.py index 48340bea..84a751d6 100644 --- a/launch/api_client/model/update_batch_job_request.py +++ b/launch/api_client/model/update_batch_job_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/update_batch_job_response.py b/launch/api_client/model/update_batch_job_response.py index b4c260f8..ffb4ad23 100644 --- a/launch/api_client/model/update_batch_job_response.py +++ b/launch/api_client/model/update_batch_job_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/update_batch_job_v1_request.py b/launch/api_client/model/update_batch_job_v1_request.py index c5b0c591..55cbfa11 100644 --- a/launch/api_client/model/update_batch_job_v1_request.py +++ b/launch/api_client/model/update_batch_job_v1_request.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/update_batch_job_v1_request.pyi b/launch/api_client/model/update_batch_job_v1_request.pyi index 6a65ff37..9f146df2 100644 --- a/launch/api_client/model/update_batch_job_v1_request.pyi +++ b/launch/api_client/model/update_batch_job_v1_request.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class UpdateBatchJobV1Request(schemas.DictSchema): diff --git a/launch/api_client/model/update_batch_job_v1_response.py b/launch/api_client/model/update_batch_job_v1_response.py index 51d26e90..cb9129f5 100644 --- a/launch/api_client/model/update_batch_job_v1_response.py +++ b/launch/api_client/model/update_batch_job_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/update_batch_job_v1_response.pyi b/launch/api_client/model/update_batch_job_v1_response.pyi index 49355934..5f33c30d 100644 --- a/launch/api_client/model/update_batch_job_v1_response.pyi +++ b/launch/api_client/model/update_batch_job_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class UpdateBatchJobV1Response(schemas.DictSchema): diff --git a/launch/api_client/model/update_model_endpoint_request.py b/launch/api_client/model/update_model_endpoint_request.py index 0a592f5f..98a0fc06 100644 --- a/launch/api_client/model/update_model_endpoint_request.py +++ b/launch/api_client/model/update_model_endpoint_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/update_model_endpoint_response.py b/launch/api_client/model/update_model_endpoint_response.py index 20d54a28..8e34377f 100644 --- a/launch/api_client/model/update_model_endpoint_response.py +++ b/launch/api_client/model/update_model_endpoint_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/update_model_endpoint_v1_request.py b/launch/api_client/model/update_model_endpoint_v1_request.py index 797ad059..811edbcd 100644 --- a/launch/api_client/model/update_model_endpoint_v1_request.py +++ b/launch/api_client/model/update_model_endpoint_v1_request.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/update_model_endpoint_v1_request.pyi b/launch/api_client/model/update_model_endpoint_v1_request.pyi index ee8fe367..50acf6cb 100644 --- a/launch/api_client/model/update_model_endpoint_v1_request.pyi +++ b/launch/api_client/model/update_model_endpoint_v1_request.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class UpdateModelEndpointV1Request(schemas.DictSchema): diff --git a/launch/api_client/model/update_model_endpoint_v1_response.py b/launch/api_client/model/update_model_endpoint_v1_response.py index c0621795..4369866b 100644 --- a/launch/api_client/model/update_model_endpoint_v1_response.py +++ b/launch/api_client/model/update_model_endpoint_v1_response.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/update_model_endpoint_v1_response.pyi b/launch/api_client/model/update_model_endpoint_v1_response.pyi index f384bb82..2b330725 100644 --- a/launch/api_client/model/update_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/update_model_endpoint_v1_response.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class UpdateModelEndpointV1Response(schemas.DictSchema): diff --git a/launch/api_client/model/validation_error.py b/launch/api_client/model/validation_error.py index 402f6e68..8cc3cf6a 100644 --- a/launch/api_client/model/validation_error.py +++ b/launch/api_client/model/validation_error.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 diff --git a/launch/api_client/model/validation_error.pyi b/launch/api_client/model/validation_error.pyi index b6d07049..865e67c4 100644 --- a/launch/api_client/model/validation_error.pyi +++ b/launch/api_client/model/validation_error.pyi @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 class ValidationError(schemas.DictSchema): diff --git a/launch/api_client/models/__init__.py b/launch/api_client/models/__init__.py index 913a6e4e..cf694480 100644 --- a/launch/api_client/models/__init__.py +++ b/launch/api_client/models/__init__.py @@ -11,45 +11,103 @@ # import sys # sys.setrecursionlimit(n) -from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat +from launch.api_client.model.batch_job_serialization_format import ( + BatchJobSerializationFormat, +) from launch.api_client.model.batch_job_status import BatchJobStatus from launch.api_client.model.callback_auth import CallbackAuth from launch.api_client.model.callback_basic_auth import CallbackBasicAuth from launch.api_client.model.callbackm_tls_auth import CallbackmTLSAuth -from launch.api_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request -from launch.api_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response -from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests -from launch.api_client.model.create_batch_job_v1_request import CreateBatchJobV1Request -from launch.api_client.model.create_batch_job_v1_response import CreateBatchJobV1Response -from launch.api_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request -from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response -from launch.api_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request -from launch.api_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response -from launch.api_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response -from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request -from launch.api_client.model.get_async_task_v1_response import GetAsyncTaskV1Response -from launch.api_client.model.get_batch_job_v1_response import GetBatchJobV1Response -from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response +from launch.api_client.model.clone_model_bundle_v1_request import ( + CloneModelBundleV1Request, +) +from launch.api_client.model.create_async_task_v1_response import ( + CreateAsyncTaskV1Response, +) +from launch.api_client.model.create_batch_job_resource_requests import ( + CreateBatchJobResourceRequests, +) +from launch.api_client.model.create_batch_job_v1_request import ( + CreateBatchJobV1Request, +) +from launch.api_client.model.create_batch_job_v1_response import ( + CreateBatchJobV1Response, +) +from launch.api_client.model.create_model_bundle_v1_request import ( + CreateModelBundleV1Request, +) +from launch.api_client.model.create_model_bundle_v1_response import ( + CreateModelBundleV1Response, +) +from launch.api_client.model.create_model_endpoint_v1_request import ( + CreateModelEndpointV1Request, +) +from launch.api_client.model.create_model_endpoint_v1_response import ( + CreateModelEndpointV1Response, +) +from launch.api_client.model.delete_model_endpoint_v1_response import ( + DeleteModelEndpointV1Response, +) +from launch.api_client.model.endpoint_predict_v1_request import ( + EndpointPredictV1Request, +) +from launch.api_client.model.get_async_task_v1_response import ( + GetAsyncTaskV1Response, +) +from launch.api_client.model.get_batch_job_v1_response import ( + GetBatchJobV1Response, +) +from launch.api_client.model.get_model_endpoint_v1_response import ( + GetModelEndpointV1Response, +) from launch.api_client.model.gpu_type import GpuType from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response -from launch.api_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response -from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch.api_client.model.model_bundle_framework_type import ModelBundleFrameworkType +from launch.api_client.model.list_model_bundles_v1_response import ( + ListModelBundlesV1Response, +) +from launch.api_client.model.list_model_endpoints_v1_response import ( + ListModelEndpointsV1Response, +) +from launch.api_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch.api_client.model.model_bundle_framework_type import ( + ModelBundleFrameworkType, +) from launch.api_client.model.model_bundle_order_by import ModelBundleOrderBy -from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType -from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response -from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState -from launch.api_client.model.model_endpoint_order_by import ModelEndpointOrderBy -from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState +from launch.api_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) +from launch.api_client.model.model_bundle_v1_response import ( + ModelBundleV1Response, +) +from launch.api_client.model.model_endpoint_deployment_state import ( + ModelEndpointDeploymentState, +) +from launch.api_client.model.model_endpoint_order_by import ( + ModelEndpointOrderBy, +) +from launch.api_client.model.model_endpoint_resource_state import ( + ModelEndpointResourceState, +) from launch.api_client.model.model_endpoint_status import ModelEndpointStatus from launch.api_client.model.model_endpoint_type import ModelEndpointType from launch.api_client.model.request_schema import RequestSchema from launch.api_client.model.response_schema import ResponseSchema -from launch.api_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response +from launch.api_client.model.sync_endpoint_predict_v1_response import ( + SyncEndpointPredictV1Response, +) from launch.api_client.model.task_status import TaskStatus -from launch.api_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request -from launch.api_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response -from launch.api_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request -from launch.api_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response +from launch.api_client.model.update_batch_job_v1_request import ( + UpdateBatchJobV1Request, +) +from launch.api_client.model.update_batch_job_v1_response import ( + UpdateBatchJobV1Response, +) +from launch.api_client.model.update_model_endpoint_v1_request import ( + UpdateModelEndpointV1Request, +) +from launch.api_client.model.update_model_endpoint_v1_response import ( + UpdateModelEndpointV1Response, +) from launch.api_client.model.validation_error import ValidationError diff --git a/launch/api_client/paths/healthcheck/get.py b/launch/api_client/paths/healthcheck/get.py index 33c030f1..4cbeec4b 100644 --- a/launch/api_client/paths/healthcheck/get.py +++ b/launch/api_client/paths/healthcheck/get.py @@ -6,24 +6,22 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 +from launch.api_client import api_client, exceptions from . import path diff --git a/launch/api_client/paths/healthcheck/get.pyi b/launch/api_client/paths/healthcheck/get.pyi index 911ec01f..519a05dc 100644 --- a/launch/api_client/paths/healthcheck/get.pyi +++ b/launch/api_client/paths/healthcheck/get.pyi @@ -6,24 +6,21 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 +from launch_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema diff --git a/launch/api_client/paths/healthz/get.py b/launch/api_client/paths/healthz/get.py index f000cb08..c71e242f 100644 --- a/launch/api_client/paths/healthz/get.py +++ b/launch/api_client/paths/healthz/get.py @@ -6,24 +6,22 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 +from launch.api_client import api_client, exceptions from . import path diff --git a/launch/api_client/paths/healthz/get.pyi b/launch/api_client/paths/healthz/get.pyi index 624df6f0..e80889c1 100644 --- a/launch/api_client/paths/healthz/get.pyi +++ b/launch/api_client/paths/healthz/get.pyi @@ -6,24 +6,21 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 +from launch_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema diff --git a/launch/api_client/paths/readyz/get.py b/launch/api_client/paths/readyz/get.py index c25dffab..c016a017 100644 --- a/launch/api_client/paths/readyz/get.py +++ b/launch/api_client/paths/readyz/get.py @@ -6,24 +6,22 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 +from launch.api_client import api_client, exceptions from . import path diff --git a/launch/api_client/paths/readyz/get.pyi b/launch/api_client/paths/readyz/get.pyi index 0a47d385..7ef0ef1c 100644 --- a/launch/api_client/paths/readyz/get.pyi +++ b/launch/api_client/paths/readyz/get.pyi @@ -6,24 +6,21 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 +from launch_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema diff --git a/launch/api_client/paths/v1_async_tasks/post.py b/launch/api_client/paths/v1_async_tasks/post.py index ce3a2b1f..19d68ae1 100644 --- a/launch/api_client/paths/v1_async_tasks/post.py +++ b/launch/api_client/paths/v1_async_tasks/post.py @@ -6,28 +6,29 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request +from launch.api_client import api_client, exceptions +from launch.api_client.model.create_async_task_v1_response import ( + CreateAsyncTaskV1Response, +) +from launch.api_client.model.endpoint_predict_v1_request import ( + EndpointPredictV1Request, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response from . import path diff --git a/launch/api_client/paths/v1_async_tasks/post.pyi b/launch/api_client/paths/v1_async_tasks/post.pyi index 9ea89434..3e863a0d 100644 --- a/launch/api_client/paths/v1_async_tasks/post.pyi +++ b/launch/api_client/paths/v1_async_tasks/post.pyi @@ -6,28 +6,28 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.endpoint_predict_v1_request import EndpointPredictV1Request +from launch_client import api_client, exceptions +from launch_client.model.create_async_task_v1_response import ( + CreateAsyncTaskV1Response, +) +from launch_client.model.endpoint_predict_v1_request import ( + EndpointPredictV1Request, +) from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response +from urllib3._collections import HTTPHeaderDict # Query params ModelEndpointIdSchema = schemas.StrSchema diff --git a/launch/api_client/paths/v1_async_tasks_task_id/get.py b/launch/api_client/paths/v1_async_tasks_task_id/get.py index cb217bd3..7bb49fa2 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/get.py +++ b/launch/api_client/paths/v1_async_tasks_task_id/get.py @@ -6,27 +6,26 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - +from launch.api_client import api_client, exceptions +from launch.api_client.model.get_async_task_v1_response import ( + GetAsyncTaskV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.get_async_task_v1_response import GetAsyncTaskV1Response from . import path diff --git a/launch/api_client/paths/v1_async_tasks_task_id/get.pyi b/launch/api_client/paths/v1_async_tasks_task_id/get.pyi index ea07ac69..c730023f 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/get.pyi +++ b/launch/api_client/paths/v1_async_tasks_task_id/get.pyi @@ -6,27 +6,25 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - +from launch_client import api_client, exceptions +from launch_client.model.get_async_task_v1_response import ( + GetAsyncTaskV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.get_async_task_v1_response import GetAsyncTaskV1Response +from urllib3._collections import HTTPHeaderDict # Path params TaskIdSchema = schemas.StrSchema diff --git a/launch/api_client/paths/v1_batch_jobs/post.py b/launch/api_client/paths/v1_batch_jobs/post.py index 10d5e660..f8769488 100644 --- a/launch/api_client/paths/v1_batch_jobs/post.py +++ b/launch/api_client/paths/v1_batch_jobs/post.py @@ -6,27 +6,28 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.create_batch_job_v1_response import CreateBatchJobV1Response -from launch.api_client.model.create_batch_job_v1_request import CreateBatchJobV1Request +from launch.api_client import api_client, exceptions +from launch.api_client.model.create_batch_job_v1_request import ( + CreateBatchJobV1Request, +) +from launch.api_client.model.create_batch_job_v1_response import ( + CreateBatchJobV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError from . import path diff --git a/launch/api_client/paths/v1_batch_jobs/post.pyi b/launch/api_client/paths/v1_batch_jobs/post.pyi index 0c706ecf..0f199580 100644 --- a/launch/api_client/paths/v1_batch_jobs/post.pyi +++ b/launch/api_client/paths/v1_batch_jobs/post.pyi @@ -6,28 +6,28 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.create_batch_job_v1_response import CreateBatchJobV1Response -from launch_client.model.create_batch_job_v1_request import CreateBatchJobV1Request +from launch_client import api_client, exceptions +from launch_client.model.create_batch_job_v1_request import ( + CreateBatchJobV1Request, +) +from launch_client.model.create_batch_job_v1_response import ( + CreateBatchJobV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # body param SchemaForRequestBodyApplicationJson = CreateBatchJobV1Request diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py index 831ee0d7..f8a0cc74 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py @@ -6,26 +6,25 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.get_batch_job_v1_response import GetBatchJobV1Response +from launch.api_client import api_client, exceptions +from launch.api_client.model.get_batch_job_v1_response import ( + GetBatchJobV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError from . import path diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi index bb63ce60..2c9aba69 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi @@ -6,27 +6,23 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - +from launch_client import api_client, exceptions from launch_client.model.get_batch_job_v1_response import GetBatchJobV1Response from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # Path params BatchJobIdSchema = schemas.StrSchema diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py index c13bed49..fdd87da6 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py @@ -6,28 +6,29 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - +from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response -from launch.api_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request +from launch.api_client.model.update_batch_job_v1_request import ( + UpdateBatchJobV1Request, +) +from launch.api_client.model.update_batch_job_v1_response import ( + UpdateBatchJobV1Response, +) from . import path diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi index cf47ae96..65a06365 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi @@ -6,28 +6,28 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - +from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response -from launch_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request +from launch_client.model.update_batch_job_v1_request import ( + UpdateBatchJobV1Request, +) +from launch_client.model.update_batch_job_v1_response import ( + UpdateBatchJobV1Response, +) +from urllib3._collections import HTTPHeaderDict # Path params BatchJobIdSchema = schemas.StrSchema diff --git a/launch/api_client/paths/v1_model_bundles/get.py b/launch/api_client/paths/v1_model_bundles/get.py index b960b6b2..4ed7d60d 100644 --- a/launch/api_client/paths/v1_model_bundles/get.py +++ b/launch/api_client/paths/v1_model_bundles/get.py @@ -6,28 +6,27 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.model_bundle_order_by import ModelBundleOrderBy -from launch.api_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.list_model_bundles_v1_response import ( + ListModelBundlesV1Response, +) +from launch.api_client.model.model_bundle_order_by import ModelBundleOrderBy from . import path diff --git a/launch/api_client/paths/v1_model_bundles/get.pyi b/launch/api_client/paths/v1_model_bundles/get.pyi index 1f999cdf..2d2cf510 100644 --- a/launch/api_client/paths/v1_model_bundles/get.pyi +++ b/launch/api_client/paths/v1_model_bundles/get.pyi @@ -6,28 +6,26 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.model_bundle_order_by import ModelBundleOrderBy -from launch_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError +from launch_client.model.list_model_bundles_v1_response import ( + ListModelBundlesV1Response, +) +from launch_client.model.model_bundle_order_by import ModelBundleOrderBy +from urllib3._collections import HTTPHeaderDict # Query params ModelNameSchema = schemas.StrSchema diff --git a/launch/api_client/paths/v1_model_bundles/post.py b/launch/api_client/paths/v1_model_bundles/post.py index 5b346798..c850d079 100644 --- a/launch/api_client/paths/v1_model_bundles/post.py +++ b/launch/api_client/paths/v1_model_bundles/post.py @@ -6,28 +6,29 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request +from launch.api_client import api_client, exceptions +from launch.api_client.model.create_model_bundle_v1_request import ( + CreateModelBundleV1Request, +) +from launch.api_client.model.create_model_bundle_v1_response import ( + CreateModelBundleV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response from . import path diff --git a/launch/api_client/paths/v1_model_bundles/post.pyi b/launch/api_client/paths/v1_model_bundles/post.pyi index dca88f5e..780b6144 100644 --- a/launch/api_client/paths/v1_model_bundles/post.pyi +++ b/launch/api_client/paths/v1_model_bundles/post.pyi @@ -6,28 +6,28 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request +from launch_client import api_client, exceptions +from launch_client.model.create_model_bundle_v1_request import ( + CreateModelBundleV1Request, +) +from launch_client.model.create_model_bundle_v1_response import ( + CreateModelBundleV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from urllib3._collections import HTTPHeaderDict # body param SchemaForRequestBodyApplicationJson = CreateModelBundleV1Request diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py index 91fadac5..d6665999 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py @@ -6,28 +6,29 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - +from launch.api_client import api_client, exceptions +from launch.api_client.model.clone_model_bundle_v1_request import ( + CloneModelBundleV1Request, +) +from launch.api_client.model.create_model_bundle_v1_response import ( + CreateModelBundleV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response -from launch.api_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request from . import path diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi index 66d1fe99..550e5780 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi @@ -6,28 +6,28 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - +from launch_client import api_client, exceptions +from launch_client.model.clone_model_bundle_v1_request import ( + CloneModelBundleV1Request, +) +from launch_client.model.create_model_bundle_v1_response import ( + CreateModelBundleV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response -from launch_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request +from urllib3._collections import HTTPHeaderDict # body param SchemaForRequestBodyApplicationJson = CloneModelBundleV1Request diff --git a/launch/api_client/paths/v1_model_bundles_latest/get.py b/launch/api_client/paths/v1_model_bundles_latest/get.py index 983d12c0..e4397a5a 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/get.py +++ b/launch/api_client/paths/v1_model_bundles_latest/get.py @@ -6,27 +6,26 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.model_bundle_v1_response import ( + ModelBundleV1Response, +) from . import path diff --git a/launch/api_client/paths/v1_model_bundles_latest/get.pyi b/launch/api_client/paths/v1_model_bundles_latest/get.pyi index 5fd25f78..bacb33b7 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/get.pyi +++ b/launch/api_client/paths/v1_model_bundles_latest/get.pyi @@ -6,27 +6,23 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.model_bundle_v1_response import ModelBundleV1Response +from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError +from launch_client.model.model_bundle_v1_response import ModelBundleV1Response +from urllib3._collections import HTTPHeaderDict # Query params ModelNameSchema = schemas.StrSchema diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py index 083da20c..f79165c8 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py @@ -6,27 +6,26 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.model_bundle_v1_response import ( + ModelBundleV1Response, +) from . import path diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi index 940b93e4..4af810ea 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi @@ -6,27 +6,23 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.model_bundle_v1_response import ModelBundleV1Response +from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError +from launch_client.model.model_bundle_v1_response import ModelBundleV1Response +from urllib3._collections import HTTPHeaderDict # Path params ModelBundleIdSchema = schemas.StrSchema diff --git a/launch/api_client/paths/v1_model_endpoints/get.py b/launch/api_client/paths/v1_model_endpoints/get.py index de3ee515..e572a293 100644 --- a/launch/api_client/paths/v1_model_endpoints/get.py +++ b/launch/api_client/paths/v1_model_endpoints/get.py @@ -6,28 +6,29 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.model_endpoint_order_by import ModelEndpointOrderBy +from launch.api_client.model.list_model_endpoints_v1_response import ( + ListModelEndpointsV1Response, +) +from launch.api_client.model.model_endpoint_order_by import ( + ModelEndpointOrderBy, +) from . import path diff --git a/launch/api_client/paths/v1_model_endpoints/get.pyi b/launch/api_client/paths/v1_model_endpoints/get.pyi index d6142b77..fea7a870 100644 --- a/launch/api_client/paths/v1_model_endpoints/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints/get.pyi @@ -6,28 +6,26 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response +from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError +from launch_client.model.list_model_endpoints_v1_response import ( + ListModelEndpointsV1Response, +) from launch_client.model.model_endpoint_order_by import ModelEndpointOrderBy +from urllib3._collections import HTTPHeaderDict # Query params NameSchema = schemas.StrSchema diff --git a/launch/api_client/paths/v1_model_endpoints/post.py b/launch/api_client/paths/v1_model_endpoints/post.py index 97e931e0..99b4a96e 100644 --- a/launch/api_client/paths/v1_model_endpoints/post.py +++ b/launch/api_client/paths/v1_model_endpoints/post.py @@ -6,27 +6,28 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response -from launch.api_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request +from launch.api_client import api_client, exceptions +from launch.api_client.model.create_model_endpoint_v1_request import ( + CreateModelEndpointV1Request, +) +from launch.api_client.model.create_model_endpoint_v1_response import ( + CreateModelEndpointV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError from . import path diff --git a/launch/api_client/paths/v1_model_endpoints/post.pyi b/launch/api_client/paths/v1_model_endpoints/post.pyi index 796136ac..2af825d6 100644 --- a/launch/api_client/paths/v1_model_endpoints/post.pyi +++ b/launch/api_client/paths/v1_model_endpoints/post.pyi @@ -6,28 +6,28 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response -from launch_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request +from launch_client import api_client, exceptions +from launch_client.model.create_model_endpoint_v1_request import ( + CreateModelEndpointV1Request, +) +from launch_client.model.create_model_endpoint_v1_response import ( + CreateModelEndpointV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # body param SchemaForRequestBodyApplicationJson = CreateModelEndpointV1Request diff --git a/launch/api_client/paths/v1_model_endpoints_api/get.py b/launch/api_client/paths/v1_model_endpoints_api/get.py index 155428cd..d46a8f06 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/get.py +++ b/launch/api_client/paths/v1_model_endpoints_api/get.py @@ -6,24 +6,22 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 +from launch.api_client import api_client, exceptions from . import path diff --git a/launch/api_client/paths/v1_model_endpoints_api/get.pyi b/launch/api_client/paths/v1_model_endpoints_api/get.pyi index 9d5af22f..a95a6348 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_api/get.pyi @@ -6,24 +6,21 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 +from launch_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py index 797a9c9a..3add1108 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py @@ -6,26 +6,25 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response +from launch.api_client import api_client, exceptions +from launch.api_client.model.delete_model_endpoint_v1_response import ( + DeleteModelEndpointV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError from . import path diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi index e3fdccf8..07bbc190 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi @@ -6,27 +6,25 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response +from launch_client import api_client, exceptions +from launch_client.model.delete_model_endpoint_v1_response import ( + DeleteModelEndpointV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # Path params ModelEndpointIdSchema = schemas.StrSchema diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py index 4a93041c..daa30f01 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py @@ -6,26 +6,25 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response +from launch.api_client import api_client, exceptions +from launch.api_client.model.get_model_endpoint_v1_response import ( + GetModelEndpointV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError from . import path diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi index 8b526509..1c74f794 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi @@ -6,27 +6,25 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response +from launch_client import api_client, exceptions +from launch_client.model.get_model_endpoint_v1_response import ( + GetModelEndpointV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # Path params ModelEndpointIdSchema = schemas.StrSchema diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py index e8cb8aa6..6c1e4cf4 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py @@ -6,28 +6,29 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request +from launch.api_client.model.update_model_endpoint_v1_request import ( + UpdateModelEndpointV1Request, +) +from launch.api_client.model.update_model_endpoint_v1_response import ( + UpdateModelEndpointV1Response, +) from . import path diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi index cab57c97..60495b21 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi @@ -6,28 +6,28 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response +from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request +from launch_client.model.update_model_endpoint_v1_request import ( + UpdateModelEndpointV1Request, +) +from launch_client.model.update_model_endpoint_v1_response import ( + UpdateModelEndpointV1Response, +) +from urllib3._collections import HTTPHeaderDict # Path params ModelEndpointIdSchema = schemas.StrSchema diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/get.py b/launch/api_client/paths/v1_model_endpoints_schema_json/get.py index 249a9c9b..2cba49a7 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/get.py +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/get.py @@ -6,24 +6,22 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 +from launch.api_client import api_client, exceptions from . import path diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi b/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi index 07a5d0e8..25adcc5f 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi @@ -6,24 +6,21 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 +from launch_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema diff --git a/launch/api_client/paths/v1_sync_tasks/post.py b/launch/api_client/paths/v1_sync_tasks/post.py index 7ae95348..50fbe602 100644 --- a/launch/api_client/paths/v1_sync_tasks/post.py +++ b/launch/api_client/paths/v1_sync_tasks/post.py @@ -6,28 +6,29 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 +import typing_extensions # noqa: F401 +import urllib3 +from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request +from launch.api_client import api_client, exceptions +from launch.api_client.model.endpoint_predict_v1_request import ( + EndpointPredictV1Request, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response +from launch.api_client.model.sync_endpoint_predict_v1_response import ( + SyncEndpointPredictV1Response, +) from . import path diff --git a/launch/api_client/paths/v1_sync_tasks/post.pyi b/launch/api_client/paths/v1_sync_tasks/post.pyi index 1b5d8e54..b1e97f28 100644 --- a/launch/api_client/paths/v1_sync_tasks/post.pyi +++ b/launch/api_client/paths/v1_sync_tasks/post.pyi @@ -6,28 +6,28 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.endpoint_predict_v1_request import EndpointPredictV1Request +from launch_client import api_client, exceptions +from launch_client.model.endpoint_predict_v1_request import ( + EndpointPredictV1Request, +) from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response +from launch_client.model.sync_endpoint_predict_v1_response import ( + SyncEndpointPredictV1Response, +) +from urllib3._collections import HTTPHeaderDict # Query params ModelEndpointIdSchema = schemas.StrSchema diff --git a/launch/api_client/rest.py b/launch/api_client/rest.py index 3faf0bd6..2065508f 100644 --- a/launch/api_client/rest.py +++ b/launch/api_client/rest.py @@ -11,8 +11,8 @@ import logging import ssl -from urllib.parse import urlencode import typing +from urllib.parse import urlencode import certifi import urllib3 @@ -20,7 +20,6 @@ from launch.api_client.exceptions import ApiException, ApiValueError - logger = logging.getLogger(__name__) diff --git a/launch/api_client/schemas.py b/launch/api_client/schemas.py index 46e9c6c4..3eaf4a2a 100644 --- a/launch/api_client/schemas.py +++ b/launch/api_client/schemas.py @@ -9,26 +9,21 @@ Generated by: https://openapi-generator.tech """ -from collections import defaultdict -from datetime import date, datetime, timedelta # noqa: F401 -import functools import decimal +import functools import io import re import types import typing import uuid +from collections import defaultdict +from datetime import date, datetime, timedelta # noqa: F401 -from dateutil.parser.isoparser import isoparser, _takes_ascii import frozendict +from dateutil.parser.isoparser import _takes_ascii, isoparser -from launch.api_client.exceptions import ( - ApiTypeError, - ApiValueError, -) -from launch.api_client.configuration import ( - Configuration, -) +from launch.api_client.configuration import Configuration +from launch.api_client.exceptions import ApiTypeError, ApiValueError class Unset(object): From f286479ff3cad5574e865b02606abfbe9b52dc46 Mon Sep 17 00:00:00 2001 From: Anirudh-Scale Date: Tue, 21 Mar 2023 18:49:26 +0000 Subject: [PATCH 04/11] new changes --- launch/api_client/__init__.py | 14 +- launch/api_client/api_client.py | 456 +++++---- launch/api_client/apis/__init__.py | 2 +- launch/api_client/apis/path_to_api.py | 38 +- .../v1_model_bundles_clone_with_changes.py | 4 +- .../paths/v1_model_bundles_model_bundle_id.py | 4 +- .../v1_model_endpoints_model_endpoint_id.py | 12 +- .../paths/v1_model_endpoints_schema_json.py | 4 +- launch/api_client/apis/tag_to_api.py | 4 +- launch/api_client/apis/tags/default_api.py | 73 +- launch/api_client/configuration.py | 213 ++-- launch/api_client/exceptions.py | 11 +- .../model/batch_job_serialization_format.py | 14 +- .../model/batch_job_serialization_format.pyi | 14 +- launch/api_client/model/batch_job_status.py | 22 +- launch/api_client/model/batch_job_status.pyi | 18 +- launch/api_client/model/callback_auth.py | 58 +- launch/api_client/model/callback_auth.pyi | 59 +- .../api_client/model/callback_basic_auth.py | 134 +-- .../api_client/model/callback_basic_auth.pyi | 99 +- launch/api_client/model/callbackm_tls_auth.py | 135 +-- .../api_client/model/callbackm_tls_auth.pyi | 100 +- .../model/clone_model_bundle_request.py | 5 +- .../model/clone_model_bundle_request.pyi | 8 +- .../model/clone_model_bundle_v1_request.py | 110 +-- .../model/clone_model_bundle_v1_request.pyi | 93 +- .../model/create_async_task_response.py | 17 +- .../model/create_async_task_response.pyi | 20 +- .../model/create_async_task_v1_response.py | 72 +- .../model/create_async_task_v1_response.pyi | 57 +- .../model/create_batch_job_request.py | 53 +- .../model/create_batch_job_request.pyi | 44 +- .../create_batch_job_resource_requests.py | 380 ++----- .../create_batch_job_resource_requests.pyi | 325 ++---- .../model/create_batch_job_response.py | 13 +- .../model/create_batch_job_response.pyi | 20 +- .../model/create_batch_job_v1_request.py | 205 ++-- .../model/create_batch_job_v1_request.pyi | 171 ++-- .../model/create_batch_job_v1_response.py | 72 +- .../model/create_batch_job_v1_response.pyi | 57 +- .../model/create_model_bundle_request.py | 53 +- .../model/create_model_bundle_request.pyi | 56 +- .../model/create_model_bundle_response.py | 17 +- .../model/create_model_bundle_response.pyi | 12 +- .../model/create_model_bundle_v1_request.py | 253 ++--- .../model/create_model_bundle_v1_request.pyi | 195 ++-- .../model/create_model_bundle_v1_response.py | 72 +- .../model/create_model_bundle_v1_response.pyi | 65 +- .../model/create_model_endpoint_request.py | 89 +- .../model/create_model_endpoint_request.pyi | 108 +- .../model/create_model_endpoint_response.py | 9 +- .../model/create_model_endpoint_response.pyi | 12 +- .../model/create_model_endpoint_v1_request.py | 728 ++++---------- .../create_model_endpoint_v1_request.pyi | 570 ++++------- .../create_model_endpoint_v1_response.py | 76 +- .../create_model_endpoint_v1_response.pyi | 65 +- .../model/delete_model_endpoint_response.py | 17 +- .../model/delete_model_endpoint_response.pyi | 20 +- .../delete_model_endpoint_v1_response.py | 72 +- .../delete_model_endpoint_v1_response.pyi | 57 +- .../model/endpoint_predict_request.py | 25 +- .../model/endpoint_predict_request.pyi | 28 +- .../model/endpoint_predict_v1_request.py | 181 +--- .../model/endpoint_predict_v1_request.pyi | 138 +-- .../model/get_async_task_response.py | 13 +- .../model/get_async_task_response.pyi | 20 +- .../model/get_async_task_v1_response.py | 158 +-- .../model/get_async_task_v1_response.pyi | 125 +-- .../model/get_batch_job_response.py | 9 +- .../model/get_batch_job_response.pyi | 16 +- .../model/get_batch_job_v1_response.py | 166 +--- .../model/get_batch_job_v1_response.pyi | 131 +-- .../model/get_model_endpoint_response.py | 105 +- .../model/get_model_endpoint_response.pyi | 104 +- .../model/get_model_endpoint_v1_response.py | 512 ++++------ .../model/get_model_endpoint_v1_response.pyi | 387 +++----- launch/api_client/model/gpu_type.py | 16 +- launch/api_client/model/gpu_type.pyi | 15 +- .../api_client/model/http_validation_error.py | 89 +- .../model/http_validation_error.pyi | 72 +- .../model/list_model_bundles_response.py | 21 +- .../model/list_model_bundles_response.pyi | 24 +- .../model/list_model_bundles_v1_response.py | 100 +- .../model/list_model_bundles_v1_response.pyi | 77 +- .../model/list_model_endpoints_response.py | 21 +- .../model/list_model_endpoints_response.pyi | 16 +- .../model/list_model_endpoints_v1_response.py | 102 +- .../list_model_endpoints_v1_response.pyi | 91 +- .../model/model_bundle_environment_params.py | 164 +--- .../model/model_bundle_environment_params.pyi | 131 +-- .../model/model_bundle_framework.py | 1 - .../model/model_bundle_framework_type.py | 16 +- .../model/model_bundle_framework_type.pyi | 15 +- .../api_client/model/model_bundle_order_by.py | 14 +- .../model/model_bundle_order_by.pyi | 14 +- .../model/model_bundle_packaging_type.py | 24 +- .../model/model_bundle_packaging_type.pyi | 23 +- .../api_client/model/model_bundle_response.py | 69 +- .../model/model_bundle_response.pyi | 72 +- .../model/model_bundle_v1_response.py | 342 ++----- .../model/model_bundle_v1_response.pyi | 259 ++--- .../model/model_endpoint_deployment_state.py | 202 ++-- .../model/model_endpoint_deployment_state.pyi | 153 ++- .../model/model_endpoint_order_by.py | 16 +- .../model/model_endpoint_order_by.pyi | 15 +- .../model/model_endpoint_resource_state.py | 375 ++----- .../model/model_endpoint_resource_state.pyi | 319 ++---- .../api_client/model/model_endpoint_status.py | 20 +- .../model/model_endpoint_status.pyi | 17 +- .../api_client/model/model_endpoint_type.py | 14 +- .../api_client/model/model_endpoint_type.pyi | 14 +- launch/api_client/model/request_schema.py | 5 +- launch/api_client/model/request_schema.pyi | 6 +- launch/api_client/model/response_schema.py | 5 +- launch/api_client/model/response_schema.pyi | 6 +- .../model/sync_endpoint_predict_response.py | 5 +- .../model/sync_endpoint_predict_response.pyi | 12 +- .../sync_endpoint_predict_v1_response.py | 141 +-- .../sync_endpoint_predict_v1_response.pyi | 116 +-- launch/api_client/model/task_status.py | 20 +- launch/api_client/model/task_status.pyi | 17 +- .../model/update_batch_job_request.py | 13 +- .../model/update_batch_job_request.pyi | 20 +- .../model/update_batch_job_response.py | 17 +- .../model/update_batch_job_response.pyi | 20 +- .../model/update_batch_job_v1_request.py | 72 +- .../model/update_batch_job_v1_request.pyi | 57 +- .../model/update_batch_job_v1_response.py | 72 +- .../model/update_batch_job_v1_response.pyi | 57 +- .../model/update_model_endpoint_request.py | 89 +- .../model/update_model_endpoint_request.pyi | 96 +- .../model/update_model_endpoint_response.py | 9 +- .../model/update_model_endpoint_response.pyi | 12 +- .../model/update_model_endpoint_v1_request.py | 692 ++++--------- .../update_model_endpoint_v1_request.pyi | 553 ++++------- .../update_model_endpoint_v1_response.py | 76 +- .../update_model_endpoint_v1_response.pyi | 65 +- launch/api_client/model/validation_error.py | 230 ++--- launch/api_client/model/validation_error.pyi | 195 +--- launch/api_client/models/__init__.py | 116 +-- .../api_client/paths/healthcheck/__init__.py | 2 +- launch/api_client/paths/healthcheck/get.py | 85 +- launch/api_client/paths/healthcheck/get.pyi | 83 +- launch/api_client/paths/healthz/__init__.py | 2 +- launch/api_client/paths/healthz/get.py | 85 +- launch/api_client/paths/healthz/get.pyi | 83 +- launch/api_client/paths/readyz/__init__.py | 2 +- launch/api_client/paths/readyz/get.py | 85 +- launch/api_client/paths/readyz/get.pyi | 83 +- .../paths/v1_async_tasks/__init__.py | 2 +- .../api_client/paths/v1_async_tasks/post.py | 163 +-- .../api_client/paths/v1_async_tasks/post.pyi | 162 ++- .../paths/v1_async_tasks_task_id/__init__.py | 2 +- .../paths/v1_async_tasks_task_id/get.py | 121 ++- .../paths/v1_async_tasks_task_id/get.pyi | 119 ++- .../paths/v1_batch_jobs/__init__.py | 2 +- launch/api_client/paths/v1_batch_jobs/post.py | 145 +-- .../api_client/paths/v1_batch_jobs/post.pyi | 142 ++- .../v1_batch_jobs_batch_job_id/__init__.py | 2 +- .../paths/v1_batch_jobs_batch_job_id/get.py | 121 ++- .../paths/v1_batch_jobs_batch_job_id/get.pyi | 115 ++- .../paths/v1_batch_jobs_batch_job_id/put.py | 165 ++-- .../paths/v1_batch_jobs_batch_job_id/put.pyi | 164 +++- .../paths/v1_model_bundles/__init__.py | 2 +- .../api_client/paths/v1_model_bundles/get.py | 120 ++- .../api_client/paths/v1_model_bundles/get.pyi | 118 ++- .../api_client/paths/v1_model_bundles/post.py | 145 +-- .../paths/v1_model_bundles/post.pyi | 142 ++- .../__init__.py | 2 +- .../post.py | 145 +-- .../post.pyi | 142 ++- .../paths/v1_model_bundles_latest/__init__.py | 2 +- .../paths/v1_model_bundles_latest/get.py | 119 ++- .../paths/v1_model_bundles_latest/get.pyi | 115 ++- .../__init__.py | 2 +- .../v1_model_bundles_model_bundle_id/get.py | 121 ++- .../v1_model_bundles_model_bundle_id/get.pyi | 117 ++- .../paths/v1_model_endpoints/__init__.py | 2 +- .../paths/v1_model_endpoints/get.py | 122 ++- .../paths/v1_model_endpoints/get.pyi | 116 ++- .../paths/v1_model_endpoints/post.py | 145 +-- .../paths/v1_model_endpoints/post.pyi | 142 ++- .../paths/v1_model_endpoints_api/__init__.py | 2 +- .../paths/v1_model_endpoints_api/get.py | 87 +- .../paths/v1_model_endpoints_api/get.pyi | 83 +- .../__init__.py | 2 +- .../delete.py | 121 ++- .../delete.pyi | 119 ++- .../get.py | 121 ++- .../get.pyi | 119 ++- .../put.py | 165 ++-- .../put.pyi | 164 +++- .../__init__.py | 2 +- .../v1_model_endpoints_schema_json/get.py | 87 +- .../v1_model_endpoints_schema_json/get.pyi | 83 +- .../paths/v1_sync_tasks/__init__.py | 2 +- launch/api_client/paths/v1_sync_tasks/post.py | 163 +-- .../api_client/paths/v1_sync_tasks/post.pyi | 162 ++- launch/api_client/rest.py | 139 ++- launch/api_client/schemas.py | 926 +++++++----------- 200 files changed, 9073 insertions(+), 10829 deletions(-) diff --git a/launch/api_client/__init__.py b/launch/api_client/__init__.py index 528259b2..290cb8df 100644 --- a/launch/api_client/__init__.py +++ b/launch/api_client/__init__.py @@ -20,11 +20,9 @@ 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.exceptions import OpenApiException +from launch.api_client.exceptions import ApiAttributeError +from launch.api_client.exceptions import ApiTypeError +from launch.api_client.exceptions import ApiValueError +from launch.api_client.exceptions import ApiKeyError +from launch.api_client.exceptions import ApiException diff --git a/launch/api_client/api_client.py b/launch/api_client/api_client.py index a18d0ec5..6df66791 100644 --- a/launch/api_client/api_client.py +++ b/launch/api_client/api_client.py @@ -8,39 +8,39 @@ Generated by: https://openapi-generator.tech """ -import atexit -import email +from dataclasses import dataclass +from decimal import Decimal import enum -import io +import email import json import os +import io +import atexit +from multiprocessing.pool import ThreadPool import re import tempfile import typing -from dataclasses import dataclass -from decimal import Decimal -from multiprocessing.pool import ThreadPool -from urllib.parse import quote, urlparse - -import frozendict import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict +from urllib.parse import urlparse, quote from urllib3.fields import RequestField as RequestFieldBase +import frozendict + from launch.api_client import rest from launch.api_client.configuration import Configuration from launch.api_client.exceptions import ApiTypeError, ApiValueError from launch.api_client.schemas import ( - BinarySchema, - BoolClass, - FileIO, NoneClass, + BoolClass, Schema, - Unset, + FileIO, + BinarySchema, date, datetime, none_type, + Unset, unset, ) @@ -53,7 +53,7 @@ def __eq__(self, other): class JSONEncoder(json.JSONEncoder): - compact_separators = (",", ":") + compact_separators = (',', ':') def default(self, obj): if isinstance(obj, str): @@ -74,24 +74,24 @@ def default(self, obj): return {key: self.default(val) for key, val in obj.items()} elif isinstance(obj, (list, tuple)): return [self.default(item) for item in obj] - raise ApiValueError("Unable to prepare type {} for serialization".format(obj.__class__.__name__)) + raise ApiValueError('Unable to prepare type {} for serialization'.format(obj.__class__.__name__)) class ParameterInType(enum.Enum): - QUERY = "query" - HEADER = "header" - PATH = "path" - COOKIE = "cookie" + QUERY = 'query' + HEADER = 'header' + PATH = 'path' + COOKIE = 'cookie' class ParameterStyle(enum.Enum): - MATRIX = "matrix" - LABEL = "label" - FORM = "form" - SIMPLE = "simple" - SPACE_DELIMITED = "spaceDelimited" - PIPE_DELIMITED = "pipeDelimited" - DEEP_OBJECT = "deepObject" + MATRIX = 'matrix' + LABEL = 'label' + FORM = 'form' + SIMPLE = 'simple' + SPACE_DELIMITED = 'spaceDelimited' + PIPE_DELIMITED = 'pipeDelimited' + DEEP_OBJECT = 'deepObject' class PrefixSeparatorIterator: @@ -101,10 +101,10 @@ def __init__(self, prefix: str, separator: str): self.prefix = prefix self.separator = separator self.first = True - if separator in {".", "|", "%20"}: + if separator in {'.', '|', '%20'}: item_separator = separator else: - item_separator = "," + item_separator = ',' self.item_separator = item_separator def __iter__(self): @@ -146,7 +146,7 @@ def __ref6570_item_value(in_data: typing.Any, percent_encode: bool): elif isinstance(in_data, dict) and not in_data: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return None - raise ApiValueError("Unable to generate a ref6570 item representation of {}".format(in_data)) + raise ApiValueError('Unable to generate a ref6570 item representation of {}'.format(in_data)) @staticmethod def _to_dict(name: str, value: str): @@ -161,12 +161,12 @@ def __ref6570_str_float_int_expansion( percent_encode: bool, prefix_separator_iterator: PrefixSeparatorIterator, var_name_piece: str, - named_parameter_expansion: bool, + named_parameter_expansion: bool ) -> str: item_value = cls.__ref6570_item_value(in_data, percent_encode) - if item_value is None or (item_value == "" and prefix_separator_iterator.separator == ";"): + if item_value is None or (item_value == '' and prefix_separator_iterator.separator == ';'): return next(prefix_separator_iterator) + var_name_piece - value_pair_equals = "=" if named_parameter_expansion else "" + value_pair_equals = '=' if named_parameter_expansion else '' return next(prefix_separator_iterator) + var_name_piece + value_pair_equals + item_value @classmethod @@ -178,20 +178,20 @@ def __ref6570_list_expansion( percent_encode: bool, prefix_separator_iterator: PrefixSeparatorIterator, var_name_piece: str, - named_parameter_expansion: bool, + named_parameter_expansion: bool ) -> str: item_values = [cls.__ref6570_item_value(v, percent_encode) for v in in_data] item_values = [v for v in item_values if v is not None] if not item_values: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return "" - value_pair_equals = "=" if named_parameter_expansion else "" + value_pair_equals = '=' if named_parameter_expansion else '' if not explode: return ( - next(prefix_separator_iterator) - + var_name_piece - + value_pair_equals - + prefix_separator_iterator.item_separator.join(item_values) + next(prefix_separator_iterator) + + var_name_piece + + value_pair_equals + + prefix_separator_iterator.item_separator.join(item_values) ) # exploded return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( @@ -207,27 +207,27 @@ def __ref6570_dict_expansion( percent_encode: bool, prefix_separator_iterator: PrefixSeparatorIterator, var_name_piece: str, - named_parameter_expansion: bool, + named_parameter_expansion: bool ) -> str: in_data_transformed = {key: cls.__ref6570_item_value(val, percent_encode) for key, val in in_data.items()} in_data_transformed = {key: val for key, val in in_data_transformed.items() if val is not None} if not in_data_transformed: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return "" - value_pair_equals = "=" if named_parameter_expansion else "" + value_pair_equals = '=' if named_parameter_expansion else '' if not explode: return ( - next(prefix_separator_iterator) - + var_name_piece - + value_pair_equals - + prefix_separator_iterator.item_separator.join( - prefix_separator_iterator.item_separator.join(item_pair) - for item_pair in in_data_transformed.items() + next(prefix_separator_iterator) + + var_name_piece + value_pair_equals + + prefix_separator_iterator.item_separator.join( + prefix_separator_iterator.item_separator.join( + item_pair + ) for item_pair in in_data_transformed.items() ) ) # exploded return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( - [key + "=" + val for key, val in in_data_transformed.items()] + [key + '=' + val for key, val in in_data_transformed.items()] ) @classmethod @@ -237,13 +237,13 @@ def _ref6570_expansion( in_data: typing.Any, explode: bool, percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator, + prefix_separator_iterator: PrefixSeparatorIterator ) -> str: """ Separator is for separate variables like dict with explode true, not for array item separation """ - named_parameter_expansion = prefix_separator_iterator.separator in {"&", ";"} - var_name_piece = variable_name if named_parameter_expansion else "" + named_parameter_expansion = prefix_separator_iterator.separator in {'&', ';'} + var_name_piece = variable_name if named_parameter_expansion else '' if type(in_data) in {str, float, int}: return cls.__ref6570_str_float_int_expansion( variable_name, @@ -252,7 +252,7 @@ def _ref6570_expansion( percent_encode, prefix_separator_iterator, var_name_piece, - named_parameter_expansion, + named_parameter_expansion ) elif isinstance(in_data, none_type): # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 @@ -265,7 +265,7 @@ def _ref6570_expansion( percent_encode, prefix_separator_iterator, var_name_piece, - named_parameter_expansion, + named_parameter_expansion ) elif isinstance(in_data, dict): return cls.__ref6570_dict_expansion( @@ -275,10 +275,10 @@ def _ref6570_expansion( percent_encode, prefix_separator_iterator, var_name_piece, - named_parameter_expansion, + named_parameter_expansion ) # bool, bytes, etc - raise ApiValueError("Unable to generate a ref6570 representation of {}".format(in_data)) + raise ApiValueError('Unable to generate a ref6570 representation of {}'.format(in_data)) class StyleFormSerializer(ParameterSerializerBase): @@ -294,34 +294,35 @@ def _serialize_form( name: str, explode: bool, percent_encode: bool, - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None, + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None ) -> str: if prefix_separator_iterator is None: - prefix_separator_iterator = PrefixSeparatorIterator("", "&") + prefix_separator_iterator = PrefixSeparatorIterator('', '&') return self._ref6570_expansion( variable_name=name, in_data=in_data, explode=explode, percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) class StyleSimpleSerializer(ParameterSerializerBase): + def _serialize_simple( self, in_data: typing.Union[None, int, float, str, bool, dict, list], name: str, explode: bool, - percent_encode: bool, + percent_encode: bool ) -> str: - prefix_separator_iterator = PrefixSeparatorIterator("", ",") + prefix_separator_iterator = PrefixSeparatorIterator('', ',') return self._ref6570_expansion( variable_name=name, in_data=in_data, explode=explode, percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) @@ -333,7 +334,6 @@ class JSONDetector: application/json-patch+json application/geo+json """ - __json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*") @classmethod @@ -369,7 +369,7 @@ class ParameterBase(JSONDetector): ParameterInType.HEADER: ParameterStyle.SIMPLE, ParameterInType.COOKIE: ParameterStyle.FORM, } - __disallowed_header_names = {"Accept", "Content-Type", "Authorization"} + __disallowed_header_names = {'Accept', 'Content-Type', 'Authorization'} _json_encoder = JSONEncoder() @classmethod @@ -379,7 +379,7 @@ def __verify_style_to_in_type(cls, style: typing.Optional[ParameterStyle], in_ty in_type_set = cls.__style_to_in_type[style] if in_type not in in_type_set: raise ValueError( - "Invalid style and in_type combination. For style={} only in_type={} are allowed".format( + 'Invalid style and in_type combination. For style={} only in_type={} are allowed'.format( style, in_type_set ) ) @@ -393,19 +393,19 @@ def __init__( explode: bool = False, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None ): if schema is None and content is None: - raise ValueError("Value missing; Pass in either schema or content") + raise ValueError('Value missing; Pass in either schema or content') if schema and content: - raise ValueError("Too many values provided. Both schema and content were provided. Only one may be input") + raise ValueError('Too many values provided. Both schema and content were provided. Only one may be input') if name in self.__disallowed_header_names and in_type is ParameterInType.HEADER: - raise ValueError("Invalid name, name may not be one of {}".format(self.__disallowed_header_names)) + raise ValueError('Invalid name, name may not be one of {}'.format(self.__disallowed_header_names)) self.__verify_style_to_in_type(style, in_type) if content is None and style is None: style = self.__in_type_to_default_style[in_type] if content is not None and in_type in self.__in_type_to_default_style and len(content) != 1: - raise ValueError("Invalid content length, content length must equal 1") + raise ValueError('Invalid content length, content length must equal 1') self.in_type = in_type self.name = name self.required = required @@ -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) @@ -424,6 +426,7 @@ def _serialize_json( class PathParameter(ParameterBase, StyleSimpleSerializer): + def __init__( self, name: str, @@ -432,7 +435,7 @@ def __init__( explode: bool = False, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None ): super().__init__( name, @@ -442,32 +445,34 @@ def __init__( explode=explode, allow_reserved=allow_reserved, schema=schema, - content=content, + content=content ) def __serialize_label( - self, in_data: typing.Union[None, int, float, str, bool, dict, list] + self, + in_data: typing.Union[None, int, float, str, bool, dict, list] ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator(".", ".") + prefix_separator_iterator = PrefixSeparatorIterator('.', '.') value = self._ref6570_expansion( variable_name=self.name, in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) return self._to_dict(self.name, value) def __serialize_matrix( - self, in_data: typing.Union[None, int, float, str, bool, dict, list] + self, + in_data: typing.Union[None, int, float, str, bool, dict, list] ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator(";", ";") + prefix_separator_iterator = PrefixSeparatorIterator(';', ';') value = self._ref6570_expansion( variable_name=self.name, in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) return self._to_dict(self.name, value) @@ -475,14 +480,18 @@ def __serialize_simple( self, in_data: typing.Union[None, int, float, str, bool, dict, list], ) -> typing.Dict[str, str]: - value = self._serialize_simple(in_data=in_data, name=self.name, explode=self.explode, percent_encode=True) + value = self._serialize_simple( + in_data=in_data, + name=self.name, + explode=self.explode, + percent_encode=True + ) return self._to_dict(self.name, value) 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: cast_in_data = self.schema(in_data) @@ -510,10 +519,11 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self._to_dict(self.name, value) - raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) + raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) class QueryParameter(ParameterBase, StyleFormSerializer): + def __init__( self, name: str, @@ -522,7 +532,7 @@ def __init__( explode: typing.Optional[bool] = None, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None ): used_style = ParameterStyle.FORM if style is None else style used_explode = self._get_default_explode(used_style) if explode is None else explode @@ -535,13 +545,13 @@ def __init__( explode=used_explode, allow_reserved=allow_reserved, schema=schema, - content=content, + content=content ) def __serialize_space_delimited( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] ) -> typing.Dict[str, str]: if prefix_separator_iterator is None: prefix_separator_iterator = self.get_prefix_separator_iterator() @@ -550,14 +560,14 @@ def __serialize_space_delimited( in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) return self._to_dict(self.name, value) def __serialize_pipe_delimited( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] ) -> typing.Dict[str, str]: if prefix_separator_iterator is None: prefix_separator_iterator = self.get_prefix_separator_iterator() @@ -566,14 +576,14 @@ def __serialize_pipe_delimited( in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) return self._to_dict(self.name, value) def __serialize_form( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] ) -> typing.Dict[str, str]: if prefix_separator_iterator is None: prefix_separator_iterator = self.get_prefix_separator_iterator() @@ -582,24 +592,23 @@ def __serialize_form( name=self.name, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator, + prefix_separator_iterator=prefix_separator_iterator ) return self._to_dict(self.name, value) def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterator]: if self.style is ParameterStyle.FORM: - return PrefixSeparatorIterator("?", "&") + return PrefixSeparatorIterator('?', '&') elif self.style is ParameterStyle.SPACE_DELIMITED: - return PrefixSeparatorIterator("", "%20") + return PrefixSeparatorIterator('', '%20') elif self.style is ParameterStyle.PIPE_DELIMITED: - return PrefixSeparatorIterator("", "|") + return PrefixSeparatorIterator('', '|') def serialize( self, in_data: typing.Union[ - Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict - ], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None, + 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]: if self.schema: cast_in_data = self.schema(in_data) @@ -633,11 +642,15 @@ def serialize( cast_in_data = self._json_encoder.default(cast_in_data) if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data, eliminate_whitespace=True) - return self._to_dict(self.name, next(prefix_separator_iterator) + self.name + "=" + quote(value)) - raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) + return self._to_dict( + self.name, + next(prefix_separator_iterator) + self.name + '=' + quote(value) + ) + raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) class CookieParameter(ParameterBase, StyleFormSerializer): + def __init__( self, name: str, @@ -646,7 +659,7 @@ def __init__( explode: typing.Optional[bool] = None, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None ): used_style = ParameterStyle.FORM if style is None and content is None and schema else style used_explode = self._get_default_explode(used_style) if explode is None else explode @@ -659,14 +672,13 @@ def __init__( explode=used_explode, allow_reserved=allow_reserved, schema=schema, - content=content, + content=content ) 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: cast_in_data = self.schema(in_data) @@ -685,7 +697,7 @@ def serialize( explode=self.explode, name=self.name, percent_encode=False, - prefix_separator_iterator=PrefixSeparatorIterator("", "&"), + prefix_separator_iterator=PrefixSeparatorIterator('', '&') ) return self._to_dict(self.name, value) # self.content will be length one @@ -695,7 +707,7 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self._to_dict(self.name, value) - raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) + raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) class HeaderParameter(ParameterBase, StyleSimpleSerializer): @@ -707,7 +719,7 @@ def __init__( explode: bool = False, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None ): super().__init__( name, @@ -717,7 +729,7 @@ def __init__( explode=explode, allow_reserved=allow_reserved, schema=schema, - content=content, + content=content ) @staticmethod @@ -732,8 +744,7 @@ 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: cast_in_data = self.schema(in_data) @@ -753,7 +764,7 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self.__to_headers(((self.name, value),)) - raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) + raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) class Encoding: @@ -782,7 +793,6 @@ class MediaType: The encoding object SHALL only apply to requestBody objects when the media type is multipart or application/x-www-form-urlencoded. """ - schema: typing.Optional[typing.Type[Schema]] = None encoding: typing.Optional[typing.Dict[str, Encoding]] = None @@ -797,7 +807,7 @@ def __init__( self, response: urllib3.HTTPResponse, body: typing.Union[Unset, Schema] = unset, - headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset, + headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset ): """ pycharm needs this to prevent 'Unexpected argument' warnings @@ -825,7 +835,7 @@ def __init__( ): self.headers = headers if content is not None and len(content) == 0: - raise ValueError("Invalid value for content, the content dict must have >= 1 entry") + raise ValueError('Invalid value for content, the content dict must have >= 1 entry') self.content = content self.response_cls = response_cls @@ -866,16 +876,17 @@ def __deserialize_application_octet_stream( a file will be written and returned """ if response.supports_chunked_reads(): - file_name = self.__file_name_from_content_disposition( - response.headers.get("content-disposition") - ) or self.__file_name_from_response_url(response.geturl()) + file_name = ( + self.__file_name_from_content_disposition(response.headers.get('content-disposition')) + or self.__file_name_from_response_url(response.geturl()) + ) if file_name is None: _fd, path = tempfile.mkstemp() else: path = os.path.join(tempfile.gettempdir(), file_name) - with open(path, "wb") as new_file: + with open(path, 'wb') as new_file: chunk_size = 1024 while True: data = response.read(chunk_size) @@ -884,25 +895,27 @@ def __deserialize_application_octet_stream( new_file.write(data) # release_conn is needed for streaming connections only response.release_conn() - new_file = open(path, "rb") + new_file = open(path, 'rb') return new_file else: 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( - part.get_content_charset() - ) + part.get_param("name", header="Content-Disposition"): part.get_payload( + decode=True + ).decode(part.get_content_charset()) if part.get_content_charset() else part.get_payload() for part in msg.get_payload() } def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: - content_type = response.getheader("content-type") + content_type = response.getheader('content-type') deserialized_body = unset streamed = response.supports_chunked_reads() @@ -920,22 +933,31 @@ def deserialize(self, response: urllib3.HTTPResponse, configuration: Configurati body_schema = self.content[content_type].schema if body_schema is None: # some specs do not define response content media type schemas - return self.response_cls(response=response, headers=deserialized_headers, body=unset) + return self.response_cls( + response=response, + headers=deserialized_headers, + body=unset + ) if self._content_type_is_json(content_type): body_data = self.__deserialize_json(response) - elif content_type == "application/octet-stream": + elif content_type == 'application/octet-stream': body_data = self.__deserialize_application_octet_stream(response) - elif content_type.startswith("multipart/form-data"): + elif content_type.startswith('multipart/form-data'): body_data = self.__deserialize_multipart_form_data(response) - content_type = "multipart/form-data" + content_type = 'multipart/form-data' else: - raise NotImplementedError("Deserialization of {} has not yet been implemented".format(content_type)) - deserialized_body = body_schema.from_openapi_data_oapg(body_data, _configuration=configuration) + raise NotImplementedError('Deserialization of {} has not yet been implemented'.format(content_type)) + deserialized_body = body_schema.from_openapi_data_oapg( + body_data, _configuration=configuration) elif streamed: response.release_conn() - return self.response_cls(response=response, headers=deserialized_headers, body=deserialized_body) + return self.response_cls( + response=response, + headers=deserialized_headers, + body=deserialized_body + ) class ApiClient: @@ -968,7 +990,7 @@ def __init__( header_name: typing.Optional[str] = None, header_value: typing.Optional[str] = None, cookie: typing.Optional[str] = None, - pool_threads: int = 1, + pool_threads: int = 1 ): if configuration is None: configuration = Configuration() @@ -981,7 +1003,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/1.0.6/python" + self.user_agent = 'OpenAPI-Generator/1.0.6/python' def __enter__(self): return self @@ -994,13 +1016,13 @@ def close(self): self._pool.close() self._pool.join() self._pool = None - if hasattr(atexit, "unregister"): + if hasattr(atexit, 'unregister'): atexit.unregister(self.close) @property def pool(self): """Create thread pool on first request - avoids instantiating unused threadpool for blocking clients. + avoids instantiating unused threadpool for blocking clients. """ if self._pool is None: atexit.register(self.close) @@ -1010,11 +1032,11 @@ def pool(self): @property def user_agent(self): """User agent for this API client""" - return self.default_headers["User-Agent"] + return self.default_headers['User-Agent'] @user_agent.setter def user_agent(self, value): - self.default_headers["User-Agent"] = value + self.default_headers['User-Agent'] = value def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value @@ -1031,13 +1053,15 @@ def __call_api( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, host: typing.Optional[str] = None, ) -> urllib3.HTTPResponse: + # header parameters used_headers = HTTPHeaderDict(self.default_headers) if self.cookie: - headers["Cookie"] = self.cookie + headers['Cookie'] = self.cookie # auth setting - self.update_params_for_auth(used_headers, auth_settings, resource_path, method, body) + self.update_params_for_auth(used_headers, + auth_settings, resource_path, method, body) # must happen after cookie setting and auth setting in case user is overriding those if headers: @@ -1135,7 +1159,7 @@ def call_api( stream, timeout, host, - ), + ) ) def request( @@ -1150,27 +1174,57 @@ def request( ) -> urllib3.HTTPResponse: """Makes the HTTP request using RESTClient.""" if method == "GET": - return self.rest_client.GET(url, stream=stream, timeout=timeout, headers=headers) + return self.rest_client.GET(url, + stream=stream, + timeout=timeout, + headers=headers) elif method == "HEAD": - return self.rest_client.HEAD(url, stream=stream, timeout=timeout, headers=headers) + return self.rest_client.HEAD(url, + stream=stream, + timeout=timeout, + headers=headers) elif method == "OPTIONS": - return self.rest_client.OPTIONS( - url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body - ) + return self.rest_client.OPTIONS(url, + headers=headers, + fields=fields, + stream=stream, + timeout=timeout, + body=body) elif method == "POST": - return self.rest_client.POST(url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body) + return self.rest_client.POST(url, + headers=headers, + fields=fields, + stream=stream, + timeout=timeout, + body=body) elif method == "PUT": - return self.rest_client.PUT(url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body) + return self.rest_client.PUT(url, + headers=headers, + fields=fields, + stream=stream, + timeout=timeout, + body=body) elif method == "PATCH": - return self.rest_client.PATCH( - url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body - ) + return self.rest_client.PATCH(url, + headers=headers, + fields=fields, + stream=stream, + timeout=timeout, + body=body) elif method == "DELETE": - return self.rest_client.DELETE(url, headers=headers, stream=stream, timeout=timeout, body=body) + return self.rest_client.DELETE(url, + headers=headers, + stream=stream, + timeout=timeout, + body=body) else: - raise ApiValueError("http method must be `GET`, `HEAD`, `OPTIONS`," " `POST`, `PATCH`, `PUT` or `DELETE`.") + raise ApiValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) - def update_params_for_auth(self, headers, auth_settings, resource_path, method, body): + def update_params_for_auth(self, headers, auth_settings, + resource_path, method, body): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. @@ -1187,19 +1241,21 @@ def update_params_for_auth(self, headers, auth_settings, resource_path, method, auth_setting = self.configuration.auth_settings().get(auth) if not auth_setting: continue - if auth_setting["in"] == "cookie": - headers.add("Cookie", auth_setting["value"]) - elif auth_setting["in"] == "header": - if auth_setting["type"] != "http-signature": - headers.add(auth_setting["key"], auth_setting["value"]) - elif auth_setting["in"] == "query": - """TODO implement auth in query + if auth_setting['in'] == 'cookie': + headers.add('Cookie', auth_setting['value']) + elif auth_setting['in'] == 'header': + if auth_setting['type'] != 'http-signature': + headers.add(auth_setting['key'], auth_setting['value']) + elif auth_setting['in'] == 'query': + """ TODO implement auth in query need to pass in prefix_separator_iterator and need to output resource_path with query params added """ raise ApiValueError("Auth in query not yet implemented") else: - raise ApiValueError("Authentication token must be in `query` or `header`") + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) class Api: @@ -1215,9 +1271,7 @@ def __init__(self, api_client: typing.Optional[ApiClient] = None): self.api_client = api_client @staticmethod - def _verify_typed_dict_inputs_oapg( - cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any] - ): + def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any]): """ Ensures that: - required keys are present @@ -1236,13 +1290,13 @@ def _verify_typed_dict_inputs_oapg( required_keys_with_unset_values.append(required_key) if missing_required_keys: raise ApiTypeError( - "{} missing {} required arguments: {}".format( + '{} missing {} required arguments: {}'.format( cls.__name__, len(missing_required_keys), missing_required_keys - ) - ) + ) + ) if required_keys_with_unset_values: raise ApiValueError( - "{} contains invalid unset values for {} required keys: {}".format( + '{} contains invalid unset values for {} required keys: {}'.format( cls.__name__, len(required_keys_with_unset_values), required_keys_with_unset_values ) ) @@ -1254,7 +1308,7 @@ def _verify_typed_dict_inputs_oapg( disallowed_additional_keys.append(key) if disallowed_additional_keys: raise ApiTypeError( - "{} got {} unexpected keyword arguments: {}".format( + '{} got {} unexpected keyword arguments: {}'.format( cls.__name__, len(disallowed_additional_keys), disallowed_additional_keys ) ) @@ -1263,21 +1317,28 @@ def _get_host_oapg( self, operation_id: str, servers: typing.Tuple[typing.Dict[str, str], ...] = tuple(), - host_index: typing.Optional[int] = None, + host_index: typing.Optional[int] = None ) -> typing.Optional[str]: configuration = self.api_client.configuration try: if host_index is None: - index = configuration.server_operation_index.get(operation_id, configuration.server_index) + index = configuration.server_operation_index.get( + operation_id, configuration.server_index + ) else: index = host_index server_variables = configuration.server_operation_variables.get( operation_id, configuration.server_variables ) - host = configuration.get_host_from_settings(index, variables=server_variables, servers=servers) + host = configuration.get_host_from_settings( + index, variables=server_variables, servers=servers + ) except IndexError: if servers: - raise ApiValueError("Invalid host index. Must be 0 <= index < %s" % len(servers)) + raise ApiValueError( + "Invalid host index. Must be 0 <= index < %s" % + len(servers) + ) host = None return host @@ -1292,7 +1353,6 @@ class RequestBody(StyleFormSerializer, JSONDetector): A request body parameter content: content_type to MediaType Schema info """ - __json_encoder = JSONEncoder() def __init__( @@ -1302,39 +1362,44 @@ def __init__( ): self.required = required if len(content) == 0: - raise ValueError("Invalid value for content, the content dict must have >= 1 entry") + raise ValueError('Invalid value for content, the content dict must have >= 1 entry') self.content = content - def __serialize_json(self, in_data: typing.Any) -> typing.Dict[str, bytes]: + def __serialize_json( + self, + in_data: typing.Any + ) -> typing.Dict[str, bytes]: in_data = self.__json_encoder.default(in_data) - json_str = json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode("utf-8") + json_str = json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode( + "utf-8" + ) return dict(body=json_str) @staticmethod def __serialize_text_plain(in_data: typing.Any) -> typing.Dict[str, str]: if isinstance(in_data, frozendict.frozendict): - raise ValueError("Unable to serialize type frozendict.frozendict to text/plain") + raise ValueError('Unable to serialize type frozendict.frozendict to text/plain') elif isinstance(in_data, tuple): - raise ValueError("Unable to serialize type tuple to text/plain") + raise ValueError('Unable to serialize type tuple to text/plain') elif isinstance(in_data, NoneClass): - raise ValueError("Unable to serialize type NoneClass to text/plain") + raise ValueError('Unable to serialize type NoneClass to text/plain') elif isinstance(in_data, BoolClass): - raise ValueError("Unable to serialize type BoolClass to text/plain") + raise ValueError('Unable to serialize type BoolClass to text/plain') return dict(body=str(in_data)) def __multipart_json_item(self, key: str, value: Schema) -> RequestField: json_value = self.__json_encoder.default(value) request_field = RequestField(name=key, data=json.dumps(json_value)) - request_field.make_multipart(content_type="application/json") + request_field.make_multipart(content_type='application/json') return request_field def __multipart_form_item(self, key: str, value: Schema) -> RequestField: if isinstance(value, str): request_field = RequestField(name=key, data=str(value)) - request_field.make_multipart(content_type="text/plain") + request_field.make_multipart(content_type='text/plain') elif isinstance(value, bytes): request_field = RequestField(name=key, data=value) - request_field.make_multipart(content_type="application/octet-stream") + request_field.make_multipart(content_type='application/octet-stream') elif isinstance(value, FileIO): # TODO use content.encoding to limit allowed content types if they are present request_field = RequestField.from_tuples(key, (os.path.basename(value.name), value.read())) @@ -1343,9 +1408,11 @@ def __multipart_form_item(self, key: str, value: Schema) -> RequestField: request_field = self.__multipart_json_item(key=key, value=value) return request_field - def __serialize_multipart_form_data(self, in_data: Schema) -> typing.Dict[str, typing.Tuple[RequestField, ...]]: + def __serialize_multipart_form_data( + self, in_data: Schema + ) -> typing.Dict[str, typing.Tuple[RequestField, ...]]: if not isinstance(in_data, frozendict.frozendict): - raise ValueError(f"Unable to serialize {in_data} to multipart/form-data because it is not a dict of data") + raise ValueError(f'Unable to serialize {in_data} to multipart/form-data because it is not a dict of data') """ In a multipart/form-data request body, each schema property, or each element of a schema array property, takes a section in the payload with an internal header as defined by RFC7578. The serialization strategy @@ -1385,19 +1452,22 @@ def __serialize_application_octet_stream(self, in_data: BinarySchema) -> typing. in_data.close() return result - def __serialize_application_x_www_form_data(self, in_data: typing.Any) -> SerializedRequestBody: + def __serialize_application_x_www_form_data( + self, in_data: typing.Any + ) -> SerializedRequestBody: """ POST submission of form data in body """ if not isinstance(in_data, frozendict.frozendict): raise ValueError( - f"Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data" - ) + f'Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data') cast_in_data = self.__json_encoder.default(in_data) - value = self._serialize_form(cast_in_data, name="", explode=True, percent_encode=True) + value = self._serialize_form(cast_in_data, name='', explode=True, percent_encode=True) return dict(body=value) - def serialize(self, in_data: typing.Any, content_type: str) -> SerializedRequestBody: + def serialize( + self, in_data: typing.Any, content_type: str + ) -> SerializedRequestBody: """ If a str is returned then the result will be assigned to data when making the request If a tuple is returned then the result will be used as fields input in encode_multipart_formdata @@ -1418,12 +1488,12 @@ def serialize(self, in_data: typing.Any, content_type: str) -> SerializedRequest # and content_type is multipart or application/x-www-form-urlencoded if self._content_type_is_json(content_type): return self.__serialize_json(cast_in_data) - elif content_type == "text/plain": + elif content_type == 'text/plain': return self.__serialize_text_plain(cast_in_data) - elif content_type == "multipart/form-data": + elif content_type == 'multipart/form-data': return self.__serialize_multipart_form_data(cast_in_data) - elif content_type == "application/x-www-form-urlencoded": + elif content_type == 'application/x-www-form-urlencoded': return self.__serialize_application_x_www_form_data(cast_in_data) - elif content_type == "application/octet-stream": + elif content_type == 'application/octet-stream': return self.__serialize_application_octet_stream(cast_in_data) - raise NotImplementedError("Serialization has not yet been implemented for {}".format(content_type)) + raise NotImplementedError('Serialization has not yet been implemented for {}'.format(content_type)) \ No newline at end of file diff --git a/launch/api_client/apis/__init__.py b/launch/api_client/apis/__init__.py index 5ca66b80..7840f772 100644 --- a/launch/api_client/apis/__init__.py +++ b/launch/api_client/apis/__init__.py @@ -1,3 +1,3 @@ # do not import all endpoints into this module because that uses a lot of memory and stack frames # if you need the ability to import all endpoints then import them from -# tags, paths, or path_to_api, or tag_to_api +# tags, paths, or path_to_api, or tag_to_api \ No newline at end of file diff --git a/launch/api_client/apis/path_to_api.py b/launch/api_client/apis/path_to_api.py index 89fa65fe..4b5eab03 100644 --- a/launch/api_client/apis/path_to_api.py +++ b/launch/api_client/apis/path_to_api.py @@ -1,41 +1,25 @@ import typing_extensions +from launch.api_client.paths import PathValues from launch.api_client.apis.paths.healthcheck import Healthcheck from launch.api_client.apis.paths.healthz import Healthz from launch.api_client.apis.paths.readyz import Readyz from launch.api_client.apis.paths.v1_async_tasks import V1AsyncTasks -from launch.api_client.apis.paths.v1_async_tasks_task_id import ( - V1AsyncTasksTaskId, -) +from launch.api_client.apis.paths.v1_async_tasks_task_id import V1AsyncTasksTaskId from launch.api_client.apis.paths.v1_batch_jobs import V1BatchJobs -from launch.api_client.apis.paths.v1_batch_jobs_batch_job_id import ( - V1BatchJobsBatchJobId, -) +from launch.api_client.apis.paths.v1_batch_jobs_batch_job_id import V1BatchJobsBatchJobId 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, -) -from launch.api_client.apis.paths.v1_model_bundles_latest import ( - V1ModelBundlesLatest, -) -from launch.api_client.apis.paths.v1_model_bundles_model_bundle_id import ( - V1ModelBundlesModelBundleId, -) +from launch.api_client.apis.paths.v1_model_bundles_clone_with_changes import V1ModelBundlesCloneWithChanges +from launch.api_client.apis.paths.v1_model_bundles_latest import V1ModelBundlesLatest +from launch.api_client.apis.paths.v1_model_bundles_model_bundle_id import V1ModelBundlesModelBundleId from launch.api_client.apis.paths.v1_model_endpoints import V1ModelEndpoints -from launch.api_client.apis.paths.v1_model_endpoints_api import ( - V1ModelEndpointsApi, -) -from launch.api_client.apis.paths.v1_model_endpoints_model_endpoint_id import ( - V1ModelEndpointsModelEndpointId, -) -from launch.api_client.apis.paths.v1_model_endpoints_schema_json import ( - V1ModelEndpointsSchemaJson, -) +from launch.api_client.apis.paths.v1_model_endpoints_api import V1ModelEndpointsApi +from launch.api_client.apis.paths.v1_model_endpoints_schema_json import V1ModelEndpointsSchemaJson +from launch.api_client.apis.paths.v1_model_endpoints_model_endpoint_id import V1ModelEndpointsModelEndpointId from launch.api_client.apis.paths.v1_sync_tasks import V1SyncTasks -from launch.api_client.paths import PathValues PathToApi = typing_extensions.TypedDict( - "PathToApi", + 'PathToApi', { PathValues.HEALTHCHECK: Healthcheck, PathValues.HEALTHZ: Healthz, @@ -53,7 +37,7 @@ PathValues.V1_MODELENDPOINTSSCHEMA_JSON: V1ModelEndpointsSchemaJson, PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID: V1ModelEndpointsModelEndpointId, PathValues.V1_SYNCTASKS: V1SyncTasks, - }, + } ) path_to_api = PathToApi( diff --git a/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py b/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py index df0644e3..caf9cf08 100644 --- a/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py +++ b/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py @@ -1,6 +1,4 @@ -from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ( - ApiForpost, -) +from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ApiForpost class V1ModelBundlesCloneWithChanges( diff --git a/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py b/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py index 0e646257..c513ff35 100644 --- a/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py +++ b/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py @@ -1,6 +1,4 @@ -from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ( - ApiForget, -) +from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ApiForget class V1ModelBundlesModelBundleId( diff --git a/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py b/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py index 7f4d3e3a..a4bd9dfb 100644 --- a/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py +++ b/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py @@ -1,12 +1,6 @@ -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ( - ApiFordelete, -) -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ( - ApiForget, -) -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ( - ApiForput, -) +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ApiForget +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ApiForput +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ApiFordelete class V1ModelEndpointsModelEndpointId( diff --git a/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py b/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py index 7c62f95b..de361413 100644 --- a/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py +++ b/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py @@ -1,6 +1,4 @@ -from launch.api_client.paths.v1_model_endpoints_schema_json.get import ( - ApiForget, -) +from launch.api_client.paths.v1_model_endpoints_schema_json.get import ApiForget class V1ModelEndpointsSchemaJson( diff --git a/launch/api_client/apis/tag_to_api.py b/launch/api_client/apis/tag_to_api.py index 8b3c0d6d..f2a2dfcf 100644 --- a/launch/api_client/apis/tag_to_api.py +++ b/launch/api_client/apis/tag_to_api.py @@ -4,10 +4,10 @@ from launch.api_client.apis.tags.default_api import DefaultApi TagToApi = typing_extensions.TypedDict( - "TagToApi", + 'TagToApi', { TagValues.DEFAULT: DefaultApi, - }, + } ) tag_to_api = TagToApi( diff --git a/launch/api_client/apis/tags/default_api.py b/launch/api_client/apis/tags/default_api.py index 6a2bb4aa..acabeccb 100644 --- a/launch/api_client/apis/tags/default_api.py +++ b/launch/api_client/apis/tags/default_api.py @@ -9,63 +9,27 @@ Generated by: https://openapi-generator.tech """ +from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost +from launch.api_client.paths.v1_async_tasks.post import CreateAsyncInferenceTaskV1AsyncTasksPost +from launch.api_client.paths.v1_batch_jobs.post import CreateBatchJobV1BatchJobsPost +from launch.api_client.paths.v1_model_bundles.post import CreateModelBundleV1ModelBundlesPost +from launch.api_client.paths.v1_model_endpoints.post import CreateModelEndpointV1ModelEndpointsPost +from launch.api_client.paths.v1_sync_tasks.post import CreateSyncInferenceTaskV1SyncTasksPost +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete +from launch.api_client.paths.v1_async_tasks_task_id.get import GetAsyncInferenceTaskV1AsyncTasksTaskIdGet +from launch.api_client.paths.v1_batch_jobs_batch_job_id.get import GetBatchJobV1BatchJobsBatchJobIdGet +from launch.api_client.paths.v1_model_bundles_latest.get import GetLatestModelBundleV1ModelBundlesLatestGet +from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import GetModelBundleV1ModelBundlesModelBundleIdGet +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import GetModelEndpointV1ModelEndpointsModelEndpointIdGet +from launch.api_client.paths.v1_model_endpoints_api.get import GetModelEndpointsApiV1ModelEndpointsApiGet +from launch.api_client.paths.v1_model_endpoints_schema_json.get import GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet from launch.api_client.paths.healthcheck.get import HealthcheckHealthcheckGet from launch.api_client.paths.healthz.get import HealthcheckHealthzGet from launch.api_client.paths.readyz.get import HealthcheckReadyzGet -from launch.api_client.paths.v1_async_tasks.post import ( - CreateAsyncInferenceTaskV1AsyncTasksPost, -) -from launch.api_client.paths.v1_async_tasks_task_id.get import ( - GetAsyncInferenceTaskV1AsyncTasksTaskIdGet, -) -from launch.api_client.paths.v1_batch_jobs.post import ( - CreateBatchJobV1BatchJobsPost, -) -from launch.api_client.paths.v1_batch_jobs_batch_job_id.get import ( - GetBatchJobV1BatchJobsBatchJobIdGet, -) -from launch.api_client.paths.v1_batch_jobs_batch_job_id.put import ( - UpdateBatchJobV1BatchJobsBatchJobIdPut, -) -from launch.api_client.paths.v1_model_bundles.get import ( - ListModelBundlesV1ModelBundlesGet, -) -from launch.api_client.paths.v1_model_bundles.post import ( - CreateModelBundleV1ModelBundlesPost, -) -from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ( - CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost, -) -from launch.api_client.paths.v1_model_bundles_latest.get import ( - GetLatestModelBundleV1ModelBundlesLatestGet, -) -from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ( - GetModelBundleV1ModelBundlesModelBundleIdGet, -) -from launch.api_client.paths.v1_model_endpoints.get import ( - ListModelEndpointsV1ModelEndpointsGet, -) -from launch.api_client.paths.v1_model_endpoints.post import ( - CreateModelEndpointV1ModelEndpointsPost, -) -from launch.api_client.paths.v1_model_endpoints_api.get import ( - GetModelEndpointsApiV1ModelEndpointsApiGet, -) -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ( - DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete, -) -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ( - GetModelEndpointV1ModelEndpointsModelEndpointIdGet, -) -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ( - UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut, -) -from launch.api_client.paths.v1_model_endpoints_schema_json.get import ( - GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet, -) -from launch.api_client.paths.v1_sync_tasks.post import ( - CreateSyncInferenceTaskV1SyncTasksPost, -) +from launch.api_client.paths.v1_model_bundles.get import ListModelBundlesV1ModelBundlesGet +from launch.api_client.paths.v1_model_endpoints.get import ListModelEndpointsV1ModelEndpointsGet +from launch.api_client.paths.v1_batch_jobs_batch_job_id.put import UpdateBatchJobV1BatchJobsBatchJobIdPut +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut class DefaultApi( @@ -96,5 +60,4 @@ class DefaultApi( Do not edit the class manually. """ - pass diff --git a/launch/api_client/configuration.py b/launch/api_client/configuration.py index bf4be79b..92d13b9d 100644 --- a/launch/api_client/configuration.py +++ b/launch/api_client/configuration.py @@ -13,95 +13,85 @@ import logging import multiprocessing import sys -from http import client as http_client - import urllib3 +from http import client as http_client from launch.api_client.exceptions import ApiValueError + JSON_SCHEMA_VALIDATION_KEYWORDS = { - "multipleOf", - "maximum", - "exclusiveMaximum", - "minimum", - "exclusiveMinimum", - "maxLength", - "minLength", - "pattern", - "maxItems", - "minItems", - "uniqueItems", - "maxProperties", - "minProperties", + 'multipleOf', 'maximum', 'exclusiveMaximum', + 'minimum', 'exclusiveMinimum', 'maxLength', + 'minLength', 'pattern', 'maxItems', 'minItems', + 'uniqueItems', 'maxProperties', 'minProperties', } - class Configuration(object): """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - Do not edit the class manually. - - :param host: Base url - :param api_key: Dict to store API key(s). - Each entry in the dict specifies an API key. - The dict key is the name of the security scheme in the OAS specification. - The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer) - The dict key is the name of the security scheme in the OAS specification. - The dict value is an API key prefix when generating the auth data. - :param username: Username for HTTP basic authentication - :param password: Password for HTTP basic authentication - :param discard_unknown_keys: Boolean value indicating whether to discard - unknown properties. A server may send a response that includes additional - properties that are not known by the client in the following scenarios: - 1. The OpenAPI document is incomplete, i.e. it does not match the server - implementation. - 2. The client was generated using an older version of the OpenAPI document - and the server has been upgraded since then. - If a schema in the OpenAPI document defines the additionalProperties attribute, - then all undeclared properties received by the server are injected into the - additional properties map. In that case, there are undeclared properties, and - nothing to discard. - :param disabled_client_side_validations (string): Comma-separated list of - JSON schema validation keywords to disable JSON schema structural validation - rules. The following keywords may be specified: multipleOf, maximum, - exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, - maxItems, minItems. - By default, the validation is performed for data generated locally by the client - and data received from the server, independent of any validation performed by - the server side. If the input data does not satisfy the JSON schema validation - rules specified in the OpenAPI document, an exception is raised. - If disabled_client_side_validations is set, structural validation is - disabled. This can be useful to troubleshoot data validation problem, such as - when the OpenAPI document validation rules do not match the actual API data - received by the server. - :param server_index: Index to servers configuration. - :param server_variables: Mapping with string values to replace variables in - templated server configuration. The validation of enums is performed for - variables with defined enum values before. - :param server_operation_index: Mapping from operation ID to an index to server - configuration. - :param server_operation_variables: Mapping from operation ID to a mapping with - string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum values before. - - :Example: - - HTTP Basic Authentication Example. - Given the following security scheme in the OpenAPI specification: - components: - securitySchemes: - http_basic_auth: - type: http - scheme: basic - - Configure API client with HTTP basic authentication: - - conf = launch.api_client.Configuration( - username='the-user', - password='the-password', - ) + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param host: Base url + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer) + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication + :param password: Password for HTTP basic authentication + :param discard_unknown_keys: Boolean value indicating whether to discard + unknown properties. A server may send a response that includes additional + properties that are not known by the client in the following scenarios: + 1. The OpenAPI document is incomplete, i.e. it does not match the server + implementation. + 2. The client was generated using an older version of the OpenAPI document + and the server has been upgraded since then. + If a schema in the OpenAPI document defines the additionalProperties attribute, + then all undeclared properties received by the server are injected into the + additional properties map. In that case, there are undeclared properties, and + nothing to discard. + :param disabled_client_side_validations (string): Comma-separated list of + JSON schema validation keywords to disable JSON schema structural validation + rules. The following keywords may be specified: multipleOf, maximum, + exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, + maxItems, minItems. + By default, the validation is performed for data generated locally by the client + and data received from the server, independent of any validation performed by + the server side. If the input data does not satisfy the JSON schema validation + rules specified in the OpenAPI document, an exception is raised. + If disabled_client_side_validations is set, structural validation is + disabled. This can be useful to troubleshoot data validation problem, such as + when the OpenAPI document validation rules do not match the actual API data + received by the server. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum values before. + + :Example: + + HTTP Basic Authentication Example. + Given the following security scheme in the OpenAPI specification: + components: + securitySchemes: + http_basic_auth: + type: http + scheme: basic + + Configure API client with HTTP basic authentication: + +conf = launch.api_client.Configuration( + username='the-user', + password='the-password', +) """ @@ -119,7 +109,8 @@ def __init__( server_operation_index=None, server_operation_variables=None, ): - """Constructor""" + """Constructor + """ self._base_path = "http://localhost" if host is None else host """Default Base url """ @@ -148,7 +139,7 @@ def __init__( """ self.logger["package_logger"] = logging.getLogger("launch.api_client") self.logger["urllib3_logger"] = logging.getLogger("urllib3") - self.logger_format = "%(asctime)s %(levelname)s %(message)s" + self.logger_format = '%(asctime)s %(levelname)s %(message)s' """Log format """ self.logger_stream_handler = None @@ -196,7 +187,7 @@ def __init__( self.proxy_headers = None """Proxy headers """ - self.safe_chars_for_path_param = "" + self.safe_chars_for_path_param = '' """Safe chars for path_param """ self.retries = None @@ -213,7 +204,7 @@ def __deepcopy__(self, memo): result = cls.__new__(cls) memo[id(self)] = result for k, v in self.__dict__.items(): - if k not in ("logger", "logger_file_handler"): + if k not in ('logger', 'logger_file_handler'): setattr(result, k, copy.deepcopy(v, memo)) # shallow copy of loggers result.logger = copy.copy(self.logger) @@ -224,11 +215,12 @@ def __deepcopy__(self, memo): def __setattr__(self, name, value): object.__setattr__(self, name, value) - if name == "disabled_client_side_validations": - s = set(filter(None, value.split(","))) + if name == 'disabled_client_side_validations': + s = set(filter(None, value.split(','))) for v in s: if v not in JSON_SCHEMA_VALIDATION_KEYWORDS: - raise ApiValueError("Invalid keyword: '{0}''".format(v)) + raise ApiValueError( + "Invalid keyword: '{0}''".format(v)) self._disabled_client_side_validations = s @classmethod @@ -369,7 +361,9 @@ def get_basic_auth_token(self): password = "" if self.password is not None: password = self.password - return urllib3.util.make_headers(basic_auth=username + ":" + password).get("authorization") + return urllib3.util.make_headers( + basic_auth=username + ':' + password + ).get('authorization') def auth_settings(self): """Gets Auth Settings dict for api client. @@ -378,11 +372,11 @@ def auth_settings(self): """ auth = {} if self.username is not None and self.password is not None: - auth["HTTPBasic"] = { - "type": "basic", - "in": "header", - "key": "Authorization", - "value": self.get_basic_auth_token(), + auth['HTTPBasic'] = { + 'type': 'basic', + 'in': 'header', + 'key': 'Authorization', + 'value': self.get_basic_auth_token() } return auth @@ -391,13 +385,12 @@ def to_debug_report(self): :return: The report for debugging. """ - return ( - "Python SDK Debug Report:\n" - "OS: {env}\n" - "Python Version: {pyversion}\n" - "Version of the API: 1.0.0\n" - "SDK Package Version: 1.0.6".format(env=sys.platform, pyversion=sys.version) - ) + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 1.0.0\n"\ + "SDK Package Version: 1.0.6".\ + format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): """Gets an array of host settings @@ -406,8 +399,8 @@ def get_host_settings(self): """ return [ { - "url": "", - "description": "No description provided", + 'url': "", + 'description': "No description provided", } ] @@ -429,20 +422,22 @@ def get_host_from_settings(self, index, variables=None, servers=None): except IndexError: raise ValueError( "Invalid index {0} when selecting the host settings. " - "Must be less than {1}".format(index, len(servers)) - ) + "Must be less than {1}".format(index, len(servers))) - url = server["url"] + url = server['url'] # go through variables and replace placeholders - for variable_name, variable in server.get("variables", {}).items(): - used_value = variables.get(variable_name, variable["default_value"]) + for variable_name, variable in server.get('variables', {}).items(): + used_value = variables.get( + variable_name, variable['default_value']) - if "enum_values" in variable and used_value not in variable["enum_values"]: + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: raise ValueError( "The variable `{0}` in the host URL has invalid value " - "{1}. Must be {2}.".format(variable_name, variables[variable_name], variable["enum_values"]) - ) + "{1}. Must be {2}.".format( + variable_name, variables[variable_name], + variable['enum_values'])) url = url.replace("{" + variable_name + "}", used_value) diff --git a/launch/api_client/exceptions.py b/launch/api_client/exceptions.py index f461e207..46687131 100644 --- a/launch/api_client/exceptions.py +++ b/launch/api_client/exceptions.py @@ -19,8 +19,9 @@ class OpenApiException(Exception): class ApiTypeError(OpenApiException, TypeError): - def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None): - """Raises an exception for TypeErrors + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None): + """ Raises an exception for TypeErrors Args: msg (str): the exception message @@ -123,9 +124,11 @@ def headers(self) -> typing.Optional[HTTPHeaderDict]: def __str__(self): """Custom error messages for exception""" - error_message = "({0})\n" "Reason: {1}\n".format(self.status, self.reason) + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) if self.headers: - error_message += "HTTP response headers: {0}\n".format(self.headers) + error_message += "HTTP response headers: {0}\n".format( + self.headers) if self.body: error_message += "HTTP response body: {0}\n".format(self.body) diff --git a/launch/api_client/model/batch_job_serialization_format.py b/launch/api_client/model/batch_job_serialization_format.py index 7bfc3103..5586e157 100644 --- a/launch/api_client/model/batch_job_serialization_format.py +++ b/launch/api_client/model/batch_job_serialization_format.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): +class BatchJobSerializationFormat( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,16 +35,17 @@ class BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): An enumeration. """ + class MetaOapg: enum_value_to_name = { "JSON": "JSON", "PICKLE": "PICKLE", } - + @schemas.classproperty def JSON(cls): return cls("JSON") - + @schemas.classproperty def PICKLE(cls): return cls("PICKLE") diff --git a/launch/api_client/model/batch_job_serialization_format.pyi b/launch/api_client/model/batch_job_serialization_format.pyi index 7ebc5bff..e19c5161 100644 --- a/launch/api_client/model/batch_job_serialization_format.pyi +++ b/launch/api_client/model/batch_job_serialization_format.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): + +class BatchJobSerializationFormat( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,10 +34,11 @@ class BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): An enumeration. """ - + @schemas.classproperty def JSON(cls): return cls("JSON") + @schemas.classproperty def PICKLE(cls): return cls("PICKLE") diff --git a/launch/api_client/model/batch_job_status.py b/launch/api_client/model/batch_job_status.py index e2e71a79..530ad403 100644 --- a/launch/api_client/model/batch_job_status.py +++ b/launch/api_client/model/batch_job_status.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 BatchJobStatus(schemas.EnumBase, schemas.StrSchema): +class BatchJobStatus( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,6 +35,7 @@ class BatchJobStatus(schemas.EnumBase, schemas.StrSchema): An enumeration. """ + class MetaOapg: enum_value_to_name = { "PENDING": "PENDING", @@ -41,27 +45,27 @@ class MetaOapg: "CANCELLED": "CANCELLED", "UNDEFINED": "UNDEFINED", } - + @schemas.classproperty def PENDING(cls): return cls("PENDING") - + @schemas.classproperty def RUNNING(cls): return cls("RUNNING") - + @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") - + @schemas.classproperty def FAILURE(cls): return cls("FAILURE") - + @schemas.classproperty def CANCELLED(cls): return cls("CANCELLED") - + @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/batch_job_status.pyi b/launch/api_client/model/batch_job_status.pyi index 925b6634..0d337988 100644 --- a/launch/api_client/model/batch_job_status.pyi +++ b/launch/api_client/model/batch_job_status.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class BatchJobStatus(schemas.EnumBase, schemas.StrSchema): + +class BatchJobStatus( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,22 +34,27 @@ class BatchJobStatus(schemas.EnumBase, schemas.StrSchema): An enumeration. """ - + @schemas.classproperty def PENDING(cls): return cls("PENDING") + @schemas.classproperty def RUNNING(cls): return cls("RUNNING") + @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") + @schemas.classproperty def FAILURE(cls): return cls("FAILURE") + @schemas.classproperty def CANCELLED(cls): return cls("CANCELLED") + @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/callback_auth.py b/launch/api_client/model/callback_auth.py index 493310d9..a3af0a7c 100644 --- a/launch/api_client/model/callback_auth.py +++ b/launch/api_client/model/callback_auth.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 @@ -32,18 +32,20 @@ class CallbackAuth( Do not edit the class manually. """ + class MetaOapg: + @staticmethod def discriminator(): return { - "kind": { - "CallbackBasicAuth": CallbackBasicAuth, - "CallbackmTLSAuth": CallbackmTLSAuth, - "basic": CallbackBasicAuth, - "mtls": CallbackmTLSAuth, + 'kind': { + 'CallbackBasicAuth': CallbackBasicAuth, + 'CallbackmTLSAuth': CallbackmTLSAuth, + 'basic': CallbackBasicAuth, + 'mtls': CallbackmTLSAuth, } } - + @classmethod @functools.lru_cache() def one_of(cls): @@ -59,44 +61,13 @@ def one_of(cls): CallbackmTLSAuth, ] + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "CallbackAuth": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CallbackAuth': return super().__new__( cls, *_args, @@ -104,6 +75,5 @@ def __new__( **kwargs, ) - from launch.api_client.model.callback_basic_auth import CallbackBasicAuth from launch.api_client.model.callbackm_tls_auth import CallbackmTLSAuth diff --git a/launch/api_client/model/callback_auth.pyi b/launch/api_client/model/callback_auth.pyi index e7193634..584516de 100644 --- a/launch/api_client/model/callback_auth.pyi +++ b/launch/api_client/model/callback_auth.pyi @@ -9,18 +9,20 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 + class CallbackAuth( schemas.ComposedSchema, ): @@ -30,17 +32,20 @@ class CallbackAuth( Do not edit the class manually. """ + class MetaOapg: + @staticmethod def discriminator(): return { - "kind": { - "CallbackBasicAuth": CallbackBasicAuth, - "CallbackmTLSAuth": CallbackmTLSAuth, - "basic": CallbackBasicAuth, - "mtls": CallbackmTLSAuth, + 'kind': { + 'CallbackBasicAuth': CallbackBasicAuth, + 'CallbackmTLSAuth': CallbackmTLSAuth, + 'basic': CallbackBasicAuth, + 'mtls': CallbackmTLSAuth, } } + @classmethod @functools.lru_cache() def one_of(cls): @@ -55,44 +60,14 @@ class CallbackAuth( CallbackBasicAuth, CallbackmTLSAuth, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "CallbackAuth": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CallbackAuth': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callback_basic_auth.py b/launch/api_client/model/callback_basic_auth.py index 7e2027d6..1b26f739 100644 --- a/launch/api_client/model/callback_basic_auth.py +++ b/launch/api_client/model/callback_basic_auth.py @@ -9,45 +9,54 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CallbackBasicAuth(schemas.DictSchema): +class CallbackBasicAuth( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "password", "kind", "username", } - + class properties: - class kind(schemas.EnumBase, schemas.StrSchema): + + + class kind( + schemas.EnumBase, + schemas.StrSchema + ): + + class MetaOapg: enum_value_to_name = { "basic": "BASIC", } - + @schemas.classproperty def BASIC(cls): return cls("basic") - password = schemas.StrSchema username = schemas.StrSchema __annotations__ = { @@ -55,106 +64,53 @@ def BASIC(cls): "password": password, "username": username, } - + password: MetaOapg.properties.password kind: MetaOapg.properties.kind username: MetaOapg.properties.username - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: - ... - + def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: - ... - + def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: - ... - + def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "kind", - "password", - "username", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["kind", "password", "username", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... + @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[ - "kind", - "password", - "username", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["kind", "password", "username", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - password: typing.Union[ - MetaOapg.properties.password, - str, - ], - kind: typing.Union[ - MetaOapg.properties.kind, - str, - ], - username: typing.Union[ - MetaOapg.properties.username, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + password: typing.Union[MetaOapg.properties.password, str, ], + kind: typing.Union[MetaOapg.properties.kind, str, ], + username: typing.Union[MetaOapg.properties.username, str, ], _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, - ], - ) -> "CallbackBasicAuth": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CallbackBasicAuth': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callback_basic_auth.pyi b/launch/api_client/model/callback_basic_auth.pyi index 39f43b29..50b20d27 100644 --- a/launch/api_client/model/callback_basic_auth.pyi +++ b/launch/api_client/model/callback_basic_auth.pyi @@ -9,34 +9,45 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CallbackBasicAuth(schemas.DictSchema): + +class CallbackBasicAuth( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "password", "kind", "username", } - + class properties: - class kind(schemas.EnumBase, schemas.StrSchema): + + + class kind( + schemas.EnumBase, + schemas.StrSchema + ): + @schemas.classproperty def BASIC(cls): return cls("basic") @@ -47,87 +58,53 @@ class CallbackBasicAuth(schemas.DictSchema): "password": password, "username": username, } + password: MetaOapg.properties.password kind: MetaOapg.properties.kind username: MetaOapg.properties.username - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "kind", - "password", - "username", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["kind", "password", "username", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... + @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[ - "kind", - "password", - "username", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["kind", "password", "username", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - password: typing.Union[ - MetaOapg.properties.password, - str, - ], - kind: typing.Union[ - MetaOapg.properties.kind, - str, - ], - username: typing.Union[ - MetaOapg.properties.username, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + password: typing.Union[MetaOapg.properties.password, str, ], + kind: typing.Union[MetaOapg.properties.kind, str, ], + username: typing.Union[MetaOapg.properties.username, str, ], _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, - ], - ) -> "CallbackBasicAuth": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CallbackBasicAuth': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callbackm_tls_auth.py b/launch/api_client/model/callbackm_tls_auth.py index c153d503..1ed275f9 100644 --- a/launch/api_client/model/callbackm_tls_auth.py +++ b/launch/api_client/model/callbackm_tls_auth.py @@ -9,153 +9,108 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CallbackmTLSAuth(schemas.DictSchema): +class CallbackmTLSAuth( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "kind", "cert", "key", } - + class properties: cert = schemas.StrSchema key = schemas.StrSchema - - class kind(schemas.EnumBase, schemas.StrSchema): + + + class kind( + schemas.EnumBase, + schemas.StrSchema + ): + + class MetaOapg: enum_value_to_name = { "mtls": "MTLS", } - + @schemas.classproperty def MTLS(cls): return cls("mtls") - __annotations__ = { "cert": cert, "key": key, "kind": kind, } - + kind: MetaOapg.properties.kind cert: MetaOapg.properties.cert key: MetaOapg.properties.key - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: - ... - + def __getitem__(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: - ... - + def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: - ... - + def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cert", - "key", - "kind", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cert", "key", "kind", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @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[ - "cert", - "key", - "kind", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cert", "key", "kind", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - kind: typing.Union[ - MetaOapg.properties.kind, - str, - ], - cert: typing.Union[ - MetaOapg.properties.cert, - str, - ], - key: typing.Union[ - MetaOapg.properties.key, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + kind: typing.Union[MetaOapg.properties.kind, str, ], + cert: typing.Union[MetaOapg.properties.cert, str, ], + key: typing.Union[MetaOapg.properties.key, str, ], _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, - ], - ) -> "CallbackmTLSAuth": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CallbackmTLSAuth': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callbackm_tls_auth.pyi b/launch/api_client/model/callbackm_tls_auth.pyi index ef8b7dc0..8aeeb00a 100644 --- a/launch/api_client/model/callbackm_tls_auth.pyi +++ b/launch/api_client/model/callbackm_tls_auth.pyi @@ -9,37 +9,47 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CallbackmTLSAuth(schemas.DictSchema): + +class CallbackmTLSAuth( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "kind", "cert", "key", } - + class properties: cert = schemas.StrSchema key = schemas.StrSchema - - class kind(schemas.EnumBase, schemas.StrSchema): + + + class kind( + schemas.EnumBase, + schemas.StrSchema + ): + @schemas.classproperty def MTLS(cls): return cls("mtls") @@ -48,87 +58,53 @@ class CallbackmTLSAuth(schemas.DictSchema): "key": key, "kind": kind, } + kind: MetaOapg.properties.kind cert: MetaOapg.properties.cert key: MetaOapg.properties.key - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cert", - "key", - "kind", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cert", "key", "kind", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... + @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[ - "cert", - "key", - "kind", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cert", "key", "kind", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - kind: typing.Union[ - MetaOapg.properties.kind, - str, - ], - cert: typing.Union[ - MetaOapg.properties.cert, - str, - ], - key: typing.Union[ - MetaOapg.properties.key, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + kind: typing.Union[MetaOapg.properties.kind, str, ], + cert: typing.Union[MetaOapg.properties.cert, str, ], + key: typing.Union[MetaOapg.properties.key, str, ], _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, - ], - ) -> "CallbackmTLSAuth": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CallbackmTLSAuth': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/clone_model_bundle_request.py b/launch/api_client/model/clone_model_bundle_request.py index 02ca728c..97fdfdd2 100644 --- a/launch/api_client/model/clone_model_bundle_request.py +++ b/launch/api_client/model/clone_model_bundle_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -54,7 +53,9 @@ def __getitem__( ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["new_app_config"]) -> MetaOapg.properties.new_app_config: + def __getitem__( + self, name: typing_extensions.Literal["new_app_config"] + ) -> MetaOapg.properties.new_app_config: ... @typing.overload diff --git a/launch/api_client/model/clone_model_bundle_request.pyi b/launch/api_client/model/clone_model_bundle_request.pyi index 0293a604..dcd3da4f 100644 --- a/launch/api_client/model/clone_model_bundle_request.pyi +++ b/launch/api_client/model/clone_model_bundle_request.pyi @@ -49,7 +49,9 @@ class CloneModelBundleRequest(schemas.DictSchema): 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: ... + 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__( @@ -73,7 +75,9 @@ class CloneModelBundleRequest(schemas.DictSchema): 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: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/clone_model_bundle_v1_request.py b/launch/api_client/model/clone_model_bundle_v1_request.py index dc711b84..52b9f905 100644 --- a/launch/api_client/model/clone_model_bundle_v1_request.py +++ b/launch/api_client/model/clone_model_bundle_v1_request.py @@ -9,21 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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): +class CloneModelBundleV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,11 +34,12 @@ class CloneModelBundleV1Request(schemas.DictSchema): 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 @@ -44,95 +47,44 @@ class properties: "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: - ... - + 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: - ... - + 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, - ], - ): + 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: - ... - + 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]: - ... - + 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, - ], - ): + 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, + *_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": + **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, diff --git a/launch/api_client/model/clone_model_bundle_v1_request.pyi b/launch/api_client/model/clone_model_bundle_v1_request.pyi index dc37a0dc..6d01d861 100644 --- a/launch/api_client/model/clone_model_bundle_v1_request.pyi +++ b/launch/api_client/model/clone_model_bundle_v1_request.pyi @@ -9,19 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CloneModelBundleV1Request(schemas.DictSchema): + +class CloneModelBundleV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,11 +34,12 @@ class CloneModelBundleV1Request(schemas.DictSchema): 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 @@ -42,80 +47,44 @@ class CloneModelBundleV1Request(schemas.DictSchema): "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: ... + 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, - ], - ): + + 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: ... + 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]: ... + 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, - ], - ): + + 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, + *_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": + **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, diff --git a/launch/api_client/model/create_async_task_response.py b/launch/api_client/model/create_async_task_response.py index 8944ed10..3f339ae1 100644 --- a/launch/api_client/model/create_async_task_response.py +++ b/launch/api_client/model/create_async_task_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -44,7 +43,9 @@ class properties: task_id: MetaOapg.properties.task_id @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: + def __getitem__( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload @@ -54,7 +55,9 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["task_id",], + typing_extensions.Literal[ + "task_id", + ], str, ], ): @@ -62,7 +65,9 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: + def get_item_oapg( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload @@ -72,7 +77,9 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["task_id",], + typing_extensions.Literal[ + "task_id", + ], str, ], ): diff --git a/launch/api_client/model/create_async_task_response.pyi b/launch/api_client/model/create_async_task_response.pyi index ea463023..d5d11a32 100644 --- a/launch/api_client/model/create_async_task_response.pyi +++ b/launch/api_client/model/create_async_task_response.pyi @@ -41,26 +41,36 @@ class CreateAsyncTaskResponse(schemas.DictSchema): task_id: MetaOapg.properties.task_id @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + def __getitem__( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["task_id",], + typing_extensions.Literal[ + "task_id", + ], str, ], ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + def get_item_oapg( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["task_id",], + typing_extensions.Literal[ + "task_id", + ], str, ], ): diff --git a/launch/api_client/model/create_async_task_v1_response.py b/launch/api_client/model/create_async_task_v1_response.py index 0acca935..5805b46f 100644 --- a/launch/api_client/model/create_async_task_v1_response.py +++ b/launch/api_client/model/create_async_task_v1_response.py @@ -9,91 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CreateAsyncTaskV1Response(schemas.DictSchema): +class CreateAsyncTaskV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "task_id", } - + class properties: task_id = schemas.StrSchema __annotations__ = { "task_id": task_id, } - + task_id: MetaOapg.properties.task_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: - ... - + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + @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["task_id",], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["task_id", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - task_id: typing.Union[ - MetaOapg.properties.task_id, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + task_id: typing.Union[MetaOapg.properties.task_id, str, ], _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, - ], - ) -> "CreateAsyncTaskV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateAsyncTaskV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_async_task_v1_response.pyi b/launch/api_client/model/create_async_task_v1_response.pyi index 519e6dcd..3e9fcb1b 100644 --- a/launch/api_client/model/create_async_task_v1_response.pyi +++ b/launch/api_client/model/create_async_task_v1_response.pyi @@ -9,78 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CreateAsyncTaskV1Response(schemas.DictSchema): + +class CreateAsyncTaskV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "task_id", } - + class properties: task_id = schemas.StrSchema __annotations__ = { "task_id": task_id, } + task_id: MetaOapg.properties.task_id - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + @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["task_id",], str]): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["task_id", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - task_id: typing.Union[ - MetaOapg.properties.task_id, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + task_id: typing.Union[MetaOapg.properties.task_id, str, ], _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, - ], - ) -> "CreateAsyncTaskV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateAsyncTaskV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_batch_job_request.py b/launch/api_client/model/create_batch_job_request.py index 52864d0c..23daf7d9 100644 --- a/launch/api_client/model/create_batch_job_request.py +++ b/launch/api_client/model/create_batch_job_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -48,14 +47,18 @@ class MetaOapg: def __getitem__( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) @@ -103,7 +106,9 @@ def serialization_format() -> typing.Type["BatchJobSerializationFormat"]: labels: MetaOapg.properties.labels @typing.overload - def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: + def __getitem__( + self, name: typing_extensions.Literal["input_path"] + ) -> MetaOapg.properties.input_path: ... @typing.overload @@ -111,15 +116,21 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": + def __getitem__( + self, name: typing_extensions.Literal["resource_requests"] + ) -> "CreateBatchJobResourceRequests": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": + def __getitem__( + self, name: typing_extensions.Literal["serialization_format"] + ) -> "BatchJobSerializationFormat": ... @typing.overload @@ -143,23 +154,33 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: + def get_item_oapg( + self, name: typing_extensions.Literal["input_path"] + ) -> MetaOapg.properties.input_path: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": + def get_item_oapg( + self, name: typing_extensions.Literal["resource_requests"] + ) -> "CreateBatchJobResourceRequests": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": + def get_item_oapg( + self, name: typing_extensions.Literal["serialization_format"] + ) -> "BatchJobSerializationFormat": ... @typing.overload @@ -233,9 +254,5 @@ def __new__( ) -from launch.api_client.model.batch_job_serialization_format import ( - BatchJobSerializationFormat, -) -from launch.api_client.model.create_batch_job_resource_requests import ( - CreateBatchJobResourceRequests, -) +from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat +from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests diff --git a/launch/api_client/model/create_batch_job_request.pyi b/launch/api_client/model/create_batch_job_request.pyi index a732e42e..6a48d5a9 100644 --- a/launch/api_client/model/create_batch_job_request.pyi +++ b/launch/api_client/model/create_batch_job_request.pyi @@ -45,13 +45,17 @@ class CreateBatchJobRequest(schemas.DictSchema): additional_properties = schemas.StrSchema def __getitem__( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( @@ -94,17 +98,25 @@ class CreateBatchJobRequest(schemas.DictSchema): labels: MetaOapg.properties.labels @typing.overload - def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... + def __getitem__( + self, name: typing_extensions.Literal["input_path"] + ) -> MetaOapg.properties.input_path: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + def __getitem__( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... + def __getitem__( + self, name: typing_extensions.Literal["resource_requests"] + ) -> "CreateBatchJobResourceRequests": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... + def __getitem__( + self, name: typing_extensions.Literal["serialization_format"] + ) -> "BatchJobSerializationFormat": ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -123,9 +135,13 @@ class CreateBatchJobRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... + def get_item_oapg( + self, name: typing_extensions.Literal["input_path"] + ) -> MetaOapg.properties.input_path: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_bundle_id"] @@ -139,7 +155,9 @@ class CreateBatchJobRequest(schemas.DictSchema): self, name: typing_extensions.Literal["serialization_format"] ) -> "BatchJobSerializationFormat": ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -205,9 +223,5 @@ class CreateBatchJobRequest(schemas.DictSchema): **kwargs, ) -from launch_client.model.batch_job_serialization_format import ( - BatchJobSerializationFormat, -) -from launch_client.model.create_batch_job_resource_requests import ( - CreateBatchJobResourceRequests, -) +from launch_client.model.batch_job_serialization_format import BatchJobSerializationFormat +from launch_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests diff --git a/launch/api_client/model/create_batch_job_resource_requests.py b/launch/api_client/model/create_batch_job_resource_requests.py index 48c4adb1..c1f62452 100644 --- a/launch/api_client/model/create_batch_job_resource_requests.py +++ b/launch/api_client/model/create_batch_job_resource_requests.py @@ -9,37 +9,45 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CreateBatchJobResourceRequests(schemas.DictSchema): +class CreateBatchJobResourceRequests( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: + class properties: + + class cpus( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -55,67 +63,38 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "cpus": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'cpus': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def gpu_type() -> typing.Type["GpuType"]: + def gpu_type() -> typing.Type['GpuType']: return GpuType - gpus = schemas.IntSchema max_workers = schemas.IntSchema - + + class memory( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -131,62 +110,33 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "memory": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'memory': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - per_worker = schemas.IntSchema - + + class storage( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -202,52 +152,20 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "storage": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'storage': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - __annotations__ = { "cpus": cpus, "gpu_type": gpu_type, @@ -257,206 +175,77 @@ def __new__( "per_worker": per_worker, "storage": storage, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: - ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": - ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: - ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: - ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: - ... - + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: - ... - + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cpus", - "gpu_type", - "gpus", - "max_workers", - "memory", - "per_worker", - "storage", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cpus"] - ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpus"] - ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["storage"] - ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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[ - "cpus", - "gpu_type", - "gpus", - "max_workers", - "memory", - "per_worker", - "storage", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - cpus: typing.Union[ - MetaOapg.properties.cpus, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, - gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[ - MetaOapg.properties.memory, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - storage: typing.Union[ - MetaOapg.properties.storage, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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, - ], - ) -> "CreateBatchJobResourceRequests": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateBatchJobResourceRequests': return super().__new__( cls, *_args, @@ -471,5 +260,4 @@ def __new__( **kwargs, ) - from launch.api_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/create_batch_job_resource_requests.pyi b/launch/api_client/model/create_batch_job_resource_requests.pyi index c3f466a3..38ca0898 100644 --- a/launch/api_client/model/create_batch_job_resource_requests.pyi +++ b/launch/api_client/model/create_batch_job_resource_requests.pyi @@ -9,35 +9,45 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CreateBatchJobResourceRequests(schemas.DictSchema): + +class CreateBatchJobResourceRequests( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: + class properties: + + class cpus( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -53,64 +63,38 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "cpus": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'cpus': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + @staticmethod - def gpu_type() -> typing.Type["GpuType"]: + def gpu_type() -> typing.Type['GpuType']: return GpuType gpus = schemas.IntSchema max_workers = schemas.IntSchema - + + class memory( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -126,44 +110,14 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "memory": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'memory': return super().__new__( cls, *_args, @@ -171,15 +125,18 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): **kwargs, ) per_worker = schemas.IntSchema - + + class storage( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -195,44 +152,14 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "storage": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'storage': return super().__new__( cls, *_args, @@ -248,171 +175,77 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): "per_worker": per_worker, "storage": storage, } + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cpus", - "gpu_type", - "gpus", - "max_workers", - "memory", - "per_worker", - "storage", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cpus"] - ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpus"] - ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["storage"] - ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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[ - "cpus", - "gpu_type", - "gpus", - "max_workers", - "memory", - "per_worker", - "storage", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - cpus: typing.Union[ - MetaOapg.properties.cpus, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, - gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[ - MetaOapg.properties.memory, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - storage: typing.Union[ - MetaOapg.properties.storage, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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, - ], - ) -> "CreateBatchJobResourceRequests": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateBatchJobResourceRequests': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_batch_job_response.py b/launch/api_client/model/create_batch_job_response.py index f140358a..7e9fb2e2 100644 --- a/launch/api_client/model/create_batch_job_response.py +++ b/launch/api_client/model/create_batch_job_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -54,7 +53,9 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["job_id",], + typing_extensions.Literal[ + "job_id", + ], str, ], ): @@ -62,7 +63,9 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: + def get_item_oapg( + self, name: typing_extensions.Literal["job_id"] + ) -> MetaOapg.properties.job_id: ... @typing.overload @@ -72,7 +75,9 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["job_id",], + typing_extensions.Literal[ + "job_id", + ], str, ], ): diff --git a/launch/api_client/model/create_batch_job_response.pyi b/launch/api_client/model/create_batch_job_response.pyi index 2421b064..eba9c832 100644 --- a/launch/api_client/model/create_batch_job_response.pyi +++ b/launch/api_client/model/create_batch_job_response.pyi @@ -41,26 +41,36 @@ class CreateBatchJobResponse(schemas.DictSchema): job_id: MetaOapg.properties.job_id @typing.overload - def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... + def __getitem__( + self, name: typing_extensions.Literal["job_id"] + ) -> MetaOapg.properties.job_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["job_id",], + typing_extensions.Literal[ + "job_id", + ], str, ], ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... + def get_item_oapg( + self, name: typing_extensions.Literal["job_id"] + ) -> MetaOapg.properties.job_id: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["job_id",], + typing_extensions.Literal[ + "job_id", + ], str, ], ): diff --git a/launch/api_client/model/create_batch_job_v1_request.py b/launch/api_client/model/create_batch_job_v1_request.py index 0dfcde1b..03f4e079 100644 --- a/launch/api_client/model/create_batch_job_v1_request.py +++ b/launch/api_client/model/create_batch_job_v1_request.py @@ -9,27 +9,30 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CreateBatchJobV1Request(schemas.DictSchema): +class CreateBatchJobV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "model_bundle_id", @@ -38,50 +41,47 @@ class MetaOapg: "input_path", "labels", } - + class properties: input_path = schemas.StrSchema - - class labels(schemas.DictSchema): + + + class labels( + schemas.DictSchema + ): + + class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[ - MetaOapg.additional_properties, - str, - ], - ) -> "labels": + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - model_bundle_id = schemas.StrSchema - + @staticmethod - def resource_requests() -> typing.Type["CreateBatchJobResourceRequests"]: + def resource_requests() -> typing.Type['CreateBatchJobResourceRequests']: return CreateBatchJobResourceRequests - + @staticmethod - def serialization_format() -> typing.Type["BatchJobSerializationFormat"]: + def serialization_format() -> typing.Type['BatchJobSerializationFormat']: return BatchJobSerializationFormat - __annotations__ = { "input_path": input_path, "labels": labels, @@ -89,131 +89,69 @@ def serialization_format() -> typing.Type["BatchJobSerializationFormat"]: "resource_requests": resource_requests, "serialization_format": serialization_format, } - + model_bundle_id: MetaOapg.properties.model_bundle_id - resource_requests: "CreateBatchJobResourceRequests" - serialization_format: "BatchJobSerializationFormat" + resource_requests: 'CreateBatchJobResourceRequests' + serialization_format: 'BatchJobSerializationFormat' input_path: MetaOapg.properties.input_path labels: MetaOapg.properties.labels - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: - ... - + def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: - ... - + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: - ... - + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": - ... - + def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": - ... - + def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "input_path", - "labels", - "model_bundle_id", - "resource_requests", - "serialization_format", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... + @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[ - "input_path", - "labels", - "model_bundle_id", - "resource_requests", - "serialization_format", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - model_bundle_id: typing.Union[ - MetaOapg.properties.model_bundle_id, - str, - ], - resource_requests: "CreateBatchJobResourceRequests", - serialization_format: "BatchJobSerializationFormat", - input_path: typing.Union[ - MetaOapg.properties.input_path, - str, - ], - labels: typing.Union[ - MetaOapg.properties.labels, - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + resource_requests: 'CreateBatchJobResourceRequests', + serialization_format: 'BatchJobSerializationFormat', + input_path: typing.Union[MetaOapg.properties.input_path, str, ], + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], _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, - ], - ) -> "CreateBatchJobV1Request": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateBatchJobV1Request': return super().__new__( cls, *_args, @@ -226,10 +164,5 @@ def __new__( **kwargs, ) - -from launch.api_client.model.batch_job_serialization_format import ( - BatchJobSerializationFormat, -) -from launch.api_client.model.create_batch_job_resource_requests import ( - CreateBatchJobResourceRequests, -) +from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat +from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests diff --git a/launch/api_client/model/create_batch_job_v1_request.pyi b/launch/api_client/model/create_batch_job_v1_request.pyi index bca2db17..34b6fb0c 100644 --- a/launch/api_client/model/create_batch_job_v1_request.pyi +++ b/launch/api_client/model/create_batch_job_v1_request.pyi @@ -9,25 +9,30 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CreateBatchJobV1Request(schemas.DictSchema): + +class CreateBatchJobV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "model_bundle_id", @@ -36,30 +41,32 @@ class CreateBatchJobV1Request(schemas.DictSchema): "input_path", "labels", } - + class properties: input_path = schemas.StrSchema - - class labels(schemas.DictSchema): + + + class labels( + schemas.DictSchema + ): + + class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[ - MetaOapg.additional_properties, - str, - ], - ) -> "labels": + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': return super().__new__( cls, *_args, @@ -67,12 +74,13 @@ class CreateBatchJobV1Request(schemas.DictSchema): **kwargs, ) model_bundle_id = schemas.StrSchema - + @staticmethod - def resource_requests() -> typing.Type["CreateBatchJobResourceRequests"]: + def resource_requests() -> typing.Type['CreateBatchJobResourceRequests']: return CreateBatchJobResourceRequests + @staticmethod - def serialization_format() -> typing.Type["BatchJobSerializationFormat"]: + def serialization_format() -> typing.Type['BatchJobSerializationFormat']: return BatchJobSerializationFormat __annotations__ = { "input_path": input_path, @@ -81,112 +89,69 @@ class CreateBatchJobV1Request(schemas.DictSchema): "resource_requests": resource_requests, "serialization_format": serialization_format, } + model_bundle_id: MetaOapg.properties.model_bundle_id - resource_requests: "CreateBatchJobResourceRequests" - serialization_format: "BatchJobSerializationFormat" + resource_requests: 'CreateBatchJobResourceRequests' + serialization_format: 'BatchJobSerializationFormat' input_path: MetaOapg.properties.input_path labels: MetaOapg.properties.labels - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: ... + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... + def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... + def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "input_path", - "labels", - "model_bundle_id", - "resource_requests", - "serialization_format", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["resource_requests"] - ) -> "CreateBatchJobResourceRequests": ... + def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["serialization_format"] - ) -> "BatchJobSerializationFormat": ... + def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... + @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[ - "input_path", - "labels", - "model_bundle_id", - "resource_requests", - "serialization_format", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - model_bundle_id: typing.Union[ - MetaOapg.properties.model_bundle_id, - str, - ], - resource_requests: "CreateBatchJobResourceRequests", - serialization_format: "BatchJobSerializationFormat", - input_path: typing.Union[ - MetaOapg.properties.input_path, - str, - ], - labels: typing.Union[ - MetaOapg.properties.labels, - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + resource_requests: 'CreateBatchJobResourceRequests', + serialization_format: 'BatchJobSerializationFormat', + input_path: typing.Union[MetaOapg.properties.input_path, str, ], + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], _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, - ], - ) -> "CreateBatchJobV1Request": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateBatchJobV1Request': return super().__new__( cls, *_args, @@ -199,9 +164,5 @@ class CreateBatchJobV1Request(schemas.DictSchema): **kwargs, ) -from launch_client.model.batch_job_serialization_format import ( - BatchJobSerializationFormat, -) -from launch_client.model.create_batch_job_resource_requests import ( - CreateBatchJobResourceRequests, -) +from launch_client.model.batch_job_serialization_format import BatchJobSerializationFormat +from launch_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests diff --git a/launch/api_client/model/create_batch_job_v1_response.py b/launch/api_client/model/create_batch_job_v1_response.py index 5db054c8..48561f4d 100644 --- a/launch/api_client/model/create_batch_job_v1_response.py +++ b/launch/api_client/model/create_batch_job_v1_response.py @@ -9,91 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CreateBatchJobV1Response(schemas.DictSchema): +class CreateBatchJobV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "job_id", } - + class properties: job_id = schemas.StrSchema __annotations__ = { "job_id": job_id, } - + job_id: MetaOapg.properties.job_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: - ... - + def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... + @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["job_id",], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["job_id", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - job_id: typing.Union[ - MetaOapg.properties.job_id, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + job_id: typing.Union[MetaOapg.properties.job_id, str, ], _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, - ], - ) -> "CreateBatchJobV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateBatchJobV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_batch_job_v1_response.pyi b/launch/api_client/model/create_batch_job_v1_response.pyi index 01665b22..01425585 100644 --- a/launch/api_client/model/create_batch_job_v1_response.pyi +++ b/launch/api_client/model/create_batch_job_v1_response.pyi @@ -9,78 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CreateBatchJobV1Response(schemas.DictSchema): + +class CreateBatchJobV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "job_id", } - + class properties: job_id = schemas.StrSchema __annotations__ = { "job_id": job_id, } + job_id: MetaOapg.properties.job_id - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... + @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["job_id",], str]): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["job_id", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - job_id: typing.Union[ - MetaOapg.properties.job_id, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + job_id: typing.Union[MetaOapg.properties.job_id, str, ], _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, - ], - ) -> "CreateBatchJobV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateBatchJobV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_bundle_request.py b/launch/api_client/model/create_model_bundle_request.py index c868221e..042b0883 100644 --- a/launch/api_client/model/create_model_bundle_request.py +++ b/launch/api_client/model/create_model_bundle_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -104,11 +103,15 @@ def packaging_type() -> typing.Type["ModelBundlePackagingType"]: env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": + def __getitem__( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: + def __getitem__( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload @@ -116,23 +119,33 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: + def __getitem__( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: + def __getitem__( + self, name: typing_extensions.Literal["app_config"] + ) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": + def __getitem__( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: + def __getitem__( + self, name: typing_extensions.Literal["schema_location"] + ) -> MetaOapg.properties.schema_location: ... @typing.overload @@ -159,11 +172,15 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": + def get_item_oapg( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: + def get_item_oapg( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload @@ -171,7 +188,9 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: + def get_item_oapg( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload @@ -247,7 +266,9 @@ def __new__( MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, packaging_type: typing.Union["ModelBundlePackagingType", schemas.Unset] = schemas.unset, - schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, + schema_location: typing.Union[ + MetaOapg.properties.schema_location, str, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -282,9 +303,5 @@ def __new__( ) -from launch.api_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch.api_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) +from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/create_model_bundle_request.pyi b/launch/api_client/model/create_model_bundle_request.pyi index 5cbf17ef..746bb18e 100644 --- a/launch/api_client/model/create_model_bundle_request.pyi +++ b/launch/api_client/model/create_model_bundle_request.pyi @@ -96,19 +96,31 @@ class CreateModelBundleRequest(schemas.DictSchema): env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... + def __getitem__( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + def __getitem__( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + def __getitem__( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... + def __getitem__( + self, name: typing_extensions.Literal["app_config"] + ) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... + def __getitem__( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["schema_location"] @@ -134,13 +146,21 @@ class CreateModelBundleRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... + def get_item_oapg( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + def get_item_oapg( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + def get_item_oapg( + self, name: typing_extensions.Literal["name"] + ) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + def get_item_oapg( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["app_config"] @@ -158,7 +178,9 @@ class CreateModelBundleRequest(schemas.DictSchema): self, name: typing_extensions.Literal["schema_location"] ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -203,7 +225,9 @@ class CreateModelBundleRequest(schemas.DictSchema): MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, packaging_type: typing.Union["ModelBundlePackagingType", schemas.Unset] = schemas.unset, - schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, + schema_location: typing.Union[ + MetaOapg.properties.schema_location, str, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -237,9 +261,5 @@ class CreateModelBundleRequest(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) +from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/create_model_bundle_response.py b/launch/api_client/model/create_model_bundle_response.py index 286e1a37..f51185f5 100644 --- a/launch/api_client/model/create_model_bundle_response.py +++ b/launch/api_client/model/create_model_bundle_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -46,7 +45,9 @@ class properties: model_bundle_id: MetaOapg.properties.model_bundle_id @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -56,7 +57,9 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["model_bundle_id",], + typing_extensions.Literal[ + "model_bundle_id", + ], str, ], ): @@ -64,7 +67,9 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -74,7 +79,9 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["model_bundle_id",], + typing_extensions.Literal[ + "model_bundle_id", + ], str, ], ): diff --git a/launch/api_client/model/create_model_bundle_response.pyi b/launch/api_client/model/create_model_bundle_response.pyi index 30718f7d..c7145f61 100644 --- a/launch/api_client/model/create_model_bundle_response.pyi +++ b/launch/api_client/model/create_model_bundle_response.pyi @@ -51,7 +51,9 @@ class CreateModelBundleResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["model_bundle_id",], + typing_extensions.Literal[ + "model_bundle_id", + ], str, ], ): @@ -62,11 +64,15 @@ class CreateModelBundleResponse(schemas.DictSchema): self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["model_bundle_id",], + typing_extensions.Literal[ + "model_bundle_id", + ], str, ], ): diff --git a/launch/api_client/model/create_model_bundle_v1_request.py b/launch/api_client/model/create_model_bundle_v1_request.py index c5170611..d797e244 100644 --- a/launch/api_client/model/create_model_bundle_v1_request.py +++ b/launch/api_client/model/create_model_bundle_v1_request.py @@ -9,21 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CreateModelBundleV1Request(schemas.DictSchema): +class CreateModelBundleV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,6 +34,7 @@ class CreateModelBundleV1Request(schemas.DictSchema): Request object for creating a Model Bundle. """ + class MetaOapg: required = { "requirements", @@ -40,50 +43,41 @@ class MetaOapg: "location", "env_params", } - + class properties: + @staticmethod - def env_params() -> typing.Type["ModelBundleEnvironmentParams"]: + def env_params() -> typing.Type['ModelBundleEnvironmentParams']: return ModelBundleEnvironmentParams - location = schemas.StrSchema name = schemas.StrSchema - + @staticmethod - def packaging_type() -> typing.Type["ModelBundlePackagingType"]: + def packaging_type() -> typing.Type['ModelBundlePackagingType']: return ModelBundlePackagingType - - class requirements(schemas.ListSchema): + + + class requirements( + schemas.ListSchema + ): + + class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "requirements": + ) -> 'requirements': return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) - app_config = schemas.DictSchema metadata = schemas.DictSchema schema_location = schemas.StrSchema @@ -97,174 +91,90 @@ def __getitem__(self, i: int) -> MetaOapg.items: "metadata": metadata, "schema_location": schema_location, } - + requirements: MetaOapg.properties.requirements - packaging_type: "ModelBundlePackagingType" + packaging_type: 'ModelBundlePackagingType' name: MetaOapg.properties.name location: MetaOapg.properties.location - env_params: "ModelBundleEnvironmentParams" - + env_params: 'ModelBundleEnvironmentParams' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": - ... - + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: - ... - + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: - ... - + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": - ... - + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: - ... - + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: - ... - + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: - ... - + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: - ... - + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "env_params", - "location", - "name", - "packaging_type", - "requirements", - "app_config", - "metadata", - "schema_location", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["app_config"] - ) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["schema_location"] - ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, 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[ - "env_params", - "location", - "name", - "packaging_type", - "requirements", - "app_config", - "metadata", - "schema_location", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - requirements: typing.Union[ - MetaOapg.properties.requirements, - list, - tuple, - ], - packaging_type: "ModelBundlePackagingType", - name: typing.Union[ - MetaOapg.properties.name, - str, - ], - location: typing.Union[ - MetaOapg.properties.location, - str, - ], - env_params: "ModelBundleEnvironmentParams", - app_config: typing.Union[ - MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - metadata: typing.Union[ - MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], + packaging_type: 'ModelBundlePackagingType', + name: typing.Union[MetaOapg.properties.name, str, ], + location: typing.Union[MetaOapg.properties.location, str, ], + env_params: 'ModelBundleEnvironmentParams', + app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, schema_location: typing.Union[MetaOapg.properties.schema_location, str, 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, - ], - ) -> "CreateModelBundleV1Request": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateModelBundleV1Request': return super().__new__( cls, *_args, @@ -280,10 +190,5 @@ def __new__( **kwargs, ) - -from launch.api_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch.api_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) +from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/create_model_bundle_v1_request.pyi b/launch/api_client/model/create_model_bundle_v1_request.pyi index 24f63ed8..c951cd74 100644 --- a/launch/api_client/model/create_model_bundle_v1_request.pyi +++ b/launch/api_client/model/create_model_bundle_v1_request.pyi @@ -9,19 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CreateModelBundleV1Request(schemas.DictSchema): + +class CreateModelBundleV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +34,7 @@ class CreateModelBundleV1Request(schemas.DictSchema): Request object for creating a Model Bundle. """ + class MetaOapg: required = { "requirements", @@ -38,44 +43,39 @@ class CreateModelBundleV1Request(schemas.DictSchema): "location", "env_params", } - + class properties: + @staticmethod - def env_params() -> typing.Type["ModelBundleEnvironmentParams"]: + def env_params() -> typing.Type['ModelBundleEnvironmentParams']: return ModelBundleEnvironmentParams location = schemas.StrSchema name = schemas.StrSchema - + @staticmethod - def packaging_type() -> typing.Type["ModelBundlePackagingType"]: + def packaging_type() -> typing.Type['ModelBundlePackagingType']: return ModelBundlePackagingType - - class requirements(schemas.ListSchema): + + + class requirements( + schemas.ListSchema + ): + + class MetaOapg: items = schemas.StrSchema + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "requirements": + ) -> 'requirements': return super().__new__( cls, _arg, _configuration=_configuration, ) + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) app_config = schemas.DictSchema @@ -91,137 +91,90 @@ class CreateModelBundleV1Request(schemas.DictSchema): "metadata": metadata, "schema_location": schema_location, } + requirements: MetaOapg.properties.requirements - packaging_type: "ModelBundlePackagingType" + packaging_type: 'ModelBundlePackagingType' name: MetaOapg.properties.name location: MetaOapg.properties.location - env_params: "ModelBundleEnvironmentParams" - + env_params: 'ModelBundleEnvironmentParams' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["schema_location"] - ) -> MetaOapg.properties.schema_location: ... + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "env_params", - "location", - "name", - "packaging_type", - "requirements", - "app_config", - "metadata", - "schema_location", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["app_config"] - ) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["schema_location"] - ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, 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[ - "env_params", - "location", - "name", - "packaging_type", - "requirements", - "app_config", - "metadata", - "schema_location", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - requirements: typing.Union[ - MetaOapg.properties.requirements, - list, - tuple, - ], - packaging_type: "ModelBundlePackagingType", - name: typing.Union[ - MetaOapg.properties.name, - str, - ], - location: typing.Union[ - MetaOapg.properties.location, - str, - ], - env_params: "ModelBundleEnvironmentParams", - app_config: typing.Union[ - MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - metadata: typing.Union[ - MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], + packaging_type: 'ModelBundlePackagingType', + name: typing.Union[MetaOapg.properties.name, str, ], + location: typing.Union[MetaOapg.properties.location, str, ], + env_params: 'ModelBundleEnvironmentParams', + app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, schema_location: typing.Union[MetaOapg.properties.schema_location, str, 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, - ], - ) -> "CreateModelBundleV1Request": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateModelBundleV1Request': return super().__new__( cls, *_args, @@ -237,9 +190,5 @@ class CreateModelBundleV1Request(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) +from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/create_model_bundle_v1_response.py b/launch/api_client/model/create_model_bundle_v1_response.py index 726207b0..638bd0cb 100644 --- a/launch/api_client/model/create_model_bundle_v1_response.py +++ b/launch/api_client/model/create_model_bundle_v1_response.py @@ -9,21 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CreateModelBundleV1Response(schemas.DictSchema): +class CreateModelBundleV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,70 +34,48 @@ class CreateModelBundleV1Response(schemas.DictSchema): Response object for creating a Model Bundle. """ + class MetaOapg: required = { "model_bundle_id", } - + class properties: model_bundle_id = schemas.StrSchema __annotations__ = { "model_bundle_id": model_bundle_id, } - + model_bundle_id: MetaOapg.properties.model_bundle_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: - ... - + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @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["model_bundle_id",], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundle_id", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - model_bundle_id: typing.Union[ - MetaOapg.properties.model_bundle_id, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], _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, - ], - ) -> "CreateModelBundleV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateModelBundleV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_bundle_v1_response.pyi b/launch/api_client/model/create_model_bundle_v1_response.pyi index 6b03b26f..c7da6274 100644 --- a/launch/api_client/model/create_model_bundle_v1_response.pyi +++ b/launch/api_client/model/create_model_bundle_v1_response.pyi @@ -9,19 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CreateModelBundleV1Response(schemas.DictSchema): + +class CreateModelBundleV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,63 +34,48 @@ class CreateModelBundleV1Response(schemas.DictSchema): Response object for creating a Model Bundle. """ + class MetaOapg: required = { "model_bundle_id", } - + class properties: model_bundle_id = schemas.StrSchema __annotations__ = { "model_bundle_id": model_bundle_id, } + model_bundle_id: MetaOapg.properties.model_bundle_id - + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: ... + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @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["model_bundle_id",], str]): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundle_id", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - model_bundle_id: typing.Union[ - MetaOapg.properties.model_bundle_id, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], _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, - ], - ) -> "CreateModelBundleV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateModelBundleV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_endpoint_request.py b/launch/api_client/model/create_model_endpoint_request.py index c75f5328..56aca0e6 100644 --- a/launch/api_client/model/create_model_endpoint_request.py +++ b/launch/api_client/model/create_model_endpoint_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -129,14 +128,18 @@ class MetaOapg: def __getitem__( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) @@ -416,7 +419,9 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload @@ -424,15 +429,21 @@ def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -440,15 +451,21 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: + def __getitem__( + self, name: typing_extensions.Literal["billing_tags"] + ) -> MetaOapg.properties.billing_tags: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload @@ -462,7 +479,9 @@ def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: ... @typing.overload @@ -472,11 +491,15 @@ def __getitem__( ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: + def __getitem__( + self, name: typing_extensions.Literal["prewarm"] + ) -> MetaOapg.properties.prewarm: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: ... @typing.overload @@ -518,7 +541,9 @@ def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload @@ -526,27 +551,39 @@ def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: + def get_item_oapg( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -554,7 +591,9 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload @@ -576,7 +615,9 @@ def get_item_oapg( ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload @@ -727,7 +768,9 @@ def __new__( MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, diff --git a/launch/api_client/model/create_model_endpoint_request.pyi b/launch/api_client/model/create_model_endpoint_request.pyi index 3741c1c3..b1a37806 100644 --- a/launch/api_client/model/create_model_endpoint_request.pyi +++ b/launch/api_client/model/create_model_endpoint_request.pyi @@ -123,13 +123,17 @@ class CreateModelEndpointRequest(schemas.DictSchema): additional_properties = schemas.StrSchema def __getitem__( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( @@ -376,19 +380,31 @@ class CreateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... + def __getitem__( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + def __getitem__( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + def __getitem__( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] @@ -396,11 +412,17 @@ class CreateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... + def __getitem__( + self, name: typing_extensions.Literal["billing_tags"] + ) -> MetaOapg.properties.billing_tags: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -408,15 +430,21 @@ class CreateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... + def __getitem__( + self, name: typing_extensions.Literal["prewarm"] + ) -> MetaOapg.properties.prewarm: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -449,29 +477,49 @@ class CreateModelEndpointRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + def get_item_oapg( + self, name: typing_extensions.Literal["cpus"] + ) -> MetaOapg.properties.cpus: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + def get_item_oapg( + self, name: typing_extensions.Literal["gpus"] + ) -> MetaOapg.properties.gpus: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + def get_item_oapg( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + def get_item_oapg( + self, name: typing_extensions.Literal["name"] + ) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["billing_tags"] @@ -485,7 +533,9 @@ class CreateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["default_callback_url"] ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["optimize_costs"] @@ -503,7 +553,9 @@ class CreateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["storage"] ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -623,7 +675,9 @@ class CreateModelEndpointRequest(schemas.DictSchema): MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, diff --git a/launch/api_client/model/create_model_endpoint_response.py b/launch/api_client/model/create_model_endpoint_response.py index e2cdf9c1..716018f7 100644 --- a/launch/api_client/model/create_model_endpoint_response.py +++ b/launch/api_client/model/create_model_endpoint_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -56,7 +55,9 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["endpoint_creation_task_id",], + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], str, ], ): @@ -76,7 +77,9 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["endpoint_creation_task_id",], + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], str, ], ): diff --git a/launch/api_client/model/create_model_endpoint_response.pyi b/launch/api_client/model/create_model_endpoint_response.pyi index f11048d6..6c562738 100644 --- a/launch/api_client/model/create_model_endpoint_response.pyi +++ b/launch/api_client/model/create_model_endpoint_response.pyi @@ -49,7 +49,9 @@ class CreateModelEndpointResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["endpoint_creation_task_id",], + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], str, ], ): @@ -60,11 +62,15 @@ class CreateModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["endpoint_creation_task_id"] ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["endpoint_creation_task_id",], + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], str, ], ): diff --git a/launch/api_client/model/create_model_endpoint_v1_request.py b/launch/api_client/model/create_model_endpoint_v1_request.py index 2717f643..b3198236 100644 --- a/launch/api_client/model/create_model_endpoint_v1_request.py +++ b/launch/api_client/model/create_model_endpoint_v1_request.py @@ -9,27 +9,30 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CreateModelEndpointV1Request(schemas.DictSchema): +class CreateModelEndpointV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "endpoint_type", @@ -44,16 +47,20 @@ class MetaOapg: "per_worker", "labels", } - + class properties: + + class cpus( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -69,102 +76,83 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "cpus": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'cpus': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def endpoint_type() -> typing.Type["ModelEndpointType"]: + def endpoint_type() -> typing.Type['ModelEndpointType']: return ModelEndpointType - - class gpus(schemas.IntSchema): + + + class gpus( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - - class labels(schemas.DictSchema): + + + class labels( + schemas.DictSchema + ): + + class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[ - MetaOapg.additional_properties, - str, - ], - ) -> "labels": + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - class max_workers(schemas.IntSchema): + + + class max_workers( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - + + class memory( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -180,125 +168,99 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "memory": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'memory': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - metadata = schemas.DictSchema - - class min_workers(schemas.IntSchema): + + + class min_workers( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - model_bundle_id = schemas.StrSchema - - class name(schemas.StrSchema): + + + class name( + schemas.StrSchema + ): + + class MetaOapg: max_length = 63 - per_worker = schemas.IntSchema billing_tags = schemas.DictSchema - + @staticmethod - def default_callback_auth() -> typing.Type["CallbackAuth"]: + def default_callback_auth() -> typing.Type['CallbackAuth']: return CallbackAuth - - class default_callback_url(schemas.StrSchema): + + + class default_callback_url( + schemas.StrSchema + ): + + class MetaOapg: - format = "uri" + format = 'uri' max_length = 2083 min_length = 1 - + @staticmethod - def gpu_type() -> typing.Type["GpuType"]: + def gpu_type() -> typing.Type['GpuType']: return GpuType - high_priority = schemas.BoolSchema optimize_costs = schemas.BoolSchema - - class post_inference_hooks(schemas.ListSchema): + + + class post_inference_hooks( + schemas.ListSchema + ): + + class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "post_inference_hooks": + ) -> 'post_inference_hooks': return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) - prewarm = schemas.BoolSchema - + + class storage( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -314,52 +276,20 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "storage": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'storage': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - __annotations__ = { "cpus": cpus, "endpoint_type": endpoint_type, @@ -382,8 +312,8 @@ def __new__( "prewarm": prewarm, "storage": storage, } - - endpoint_type: "ModelEndpointType" + + endpoint_type: 'ModelEndpointType' metadata: MetaOapg.properties.metadata memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus @@ -394,391 +324,168 @@ def __new__( name: MetaOapg.properties.name per_worker: MetaOapg.properties.per_worker labels: MetaOapg.properties.labels - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: - ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": - ... - + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: - ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: - ... - + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: - ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: - ... - + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: - ... - + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: - ... - + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: - ... - + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: - ... - + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": - ... - + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_url"] - ) -> MetaOapg.properties.default_callback_url: - ... - + def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": - ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: - ... - + def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: - ... - + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["post_inference_hooks"] - ) -> MetaOapg.properties.post_inference_hooks: - ... - + def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: - ... - + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: - ... - + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cpus", - "endpoint_type", - "gpus", - "labels", - "max_workers", - "memory", - "metadata", - "min_workers", - "model_bundle_id", - "name", - "per_worker", - "billing_tags", - "default_callback_auth", - "default_callback_url", - "gpu_type", - "high_priority", - "optimize_costs", - "post_inference_hooks", - "prewarm", - "storage", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["billing_tags"] - ) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> typing.Union["CallbackAuth", schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["default_callback_url"] - ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["high_priority"] - ) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["post_inference_hooks"] - ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["prewarm"] - ) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["storage"] - ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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[ - "cpus", - "endpoint_type", - "gpus", - "labels", - "max_workers", - "memory", - "metadata", - "min_workers", - "model_bundle_id", - "name", - "per_worker", - "billing_tags", - "default_callback_auth", - "default_callback_url", - "gpu_type", - "high_priority", - "optimize_costs", - "post_inference_hooks", - "prewarm", - "storage", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - endpoint_type: "ModelEndpointType", - metadata: typing.Union[ - MetaOapg.properties.metadata, - dict, - frozendict.frozendict, - ], - memory: typing.Union[ - MetaOapg.properties.memory, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], - cpus: typing.Union[ - MetaOapg.properties.cpus, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], - max_workers: typing.Union[ - MetaOapg.properties.max_workers, - decimal.Decimal, - int, - ], - model_bundle_id: typing.Union[ - MetaOapg.properties.model_bundle_id, - str, - ], - min_workers: typing.Union[ - MetaOapg.properties.min_workers, - decimal.Decimal, - int, - ], - gpus: typing.Union[ - MetaOapg.properties.gpus, - decimal.Decimal, - int, - ], - name: typing.Union[ - MetaOapg.properties.name, - str, - ], - per_worker: typing.Union[ - MetaOapg.properties.per_worker, - decimal.Decimal, - int, - ], - labels: typing.Union[ - MetaOapg.properties.labels, - dict, - frozendict.frozendict, - ], - billing_tags: typing.Union[ - MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[ - MetaOapg.properties.default_callback_url, str, schemas.Unset - ] = schemas.unset, - gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_type: 'ModelEndpointType', + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], + name: typing.Union[MetaOapg.properties.name, str, ], + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], + billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[ - MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset - ] = schemas.unset, + post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[ - MetaOapg.properties.storage, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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, - ], - ) -> "CreateModelEndpointV1Request": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateModelEndpointV1Request': return super().__new__( cls, *_args, @@ -806,7 +513,6 @@ def __new__( **kwargs, ) - from launch.api_client.model.callback_auth import CallbackAuth from launch.api_client.model.gpu_type import GpuType from launch.api_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/create_model_endpoint_v1_request.pyi b/launch/api_client/model/create_model_endpoint_v1_request.pyi index d4e30084..d1849c99 100644 --- a/launch/api_client/model/create_model_endpoint_v1_request.pyi +++ b/launch/api_client/model/create_model_endpoint_v1_request.pyi @@ -9,25 +9,30 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CreateModelEndpointV1Request(schemas.DictSchema): + +class CreateModelEndpointV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "endpoint_type", @@ -42,16 +47,20 @@ class CreateModelEndpointV1Request(schemas.DictSchema): "per_worker", "labels", } - + class properties: + + class cpus( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -67,95 +76,77 @@ class CreateModelEndpointV1Request(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "cpus": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'cpus': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + @staticmethod - def endpoint_type() -> typing.Type["ModelEndpointType"]: + def endpoint_type() -> typing.Type['ModelEndpointType']: return ModelEndpointType - - class gpus(schemas.IntSchema): + + + class gpus( + schemas.IntSchema + ): pass - - class labels(schemas.DictSchema): + + + class labels( + schemas.DictSchema + ): + + class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[ - MetaOapg.additional_properties, - str, - ], - ) -> "labels": + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - class max_workers(schemas.IntSchema): + + + class max_workers( + schemas.IntSchema + ): pass - + + class memory( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -171,44 +162,14 @@ class CreateModelEndpointV1Request(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "memory": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'memory': return super().__new__( cls, *_args, @@ -216,66 +177,73 @@ class CreateModelEndpointV1Request(schemas.DictSchema): **kwargs, ) metadata = schemas.DictSchema - - class min_workers(schemas.IntSchema): + + + class min_workers( + schemas.IntSchema + ): pass model_bundle_id = schemas.StrSchema - - class name(schemas.StrSchema): + + + class name( + schemas.StrSchema + ): pass per_worker = schemas.IntSchema billing_tags = schemas.DictSchema - + @staticmethod - def default_callback_auth() -> typing.Type["CallbackAuth"]: + def default_callback_auth() -> typing.Type['CallbackAuth']: return CallbackAuth - - class default_callback_url(schemas.StrSchema): + + + class default_callback_url( + schemas.StrSchema + ): pass + @staticmethod - def gpu_type() -> typing.Type["GpuType"]: + def gpu_type() -> typing.Type['GpuType']: return GpuType high_priority = schemas.BoolSchema optimize_costs = schemas.BoolSchema - - class post_inference_hooks(schemas.ListSchema): + + + class post_inference_hooks( + schemas.ListSchema + ): + + class MetaOapg: items = schemas.StrSchema + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "post_inference_hooks": + ) -> 'post_inference_hooks': return super().__new__( cls, _arg, _configuration=_configuration, ) + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) prewarm = schemas.BoolSchema - + + class storage( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -291,44 +259,14 @@ class CreateModelEndpointV1Request(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "storage": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'storage': return super().__new__( cls, *_args, @@ -357,7 +295,8 @@ class CreateModelEndpointV1Request(schemas.DictSchema): "prewarm": prewarm, "storage": storage, } - endpoint_type: "ModelEndpointType" + + endpoint_type: 'ModelEndpointType' metadata: MetaOapg.properties.metadata memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus @@ -368,309 +307,168 @@ class CreateModelEndpointV1Request(schemas.DictSchema): name: MetaOapg.properties.name per_worker: MetaOapg.properties.per_worker labels: MetaOapg.properties.labels - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: ... + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_url"] - ) -> MetaOapg.properties.default_callback_url: ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["post_inference_hooks"] - ) -> MetaOapg.properties.post_inference_hooks: ... + def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cpus", - "endpoint_type", - "gpus", - "labels", - "max_workers", - "memory", - "metadata", - "min_workers", - "model_bundle_id", - "name", - "per_worker", - "billing_tags", - "default_callback_auth", - "default_callback_url", - "gpu_type", - "high_priority", - "optimize_costs", - "post_inference_hooks", - "prewarm", - "storage", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["billing_tags"] - ) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> typing.Union["CallbackAuth", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["default_callback_url"] - ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["high_priority"] - ) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["post_inference_hooks"] - ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["prewarm"] - ) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["storage"] - ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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[ - "cpus", - "endpoint_type", - "gpus", - "labels", - "max_workers", - "memory", - "metadata", - "min_workers", - "model_bundle_id", - "name", - "per_worker", - "billing_tags", - "default_callback_auth", - "default_callback_url", - "gpu_type", - "high_priority", - "optimize_costs", - "post_inference_hooks", - "prewarm", - "storage", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - endpoint_type: "ModelEndpointType", - metadata: typing.Union[ - MetaOapg.properties.metadata, - dict, - frozendict.frozendict, - ], - memory: typing.Union[ - MetaOapg.properties.memory, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], - cpus: typing.Union[ - MetaOapg.properties.cpus, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], - max_workers: typing.Union[ - MetaOapg.properties.max_workers, - decimal.Decimal, - int, - ], - model_bundle_id: typing.Union[ - MetaOapg.properties.model_bundle_id, - str, - ], - min_workers: typing.Union[ - MetaOapg.properties.min_workers, - decimal.Decimal, - int, - ], - gpus: typing.Union[ - MetaOapg.properties.gpus, - decimal.Decimal, - int, - ], - name: typing.Union[ - MetaOapg.properties.name, - str, - ], - per_worker: typing.Union[ - MetaOapg.properties.per_worker, - decimal.Decimal, - int, - ], - labels: typing.Union[ - MetaOapg.properties.labels, - dict, - frozendict.frozendict, - ], - billing_tags: typing.Union[ - MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[ - MetaOapg.properties.default_callback_url, str, schemas.Unset - ] = schemas.unset, - gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_type: 'ModelEndpointType', + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], + name: typing.Union[MetaOapg.properties.name, str, ], + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], + billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[ - MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset - ] = schemas.unset, + post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[ - MetaOapg.properties.storage, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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, - ], - ) -> "CreateModelEndpointV1Request": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateModelEndpointV1Request': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_endpoint_v1_response.py b/launch/api_client/model/create_model_endpoint_v1_response.py index 39cb7722..6f344894 100644 --- a/launch/api_client/model/create_model_endpoint_v1_response.py +++ b/launch/api_client/model/create_model_endpoint_v1_response.py @@ -9,95 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 CreateModelEndpointV1Response(schemas.DictSchema): +class CreateModelEndpointV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "endpoint_creation_task_id", } - + class properties: endpoint_creation_task_id = schemas.StrSchema __annotations__ = { "endpoint_creation_task_id": endpoint_creation_task_id, } - + endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id - + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["endpoint_creation_task_id"] - ) -> MetaOapg.properties.endpoint_creation_task_id: - ... - + def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_creation_task_id"] - ) -> MetaOapg.properties.endpoint_creation_task_id: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + @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["endpoint_creation_task_id",], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - endpoint_creation_task_id: typing.Union[ - MetaOapg.properties.endpoint_creation_task_id, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], _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, - ], - ) -> "CreateModelEndpointV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateModelEndpointV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_endpoint_v1_response.pyi b/launch/api_client/model/create_model_endpoint_v1_response.pyi index ae27258e..0b696784 100644 --- a/launch/api_client/model/create_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/create_model_endpoint_v1_response.pyi @@ -9,82 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class CreateModelEndpointV1Response(schemas.DictSchema): + +class CreateModelEndpointV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "endpoint_creation_task_id", } - + class properties: endpoint_creation_task_id = schemas.StrSchema __annotations__ = { "endpoint_creation_task_id": endpoint_creation_task_id, } + endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id - + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["endpoint_creation_task_id"] - ) -> MetaOapg.properties.endpoint_creation_task_id: ... + def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_creation_task_id"] - ) -> MetaOapg.properties.endpoint_creation_task_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + @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["endpoint_creation_task_id",], str]): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - endpoint_creation_task_id: typing.Union[ - MetaOapg.properties.endpoint_creation_task_id, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], _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, - ], - ) -> "CreateModelEndpointV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'CreateModelEndpointV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/delete_model_endpoint_response.py b/launch/api_client/model/delete_model_endpoint_response.py index 54d4bbaa..3525cd4e 100644 --- a/launch/api_client/model/delete_model_endpoint_response.py +++ b/launch/api_client/model/delete_model_endpoint_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -44,7 +43,9 @@ class properties: deleted: MetaOapg.properties.deleted @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: + def __getitem__( + self, name: typing_extensions.Literal["deleted"] + ) -> MetaOapg.properties.deleted: ... @typing.overload @@ -54,7 +55,9 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["deleted",], + typing_extensions.Literal[ + "deleted", + ], str, ], ): @@ -62,7 +65,9 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: + def get_item_oapg( + self, name: typing_extensions.Literal["deleted"] + ) -> MetaOapg.properties.deleted: ... @typing.overload @@ -72,7 +77,9 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["deleted",], + typing_extensions.Literal[ + "deleted", + ], str, ], ): diff --git a/launch/api_client/model/delete_model_endpoint_response.pyi b/launch/api_client/model/delete_model_endpoint_response.pyi index a5b0efdd..e74f51b3 100644 --- a/launch/api_client/model/delete_model_endpoint_response.pyi +++ b/launch/api_client/model/delete_model_endpoint_response.pyi @@ -41,26 +41,36 @@ class DeleteModelEndpointResponse(schemas.DictSchema): deleted: MetaOapg.properties.deleted @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... + def __getitem__( + self, name: typing_extensions.Literal["deleted"] + ) -> MetaOapg.properties.deleted: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["deleted",], + typing_extensions.Literal[ + "deleted", + ], str, ], ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... + def get_item_oapg( + self, name: typing_extensions.Literal["deleted"] + ) -> MetaOapg.properties.deleted: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["deleted",], + typing_extensions.Literal[ + "deleted", + ], str, ], ): diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.py b/launch/api_client/model/delete_model_endpoint_v1_response.py index afd67204..dea0d23d 100644 --- a/launch/api_client/model/delete_model_endpoint_v1_response.py +++ b/launch/api_client/model/delete_model_endpoint_v1_response.py @@ -9,91 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 DeleteModelEndpointV1Response(schemas.DictSchema): +class DeleteModelEndpointV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "deleted", } - + class properties: deleted = schemas.BoolSchema __annotations__ = { "deleted": deleted, } - + deleted: MetaOapg.properties.deleted - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: - ... - + def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... + @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["deleted",], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["deleted", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - deleted: typing.Union[ - MetaOapg.properties.deleted, - bool, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + deleted: typing.Union[MetaOapg.properties.deleted, bool, ], _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, - ], - ) -> "DeleteModelEndpointV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'DeleteModelEndpointV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.pyi b/launch/api_client/model/delete_model_endpoint_v1_response.pyi index c254be0b..f8cc65ff 100644 --- a/launch/api_client/model/delete_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/delete_model_endpoint_v1_response.pyi @@ -9,78 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class DeleteModelEndpointV1Response(schemas.DictSchema): + +class DeleteModelEndpointV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "deleted", } - + class properties: deleted = schemas.BoolSchema __annotations__ = { "deleted": deleted, } + deleted: MetaOapg.properties.deleted - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... + @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["deleted",], str]): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["deleted", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - deleted: typing.Union[ - MetaOapg.properties.deleted, - bool, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + deleted: typing.Union[MetaOapg.properties.deleted, bool, ], _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, - ], - ) -> "DeleteModelEndpointV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'DeleteModelEndpointV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/endpoint_predict_request.py b/launch/api_client/model/endpoint_predict_request.py index c8cfed1c..571e046a 100644 --- a/launch/api_client/model/endpoint_predict_request.py +++ b/launch/api_client/model/endpoint_predict_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -60,15 +59,21 @@ def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "Call ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: + def __getitem__( + self, name: typing_extensions.Literal["callback_url"] + ) -> MetaOapg.properties.callback_url: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: + def __getitem__( + self, name: typing_extensions.Literal["cloudpickle"] + ) -> MetaOapg.properties.cloudpickle: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: + def __getitem__( + self, name: typing_extensions.Literal["return_pickled"] + ) -> MetaOapg.properties.return_pickled: ... @typing.overload @@ -179,9 +184,15 @@ def __new__( schemas.Unset, ] = schemas.unset, callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, - cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, - return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, + callback_url: typing.Union[ + MetaOapg.properties.callback_url, str, schemas.Unset + ] = schemas.unset, + cloudpickle: typing.Union[ + MetaOapg.properties.cloudpickle, str, schemas.Unset + ] = schemas.unset, + return_pickled: typing.Union[ + MetaOapg.properties.return_pickled, bool, schemas.Unset + ] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ diff --git a/launch/api_client/model/endpoint_predict_request.pyi b/launch/api_client/model/endpoint_predict_request.pyi index 656cb6f8..03516a99 100644 --- a/launch/api_client/model/endpoint_predict_request.pyi +++ b/launch/api_client/model/endpoint_predict_request.pyi @@ -52,11 +52,17 @@ class EndpointPredictRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "CallbackAuth": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... + def __getitem__( + self, name: typing_extensions.Literal["callback_url"] + ) -> MetaOapg.properties.callback_url: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... + def __getitem__( + self, name: typing_extensions.Literal["cloudpickle"] + ) -> MetaOapg.properties.cloudpickle: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... + def __getitem__( + self, name: typing_extensions.Literal["return_pickled"] + ) -> MetaOapg.properties.return_pickled: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... @typing.overload @@ -102,7 +108,9 @@ class EndpointPredictRequest(schemas.DictSchema): self, name: typing_extensions.Literal["url"] ) -> typing.Union[MetaOapg.properties.url, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -145,9 +153,15 @@ class EndpointPredictRequest(schemas.DictSchema): schemas.Unset, ] = schemas.unset, callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, - cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, - return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, + callback_url: typing.Union[ + MetaOapg.properties.callback_url, str, schemas.Unset + ] = schemas.unset, + cloudpickle: typing.Union[ + MetaOapg.properties.cloudpickle, str, schemas.Unset + ] = schemas.unset, + return_pickled: typing.Union[ + MetaOapg.properties.return_pickled, bool, schemas.Unset + ] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ diff --git a/launch/api_client/model/endpoint_predict_v1_request.py b/launch/api_client/model/endpoint_predict_v1_request.py index 2fcfd632..79f2c87b 100644 --- a/launch/api_client/model/endpoint_predict_v1_request.py +++ b/launch/api_client/model/endpoint_predict_v1_request.py @@ -9,35 +9,38 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 EndpointPredictV1Request(schemas.DictSchema): +class EndpointPredictV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: + class properties: args = schemas.AnyTypeSchema - + @staticmethod - def callback_auth() -> typing.Type["CallbackAuth"]: + def callback_auth() -> typing.Type['CallbackAuth']: return CallbackAuth - callback_url = schemas.StrSchema cloudpickle = schemas.StrSchema return_pickled = schemas.BoolSchema @@ -50,157 +53,70 @@ def callback_auth() -> typing.Type["CallbackAuth"]: "return_pickled": return_pickled, "url": url, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["args"]) -> MetaOapg.properties.args: - ... - + def __getitem__(self, name: typing_extensions.Literal["args"]) -> MetaOapg.properties.args: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "CallbackAuth": - ... - + def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> 'CallbackAuth': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: - ... - + def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: - ... - + def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: - ... - + def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: - ... - + def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "args", - "callback_auth", - "callback_url", - "cloudpickle", - "return_pickled", - "url", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["args"] - ) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["args"]) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["callback_auth"] - ) -> typing.Union["CallbackAuth", schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["callback_url"] - ) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["callback_url"]) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cloudpickle"] - ) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["cloudpickle"]) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["return_pickled"] - ) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["return_pickled"]) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["url"] - ) -> typing.Union[MetaOapg.properties.url, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["url"]) -> typing.Union[MetaOapg.properties.url, 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[ - "args", - "callback_auth", - "callback_url", - "cloudpickle", - "return_pickled", - "url", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - args: typing.Union[ - MetaOapg.properties.args, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, - callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + args: typing.Union[MetaOapg.properties.args, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, 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, - ], - ) -> "EndpointPredictV1Request": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'EndpointPredictV1Request': return super().__new__( cls, *_args, @@ -214,5 +130,4 @@ def __new__( **kwargs, ) - from launch.api_client.model.callback_auth import CallbackAuth diff --git a/launch/api_client/model/endpoint_predict_v1_request.pyi b/launch/api_client/model/endpoint_predict_v1_request.pyi index 13dea9cf..018c61dc 100644 --- a/launch/api_client/model/endpoint_predict_v1_request.pyi +++ b/launch/api_client/model/endpoint_predict_v1_request.pyi @@ -9,31 +9,37 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class EndpointPredictV1Request(schemas.DictSchema): + +class EndpointPredictV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: + class properties: args = schemas.AnyTypeSchema - + @staticmethod - def callback_auth() -> typing.Type["CallbackAuth"]: + def callback_auth() -> typing.Type['CallbackAuth']: return CallbackAuth callback_url = schemas.StrSchema cloudpickle = schemas.StrSchema @@ -47,126 +53,70 @@ class EndpointPredictV1Request(schemas.DictSchema): "return_pickled": return_pickled, "url": url, } + @typing.overload def __getitem__(self, name: typing_extensions.Literal["args"]) -> MetaOapg.properties.args: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> 'CallbackAuth': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "args", - "callback_auth", - "callback_url", - "cloudpickle", - "return_pickled", - "url", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["args"] - ) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["args"]) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["callback_auth"] - ) -> typing.Union["CallbackAuth", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["callback_url"] - ) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["callback_url"]) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cloudpickle"] - ) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["cloudpickle"]) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["return_pickled"] - ) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["return_pickled"]) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["url"] - ) -> typing.Union[MetaOapg.properties.url, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["url"]) -> typing.Union[MetaOapg.properties.url, 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[ - "args", - "callback_auth", - "callback_url", - "cloudpickle", - "return_pickled", - "url", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - args: typing.Union[ - MetaOapg.properties.args, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, - callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + args: typing.Union[MetaOapg.properties.args, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, 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, - ], - ) -> "EndpointPredictV1Request": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'EndpointPredictV1Request': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/get_async_task_response.py b/launch/api_client/model/get_async_task_response.py index c21a3400..f50a32ac 100644 --- a/launch/api_client/model/get_async_task_response.py +++ b/launch/api_client/model/get_async_task_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -59,7 +58,9 @@ def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus" ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: + def __getitem__( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload @@ -67,7 +68,9 @@ def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: + def __getitem__( + self, name: typing_extensions.Literal["traceback"] + ) -> MetaOapg.properties.traceback: ... @typing.overload @@ -94,7 +97,9 @@ def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatu ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: + def get_item_oapg( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload diff --git a/launch/api_client/model/get_async_task_response.pyi b/launch/api_client/model/get_async_task_response.pyi index 8dacef03..9117c7a1 100644 --- a/launch/api_client/model/get_async_task_response.pyi +++ b/launch/api_client/model/get_async_task_response.pyi @@ -53,11 +53,17 @@ class GetAsyncTaskResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + def __getitem__( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + def __getitem__( + self, name: typing_extensions.Literal["result"] + ) -> MetaOapg.properties.result: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... + def __getitem__( + self, name: typing_extensions.Literal["traceback"] + ) -> MetaOapg.properties.traceback: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -77,7 +83,9 @@ class GetAsyncTaskResponse(schemas.DictSchema): @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + def get_item_oapg( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["result"] @@ -87,7 +95,9 @@ class GetAsyncTaskResponse(schemas.DictSchema): self, name: typing_extensions.Literal["traceback"] ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/get_async_task_v1_response.py b/launch/api_client/model/get_async_task_v1_response.py index 80939dab..101107ad 100644 --- a/launch/api_client/model/get_async_task_v1_response.py +++ b/launch/api_client/model/get_async_task_v1_response.py @@ -9,38 +9,41 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 GetAsyncTaskV1Response(schemas.DictSchema): +class GetAsyncTaskV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "task_id", "status", } - + class properties: + @staticmethod - def status() -> typing.Type["TaskStatus"]: + def status() -> typing.Type['TaskStatus']: return TaskStatus - task_id = schemas.StrSchema result = schemas.AnyTypeSchema traceback = schemas.StrSchema @@ -50,133 +53,59 @@ def status() -> typing.Type["TaskStatus"]: "result": result, "traceback": traceback, } - + task_id: MetaOapg.properties.task_id - status: "TaskStatus" - + status: 'TaskStatus' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": - ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: - ... - + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: - ... - + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: - ... - + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "status", - "task_id", - "result", - "traceback", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "task_id", "result", "traceback", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["result"] - ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["traceback"] - ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, 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[ - "status", - "task_id", - "result", - "traceback", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", "task_id", "result", "traceback", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - task_id: typing.Union[ - MetaOapg.properties.task_id, - str, - ], - status: "TaskStatus", - result: typing.Union[ - MetaOapg.properties.result, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + task_id: typing.Union[MetaOapg.properties.task_id, str, ], + status: 'TaskStatus', + result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, traceback: typing.Union[MetaOapg.properties.traceback, str, 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, - ], - ) -> "GetAsyncTaskV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'GetAsyncTaskV1Response': return super().__new__( cls, *_args, @@ -188,5 +117,4 @@ def __new__( **kwargs, ) - from launch.api_client.model.task_status import TaskStatus diff --git a/launch/api_client/model/get_async_task_v1_response.pyi b/launch/api_client/model/get_async_task_v1_response.pyi index bf4524d5..d560363f 100644 --- a/launch/api_client/model/get_async_task_v1_response.pyi +++ b/launch/api_client/model/get_async_task_v1_response.pyi @@ -9,34 +9,40 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class GetAsyncTaskV1Response(schemas.DictSchema): + +class GetAsyncTaskV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "task_id", "status", } - + class properties: + @staticmethod - def status() -> typing.Type["TaskStatus"]: + def status() -> typing.Type['TaskStatus']: return TaskStatus task_id = schemas.StrSchema result = schemas.AnyTypeSchema @@ -47,110 +53,59 @@ class GetAsyncTaskV1Response(schemas.DictSchema): "result": result, "traceback": traceback, } + task_id: MetaOapg.properties.task_id - status: "TaskStatus" - + status: 'TaskStatus' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "status", - "task_id", - "result", - "traceback", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "task_id", "result", "traceback", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["result"] - ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["traceback"] - ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, 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[ - "status", - "task_id", - "result", - "traceback", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", "task_id", "result", "traceback", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - task_id: typing.Union[ - MetaOapg.properties.task_id, - str, - ], - status: "TaskStatus", - result: typing.Union[ - MetaOapg.properties.result, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + task_id: typing.Union[MetaOapg.properties.task_id, str, ], + status: 'TaskStatus', + result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, traceback: typing.Union[MetaOapg.properties.traceback, str, 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, - ], - ) -> "GetAsyncTaskV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'GetAsyncTaskV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/get_batch_job_response.py b/launch/api_client/model/get_batch_job_response.py index 89a2f9d0..28daa803 100644 --- a/launch/api_client/model/get_batch_job_response.py +++ b/launch/api_client/model/get_batch_job_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -58,7 +57,9 @@ def status() -> typing.Type["BatchJobStatus"]: status: "BatchJobStatus" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: + def __getitem__( + self, name: typing_extensions.Literal["duration"] + ) -> MetaOapg.properties.duration: ... @typing.overload @@ -102,7 +103,9 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: + def get_item_oapg( + self, name: typing_extensions.Literal["duration"] + ) -> MetaOapg.properties.duration: ... @typing.overload diff --git a/launch/api_client/model/get_batch_job_response.pyi b/launch/api_client/model/get_batch_job_response.pyi index ae4b676d..c8b24ecf 100644 --- a/launch/api_client/model/get_batch_job_response.pyi +++ b/launch/api_client/model/get_batch_job_response.pyi @@ -54,7 +54,9 @@ class GetBatchJobResponse(schemas.DictSchema): status: "BatchJobStatus" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... + def __getitem__( + self, name: typing_extensions.Literal["duration"] + ) -> MetaOapg.properties.duration: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload @@ -66,7 +68,9 @@ class GetBatchJobResponse(schemas.DictSchema): self, name: typing_extensions.Literal["num_tasks_pending"] ) -> MetaOapg.properties.num_tasks_pending: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + def __getitem__( + self, name: typing_extensions.Literal["result"] + ) -> MetaOapg.properties.result: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -85,7 +89,9 @@ class GetBatchJobResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... + def get_item_oapg( + self, name: typing_extensions.Literal["duration"] + ) -> MetaOapg.properties.duration: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload @@ -101,7 +107,9 @@ class GetBatchJobResponse(schemas.DictSchema): self, name: typing_extensions.Literal["result"] ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/get_batch_job_v1_response.py b/launch/api_client/model/get_batch_job_v1_response.py index e5327ade..d6a779c6 100644 --- a/launch/api_client/model/get_batch_job_v1_response.py +++ b/launch/api_client/model/get_batch_job_v1_response.py @@ -9,40 +9,42 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 GetBatchJobV1Response(schemas.DictSchema): +class GetBatchJobV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "duration", "status", } - + class properties: duration = schemas.NumberSchema - + @staticmethod - def status() -> typing.Type["BatchJobStatus"]: + def status() -> typing.Type['BatchJobStatus']: return BatchJobStatus - num_tasks_completed = schemas.IntSchema num_tasks_pending = schemas.IntSchema result = schemas.StrSchema @@ -53,137 +55,66 @@ def status() -> typing.Type["BatchJobStatus"]: "num_tasks_pending": num_tasks_pending, "result": result, } - + duration: MetaOapg.properties.duration - status: "BatchJobStatus" - + status: 'BatchJobStatus' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: - ... - + def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": - ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["num_tasks_completed"] - ) -> MetaOapg.properties.num_tasks_completed: - ... - + def __getitem__(self, name: typing_extensions.Literal["num_tasks_completed"]) -> MetaOapg.properties.num_tasks_completed: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["num_tasks_pending"] - ) -> MetaOapg.properties.num_tasks_pending: - ... - + def __getitem__(self, name: typing_extensions.Literal["num_tasks_pending"]) -> MetaOapg.properties.num_tasks_pending: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: - ... - + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "duration", - "status", - "num_tasks_completed", - "num_tasks_pending", - "result", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["num_tasks_completed"] - ) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_completed"]) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["num_tasks_pending"] - ) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_pending"]) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["result"] - ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, 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[ - "duration", - "status", - "num_tasks_completed", - "num_tasks_pending", - "result", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - duration: typing.Union[ - MetaOapg.properties.duration, - decimal.Decimal, - int, - float, - ], - status: "BatchJobStatus", - num_tasks_completed: typing.Union[ - MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - num_tasks_pending: typing.Union[ - MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + duration: typing.Union[MetaOapg.properties.duration, decimal.Decimal, int, float, ], + status: 'BatchJobStatus', + num_tasks_completed: typing.Union[MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset] = schemas.unset, + num_tasks_pending: typing.Union[MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset] = schemas.unset, result: typing.Union[MetaOapg.properties.result, str, 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, - ], - ) -> "GetBatchJobV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'GetBatchJobV1Response': return super().__new__( cls, *_args, @@ -196,5 +127,4 @@ def __new__( **kwargs, ) - from launch.api_client.model.batch_job_status import BatchJobStatus diff --git a/launch/api_client/model/get_batch_job_v1_response.pyi b/launch/api_client/model/get_batch_job_v1_response.pyi index 264bf1cb..b0b58d48 100644 --- a/launch/api_client/model/get_batch_job_v1_response.pyi +++ b/launch/api_client/model/get_batch_job_v1_response.pyi @@ -9,36 +9,41 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class GetBatchJobV1Response(schemas.DictSchema): + +class GetBatchJobV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "duration", "status", } - + class properties: duration = schemas.NumberSchema - + @staticmethod - def status() -> typing.Type["BatchJobStatus"]: + def status() -> typing.Type['BatchJobStatus']: return BatchJobStatus num_tasks_completed = schemas.IntSchema num_tasks_pending = schemas.IntSchema @@ -50,110 +55,66 @@ class GetBatchJobV1Response(schemas.DictSchema): "num_tasks_pending": num_tasks_pending, "result": result, } + duration: MetaOapg.properties.duration - status: "BatchJobStatus" - + status: 'BatchJobStatus' + @typing.overload def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["num_tasks_completed"] - ) -> MetaOapg.properties.num_tasks_completed: ... + def __getitem__(self, name: typing_extensions.Literal["num_tasks_completed"]) -> MetaOapg.properties.num_tasks_completed: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["num_tasks_pending"] - ) -> MetaOapg.properties.num_tasks_pending: ... + def __getitem__(self, name: typing_extensions.Literal["num_tasks_pending"]) -> MetaOapg.properties.num_tasks_pending: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "duration", - "status", - "num_tasks_completed", - "num_tasks_pending", - "result", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["num_tasks_completed"] - ) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_completed"]) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["num_tasks_pending"] - ) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_pending"]) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["result"] - ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, 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[ - "duration", - "status", - "num_tasks_completed", - "num_tasks_pending", - "result", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - duration: typing.Union[ - MetaOapg.properties.duration, - decimal.Decimal, - int, - float, - ], - status: "BatchJobStatus", - num_tasks_completed: typing.Union[ - MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - num_tasks_pending: typing.Union[ - MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + duration: typing.Union[MetaOapg.properties.duration, decimal.Decimal, int, float, ], + status: 'BatchJobStatus', + num_tasks_completed: typing.Union[MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset] = schemas.unset, + num_tasks_pending: typing.Union[MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset] = schemas.unset, result: typing.Union[MetaOapg.properties.result, str, 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, - ], - ) -> "GetBatchJobV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'GetBatchJobV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/get_model_endpoint_response.py b/launch/api_client/model/get_model_endpoint_response.py index d497f926..1257117e 100644 --- a/launch/api_client/model/get_model_endpoint_response.py +++ b/launch/api_client/model/get_model_endpoint_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -85,14 +84,18 @@ class MetaOapg: def __getitem__( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) @@ -188,19 +191,27 @@ def resource_state() -> typing.Type["ModelEndpointResourceState"]: status: "ModelEndpointStatus" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: + def __getitem__( + self, name: typing_extensions.Literal["bundle_name"] + ) -> MetaOapg.properties.bundle_name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: + def __getitem__( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: + def __getitem__( + self, name: typing_extensions.Literal["created_by"] + ) -> MetaOapg.properties.created_by: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: + def __getitem__( + self, name: typing_extensions.Literal["destination"] + ) -> MetaOapg.properties.destination: ... @typing.overload @@ -212,7 +223,9 @@ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.propert ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: + def __getitem__( + self, name: typing_extensions.Literal["last_updated_at"] + ) -> MetaOapg.properties.last_updated_at: ... @typing.overload @@ -224,11 +237,15 @@ def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpoi ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: + def __getitem__( + self, name: typing_extensions.Literal["aws_role"] + ) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload @@ -238,11 +255,15 @@ def __getitem__( ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: + def __getitem__( + self, name: typing_extensions.Literal["deployment_name"] + ) -> MetaOapg.properties.deployment_name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": + def __getitem__( + self, name: typing_extensions.Literal["deployment_state"] + ) -> "ModelEndpointDeploymentState": ... @typing.overload @@ -250,11 +271,15 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: + def __getitem__( + self, name: typing_extensions.Literal["num_queued_items"] + ) -> MetaOapg.properties.num_queued_items: ... @typing.overload @@ -264,7 +289,9 @@ def __getitem__( ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": + def __getitem__( + self, name: typing_extensions.Literal["resource_state"] + ) -> "ModelEndpointResourceState": ... @typing.overload @@ -309,23 +336,33 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: + def get_item_oapg( + self, name: typing_extensions.Literal["bundle_name"] + ) -> MetaOapg.properties.bundle_name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: + def get_item_oapg( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: + def get_item_oapg( + self, name: typing_extensions.Literal["created_by"] + ) -> MetaOapg.properties.created_by: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: + def get_item_oapg( + self, name: typing_extensions.Literal["destination"] + ) -> MetaOapg.properties.destination: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload @@ -333,7 +370,9 @@ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.prope ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: + def get_item_oapg( + self, name: typing_extensions.Literal["last_updated_at"] + ) -> MetaOapg.properties.last_updated_at: ... @typing.overload @@ -487,9 +526,15 @@ def __new__( default_callback_url: typing.Union[ MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, - deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, - deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + deployment_name: typing.Union[ + MetaOapg.properties.deployment_name, str, schemas.Unset + ] = schemas.unset, + deployment_state: typing.Union[ + "ModelEndpointDeploymentState", schemas.Unset + ] = schemas.unset, + labels: typing.Union[ + MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, @@ -500,7 +545,9 @@ def __new__( MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[ + MetaOapg.properties.results_s3_bucket, str, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -548,11 +595,7 @@ def __new__( from launch.api_client.model.callback_auth import CallbackAuth -from launch.api_client.model.model_endpoint_deployment_state import ( - ModelEndpointDeploymentState, -) -from launch.api_client.model.model_endpoint_resource_state import ( - ModelEndpointResourceState, -) +from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState +from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState from launch.api_client.model.model_endpoint_status import ModelEndpointStatus from launch.api_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/get_model_endpoint_response.pyi b/launch/api_client/model/get_model_endpoint_response.pyi index 1d7670fa..5add04a0 100644 --- a/launch/api_client/model/get_model_endpoint_response.pyi +++ b/launch/api_client/model/get_model_endpoint_response.pyi @@ -76,13 +76,17 @@ class GetModelEndpointResponse(schemas.DictSchema): additional_properties = schemas.StrSchema def __getitem__( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( @@ -171,15 +175,25 @@ class GetModelEndpointResponse(schemas.DictSchema): status: "ModelEndpointStatus" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... + def __getitem__( + self, name: typing_extensions.Literal["bundle_name"] + ) -> MetaOapg.properties.bundle_name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + def __getitem__( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... + def __getitem__( + self, name: typing_extensions.Literal["created_by"] + ) -> MetaOapg.properties.created_by: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... + def __getitem__( + self, name: typing_extensions.Literal["destination"] + ) -> MetaOapg.properties.destination: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... + def __getitem__( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload @@ -191,9 +205,13 @@ class GetModelEndpointResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... + def __getitem__( + self, name: typing_extensions.Literal["aws_role"] + ) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -203,11 +221,17 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["deployment_name"] ) -> MetaOapg.properties.deployment_name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": ... + def __getitem__( + self, name: typing_extensions.Literal["deployment_state"] + ) -> "ModelEndpointDeploymentState": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + def __getitem__( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["num_queued_items"] @@ -217,7 +241,9 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": ... + def __getitem__( + self, name: typing_extensions.Literal["resource_state"] + ) -> "ModelEndpointResourceState": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["results_s3_bucket"] @@ -255,15 +281,25 @@ class GetModelEndpointResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... + def get_item_oapg( + self, name: typing_extensions.Literal["bundle_name"] + ) -> MetaOapg.properties.bundle_name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + def get_item_oapg( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... + def get_item_oapg( + self, name: typing_extensions.Literal["created_by"] + ) -> MetaOapg.properties.created_by: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... + def get_item_oapg( + self, name: typing_extensions.Literal["destination"] + ) -> MetaOapg.properties.destination: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload @@ -271,7 +307,9 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["last_updated_at"] ) -> MetaOapg.properties.last_updated_at: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + def get_item_oapg( + self, name: typing_extensions.Literal["name"] + ) -> MetaOapg.properties.name: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload @@ -319,7 +357,9 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["results_s3_bucket"] ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -392,9 +432,15 @@ class GetModelEndpointResponse(schemas.DictSchema): default_callback_url: typing.Union[ MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, - deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, - deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + deployment_name: typing.Union[ + MetaOapg.properties.deployment_name, str, schemas.Unset + ] = schemas.unset, + deployment_state: typing.Union[ + "ModelEndpointDeploymentState", schemas.Unset + ] = schemas.unset, + labels: typing.Union[ + MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, @@ -405,7 +451,9 @@ class GetModelEndpointResponse(schemas.DictSchema): MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[ + MetaOapg.properties.results_s3_bucket, str, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -452,11 +500,7 @@ class GetModelEndpointResponse(schemas.DictSchema): ) from launch_client.model.callback_auth import CallbackAuth -from launch_client.model.model_endpoint_deployment_state import ( - ModelEndpointDeploymentState, -) -from launch_client.model.model_endpoint_resource_state import ( - ModelEndpointResourceState, -) +from launch_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState +from launch_client.model.model_endpoint_resource_state import ModelEndpointResourceState from launch_client.model.model_endpoint_status import ModelEndpointStatus from launch_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/get_model_endpoint_v1_response.py b/launch/api_client/model/get_model_endpoint_v1_response.py index a14d8486..49bcbab2 100644 --- a/launch/api_client/model/get_model_endpoint_v1_response.py +++ b/launch/api_client/model/get_model_endpoint_v1_response.py @@ -9,27 +9,30 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 GetModelEndpointV1Response(schemas.DictSchema): +class GetModelEndpointV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "endpoint_type", @@ -42,111 +45,102 @@ class MetaOapg: "created_by", "status", } - + class properties: bundle_name = schemas.StrSchema created_at = schemas.DateTimeSchema created_by = schemas.StrSchema destination = schemas.StrSchema - + @staticmethod - def endpoint_type() -> typing.Type["ModelEndpointType"]: + def endpoint_type() -> typing.Type['ModelEndpointType']: return ModelEndpointType - id = schemas.StrSchema last_updated_at = schemas.DateTimeSchema name = schemas.StrSchema - + @staticmethod - def status() -> typing.Type["ModelEndpointStatus"]: + def status() -> typing.Type['ModelEndpointStatus']: return ModelEndpointStatus - aws_role = schemas.StrSchema - + @staticmethod - def default_callback_auth() -> typing.Type["CallbackAuth"]: + def default_callback_auth() -> typing.Type['CallbackAuth']: return CallbackAuth - - class default_callback_url(schemas.StrSchema): + + + class default_callback_url( + schemas.StrSchema + ): + + class MetaOapg: - format = "uri" + format = 'uri' max_length = 2083 min_length = 1 - deployment_name = schemas.StrSchema - + @staticmethod - def deployment_state() -> typing.Type["ModelEndpointDeploymentState"]: + def deployment_state() -> typing.Type['ModelEndpointDeploymentState']: return ModelEndpointDeploymentState - - class labels(schemas.DictSchema): + + + class labels( + schemas.DictSchema + ): + + class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[ - MetaOapg.additional_properties, - str, - ], - ) -> "labels": + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - metadata = schemas.DictSchema num_queued_items = schemas.IntSchema - - class post_inference_hooks(schemas.ListSchema): + + + class post_inference_hooks( + schemas.ListSchema + ): + + class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "post_inference_hooks": + ) -> 'post_inference_hooks': return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) - + @staticmethod - def resource_state() -> typing.Type["ModelEndpointResourceState"]: + def resource_state() -> typing.Type['ModelEndpointResourceState']: return ModelEndpointResourceState - results_s3_bucket = schemas.StrSchema __annotations__ = { "bundle_name": bundle_name, @@ -170,8 +164,8 @@ def resource_state() -> typing.Type["ModelEndpointResourceState"]: "resource_state": resource_state, "results_s3_bucket": results_s3_bucket, } - - endpoint_type: "ModelEndpointType" + + endpoint_type: 'ModelEndpointType' last_updated_at: MetaOapg.properties.last_updated_at destination: MetaOapg.properties.destination name: MetaOapg.properties.name @@ -179,340 +173,169 @@ def resource_state() -> typing.Type["ModelEndpointResourceState"]: bundle_name: MetaOapg.properties.bundle_name id: MetaOapg.properties.id created_by: MetaOapg.properties.created_by - status: "ModelEndpointStatus" - + status: 'ModelEndpointStatus' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: - ... - + def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: - ... - + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: - ... - + def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: - ... - + def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": - ... - + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: - ... - + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: - ... - + def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: - ... - + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": - ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: - ... - + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": - ... - + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_url"] - ) -> MetaOapg.properties.default_callback_url: - ... - + def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: - ... - + def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": - ... - + def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> 'ModelEndpointDeploymentState': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: - ... - + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: - ... - + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: - ... - + def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["post_inference_hooks"] - ) -> MetaOapg.properties.post_inference_hooks: - ... - + def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": - ... - + def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> 'ModelEndpointResourceState': ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["results_s3_bucket"] - ) -> MetaOapg.properties.results_s3_bucket: - ... - + def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "bundle_name", - "created_at", - "created_by", - "destination", - "endpoint_type", - "id", - "last_updated_at", - "name", - "status", - "aws_role", - "default_callback_auth", - "default_callback_url", - "deployment_name", - "deployment_state", - "labels", - "metadata", - "num_queued_items", - "post_inference_hooks", - "resource_state", - "results_s3_bucket", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["aws_role"] - ) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> typing.Union["CallbackAuth", schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["default_callback_url"] - ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["deployment_name"] - ) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["deployment_name"]) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["deployment_state"] - ) -> typing.Union["ModelEndpointDeploymentState", schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["deployment_state"]) -> typing.Union['ModelEndpointDeploymentState', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["num_queued_items"] - ) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["num_queued_items"]) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["post_inference_hooks"] - ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["resource_state"] - ) -> typing.Union["ModelEndpointResourceState", schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["resource_state"]) -> typing.Union['ModelEndpointResourceState', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["results_s3_bucket"] - ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, 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[ - "bundle_name", - "created_at", - "created_by", - "destination", - "endpoint_type", - "id", - "last_updated_at", - "name", - "status", - "aws_role", - "default_callback_auth", - "default_callback_url", - "deployment_name", - "deployment_state", - "labels", - "metadata", - "num_queued_items", - "post_inference_hooks", - "resource_state", - "results_s3_bucket", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - endpoint_type: "ModelEndpointType", - last_updated_at: typing.Union[ - MetaOapg.properties.last_updated_at, - str, - datetime, - ], - destination: typing.Union[ - MetaOapg.properties.destination, - str, - ], - name: typing.Union[ - MetaOapg.properties.name, - str, - ], - created_at: typing.Union[ - MetaOapg.properties.created_at, - str, - datetime, - ], - bundle_name: typing.Union[ - MetaOapg.properties.bundle_name, - str, - ], - id: typing.Union[ - MetaOapg.properties.id, - str, - ], - created_by: typing.Union[ - MetaOapg.properties.created_by, - str, - ], - status: "ModelEndpointStatus", + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_type: 'ModelEndpointType', + last_updated_at: typing.Union[MetaOapg.properties.last_updated_at, str, datetime, ], + destination: typing.Union[MetaOapg.properties.destination, str, ], + name: typing.Union[MetaOapg.properties.name, str, ], + created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], + bundle_name: typing.Union[MetaOapg.properties.bundle_name, str, ], + id: typing.Union[MetaOapg.properties.id, str, ], + created_by: typing.Union[MetaOapg.properties.created_by, str, ], + status: 'ModelEndpointStatus', aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[ - MetaOapg.properties.default_callback_url, str, schemas.Unset - ] = schemas.unset, + default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, - deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, + deployment_state: typing.Union['ModelEndpointDeploymentState', schemas.Unset] = schemas.unset, labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - metadata: typing.Union[ - MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - num_queued_items: typing.Union[ - MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - post_inference_hooks: typing.Union[ - MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset - ] = schemas.unset, - resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + num_queued_items: typing.Union[MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset] = schemas.unset, + post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + resource_state: typing.Union['ModelEndpointResourceState', schemas.Unset] = schemas.unset, results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, 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, - ], - ) -> "GetModelEndpointV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'GetModelEndpointV1Response': return super().__new__( cls, *_args, @@ -540,13 +363,8 @@ def __new__( **kwargs, ) - from launch.api_client.model.callback_auth import CallbackAuth -from launch.api_client.model.model_endpoint_deployment_state import ( - ModelEndpointDeploymentState, -) -from launch.api_client.model.model_endpoint_resource_state import ( - ModelEndpointResourceState, -) +from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState +from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState from launch.api_client.model.model_endpoint_status import ModelEndpointStatus from launch.api_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/get_model_endpoint_v1_response.pyi b/launch/api_client/model/get_model_endpoint_v1_response.pyi index 299c0026..9daf947d 100644 --- a/launch/api_client/model/get_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/get_model_endpoint_v1_response.pyi @@ -9,25 +9,30 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class GetModelEndpointV1Response(schemas.DictSchema): + +class GetModelEndpointV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "endpoint_type", @@ -40,57 +45,62 @@ class GetModelEndpointV1Response(schemas.DictSchema): "created_by", "status", } - + class properties: bundle_name = schemas.StrSchema created_at = schemas.DateTimeSchema created_by = schemas.StrSchema destination = schemas.StrSchema - + @staticmethod - def endpoint_type() -> typing.Type["ModelEndpointType"]: + def endpoint_type() -> typing.Type['ModelEndpointType']: return ModelEndpointType id = schemas.StrSchema last_updated_at = schemas.DateTimeSchema name = schemas.StrSchema - + @staticmethod - def status() -> typing.Type["ModelEndpointStatus"]: + def status() -> typing.Type['ModelEndpointStatus']: return ModelEndpointStatus aws_role = schemas.StrSchema - + @staticmethod - def default_callback_auth() -> typing.Type["CallbackAuth"]: + def default_callback_auth() -> typing.Type['CallbackAuth']: return CallbackAuth - - class default_callback_url(schemas.StrSchema): + + + class default_callback_url( + schemas.StrSchema + ): pass deployment_name = schemas.StrSchema - + @staticmethod - def deployment_state() -> typing.Type["ModelEndpointDeploymentState"]: + def deployment_state() -> typing.Type['ModelEndpointDeploymentState']: return ModelEndpointDeploymentState - - class labels(schemas.DictSchema): + + + class labels( + schemas.DictSchema + ): + + class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[ - MetaOapg.additional_properties, - str, - ], - ) -> "labels": + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': return super().__new__( cls, *_args, @@ -99,37 +109,32 @@ class GetModelEndpointV1Response(schemas.DictSchema): ) metadata = schemas.DictSchema num_queued_items = schemas.IntSchema - - class post_inference_hooks(schemas.ListSchema): + + + class post_inference_hooks( + schemas.ListSchema + ): + + class MetaOapg: items = schemas.StrSchema + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "post_inference_hooks": + ) -> 'post_inference_hooks': return super().__new__( cls, _arg, _configuration=_configuration, ) + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + @staticmethod - def resource_state() -> typing.Type["ModelEndpointResourceState"]: + def resource_state() -> typing.Type['ModelEndpointResourceState']: return ModelEndpointResourceState results_s3_bucket = schemas.StrSchema __annotations__ = { @@ -154,7 +159,8 @@ class GetModelEndpointV1Response(schemas.DictSchema): "resource_state": resource_state, "results_s3_bucket": results_s3_bucket, } - endpoint_type: "ModelEndpointType" + + endpoint_type: 'ModelEndpointType' last_updated_at: MetaOapg.properties.last_updated_at destination: MetaOapg.properties.destination name: MetaOapg.properties.name @@ -162,262 +168,169 @@ class GetModelEndpointV1Response(schemas.DictSchema): bundle_name: MetaOapg.properties.bundle_name id: MetaOapg.properties.id created_by: MetaOapg.properties.created_by - status: "ModelEndpointStatus" - + status: 'ModelEndpointStatus' + @typing.overload def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["last_updated_at"] - ) -> MetaOapg.properties.last_updated_at: ... + def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_url"] - ) -> MetaOapg.properties.default_callback_url: ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deployment_name"] - ) -> MetaOapg.properties.deployment_name: ... + def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": ... + def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> 'ModelEndpointDeploymentState': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["num_queued_items"] - ) -> MetaOapg.properties.num_queued_items: ... + def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["post_inference_hooks"] - ) -> MetaOapg.properties.post_inference_hooks: ... + def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": ... + def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> 'ModelEndpointResourceState': ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["results_s3_bucket"] - ) -> MetaOapg.properties.results_s3_bucket: ... + def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "bundle_name", - "created_at", - "created_by", - "destination", - "endpoint_type", - "id", - "last_updated_at", - "name", - "status", - "aws_role", - "default_callback_auth", - "default_callback_url", - "deployment_name", - "deployment_state", - "labels", - "metadata", - "num_queued_items", - "post_inference_hooks", - "resource_state", - "results_s3_bucket", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["last_updated_at"] - ) -> MetaOapg.properties.last_updated_at: ... + def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["aws_role"] - ) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> typing.Union["CallbackAuth", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["default_callback_url"] - ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["deployment_name"] - ) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["deployment_name"]) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["deployment_state"] - ) -> typing.Union["ModelEndpointDeploymentState", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["deployment_state"]) -> typing.Union['ModelEndpointDeploymentState', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["num_queued_items"] - ) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["num_queued_items"]) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["post_inference_hooks"] - ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["resource_state"] - ) -> typing.Union["ModelEndpointResourceState", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["resource_state"]) -> typing.Union['ModelEndpointResourceState', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["results_s3_bucket"] - ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, 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[ - "bundle_name", - "created_at", - "created_by", - "destination", - "endpoint_type", - "id", - "last_updated_at", - "name", - "status", - "aws_role", - "default_callback_auth", - "default_callback_url", - "deployment_name", - "deployment_state", - "labels", - "metadata", - "num_queued_items", - "post_inference_hooks", - "resource_state", - "results_s3_bucket", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - endpoint_type: "ModelEndpointType", - last_updated_at: typing.Union[ - MetaOapg.properties.last_updated_at, - str, - datetime, - ], - destination: typing.Union[ - MetaOapg.properties.destination, - str, - ], - name: typing.Union[ - MetaOapg.properties.name, - str, - ], - created_at: typing.Union[ - MetaOapg.properties.created_at, - str, - datetime, - ], - bundle_name: typing.Union[ - MetaOapg.properties.bundle_name, - str, - ], - id: typing.Union[ - MetaOapg.properties.id, - str, - ], - created_by: typing.Union[ - MetaOapg.properties.created_by, - str, - ], - status: "ModelEndpointStatus", + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_type: 'ModelEndpointType', + last_updated_at: typing.Union[MetaOapg.properties.last_updated_at, str, datetime, ], + destination: typing.Union[MetaOapg.properties.destination, str, ], + name: typing.Union[MetaOapg.properties.name, str, ], + created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], + bundle_name: typing.Union[MetaOapg.properties.bundle_name, str, ], + id: typing.Union[MetaOapg.properties.id, str, ], + created_by: typing.Union[MetaOapg.properties.created_by, str, ], + status: 'ModelEndpointStatus', aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[ - MetaOapg.properties.default_callback_url, str, schemas.Unset - ] = schemas.unset, + default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, - deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, + deployment_state: typing.Union['ModelEndpointDeploymentState', schemas.Unset] = schemas.unset, labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - metadata: typing.Union[ - MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - num_queued_items: typing.Union[ - MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - post_inference_hooks: typing.Union[ - MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset - ] = schemas.unset, - resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + num_queued_items: typing.Union[MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset] = schemas.unset, + post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + resource_state: typing.Union['ModelEndpointResourceState', schemas.Unset] = schemas.unset, results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, 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, - ], - ) -> "GetModelEndpointV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'GetModelEndpointV1Response': return super().__new__( cls, *_args, @@ -446,11 +359,7 @@ class GetModelEndpointV1Response(schemas.DictSchema): ) from launch_client.model.callback_auth import CallbackAuth -from launch_client.model.model_endpoint_deployment_state import ( - ModelEndpointDeploymentState, -) -from launch_client.model.model_endpoint_resource_state import ( - ModelEndpointResourceState, -) +from launch_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState +from launch_client.model.model_endpoint_resource_state import ModelEndpointResourceState from launch_client.model.model_endpoint_status import ModelEndpointStatus from launch_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/gpu_type.py b/launch/api_client/model/gpu_type.py index 3d1ee053..34158fa2 100644 --- a/launch/api_client/model/gpu_type.py +++ b/launch/api_client/model/gpu_type.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 GpuType(schemas.EnumBase, schemas.StrSchema): +class GpuType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,21 +35,22 @@ class GpuType(schemas.EnumBase, schemas.StrSchema): Lists allowed GPU types for Launch. """ + class MetaOapg: enum_value_to_name = { "nvidia-tesla-t4": "TESLAT4", "nvidia-ampere-a10": "AMPEREA10", "nvidia-a100": "A100", } - + @schemas.classproperty def TESLAT4(cls): return cls("nvidia-tesla-t4") - + @schemas.classproperty def AMPEREA10(cls): return cls("nvidia-ampere-a10") - + @schemas.classproperty def A100(cls): return cls("nvidia-a100") diff --git a/launch/api_client/model/gpu_type.pyi b/launch/api_client/model/gpu_type.pyi index f24497d2..2c8853fe 100644 --- a/launch/api_client/model/gpu_type.pyi +++ b/launch/api_client/model/gpu_type.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class GpuType(schemas.EnumBase, schemas.StrSchema): + +class GpuType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,13 +34,15 @@ class GpuType(schemas.EnumBase, schemas.StrSchema): Lists allowed GPU types for Launch. """ - + @schemas.classproperty def TESLAT4(cls): return cls("nvidia-tesla-t4") + @schemas.classproperty def AMPEREA10(cls): return cls("nvidia-ampere-a10") + @schemas.classproperty def A100(cls): return cls("nvidia-a100") diff --git a/launch/api_client/model/http_validation_error.py b/launch/api_client/model/http_validation_error.py index 51e9ef8b..e19f05b2 100644 --- a/launch/api_client/model/http_validation_error.py +++ b/launch/api_client/model/http_validation_error.py @@ -9,103 +9,91 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 HTTPValidationError(schemas.DictSchema): +class HTTPValidationError( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: + class properties: - class detail(schemas.ListSchema): + + + class detail( + schemas.ListSchema + ): + + class MetaOapg: + @staticmethod - def items() -> typing.Type["ValidationError"]: + def items() -> typing.Type['ValidationError']: return ValidationError - + def __new__( cls, - _arg: typing.Union[typing.Tuple["ValidationError"], typing.List["ValidationError"]], + _arg: typing.Union[typing.Tuple['ValidationError'], typing.List['ValidationError']], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "detail": + ) -> 'detail': return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> "ValidationError": + + def __getitem__(self, i: int) -> 'ValidationError': return super().__getitem__(i) - __annotations__ = { "detail": detail, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: - ... - + def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail",], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["detail"] - ) -> typing.Union[MetaOapg.properties.detail, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["detail"]) -> typing.Union[MetaOapg.properties.detail, 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["detail",], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["detail", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], detail: typing.Union[MetaOapg.properties.detail, list, tuple, 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, - ], - ) -> "HTTPValidationError": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'HTTPValidationError': return super().__new__( cls, *_args, @@ -114,5 +102,4 @@ def __new__( **kwargs, ) - from launch.api_client.model.validation_error import ValidationError diff --git a/launch/api_client/model/http_validation_error.pyi b/launch/api_client/model/http_validation_error.pyi index 437f1853..fa6a6998 100644 --- a/launch/api_client/model/http_validation_error.pyi +++ b/launch/api_client/model/http_validation_error.pyi @@ -9,87 +9,91 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class HTTPValidationError(schemas.DictSchema): + +class HTTPValidationError( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: + class properties: - class detail(schemas.ListSchema): + + + class detail( + schemas.ListSchema + ): + + class MetaOapg: + @staticmethod - def items() -> typing.Type["ValidationError"]: + def items() -> typing.Type['ValidationError']: return ValidationError + def __new__( cls, - _arg: typing.Union[typing.Tuple["ValidationError"], typing.List["ValidationError"]], + _arg: typing.Union[typing.Tuple['ValidationError'], typing.List['ValidationError']], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "detail": + ) -> 'detail': return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> "ValidationError": + + def __getitem__(self, i: int) -> 'ValidationError': return super().__getitem__(i) __annotations__ = { "detail": detail, } + @typing.overload def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail",], str]): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["detail"] - ) -> typing.Union[MetaOapg.properties.detail, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["detail"]) -> typing.Union[MetaOapg.properties.detail, 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["detail",], str]): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["detail", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], detail: typing.Union[MetaOapg.properties.detail, list, tuple, 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, - ], - ) -> "HTTPValidationError": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'HTTPValidationError': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/list_model_bundles_response.py b/launch/api_client/model/list_model_bundles_response.py index 7244cc2a..6718f67c 100644 --- a/launch/api_client/model/list_model_bundles_response.py +++ b/launch/api_client/model/list_model_bundles_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -46,7 +45,9 @@ def items() -> typing.Type["ModelBundleResponse"]: def __new__( cls, - _arg: typing.Union[typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"]], + _arg: typing.Union[ + typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"] + ], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "model_bundles": return super().__new__( @@ -65,7 +66,9 @@ def __getitem__(self, i: int) -> "ModelBundleResponse": model_bundles: MetaOapg.properties.model_bundles @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: + def __getitem__( + self, name: typing_extensions.Literal["model_bundles"] + ) -> MetaOapg.properties.model_bundles: ... @typing.overload @@ -75,7 +78,9 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["model_bundles",], + typing_extensions.Literal[ + "model_bundles", + ], str, ], ): @@ -83,7 +88,9 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundles"] + ) -> MetaOapg.properties.model_bundles: ... @typing.overload @@ -93,7 +100,9 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["model_bundles",], + typing_extensions.Literal[ + "model_bundles", + ], str, ], ): diff --git a/launch/api_client/model/list_model_bundles_response.pyi b/launch/api_client/model/list_model_bundles_response.pyi index 1b13ff50..67698b2d 100644 --- a/launch/api_client/model/list_model_bundles_response.pyi +++ b/launch/api_client/model/list_model_bundles_response.pyi @@ -43,7 +43,9 @@ class ListModelBundlesResponse(schemas.DictSchema): return ModelBundleResponse def __new__( cls, - _arg: typing.Union[typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"]], + _arg: typing.Union[ + typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"] + ], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "model_bundles": return super().__new__( @@ -59,26 +61,36 @@ class ListModelBundlesResponse(schemas.DictSchema): model_bundles: MetaOapg.properties.model_bundles @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... + def __getitem__( + self, name: typing_extensions.Literal["model_bundles"] + ) -> MetaOapg.properties.model_bundles: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["model_bundles",], + typing_extensions.Literal[ + "model_bundles", + ], str, ], ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundles"] + ) -> MetaOapg.properties.model_bundles: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["model_bundles",], + typing_extensions.Literal[ + "model_bundles", + ], str, ], ): diff --git a/launch/api_client/model/list_model_bundles_v1_response.py b/launch/api_client/model/list_model_bundles_v1_response.py index 7d844835..330b8226 100644 --- a/launch/api_client/model/list_model_bundles_v1_response.py +++ b/launch/api_client/model/list_model_bundles_v1_response.py @@ -9,21 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ListModelBundlesV1Response(schemas.DictSchema): +class ListModelBundlesV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,90 +34,73 @@ class ListModelBundlesV1Response(schemas.DictSchema): Response object for listing Model Bundles. """ + class MetaOapg: required = { "model_bundles", } - + class properties: - class model_bundles(schemas.ListSchema): + + + class model_bundles( + schemas.ListSchema + ): + + class MetaOapg: + @staticmethod - def items() -> typing.Type["ModelBundleV1Response"]: + def items() -> typing.Type['ModelBundleV1Response']: return ModelBundleV1Response - + def __new__( cls, - _arg: typing.Union[typing.Tuple["ModelBundleV1Response"], typing.List["ModelBundleV1Response"]], + _arg: typing.Union[typing.Tuple['ModelBundleV1Response'], typing.List['ModelBundleV1Response']], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "model_bundles": + ) -> 'model_bundles': return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> "ModelBundleV1Response": + + def __getitem__(self, i: int) -> 'ModelBundleV1Response': return super().__getitem__(i) - __annotations__ = { "model_bundles": model_bundles, } - + model_bundles: MetaOapg.properties.model_bundles - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: - ... - + def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... + @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["model_bundles",], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundles", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - model_bundles: typing.Union[ - MetaOapg.properties.model_bundles, - list, - tuple, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + model_bundles: typing.Union[MetaOapg.properties.model_bundles, list, tuple, ], _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, - ], - ) -> "ListModelBundlesV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ListModelBundlesV1Response': return super().__new__( cls, *_args, @@ -124,7 +109,4 @@ def __new__( **kwargs, ) - -from launch.api_client.model.model_bundle_v1_response import ( - ModelBundleV1Response, -) +from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response diff --git a/launch/api_client/model/list_model_bundles_v1_response.pyi b/launch/api_client/model/list_model_bundles_v1_response.pyi index 421b33c7..99555d85 100644 --- a/launch/api_client/model/list_model_bundles_v1_response.pyi +++ b/launch/api_client/model/list_model_bundles_v1_response.pyi @@ -9,19 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ListModelBundlesV1Response(schemas.DictSchema): + +class ListModelBundlesV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,76 +34,73 @@ class ListModelBundlesV1Response(schemas.DictSchema): Response object for listing Model Bundles. """ + class MetaOapg: required = { "model_bundles", } - + class properties: - class model_bundles(schemas.ListSchema): + + + class model_bundles( + schemas.ListSchema + ): + + class MetaOapg: + @staticmethod - def items() -> typing.Type["ModelBundleV1Response"]: + def items() -> typing.Type['ModelBundleV1Response']: return ModelBundleV1Response + def __new__( cls, - _arg: typing.Union[typing.Tuple["ModelBundleV1Response"], typing.List["ModelBundleV1Response"]], + _arg: typing.Union[typing.Tuple['ModelBundleV1Response'], typing.List['ModelBundleV1Response']], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "model_bundles": + ) -> 'model_bundles': return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> "ModelBundleV1Response": + + def __getitem__(self, i: int) -> 'ModelBundleV1Response': return super().__getitem__(i) __annotations__ = { "model_bundles": model_bundles, } + model_bundles: MetaOapg.properties.model_bundles - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... + @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["model_bundles",], str]): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundles", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - model_bundles: typing.Union[ - MetaOapg.properties.model_bundles, - list, - tuple, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + model_bundles: typing.Union[MetaOapg.properties.model_bundles, list, tuple, ], _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, - ], - ) -> "ListModelBundlesV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ListModelBundlesV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/list_model_endpoints_response.py b/launch/api_client/model/list_model_endpoints_response.py index a61104ca..54938121 100644 --- a/launch/api_client/model/list_model_endpoints_response.py +++ b/launch/api_client/model/list_model_endpoints_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -66,7 +65,9 @@ def __getitem__(self, i: int) -> "GetModelEndpointResponse": model_endpoints: MetaOapg.properties.model_endpoints @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: + def __getitem__( + self, name: typing_extensions.Literal["model_endpoints"] + ) -> MetaOapg.properties.model_endpoints: ... @typing.overload @@ -76,7 +77,9 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["model_endpoints",], + typing_extensions.Literal[ + "model_endpoints", + ], str, ], ): @@ -84,7 +87,9 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: + def get_item_oapg( + self, name: typing_extensions.Literal["model_endpoints"] + ) -> MetaOapg.properties.model_endpoints: ... @typing.overload @@ -94,7 +99,9 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["model_endpoints",], + typing_extensions.Literal[ + "model_endpoints", + ], str, ], ): @@ -138,6 +145,4 @@ def __new__( ) -from launch.api_client.model.get_model_endpoint_response import ( - GetModelEndpointResponse, -) +from launch.api_client.model.get_model_endpoint_response import GetModelEndpointResponse diff --git a/launch/api_client/model/list_model_endpoints_response.pyi b/launch/api_client/model/list_model_endpoints_response.pyi index e3ea97b8..e9fe854d 100644 --- a/launch/api_client/model/list_model_endpoints_response.pyi +++ b/launch/api_client/model/list_model_endpoints_response.pyi @@ -68,7 +68,9 @@ class ListModelEndpointsResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["model_endpoints",], + typing_extensions.Literal[ + "model_endpoints", + ], str, ], ): @@ -79,11 +81,15 @@ class ListModelEndpointsResponse(schemas.DictSchema): self, name: typing_extensions.Literal["model_endpoints"] ) -> MetaOapg.properties.model_endpoints: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["model_endpoints",], + typing_extensions.Literal[ + "model_endpoints", + ], str, ], ): @@ -125,6 +131,4 @@ class ListModelEndpointsResponse(schemas.DictSchema): **kwargs, ) -from launch_client.model.get_model_endpoint_response import ( - GetModelEndpointResponse, -) +from launch_client.model.get_model_endpoint_response import GetModelEndpointResponse diff --git a/launch/api_client/model/list_model_endpoints_v1_response.py b/launch/api_client/model/list_model_endpoints_v1_response.py index a4884106..4c7007ac 100644 --- a/launch/api_client/model/list_model_endpoints_v1_response.py +++ b/launch/api_client/model/list_model_endpoints_v1_response.py @@ -9,113 +9,96 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ListModelEndpointsV1Response(schemas.DictSchema): +class ListModelEndpointsV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "model_endpoints", } - + class properties: - class model_endpoints(schemas.ListSchema): + + + class model_endpoints( + schemas.ListSchema + ): + + class MetaOapg: + @staticmethod - def items() -> typing.Type["GetModelEndpointV1Response"]: + def items() -> typing.Type['GetModelEndpointV1Response']: return GetModelEndpointV1Response - + def __new__( cls, - _arg: typing.Union[ - typing.Tuple["GetModelEndpointV1Response"], typing.List["GetModelEndpointV1Response"] - ], + _arg: typing.Union[typing.Tuple['GetModelEndpointV1Response'], typing.List['GetModelEndpointV1Response']], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "model_endpoints": + ) -> 'model_endpoints': return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> "GetModelEndpointV1Response": + + def __getitem__(self, i: int) -> 'GetModelEndpointV1Response': return super().__getitem__(i) - __annotations__ = { "model_endpoints": model_endpoints, } - + model_endpoints: MetaOapg.properties.model_endpoints - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: - ... - + def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... + @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["model_endpoints",], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_endpoints", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - model_endpoints: typing.Union[ - MetaOapg.properties.model_endpoints, - list, - tuple, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + model_endpoints: typing.Union[MetaOapg.properties.model_endpoints, list, tuple, ], _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, - ], - ) -> "ListModelEndpointsV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ListModelEndpointsV1Response': return super().__new__( cls, *_args, @@ -124,7 +107,4 @@ def __new__( **kwargs, ) - -from launch.api_client.model.get_model_endpoint_v1_response import ( - GetModelEndpointV1Response, -) +from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response diff --git a/launch/api_client/model/list_model_endpoints_v1_response.pyi b/launch/api_client/model/list_model_endpoints_v1_response.pyi index 22ca5e6f..742211e6 100644 --- a/launch/api_client/model/list_model_endpoints_v1_response.pyi +++ b/launch/api_client/model/list_model_endpoints_v1_response.pyi @@ -9,101 +9,96 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ListModelEndpointsV1Response(schemas.DictSchema): + +class ListModelEndpointsV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "model_endpoints", } - + class properties: - class model_endpoints(schemas.ListSchema): + + + class model_endpoints( + schemas.ListSchema + ): + + class MetaOapg: + @staticmethod - def items() -> typing.Type["GetModelEndpointV1Response"]: + def items() -> typing.Type['GetModelEndpointV1Response']: return GetModelEndpointV1Response + def __new__( cls, - _arg: typing.Union[ - typing.Tuple["GetModelEndpointV1Response"], typing.List["GetModelEndpointV1Response"] - ], + _arg: typing.Union[typing.Tuple['GetModelEndpointV1Response'], typing.List['GetModelEndpointV1Response']], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "model_endpoints": + ) -> 'model_endpoints': return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> "GetModelEndpointV1Response": + + def __getitem__(self, i: int) -> 'GetModelEndpointV1Response': return super().__getitem__(i) __annotations__ = { "model_endpoints": model_endpoints, } + model_endpoints: MetaOapg.properties.model_endpoints - + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_endpoints"] - ) -> MetaOapg.properties.model_endpoints: ... + def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_endpoints"] - ) -> MetaOapg.properties.model_endpoints: ... + def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... + @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["model_endpoints",], str]): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_endpoints", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - model_endpoints: typing.Union[ - MetaOapg.properties.model_endpoints, - list, - tuple, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + model_endpoints: typing.Union[MetaOapg.properties.model_endpoints, list, tuple, ], _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, - ], - ) -> "ListModelEndpointsV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ListModelEndpointsV1Response': return super().__new__( cls, *_args, @@ -112,6 +107,4 @@ class ListModelEndpointsV1Response(schemas.DictSchema): **kwargs, ) -from launch_client.model.get_model_endpoint_v1_response import ( - GetModelEndpointV1Response, -) +from launch_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response diff --git a/launch/api_client/model/model_bundle_environment_params.py b/launch/api_client/model/model_bundle_environment_params.py index 52633215..037698eb 100644 --- a/launch/api_client/model/model_bundle_environment_params.py +++ b/launch/api_client/model/model_bundle_environment_params.py @@ -9,40 +9,43 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelBundleEnvironmentParams(schemas.DictSchema): +class ModelBundleEnvironmentParams( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - This is the entity-layer class for the Model Bundle environment parameters. Being an - entity-layer class, it should be a plain data object. + This is the entity-layer class for the Model Bundle environment parameters. Being an +entity-layer class, it should be a plain data object. """ + class MetaOapg: required = { "framework_type", } - + class properties: + @staticmethod - def framework_type() -> typing.Type["ModelBundleFrameworkType"]: + def framework_type() -> typing.Type['ModelBundleFrameworkType']: return ModelBundleFrameworkType - ecr_repo = schemas.StrSchema image_tag = schemas.StrSchema pytorch_image_tag = schemas.StrSchema @@ -54,129 +57,65 @@ def framework_type() -> typing.Type["ModelBundleFrameworkType"]: "pytorch_image_tag": pytorch_image_tag, "tensorflow_version": tensorflow_version, } - - framework_type: "ModelBundleFrameworkType" - + + framework_type: 'ModelBundleFrameworkType' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFrameworkType": - ... - + def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: - ... - + def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: - ... - + def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["pytorch_image_tag"] - ) -> MetaOapg.properties.pytorch_image_tag: - ... - + def __getitem__(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> MetaOapg.properties.pytorch_image_tag: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["tensorflow_version"] - ) -> MetaOapg.properties.tensorflow_version: - ... - + def __getitem__(self, name: typing_extensions.Literal["tensorflow_version"]) -> MetaOapg.properties.tensorflow_version: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "framework_type", - "ecr_repo", - "image_tag", - "pytorch_image_tag", - "tensorflow_version", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFrameworkType": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["ecr_repo"] - ) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["ecr_repo"]) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["image_tag"] - ) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["image_tag"]) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["pytorch_image_tag"] - ) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["tensorflow_version"] - ) -> typing.Union[MetaOapg.properties.tensorflow_version, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["tensorflow_version"]) -> typing.Union[MetaOapg.properties.tensorflow_version, 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[ - "framework_type", - "ecr_repo", - "image_tag", - "pytorch_image_tag", - "tensorflow_version", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - framework_type: "ModelBundleFrameworkType", + *_args: typing.Union[dict, frozendict.frozendict, ], + framework_type: 'ModelBundleFrameworkType', ecr_repo: typing.Union[MetaOapg.properties.ecr_repo, str, schemas.Unset] = schemas.unset, image_tag: typing.Union[MetaOapg.properties.image_tag, str, schemas.Unset] = schemas.unset, pytorch_image_tag: typing.Union[MetaOapg.properties.pytorch_image_tag, str, schemas.Unset] = schemas.unset, tensorflow_version: typing.Union[MetaOapg.properties.tensorflow_version, str, 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, - ], - ) -> "ModelBundleEnvironmentParams": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelBundleEnvironmentParams': return super().__new__( cls, *_args, @@ -189,7 +128,4 @@ def __new__( **kwargs, ) - -from launch.api_client.model.model_bundle_framework_type import ( - ModelBundleFrameworkType, -) +from launch.api_client.model.model_bundle_framework_type import ModelBundleFrameworkType diff --git a/launch/api_client/model/model_bundle_environment_params.pyi b/launch/api_client/model/model_bundle_environment_params.pyi index 54ace726..34f9c425 100644 --- a/launch/api_client/model/model_bundle_environment_params.pyi +++ b/launch/api_client/model/model_bundle_environment_params.pyi @@ -9,36 +9,42 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelBundleEnvironmentParams(schemas.DictSchema): + +class ModelBundleEnvironmentParams( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - This is the entity-layer class for the Model Bundle environment parameters. Being an - entity-layer class, it should be a plain data object. + This is the entity-layer class for the Model Bundle environment parameters. Being an +entity-layer class, it should be a plain data object. """ + class MetaOapg: required = { "framework_type", } - + class properties: + @staticmethod - def framework_type() -> typing.Type["ModelBundleFrameworkType"]: + def framework_type() -> typing.Type['ModelBundleFrameworkType']: return ModelBundleFrameworkType ecr_repo = schemas.StrSchema image_tag = schemas.StrSchema @@ -51,102 +57,65 @@ class ModelBundleEnvironmentParams(schemas.DictSchema): "pytorch_image_tag": pytorch_image_tag, "tensorflow_version": tensorflow_version, } - framework_type: "ModelBundleFrameworkType" - + + framework_type: 'ModelBundleFrameworkType' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFrameworkType": ... + def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["pytorch_image_tag"] - ) -> MetaOapg.properties.pytorch_image_tag: ... + def __getitem__(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> MetaOapg.properties.pytorch_image_tag: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["tensorflow_version"] - ) -> MetaOapg.properties.tensorflow_version: ... + def __getitem__(self, name: typing_extensions.Literal["tensorflow_version"]) -> MetaOapg.properties.tensorflow_version: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "framework_type", - "ecr_repo", - "image_tag", - "pytorch_image_tag", - "tensorflow_version", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFrameworkType": ... + def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["ecr_repo"] - ) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["ecr_repo"]) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["image_tag"] - ) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["image_tag"]) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["pytorch_image_tag"] - ) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["tensorflow_version"] - ) -> typing.Union[MetaOapg.properties.tensorflow_version, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["tensorflow_version"]) -> typing.Union[MetaOapg.properties.tensorflow_version, 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[ - "framework_type", - "ecr_repo", - "image_tag", - "pytorch_image_tag", - "tensorflow_version", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - framework_type: "ModelBundleFrameworkType", + *_args: typing.Union[dict, frozendict.frozendict, ], + framework_type: 'ModelBundleFrameworkType', ecr_repo: typing.Union[MetaOapg.properties.ecr_repo, str, schemas.Unset] = schemas.unset, image_tag: typing.Union[MetaOapg.properties.image_tag, str, schemas.Unset] = schemas.unset, pytorch_image_tag: typing.Union[MetaOapg.properties.pytorch_image_tag, str, schemas.Unset] = schemas.unset, tensorflow_version: typing.Union[MetaOapg.properties.tensorflow_version, str, 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, - ], - ) -> "ModelBundleEnvironmentParams": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelBundleEnvironmentParams': return super().__new__( cls, *_args, @@ -159,6 +128,4 @@ class ModelBundleEnvironmentParams(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_framework_type import ( - ModelBundleFrameworkType, -) +from launch_client.model.model_bundle_framework_type import ModelBundleFrameworkType diff --git a/launch/api_client/model/model_bundle_framework.py b/launch/api_client/model/model_bundle_framework.py index 093cc562..851f55f3 100644 --- a/launch/api_client/model/model_bundle_framework.py +++ b/launch/api_client/model/model_bundle_framework.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/model_bundle_framework_type.py b/launch/api_client/model/model_bundle_framework_type.py index cbbdb61d..3a11569b 100644 --- a/launch/api_client/model/model_bundle_framework_type.py +++ b/launch/api_client/model/model_bundle_framework_type.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelBundleFrameworkType(schemas.EnumBase, schemas.StrSchema): +class ModelBundleFrameworkType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,21 +35,22 @@ class ModelBundleFrameworkType(schemas.EnumBase, schemas.StrSchema): The canonical list of possible machine learning frameworks of Model Bundles. """ + class MetaOapg: enum_value_to_name = { "pytorch": "PYTORCH", "tensorflow": "TENSORFLOW", "custom_base_image": "CUSTOM_BASE_IMAGE", } - + @schemas.classproperty def PYTORCH(cls): return cls("pytorch") - + @schemas.classproperty def TENSORFLOW(cls): return cls("tensorflow") - + @schemas.classproperty def CUSTOM_BASE_IMAGE(cls): return cls("custom_base_image") diff --git a/launch/api_client/model/model_bundle_framework_type.pyi b/launch/api_client/model/model_bundle_framework_type.pyi index 6dac94df..bba8559d 100644 --- a/launch/api_client/model/model_bundle_framework_type.pyi +++ b/launch/api_client/model/model_bundle_framework_type.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelBundleFrameworkType(schemas.EnumBase, schemas.StrSchema): + +class ModelBundleFrameworkType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,13 +34,15 @@ class ModelBundleFrameworkType(schemas.EnumBase, schemas.StrSchema): The canonical list of possible machine learning frameworks of Model Bundles. """ - + @schemas.classproperty def PYTORCH(cls): return cls("pytorch") + @schemas.classproperty def TENSORFLOW(cls): return cls("tensorflow") + @schemas.classproperty def CUSTOM_BASE_IMAGE(cls): return cls("custom_base_image") diff --git a/launch/api_client/model/model_bundle_order_by.py b/launch/api_client/model/model_bundle_order_by.py index 987734ac..fd5679d9 100644 --- a/launch/api_client/model/model_bundle_order_by.py +++ b/launch/api_client/model/model_bundle_order_by.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelBundleOrderBy(schemas.EnumBase, schemas.StrSchema): +class ModelBundleOrderBy( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,16 +35,17 @@ class ModelBundleOrderBy(schemas.EnumBase, schemas.StrSchema): The canonical list of possible orderings of Model Bundles. """ + class MetaOapg: enum_value_to_name = { "newest": "NEWEST", "oldest": "OLDEST", } - + @schemas.classproperty def NEWEST(cls): return cls("newest") - + @schemas.classproperty def OLDEST(cls): return cls("oldest") diff --git a/launch/api_client/model/model_bundle_order_by.pyi b/launch/api_client/model/model_bundle_order_by.pyi index caa21cef..8183c616 100644 --- a/launch/api_client/model/model_bundle_order_by.pyi +++ b/launch/api_client/model/model_bundle_order_by.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelBundleOrderBy(schemas.EnumBase, schemas.StrSchema): + +class ModelBundleOrderBy( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,10 +34,11 @@ class ModelBundleOrderBy(schemas.EnumBase, schemas.StrSchema): The canonical list of possible orderings of Model Bundles. """ - + @schemas.classproperty def NEWEST(cls): return cls("newest") + @schemas.classproperty def OLDEST(cls): return cls("oldest") diff --git a/launch/api_client/model/model_bundle_packaging_type.py b/launch/api_client/model/model_bundle_packaging_type.py index e97563f6..7f92d164 100644 --- a/launch/api_client/model/model_bundle_packaging_type.py +++ b/launch/api_client/model/model_bundle_packaging_type.py @@ -9,46 +9,50 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelBundlePackagingType(schemas.EnumBase, schemas.StrSchema): +class ModelBundlePackagingType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - The canonical list of possible packaging types for Model Bundles. + The canonical list of possible packaging types for Model Bundles. - These values broadly determine how the model endpoint will obtain its code & dependencies. +These values broadly determine how the model endpoint will obtain its code & dependencies. """ + class MetaOapg: enum_value_to_name = { "cloudpickle": "CLOUDPICKLE", "zip": "ZIP", "lira": "LIRA", } - + @schemas.classproperty def CLOUDPICKLE(cls): return cls("cloudpickle") - + @schemas.classproperty def ZIP(cls): return cls("zip") - + @schemas.classproperty def LIRA(cls): return cls("lira") diff --git a/launch/api_client/model/model_bundle_packaging_type.pyi b/launch/api_client/model/model_bundle_packaging_type.pyi index 0ff122fb..f2a66978 100644 --- a/launch/api_client/model/model_bundle_packaging_type.pyi +++ b/launch/api_client/model/model_bundle_packaging_type.pyi @@ -9,35 +9,42 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelBundlePackagingType(schemas.EnumBase, schemas.StrSchema): + +class ModelBundlePackagingType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - The canonical list of possible packaging types for Model Bundles. + The canonical list of possible packaging types for Model Bundles. - These values broadly determine how the model endpoint will obtain its code & dependencies. +These values broadly determine how the model endpoint will obtain its code & dependencies. """ - + @schemas.classproperty def CLOUDPICKLE(cls): return cls("cloudpickle") + @schemas.classproperty def ZIP(cls): return cls("zip") + @schemas.classproperty def LIRA(cls): return cls("lira") diff --git a/launch/api_client/model/model_bundle_response.py b/launch/api_client/model/model_bundle_response.py index 6b25056a..26d0ebbe 100644 --- a/launch/api_client/model/model_bundle_response.py +++ b/launch/api_client/model/model_bundle_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -151,11 +150,15 @@ def __getitem__(self, i: int) -> MetaOapg.items: env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: + def __getitem__( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": + def __getitem__( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload @@ -163,11 +166,15 @@ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.propert ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: + def __getitem__( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload @@ -181,19 +188,27 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": + def __getitem__( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: + def __getitem__( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: + def __getitem__( + self, name: typing_extensions.Literal["app_config"] + ) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: + def __getitem__( + self, name: typing_extensions.Literal["schema_location"] + ) -> MetaOapg.properties.schema_location: ... @typing.overload @@ -223,11 +238,15 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: + def get_item_oapg( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": + def get_item_oapg( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload @@ -235,11 +254,15 @@ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.prope ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: + def get_item_oapg( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload @@ -253,11 +276,15 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": + def get_item_oapg( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: + def get_item_oapg( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload @@ -340,7 +367,9 @@ def __new__( app_config: typing.Union[ MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, + schema_location: typing.Union[ + MetaOapg.properties.schema_location, str, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -378,9 +407,5 @@ def __new__( ) -from launch.api_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch.api_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) +from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/model_bundle_response.pyi b/launch/api_client/model/model_bundle_response.pyi index 818f37cb..5289789d 100644 --- a/launch/api_client/model/model_bundle_response.pyi +++ b/launch/api_client/model/model_bundle_response.pyi @@ -141,15 +141,23 @@ class ModelBundleResponse(schemas.DictSchema): env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + def __getitem__( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... + def __getitem__( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + def __getitem__( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_artifact_ids"] @@ -157,11 +165,17 @@ class ModelBundleResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... + def __getitem__( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + def __getitem__( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... + def __getitem__( + self, name: typing_extensions.Literal["app_config"] + ) -> MetaOapg.properties.app_config: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["schema_location"] @@ -190,25 +204,39 @@ class ModelBundleResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + def get_item_oapg( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... + def get_item_oapg( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + def get_item_oapg( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_artifact_ids"] ) -> MetaOapg.properties.model_artifact_ids: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + def get_item_oapg( + self, name: typing_extensions.Literal["name"] + ) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... + def get_item_oapg( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + def get_item_oapg( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["app_config"] @@ -218,7 +246,9 @@ class ModelBundleResponse(schemas.DictSchema): self, name: typing_extensions.Literal["schema_location"] ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -282,7 +312,9 @@ class ModelBundleResponse(schemas.DictSchema): app_config: typing.Union[ MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, + schema_location: typing.Union[ + MetaOapg.properties.schema_location, str, schemas.Unset + ] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -319,9 +351,5 @@ class ModelBundleResponse(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) +from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/model_bundle_v1_response.py b/launch/api_client/model/model_bundle_v1_response.py index 90bdef95..d3a56489 100644 --- a/launch/api_client/model/model_bundle_v1_response.py +++ b/launch/api_client/model/model_bundle_v1_response.py @@ -9,21 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelBundleV1Response(schemas.DictSchema): +class ModelBundleV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,6 +34,7 @@ class ModelBundleV1Response(schemas.DictSchema): Response object for a single Model Bundle. """ + class MetaOapg: required = { "metadata", @@ -44,86 +47,67 @@ class MetaOapg: "id", "env_params", } - + class properties: created_at = schemas.DateTimeSchema - + @staticmethod - def env_params() -> typing.Type["ModelBundleEnvironmentParams"]: + def env_params() -> typing.Type['ModelBundleEnvironmentParams']: return ModelBundleEnvironmentParams - id = schemas.StrSchema location = schemas.StrSchema metadata = schemas.DictSchema - - class model_artifact_ids(schemas.ListSchema): + + + class model_artifact_ids( + schemas.ListSchema + ): + + class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "model_artifact_ids": + ) -> 'model_artifact_ids': return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) - name = schemas.StrSchema - + @staticmethod - def packaging_type() -> typing.Type["ModelBundlePackagingType"]: + def packaging_type() -> typing.Type['ModelBundlePackagingType']: return ModelBundlePackagingType - - class requirements(schemas.ListSchema): + + + class requirements( + schemas.ListSchema + ): + + class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "requirements": + ) -> 'requirements': return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) - app_config = schemas.DictSchema schema_location = schemas.StrSchema __annotations__ = { @@ -139,226 +123,115 @@ def __getitem__(self, i: int) -> MetaOapg.items: "app_config": app_config, "schema_location": schema_location, } - + metadata: MetaOapg.properties.metadata requirements: MetaOapg.properties.requirements model_artifact_ids: MetaOapg.properties.model_artifact_ids - packaging_type: "ModelBundlePackagingType" + packaging_type: 'ModelBundlePackagingType' name: MetaOapg.properties.name created_at: MetaOapg.properties.created_at location: MetaOapg.properties.location id: MetaOapg.properties.id - env_params: "ModelBundleEnvironmentParams" - + env_params: 'ModelBundleEnvironmentParams' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: - ... - + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": - ... - + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: - ... - + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: - ... - + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: - ... - + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_artifact_ids"] - ) -> MetaOapg.properties.model_artifact_ids: - ... - + def __getitem__(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: - ... - + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": - ... - + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: - ... - + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: - ... - + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: - ... - + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "created_at", - "env_params", - "id", - "location", - "metadata", - "model_artifact_ids", - "name", - "packaging_type", - "requirements", - "app_config", - "schema_location", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_artifact_ids"] - ) -> MetaOapg.properties.model_artifact_ids: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["app_config"] - ) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["schema_location"] - ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, 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[ - "created_at", - "env_params", - "id", - "location", - "metadata", - "model_artifact_ids", - "name", - "packaging_type", - "requirements", - "app_config", - "schema_location", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - metadata: typing.Union[ - MetaOapg.properties.metadata, - dict, - frozendict.frozendict, - ], - requirements: typing.Union[ - MetaOapg.properties.requirements, - list, - tuple, - ], - model_artifact_ids: typing.Union[ - MetaOapg.properties.model_artifact_ids, - list, - tuple, - ], - packaging_type: "ModelBundlePackagingType", - name: typing.Union[ - MetaOapg.properties.name, - str, - ], - created_at: typing.Union[ - MetaOapg.properties.created_at, - str, - datetime, - ], - location: typing.Union[ - MetaOapg.properties.location, - str, - ], - id: typing.Union[ - MetaOapg.properties.id, - str, - ], - env_params: "ModelBundleEnvironmentParams", - app_config: typing.Union[ - MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], + requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], + model_artifact_ids: typing.Union[MetaOapg.properties.model_artifact_ids, list, tuple, ], + packaging_type: 'ModelBundlePackagingType', + name: typing.Union[MetaOapg.properties.name, str, ], + created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], + location: typing.Union[MetaOapg.properties.location, str, ], + id: typing.Union[MetaOapg.properties.id, str, ], + env_params: 'ModelBundleEnvironmentParams', + app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, schema_location: typing.Union[MetaOapg.properties.schema_location, str, 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, - ], - ) -> "ModelBundleV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelBundleV1Response': return super().__new__( cls, *_args, @@ -377,10 +250,5 @@ def __new__( **kwargs, ) - -from launch.api_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch.api_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) +from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/model_bundle_v1_response.pyi b/launch/api_client/model/model_bundle_v1_response.pyi index 44b97398..8c3f0594 100644 --- a/launch/api_client/model/model_bundle_v1_response.pyi +++ b/launch/api_client/model/model_bundle_v1_response.pyi @@ -9,19 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelBundleV1Response(schemas.DictSchema): + +class ModelBundleV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,6 +34,7 @@ class ModelBundleV1Response(schemas.DictSchema): Response object for a single Model Bundle. """ + class MetaOapg: required = { "metadata", @@ -42,77 +47,65 @@ class ModelBundleV1Response(schemas.DictSchema): "id", "env_params", } - + class properties: created_at = schemas.DateTimeSchema - + @staticmethod - def env_params() -> typing.Type["ModelBundleEnvironmentParams"]: + def env_params() -> typing.Type['ModelBundleEnvironmentParams']: return ModelBundleEnvironmentParams id = schemas.StrSchema location = schemas.StrSchema metadata = schemas.DictSchema - - class model_artifact_ids(schemas.ListSchema): + + + class model_artifact_ids( + schemas.ListSchema + ): + + class MetaOapg: items = schemas.StrSchema + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "model_artifact_ids": + ) -> 'model_artifact_ids': return super().__new__( cls, _arg, _configuration=_configuration, ) + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) name = schemas.StrSchema - + @staticmethod - def packaging_type() -> typing.Type["ModelBundlePackagingType"]: + def packaging_type() -> typing.Type['ModelBundlePackagingType']: return ModelBundlePackagingType - - class requirements(schemas.ListSchema): + + + class requirements( + schemas.ListSchema + ): + + class MetaOapg: items = schemas.StrSchema + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "requirements": + ) -> 'requirements': return super().__new__( cls, _arg, _configuration=_configuration, ) + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) app_config = schemas.DictSchema @@ -130,177 +123,115 @@ class ModelBundleV1Response(schemas.DictSchema): "app_config": app_config, "schema_location": schema_location, } + metadata: MetaOapg.properties.metadata requirements: MetaOapg.properties.requirements model_artifact_ids: MetaOapg.properties.model_artifact_ids - packaging_type: "ModelBundlePackagingType" + packaging_type: 'ModelBundlePackagingType' name: MetaOapg.properties.name created_at: MetaOapg.properties.created_at location: MetaOapg.properties.location id: MetaOapg.properties.id - env_params: "ModelBundleEnvironmentParams" - + env_params: 'ModelBundleEnvironmentParams' + @typing.overload def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_artifact_ids"] - ) -> MetaOapg.properties.model_artifact_ids: ... + def __getitem__(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["schema_location"] - ) -> MetaOapg.properties.schema_location: ... + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "created_at", - "env_params", - "id", - "location", - "metadata", - "model_artifact_ids", - "name", - "packaging_type", - "requirements", - "app_config", - "schema_location", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_artifact_ids"] - ) -> MetaOapg.properties.model_artifact_ids: ... + def get_item_oapg(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["app_config"] - ) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["schema_location"] - ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, 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[ - "created_at", - "env_params", - "id", - "location", - "metadata", - "model_artifact_ids", - "name", - "packaging_type", - "requirements", - "app_config", - "schema_location", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - metadata: typing.Union[ - MetaOapg.properties.metadata, - dict, - frozendict.frozendict, - ], - requirements: typing.Union[ - MetaOapg.properties.requirements, - list, - tuple, - ], - model_artifact_ids: typing.Union[ - MetaOapg.properties.model_artifact_ids, - list, - tuple, - ], - packaging_type: "ModelBundlePackagingType", - name: typing.Union[ - MetaOapg.properties.name, - str, - ], - created_at: typing.Union[ - MetaOapg.properties.created_at, - str, - datetime, - ], - location: typing.Union[ - MetaOapg.properties.location, - str, - ], - id: typing.Union[ - MetaOapg.properties.id, - str, - ], - env_params: "ModelBundleEnvironmentParams", - app_config: typing.Union[ - MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], + requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], + model_artifact_ids: typing.Union[MetaOapg.properties.model_artifact_ids, list, tuple, ], + packaging_type: 'ModelBundlePackagingType', + name: typing.Union[MetaOapg.properties.name, str, ], + created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], + location: typing.Union[MetaOapg.properties.location, str, ], + id: typing.Union[MetaOapg.properties.id, str, ], + env_params: 'ModelBundleEnvironmentParams', + app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, schema_location: typing.Union[MetaOapg.properties.schema_location, str, 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, - ], - ) -> "ModelBundleV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelBundleV1Response': return super().__new__( cls, *_args, @@ -319,9 +250,5 @@ class ModelBundleV1Response(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) +from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/model_endpoint_deployment_state.py b/launch/api_client/model/model_endpoint_deployment_state.py index c0a13dff..d613d10d 100644 --- a/launch/api_client/model/model_endpoint_deployment_state.py +++ b/launch/api_client/model/model_endpoint_deployment_state.py @@ -9,21 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelEndpointDeploymentState(schemas.DictSchema): +class ModelEndpointDeploymentState( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,32 +34,52 @@ class ModelEndpointDeploymentState(schemas.DictSchema): This is the entity-layer class for the deployment settings related to a Model Endpoint. """ + class MetaOapg: required = { "max_workers", "min_workers", "per_worker", } - + class properties: - class max_workers(schemas.IntSchema): + + + class max_workers( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - - class min_workers(schemas.IntSchema): + + + class min_workers( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - per_worker = schemas.IntSchema - - class available_workers(schemas.IntSchema): + + + class available_workers( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - - class unavailable_workers(schemas.IntSchema): + + + class unavailable_workers( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - __annotations__ = { "max_workers": max_workers, "min_workers": min_workers, @@ -65,143 +87,67 @@ class MetaOapg: "available_workers": available_workers, "unavailable_workers": unavailable_workers, } - + max_workers: MetaOapg.properties.max_workers min_workers: MetaOapg.properties.min_workers per_worker: MetaOapg.properties.per_worker - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: - ... - + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["available_workers"] - ) -> MetaOapg.properties.available_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["available_workers"]) -> MetaOapg.properties.available_workers: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["unavailable_workers"] - ) -> MetaOapg.properties.unavailable_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["unavailable_workers"]) -> MetaOapg.properties.unavailable_workers: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "max_workers", - "min_workers", - "per_worker", - "available_workers", - "unavailable_workers", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["available_workers"] - ) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["available_workers"]) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["unavailable_workers"] - ) -> typing.Union[MetaOapg.properties.unavailable_workers, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["unavailable_workers"]) -> typing.Union[MetaOapg.properties.unavailable_workers, 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[ - "max_workers", - "min_workers", - "per_worker", - "available_workers", - "unavailable_workers", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - max_workers: typing.Union[ - MetaOapg.properties.max_workers, - decimal.Decimal, - int, - ], - min_workers: typing.Union[ - MetaOapg.properties.min_workers, - decimal.Decimal, - int, - ], - per_worker: typing.Union[ - MetaOapg.properties.per_worker, - decimal.Decimal, - int, - ], - available_workers: typing.Union[ - MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - unavailable_workers: typing.Union[ - MetaOapg.properties.unavailable_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], + available_workers: typing.Union[MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + unavailable_workers: typing.Union[MetaOapg.properties.unavailable_workers, decimal.Decimal, int, 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, - ], - ) -> "ModelEndpointDeploymentState": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelEndpointDeploymentState': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_deployment_state.pyi b/launch/api_client/model/model_endpoint_deployment_state.pyi index ff9c7ac0..65d9de9d 100644 --- a/launch/api_client/model/model_endpoint_deployment_state.pyi +++ b/launch/api_client/model/model_endpoint_deployment_state.pyi @@ -9,19 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelEndpointDeploymentState(schemas.DictSchema): + +class ModelEndpointDeploymentState( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,25 +34,39 @@ class ModelEndpointDeploymentState(schemas.DictSchema): This is the entity-layer class for the deployment settings related to a Model Endpoint. """ + class MetaOapg: required = { "max_workers", "min_workers", "per_worker", } - + class properties: - class max_workers(schemas.IntSchema): + + + class max_workers( + schemas.IntSchema + ): pass - - class min_workers(schemas.IntSchema): + + + class min_workers( + schemas.IntSchema + ): pass per_worker = schemas.IntSchema - - class available_workers(schemas.IntSchema): + + + class available_workers( + schemas.IntSchema + ): pass - - class unavailable_workers(schemas.IntSchema): + + + class unavailable_workers( + schemas.IntSchema + ): pass __annotations__ = { "max_workers": max_workers, @@ -57,116 +75,67 @@ class ModelEndpointDeploymentState(schemas.DictSchema): "available_workers": available_workers, "unavailable_workers": unavailable_workers, } + max_workers: MetaOapg.properties.max_workers min_workers: MetaOapg.properties.min_workers per_worker: MetaOapg.properties.per_worker - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["available_workers"] - ) -> MetaOapg.properties.available_workers: ... + def __getitem__(self, name: typing_extensions.Literal["available_workers"]) -> MetaOapg.properties.available_workers: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["unavailable_workers"] - ) -> MetaOapg.properties.unavailable_workers: ... + def __getitem__(self, name: typing_extensions.Literal["unavailable_workers"]) -> MetaOapg.properties.unavailable_workers: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "max_workers", - "min_workers", - "per_worker", - "available_workers", - "unavailable_workers", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["available_workers"] - ) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["available_workers"]) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["unavailable_workers"] - ) -> typing.Union[MetaOapg.properties.unavailable_workers, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["unavailable_workers"]) -> typing.Union[MetaOapg.properties.unavailable_workers, 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[ - "max_workers", - "min_workers", - "per_worker", - "available_workers", - "unavailable_workers", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - max_workers: typing.Union[ - MetaOapg.properties.max_workers, - decimal.Decimal, - int, - ], - min_workers: typing.Union[ - MetaOapg.properties.min_workers, - decimal.Decimal, - int, - ], - per_worker: typing.Union[ - MetaOapg.properties.per_worker, - decimal.Decimal, - int, - ], - available_workers: typing.Union[ - MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - unavailable_workers: typing.Union[ - MetaOapg.properties.unavailable_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], + available_workers: typing.Union[MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + unavailable_workers: typing.Union[MetaOapg.properties.unavailable_workers, decimal.Decimal, int, 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, - ], - ) -> "ModelEndpointDeploymentState": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelEndpointDeploymentState': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_order_by.py b/launch/api_client/model/model_endpoint_order_by.py index e2eb86a1..85a5d7e0 100644 --- a/launch/api_client/model/model_endpoint_order_by.py +++ b/launch/api_client/model/model_endpoint_order_by.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelEndpointOrderBy(schemas.EnumBase, schemas.StrSchema): +class ModelEndpointOrderBy( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,21 +35,22 @@ class ModelEndpointOrderBy(schemas.EnumBase, schemas.StrSchema): The canonical list of possible orderings of Model Bundles. """ + class MetaOapg: enum_value_to_name = { "newest": "NEWEST", "oldest": "OLDEST", "alphabetical": "ALPHABETICAL", } - + @schemas.classproperty def NEWEST(cls): return cls("newest") - + @schemas.classproperty def OLDEST(cls): return cls("oldest") - + @schemas.classproperty def ALPHABETICAL(cls): return cls("alphabetical") diff --git a/launch/api_client/model/model_endpoint_order_by.pyi b/launch/api_client/model/model_endpoint_order_by.pyi index 28193762..891a380d 100644 --- a/launch/api_client/model/model_endpoint_order_by.pyi +++ b/launch/api_client/model/model_endpoint_order_by.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelEndpointOrderBy(schemas.EnumBase, schemas.StrSchema): + +class ModelEndpointOrderBy( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,13 +34,15 @@ class ModelEndpointOrderBy(schemas.EnumBase, schemas.StrSchema): The canonical list of possible orderings of Model Bundles. """ - + @schemas.classproperty def NEWEST(cls): return cls("newest") + @schemas.classproperty def OLDEST(cls): return cls("oldest") + @schemas.classproperty def ALPHABETICAL(cls): return cls("alphabetical") diff --git a/launch/api_client/model/model_endpoint_resource_state.py b/launch/api_client/model/model_endpoint_resource_state.py index f6ed43ff..e232a176 100644 --- a/launch/api_client/model/model_endpoint_resource_state.py +++ b/launch/api_client/model/model_endpoint_resource_state.py @@ -9,21 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelEndpointResourceState(schemas.DictSchema): +class ModelEndpointResourceState( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,22 +34,27 @@ class ModelEndpointResourceState(schemas.DictSchema): This is the entity-layer class for the resource settings per worker of a Model Endpoint. """ + class MetaOapg: required = { "memory", "cpus", "gpus", } - + class properties: + + class cpus( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -63,64 +70,41 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "cpus": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'cpus': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - class gpus(schemas.IntSchema): + + + class gpus( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - + + class memory( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -136,66 +120,37 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "memory": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'memory': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def gpu_type() -> typing.Type["GpuType"]: + def gpu_type() -> typing.Type['GpuType']: return GpuType - optimize_costs = schemas.BoolSchema - + + class storage( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -211,52 +166,20 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "storage": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'storage': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - __annotations__ = { "cpus": cpus, "gpus": gpus, @@ -265,193 +188,74 @@ def __new__( "optimize_costs": optimize_costs, "storage": storage, } - + memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus gpus: MetaOapg.properties.gpus - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: - ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: - ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: - ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": - ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: - ... - + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: - ... - + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cpus", - "gpus", - "memory", - "gpu_type", - "optimize_costs", - "storage", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["storage"] - ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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[ - "cpus", - "gpus", - "memory", - "gpu_type", - "optimize_costs", - "storage", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - memory: typing.Union[ - MetaOapg.properties.memory, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], - cpus: typing.Union[ - MetaOapg.properties.cpus, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], - gpus: typing.Union[ - MetaOapg.properties.gpus, - decimal.Decimal, - int, - ], - gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[ - MetaOapg.properties.storage, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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, - ], - ) -> "ModelEndpointResourceState": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelEndpointResourceState': return super().__new__( cls, *_args, @@ -465,5 +269,4 @@ def __new__( **kwargs, ) - from launch.api_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/model_endpoint_resource_state.pyi b/launch/api_client/model/model_endpoint_resource_state.pyi index 01d11482..d114992c 100644 --- a/launch/api_client/model/model_endpoint_resource_state.pyi +++ b/launch/api_client/model/model_endpoint_resource_state.pyi @@ -9,19 +9,23 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelEndpointResourceState(schemas.DictSchema): + +class ModelEndpointResourceState( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -30,22 +34,27 @@ class ModelEndpointResourceState(schemas.DictSchema): This is the entity-layer class for the resource settings per worker of a Model Endpoint. """ + class MetaOapg: required = { "memory", "cpus", "gpus", } - + class properties: + + class cpus( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -61,62 +70,38 @@ class ModelEndpointResourceState(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "cpus": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'cpus': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - class gpus(schemas.IntSchema): + + + class gpus( + schemas.IntSchema + ): pass - + + class memory( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -132,63 +117,37 @@ class ModelEndpointResourceState(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "memory": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'memory': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + @staticmethod - def gpu_type() -> typing.Type["GpuType"]: + def gpu_type() -> typing.Type['GpuType']: return GpuType optimize_costs = schemas.BoolSchema - + + class storage( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -204,44 +163,14 @@ class ModelEndpointResourceState(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "storage": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'storage': return super().__new__( cls, *_args, @@ -256,162 +185,74 @@ class ModelEndpointResourceState(schemas.DictSchema): "optimize_costs": optimize_costs, "storage": storage, } + memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus gpus: MetaOapg.properties.gpus - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "cpus", - "gpus", - "memory", - "gpu_type", - "optimize_costs", - "storage", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["storage"] - ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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[ - "cpus", - "gpus", - "memory", - "gpu_type", - "optimize_costs", - "storage", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - memory: typing.Union[ - MetaOapg.properties.memory, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], - cpus: typing.Union[ - MetaOapg.properties.cpus, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], - gpus: typing.Union[ - MetaOapg.properties.gpus, - decimal.Decimal, - int, - ], - gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[ - MetaOapg.properties.storage, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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, - ], - ) -> "ModelEndpointResourceState": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelEndpointResourceState': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_status.py b/launch/api_client/model/model_endpoint_status.py index 8703e65a..c1ceaf1b 100644 --- a/launch/api_client/model/model_endpoint_status.py +++ b/launch/api_client/model/model_endpoint_status.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): +class ModelEndpointStatus( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,6 +35,7 @@ class ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): An enumeration. """ + class MetaOapg: enum_value_to_name = { "READY": "READY", @@ -40,23 +44,23 @@ class MetaOapg: "UPDATE_FAILED": "UPDATE_FAILED", "DELETE_IN_PROGRESS": "DELETE_IN_PROGRESS", } - + @schemas.classproperty def READY(cls): return cls("READY") - + @schemas.classproperty def UPDATE_PENDING(cls): return cls("UPDATE_PENDING") - + @schemas.classproperty def UPDATE_IN_PROGRESS(cls): return cls("UPDATE_IN_PROGRESS") - + @schemas.classproperty def UPDATE_FAILED(cls): return cls("UPDATE_FAILED") - + @schemas.classproperty def DELETE_IN_PROGRESS(cls): return cls("DELETE_IN_PROGRESS") diff --git a/launch/api_client/model/model_endpoint_status.pyi b/launch/api_client/model/model_endpoint_status.pyi index 8f1377bd..2c69f8c7 100644 --- a/launch/api_client/model/model_endpoint_status.pyi +++ b/launch/api_client/model/model_endpoint_status.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): + +class ModelEndpointStatus( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,19 +34,23 @@ class ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): An enumeration. """ - + @schemas.classproperty def READY(cls): return cls("READY") + @schemas.classproperty def UPDATE_PENDING(cls): return cls("UPDATE_PENDING") + @schemas.classproperty def UPDATE_IN_PROGRESS(cls): return cls("UPDATE_IN_PROGRESS") + @schemas.classproperty def UPDATE_FAILED(cls): return cls("UPDATE_FAILED") + @schemas.classproperty def DELETE_IN_PROGRESS(cls): return cls("DELETE_IN_PROGRESS") diff --git a/launch/api_client/model/model_endpoint_type.py b/launch/api_client/model/model_endpoint_type.py index 57c909ed..5c5037b8 100644 --- a/launch/api_client/model/model_endpoint_type.py +++ b/launch/api_client/model/model_endpoint_type.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ModelEndpointType(schemas.EnumBase, schemas.StrSchema): +class ModelEndpointType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,16 +35,17 @@ class ModelEndpointType(schemas.EnumBase, schemas.StrSchema): An enumeration. """ + class MetaOapg: enum_value_to_name = { "async": "ASYNC", "sync": "SYNC", } - + @schemas.classproperty def ASYNC(cls): return cls("async") - + @schemas.classproperty def SYNC(cls): return cls("sync") diff --git a/launch/api_client/model/model_endpoint_type.pyi b/launch/api_client/model/model_endpoint_type.pyi index 7a9bef5b..15fd296f 100644 --- a/launch/api_client/model/model_endpoint_type.pyi +++ b/launch/api_client/model/model_endpoint_type.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ModelEndpointType(schemas.EnumBase, schemas.StrSchema): + +class ModelEndpointType( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,10 +34,11 @@ class ModelEndpointType(schemas.EnumBase, schemas.StrSchema): An enumeration. """ - + @schemas.classproperty def ASYNC(cls): return cls("async") + @schemas.classproperty def SYNC(cls): return cls("sync") diff --git a/launch/api_client/model/request_schema.py b/launch/api_client/model/request_schema.py index 48c12333..3546ebfd 100644 --- a/launch/api_client/model/request_schema.py +++ b/launch/api_client/model/request_schema.py @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 - RequestSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/request_schema.pyi b/launch/api_client/model/request_schema.pyi index 031787ad..113fed8a 100644 --- a/launch/api_client/model/request_schema.pyi +++ b/launch/api_client/model/request_schema.pyi @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -from launch_client import schemas # noqa: F401 +from launch_client import schemas # noqa: F401 RequestSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/response_schema.py b/launch/api_client/model/response_schema.py index ac2a8608..816504b4 100644 --- a/launch/api_client/model/response_schema.py +++ b/launch/api_client/model/response_schema.py @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 - ResponseSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/response_schema.pyi b/launch/api_client/model/response_schema.pyi index 800305f1..b31db7e3 100644 --- a/launch/api_client/model/response_schema.pyi +++ b/launch/api_client/model/response_schema.pyi @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -from launch_client import schemas # noqa: F401 +from launch_client import schemas # noqa: F401 ResponseSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/sync_endpoint_predict_response.py b/launch/api_client/model/sync_endpoint_predict_response.py index 3c497782..2d0797a6 100644 --- a/launch/api_client/model/sync_endpoint_predict_response.py +++ b/launch/api_client/model/sync_endpoint_predict_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -59,7 +58,9 @@ def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: + def __getitem__( + self, name: typing_extensions.Literal["traceback"] + ) -> MetaOapg.properties.traceback: ... @typing.overload diff --git a/launch/api_client/model/sync_endpoint_predict_response.pyi b/launch/api_client/model/sync_endpoint_predict_response.pyi index b547fcea..4342348b 100644 --- a/launch/api_client/model/sync_endpoint_predict_response.pyi +++ b/launch/api_client/model/sync_endpoint_predict_response.pyi @@ -49,9 +49,13 @@ class SyncEndpointPredictResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + def __getitem__( + self, name: typing_extensions.Literal["result"] + ) -> MetaOapg.properties.result: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... + def __getitem__( + self, name: typing_extensions.Literal["traceback"] + ) -> MetaOapg.properties.traceback: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -78,7 +82,9 @@ class SyncEndpointPredictResponse(schemas.DictSchema): self, name: typing_extensions.Literal["traceback"] ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/sync_endpoint_predict_v1_response.py b/launch/api_client/model/sync_endpoint_predict_v1_response.py index e3753b5e..08311f09 100644 --- a/launch/api_client/model/sync_endpoint_predict_v1_response.py +++ b/launch/api_client/model/sync_endpoint_predict_v1_response.py @@ -9,37 +9,40 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 SyncEndpointPredictV1Response(schemas.DictSchema): +class SyncEndpointPredictV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "status", } - + class properties: + @staticmethod - def status() -> typing.Type["TaskStatus"]: + def status() -> typing.Type['TaskStatus']: return TaskStatus - result = schemas.AnyTypeSchema traceback = schemas.StrSchema __annotations__ = { @@ -47,118 +50,51 @@ def status() -> typing.Type["TaskStatus"]: "result": result, "traceback": traceback, } - - status: "TaskStatus" - + + status: 'TaskStatus' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": - ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: - ... - + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: - ... - + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "status", - "result", - "traceback", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "result", "traceback", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": - ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["result"] - ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["traceback"] - ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, 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[ - "status", - "result", - "traceback", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", "result", "traceback", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - status: "TaskStatus", - result: typing.Union[ - MetaOapg.properties.result, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + status: 'TaskStatus', + result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, traceback: typing.Union[MetaOapg.properties.traceback, str, 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, - ], - ) -> "SyncEndpointPredictV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'SyncEndpointPredictV1Response': return super().__new__( cls, *_args, @@ -169,5 +105,4 @@ def __new__( **kwargs, ) - from launch.api_client.model.task_status import TaskStatus diff --git a/launch/api_client/model/sync_endpoint_predict_v1_response.pyi b/launch/api_client/model/sync_endpoint_predict_v1_response.pyi index 49ae96fa..063e0357 100644 --- a/launch/api_client/model/sync_endpoint_predict_v1_response.pyi +++ b/launch/api_client/model/sync_endpoint_predict_v1_response.pyi @@ -9,33 +9,39 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class SyncEndpointPredictV1Response(schemas.DictSchema): + +class SyncEndpointPredictV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "status", } - + class properties: + @staticmethod - def status() -> typing.Type["TaskStatus"]: + def status() -> typing.Type['TaskStatus']: return TaskStatus result = schemas.AnyTypeSchema traceback = schemas.StrSchema @@ -44,99 +50,51 @@ class SyncEndpointPredictV1Response(schemas.DictSchema): "result": result, "traceback": traceback, } - status: "TaskStatus" - + + status: 'TaskStatus' + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... + def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "status", - "result", - "traceback", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "result", "traceback", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["result"] - ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["traceback"] - ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, 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[ - "status", - "result", - "traceback", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", "result", "traceback", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - status: "TaskStatus", - result: typing.Union[ - MetaOapg.properties.result, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + *_args: typing.Union[dict, frozendict.frozendict, ], + status: 'TaskStatus', + result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, traceback: typing.Union[MetaOapg.properties.traceback, str, 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, - ], - ) -> "SyncEndpointPredictV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'SyncEndpointPredictV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/task_status.py b/launch/api_client/model/task_status.py index 9693fad1..d162efff 100644 --- a/launch/api_client/model/task_status.py +++ b/launch/api_client/model/task_status.py @@ -9,21 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 TaskStatus(schemas.EnumBase, schemas.StrSchema): +class TaskStatus( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,6 +35,7 @@ class TaskStatus(schemas.EnumBase, schemas.StrSchema): An enumeration. """ + class MetaOapg: enum_value_to_name = { "PENDING": "PENDING", @@ -40,23 +44,23 @@ class MetaOapg: "FAILURE": "FAILURE", "UNDEFINED": "UNDEFINED", } - + @schemas.classproperty def PENDING(cls): return cls("PENDING") - + @schemas.classproperty def STARTED(cls): return cls("STARTED") - + @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") - + @schemas.classproperty def FAILURE(cls): return cls("FAILURE") - + @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/task_status.pyi b/launch/api_client/model/task_status.pyi index d81b166f..1a313148 100644 --- a/launch/api_client/model/task_status.pyi +++ b/launch/api_client/model/task_status.pyi @@ -9,19 +9,24 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class TaskStatus(schemas.EnumBase, schemas.StrSchema): + +class TaskStatus( + schemas.EnumBase, + schemas.StrSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -29,19 +34,23 @@ class TaskStatus(schemas.EnumBase, schemas.StrSchema): An enumeration. """ - + @schemas.classproperty def PENDING(cls): return cls("PENDING") + @schemas.classproperty def STARTED(cls): return cls("STARTED") + @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") + @schemas.classproperty def FAILURE(cls): return cls("FAILURE") + @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/update_batch_job_request.py b/launch/api_client/model/update_batch_job_request.py index 84a751d6..882b380d 100644 --- a/launch/api_client/model/update_batch_job_request.py +++ b/launch/api_client/model/update_batch_job_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -54,7 +53,9 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["cancel",], + typing_extensions.Literal[ + "cancel", + ], str, ], ): @@ -62,7 +63,9 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: + def get_item_oapg( + self, name: typing_extensions.Literal["cancel"] + ) -> MetaOapg.properties.cancel: ... @typing.overload @@ -72,7 +75,9 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["cancel",], + typing_extensions.Literal[ + "cancel", + ], str, ], ): diff --git a/launch/api_client/model/update_batch_job_request.pyi b/launch/api_client/model/update_batch_job_request.pyi index 8c060506..af407069 100644 --- a/launch/api_client/model/update_batch_job_request.pyi +++ b/launch/api_client/model/update_batch_job_request.pyi @@ -41,26 +41,36 @@ class UpdateBatchJobRequest(schemas.DictSchema): cancel: MetaOapg.properties.cancel @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... + def __getitem__( + self, name: typing_extensions.Literal["cancel"] + ) -> MetaOapg.properties.cancel: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["cancel",], + typing_extensions.Literal[ + "cancel", + ], str, ], ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... + def get_item_oapg( + self, name: typing_extensions.Literal["cancel"] + ) -> MetaOapg.properties.cancel: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["cancel",], + typing_extensions.Literal[ + "cancel", + ], str, ], ): diff --git a/launch/api_client/model/update_batch_job_response.py b/launch/api_client/model/update_batch_job_response.py index ffb4ad23..a7175781 100644 --- a/launch/api_client/model/update_batch_job_response.py +++ b/launch/api_client/model/update_batch_job_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -44,7 +43,9 @@ class properties: success: MetaOapg.properties.success @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: + def __getitem__( + self, name: typing_extensions.Literal["success"] + ) -> MetaOapg.properties.success: ... @typing.overload @@ -54,7 +55,9 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["success",], + typing_extensions.Literal[ + "success", + ], str, ], ): @@ -62,7 +65,9 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: + def get_item_oapg( + self, name: typing_extensions.Literal["success"] + ) -> MetaOapg.properties.success: ... @typing.overload @@ -72,7 +77,9 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["success",], + typing_extensions.Literal[ + "success", + ], str, ], ): diff --git a/launch/api_client/model/update_batch_job_response.pyi b/launch/api_client/model/update_batch_job_response.pyi index b6ed2feb..b6a583f8 100644 --- a/launch/api_client/model/update_batch_job_response.pyi +++ b/launch/api_client/model/update_batch_job_response.pyi @@ -41,26 +41,36 @@ class UpdateBatchJobResponse(schemas.DictSchema): success: MetaOapg.properties.success @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... + def __getitem__( + self, name: typing_extensions.Literal["success"] + ) -> MetaOapg.properties.success: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["success",], + typing_extensions.Literal[ + "success", + ], str, ], ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... + def get_item_oapg( + self, name: typing_extensions.Literal["success"] + ) -> MetaOapg.properties.success: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["success",], + typing_extensions.Literal[ + "success", + ], str, ], ): diff --git a/launch/api_client/model/update_batch_job_v1_request.py b/launch/api_client/model/update_batch_job_v1_request.py index 55cbfa11..abf9b3a1 100644 --- a/launch/api_client/model/update_batch_job_v1_request.py +++ b/launch/api_client/model/update_batch_job_v1_request.py @@ -9,91 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 UpdateBatchJobV1Request(schemas.DictSchema): +class UpdateBatchJobV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "cancel", } - + class properties: cancel = schemas.BoolSchema __annotations__ = { "cancel": cancel, } - + cancel: MetaOapg.properties.cancel - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: - ... - + def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... + @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["cancel",], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cancel", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - cancel: typing.Union[ - MetaOapg.properties.cancel, - bool, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + cancel: typing.Union[MetaOapg.properties.cancel, bool, ], _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, - ], - ) -> "UpdateBatchJobV1Request": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UpdateBatchJobV1Request': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_batch_job_v1_request.pyi b/launch/api_client/model/update_batch_job_v1_request.pyi index 9f146df2..96a62273 100644 --- a/launch/api_client/model/update_batch_job_v1_request.pyi +++ b/launch/api_client/model/update_batch_job_v1_request.pyi @@ -9,78 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class UpdateBatchJobV1Request(schemas.DictSchema): + +class UpdateBatchJobV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "cancel", } - + class properties: cancel = schemas.BoolSchema __annotations__ = { "cancel": cancel, } + cancel: MetaOapg.properties.cancel - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... + @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["cancel",], str]): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cancel", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - cancel: typing.Union[ - MetaOapg.properties.cancel, - bool, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + cancel: typing.Union[MetaOapg.properties.cancel, bool, ], _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, - ], - ) -> "UpdateBatchJobV1Request": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UpdateBatchJobV1Request': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_batch_job_v1_response.py b/launch/api_client/model/update_batch_job_v1_response.py index cb9129f5..4f702046 100644 --- a/launch/api_client/model/update_batch_job_v1_response.py +++ b/launch/api_client/model/update_batch_job_v1_response.py @@ -9,91 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 UpdateBatchJobV1Response(schemas.DictSchema): +class UpdateBatchJobV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "success", } - + class properties: success = schemas.BoolSchema __annotations__ = { "success": success, } - + success: MetaOapg.properties.success - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: - ... - + def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... + @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["success",], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - success: typing.Union[ - MetaOapg.properties.success, - bool, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + success: typing.Union[MetaOapg.properties.success, bool, ], _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, - ], - ) -> "UpdateBatchJobV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UpdateBatchJobV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_batch_job_v1_response.pyi b/launch/api_client/model/update_batch_job_v1_response.pyi index 5f33c30d..ff8a3d63 100644 --- a/launch/api_client/model/update_batch_job_v1_response.pyi +++ b/launch/api_client/model/update_batch_job_v1_response.pyi @@ -9,78 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class UpdateBatchJobV1Response(schemas.DictSchema): + +class UpdateBatchJobV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "success", } - + class properties: success = schemas.BoolSchema __annotations__ = { "success": success, } + success: MetaOapg.properties.success - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... + @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["success",], str]): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - success: typing.Union[ - MetaOapg.properties.success, - bool, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + success: typing.Union[MetaOapg.properties.success, bool, ], _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, - ], - ) -> "UpdateBatchJobV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UpdateBatchJobV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_model_endpoint_request.py b/launch/api_client/model/update_model_endpoint_request.py index 98a0fc06..e2f76f75 100644 --- a/launch/api_client/model/update_model_endpoint_request.py +++ b/launch/api_client/model/update_model_endpoint_request.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -128,14 +127,18 @@ class MetaOapg: def __getitem__( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) @@ -367,11 +370,15 @@ def __new__( } @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: + def __getitem__( + self, name: typing_extensions.Literal["aws_role"] + ) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: + def __getitem__( + self, name: typing_extensions.Literal["billing_tags"] + ) -> MetaOapg.properties.billing_tags: ... @typing.overload @@ -379,7 +386,9 @@ def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.prope ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload @@ -401,7 +410,9 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload @@ -409,23 +420,33 @@ def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.pro ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload @@ -435,7 +456,9 @@ def __getitem__( ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: + def __getitem__( + self, name: typing_extensions.Literal["prewarm"] + ) -> MetaOapg.properties.prewarm: ... @typing.overload @@ -445,7 +468,9 @@ def __getitem__( ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: ... @typing.overload @@ -513,7 +538,9 @@ def get_item_oapg( ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload @@ -662,9 +689,15 @@ def __new__( MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + gpus: typing.Union[ + MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + labels: typing.Union[ + MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + max_workers: typing.Union[ + MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, memory: typing.Union[ MetaOapg.properties.memory, dict, @@ -688,15 +721,25 @@ def __new__( metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, + min_workers: typing.Union[ + MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, str, schemas.Unset + ] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, + per_worker: typing.Union[ + MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[ + MetaOapg.properties.results_s3_bucket, str, schemas.Unset + ] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/update_model_endpoint_request.pyi b/launch/api_client/model/update_model_endpoint_request.pyi index 9e376da4..f357ee05 100644 --- a/launch/api_client/model/update_model_endpoint_request.pyi +++ b/launch/api_client/model/update_model_endpoint_request.pyi @@ -118,13 +118,17 @@ class UpdateModelEndpointRequest(schemas.DictSchema): additional_properties = schemas.StrSchema def __getitem__( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[str,], + name: typing.Union[ + str, + ], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( @@ -344,13 +348,19 @@ class UpdateModelEndpointRequest(schemas.DictSchema): "storage": storage, } @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... + def __getitem__( + self, name: typing_extensions.Literal["aws_role"] + ) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... + def __getitem__( + self, name: typing_extensions.Literal["billing_tags"] + ) -> MetaOapg.properties.billing_tags: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -360,35 +370,53 @@ class UpdateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + def __getitem__( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + def __getitem__( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... + def __getitem__( + self, name: typing_extensions.Literal["prewarm"] + ) -> MetaOapg.properties.prewarm: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["results_s3_bucket"] ) -> MetaOapg.properties.results_s3_bucket: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -441,7 +469,9 @@ class UpdateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["default_callback_url"] ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["gpus"] @@ -495,7 +525,9 @@ class UpdateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["storage"] ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -559,9 +591,15 @@ class UpdateModelEndpointRequest(schemas.DictSchema): MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + gpus: typing.Union[ + MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + labels: typing.Union[ + MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + max_workers: typing.Union[ + MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, memory: typing.Union[ MetaOapg.properties.memory, dict, @@ -585,15 +623,25 @@ class UpdateModelEndpointRequest(schemas.DictSchema): metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, + min_workers: typing.Union[ + MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, str, schemas.Unset + ] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, + per_worker: typing.Union[ + MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[ + MetaOapg.properties.results_s3_bucket, str, schemas.Unset + ] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/update_model_endpoint_response.py b/launch/api_client/model/update_model_endpoint_response.py index 8e34377f..9e3df010 100644 --- a/launch/api_client/model/update_model_endpoint_response.py +++ b/launch/api_client/model/update_model_endpoint_response.py @@ -19,7 +19,6 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 - from launch.api_client import schemas # noqa: F401 @@ -56,7 +55,9 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["endpoint_creation_task_id",], + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], str, ], ): @@ -76,7 +77,9 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["endpoint_creation_task_id",], + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], str, ], ): diff --git a/launch/api_client/model/update_model_endpoint_response.pyi b/launch/api_client/model/update_model_endpoint_response.pyi index 692169f5..e8fa304d 100644 --- a/launch/api_client/model/update_model_endpoint_response.pyi +++ b/launch/api_client/model/update_model_endpoint_response.pyi @@ -49,7 +49,9 @@ class UpdateModelEndpointResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal["endpoint_creation_task_id",], + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], str, ], ): @@ -60,11 +62,15 @@ class UpdateModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["endpoint_creation_task_id"] ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal["endpoint_creation_task_id",], + typing_extensions.Literal[ + "endpoint_creation_task_id", + ], str, ], ): diff --git a/launch/api_client/model/update_model_endpoint_v1_request.py b/launch/api_client/model/update_model_endpoint_v1_request.py index 811edbcd..769f2fe7 100644 --- a/launch/api_client/model/update_model_endpoint_v1_request.py +++ b/launch/api_client/model/update_model_endpoint_v1_request.py @@ -9,40 +9,47 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 UpdateModelEndpointV1Request(schemas.DictSchema): +class UpdateModelEndpointV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: + class properties: aws_role = schemas.StrSchema billing_tags = schemas.DictSchema - + + class cpus( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -58,114 +65,99 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "cpus": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'cpus': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def default_callback_auth() -> typing.Type["CallbackAuth"]: + def default_callback_auth() -> typing.Type['CallbackAuth']: return CallbackAuth - - class default_callback_url(schemas.StrSchema): + + + class default_callback_url( + schemas.StrSchema + ): + + class MetaOapg: - format = "uri" + format = 'uri' max_length = 2083 min_length = 1 - + @staticmethod - def gpu_type() -> typing.Type["GpuType"]: + def gpu_type() -> typing.Type['GpuType']: return GpuType - - class gpus(schemas.IntSchema): + + + class gpus( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - high_priority = schemas.BoolSchema - - class labels(schemas.DictSchema): + + + class labels( + schemas.DictSchema + ): + + class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[ - MetaOapg.additional_properties, - str, - ], - ) -> "labels": + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - class max_workers(schemas.IntSchema): + + + class max_workers( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - + + class memory( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -181,104 +173,70 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "memory": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'memory': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - metadata = schemas.DictSchema - - class min_workers(schemas.IntSchema): + + + class min_workers( + schemas.IntSchema + ): + + class MetaOapg: inclusive_minimum = 0 - model_bundle_id = schemas.StrSchema optimize_costs = schemas.BoolSchema per_worker = schemas.IntSchema - - class post_inference_hooks(schemas.ListSchema): + + + class post_inference_hooks( + schemas.ListSchema + ): + + class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "post_inference_hooks": + ) -> 'post_inference_hooks': return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) - prewarm = schemas.BoolSchema results_s3_bucket = schemas.StrSchema - + + class storage( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -294,52 +252,20 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "storage": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'storage': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - __annotations__ = { "aws_role": aws_role, "billing_tags": billing_tags, @@ -362,389 +288,168 @@ def __new__( "results_s3_bucket": results_s3_bucket, "storage": storage, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: - ... - + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: - ... - + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: - ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": - ... - + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_url"] - ) -> MetaOapg.properties.default_callback_url: - ... - + def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": - ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: - ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: - ... - + def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: - ... - + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: - ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: - ... - + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: - ... - + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: - ... - + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: - ... - + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: - ... - + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["post_inference_hooks"] - ) -> MetaOapg.properties.post_inference_hooks: - ... - + def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: - ... - + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["results_s3_bucket"] - ) -> MetaOapg.properties.results_s3_bucket: - ... - + def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: - ... - + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "aws_role", - "billing_tags", - "cpus", - "default_callback_auth", - "default_callback_url", - "gpu_type", - "gpus", - "high_priority", - "labels", - "max_workers", - "memory", - "metadata", - "min_workers", - "model_bundle_id", - "optimize_costs", - "per_worker", - "post_inference_hooks", - "prewarm", - "results_s3_bucket", - "storage", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["aws_role"] - ) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["billing_tags"] - ) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cpus"] - ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> typing.Union["CallbackAuth", schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["default_callback_url"] - ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpus"] - ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["high_priority"] - ) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["min_workers"] - ) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["post_inference_hooks"] - ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["prewarm"] - ) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["results_s3_bucket"] - ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["storage"] - ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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[ - "aws_role", - "billing_tags", - "cpus", - "default_callback_auth", - "default_callback_url", - "gpu_type", - "gpus", - "high_priority", - "labels", - "max_workers", - "memory", - "metadata", - "min_workers", - "model_bundle_id", - "optimize_costs", - "per_worker", - "post_inference_hooks", - "prewarm", - "results_s3_bucket", - "storage", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, - billing_tags: typing.Union[ - MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - cpus: typing.Union[ - MetaOapg.properties.cpus, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, - default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[ - MetaOapg.properties.default_callback_url, str, schemas.Unset - ] = schemas.unset, - gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[ - MetaOapg.properties.memory, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, - metadata: typing.Union[ - MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[ - MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset - ] = schemas.unset, + post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, - storage: typing.Union[ - MetaOapg.properties.storage, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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, - ], - ) -> "UpdateModelEndpointV1Request": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UpdateModelEndpointV1Request': return super().__new__( cls, *_args, @@ -772,6 +477,5 @@ def __new__( **kwargs, ) - from launch.api_client.model.callback_auth import CallbackAuth from launch.api_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/update_model_endpoint_v1_request.pyi b/launch/api_client/model/update_model_endpoint_v1_request.pyi index 50acf6cb..9aadf01d 100644 --- a/launch/api_client/model/update_model_endpoint_v1_request.pyi +++ b/launch/api_client/model/update_model_endpoint_v1_request.pyi @@ -9,38 +9,47 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class UpdateModelEndpointV1Request(schemas.DictSchema): + +class UpdateModelEndpointV1Request( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: + class properties: aws_role = schemas.StrSchema billing_tags = schemas.DictSchema - + + class cpus( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -56,102 +65,88 @@ class UpdateModelEndpointV1Request(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "cpus": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'cpus': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + @staticmethod - def default_callback_auth() -> typing.Type["CallbackAuth"]: + def default_callback_auth() -> typing.Type['CallbackAuth']: return CallbackAuth - - class default_callback_url(schemas.StrSchema): + + + class default_callback_url( + schemas.StrSchema + ): pass + @staticmethod - def gpu_type() -> typing.Type["GpuType"]: + def gpu_type() -> typing.Type['GpuType']: return GpuType - - class gpus(schemas.IntSchema): + + + class gpus( + schemas.IntSchema + ): pass high_priority = schemas.BoolSchema - - class labels(schemas.DictSchema): + + + class labels( + schemas.DictSchema + ): + + class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[ - MetaOapg.additional_properties, - str, - ], - ) -> "labels": + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'labels': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - class max_workers(schemas.IntSchema): + + + class max_workers( + schemas.IntSchema + ): pass - + + class memory( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -167,44 +162,14 @@ class UpdateModelEndpointV1Request(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "memory": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'memory': return super().__new__( cls, *_args, @@ -212,52 +177,52 @@ class UpdateModelEndpointV1Request(schemas.DictSchema): **kwargs, ) metadata = schemas.DictSchema - - class min_workers(schemas.IntSchema): + + + class min_workers( + schemas.IntSchema + ): pass model_bundle_id = schemas.StrSchema optimize_costs = schemas.BoolSchema per_worker = schemas.IntSchema - - class post_inference_hooks(schemas.ListSchema): + + + class post_inference_hooks( + schemas.ListSchema + ): + + class MetaOapg: items = schemas.StrSchema + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - str, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "post_inference_hooks": + ) -> 'post_inference_hooks': return super().__new__( cls, _arg, _configuration=_configuration, ) + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) prewarm = schemas.BoolSchema results_s3_bucket = schemas.StrSchema - + + class storage( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -273,44 +238,14 @@ class UpdateModelEndpointV1Request(schemas.DictSchema): cls.any_of_1, cls.any_of_2, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "storage": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'storage': return super().__new__( cls, *_args, @@ -339,304 +274,168 @@ class UpdateModelEndpointV1Request(schemas.DictSchema): "results_s3_bucket": results_s3_bucket, "storage": storage, } + @typing.overload def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_url"] - ) -> MetaOapg.properties.default_callback_url: ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: ... + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["post_inference_hooks"] - ) -> MetaOapg.properties.post_inference_hooks: ... + def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["results_s3_bucket"] - ) -> MetaOapg.properties.results_s3_bucket: ... + def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "aws_role", - "billing_tags", - "cpus", - "default_callback_auth", - "default_callback_url", - "gpu_type", - "gpus", - "high_priority", - "labels", - "max_workers", - "memory", - "metadata", - "min_workers", - "model_bundle_id", - "optimize_costs", - "per_worker", - "post_inference_hooks", - "prewarm", - "results_s3_bucket", - "storage", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["aws_role"] - ) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["billing_tags"] - ) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cpus"] - ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> typing.Union["CallbackAuth", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["default_callback_url"] - ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpus"] - ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["high_priority"] - ) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["min_workers"] - ) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["post_inference_hooks"] - ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["prewarm"] - ) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["results_s3_bucket"] - ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["storage"] - ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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[ - "aws_role", - "billing_tags", - "cpus", - "default_callback_auth", - "default_callback_url", - "gpu_type", - "gpus", - "high_priority", - "labels", - "max_workers", - "memory", - "metadata", - "min_workers", - "model_bundle_id", - "optimize_costs", - "per_worker", - "post_inference_hooks", - "prewarm", - "results_s3_bucket", - "storage", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, - billing_tags: typing.Union[ - MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - cpus: typing.Union[ - MetaOapg.properties.cpus, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, - default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[ - MetaOapg.properties.default_callback_url, str, schemas.Unset - ] = schemas.unset, - gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, + gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[ - MetaOapg.properties.memory, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, - metadata: typing.Union[ - MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, + memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[ - MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset - ] = schemas.unset, + post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, - storage: typing.Union[ - MetaOapg.properties.storage, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - schemas.Unset, - ] = schemas.unset, + storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, 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, - ], - ) -> "UpdateModelEndpointV1Request": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UpdateModelEndpointV1Request': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_model_endpoint_v1_response.py b/launch/api_client/model/update_model_endpoint_v1_response.py index 4369866b..7aeff47a 100644 --- a/launch/api_client/model/update_model_endpoint_v1_response.py +++ b/launch/api_client/model/update_model_endpoint_v1_response.py @@ -9,95 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 UpdateModelEndpointV1Response(schemas.DictSchema): +class UpdateModelEndpointV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "endpoint_creation_task_id", } - + class properties: endpoint_creation_task_id = schemas.StrSchema __annotations__ = { "endpoint_creation_task_id": endpoint_creation_task_id, } - + endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id - + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["endpoint_creation_task_id"] - ) -> MetaOapg.properties.endpoint_creation_task_id: - ... - + def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_creation_task_id"] - ) -> MetaOapg.properties.endpoint_creation_task_id: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + @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["endpoint_creation_task_id",], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - endpoint_creation_task_id: typing.Union[ - MetaOapg.properties.endpoint_creation_task_id, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], _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, - ], - ) -> "UpdateModelEndpointV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UpdateModelEndpointV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_model_endpoint_v1_response.pyi b/launch/api_client/model/update_model_endpoint_v1_response.pyi index 2b330725..87aa1609 100644 --- a/launch/api_client/model/update_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/update_model_endpoint_v1_response.pyi @@ -9,82 +9,71 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class UpdateModelEndpointV1Response(schemas.DictSchema): + +class UpdateModelEndpointV1Response( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "endpoint_creation_task_id", } - + class properties: endpoint_creation_task_id = schemas.StrSchema __annotations__ = { "endpoint_creation_task_id": endpoint_creation_task_id, } + endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id - + @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["endpoint_creation_task_id"] - ) -> MetaOapg.properties.endpoint_creation_task_id: ... + def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_creation_task_id"] - ) -> MetaOapg.properties.endpoint_creation_task_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... + @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["endpoint_creation_task_id",], str]): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - endpoint_creation_task_id: typing.Union[ - MetaOapg.properties.endpoint_creation_task_id, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], _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, - ], - ) -> "UpdateModelEndpointV1Response": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UpdateModelEndpointV1Response': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/validation_error.py b/launch/api_client/model/validation_error.py index 8cc3cf6a..42a25b83 100644 --- a/launch/api_client/model/validation_error.py +++ b/launch/api_client/model/validation_error.py @@ -9,44 +9,57 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # 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 ValidationError(schemas.DictSchema): +class ValidationError( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "msg", "loc", "type", } - + class properties: - class loc(schemas.ListSchema): + + + class loc( + schemas.ListSchema + ): + + class MetaOapg: + + class items( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -61,109 +74,34 @@ def any_of(cls): cls.any_of_0, cls.any_of_1, ] - + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "items": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'items': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "loc": + ) -> 'loc': return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) - msg = schemas.StrSchema type = schemas.StrSchema __annotations__ = { @@ -171,107 +109,53 @@ def __getitem__(self, i: int) -> MetaOapg.items: "msg": msg, "type": type, } - + msg: MetaOapg.properties.msg loc: MetaOapg.properties.loc type: MetaOapg.properties.type - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: - ... - + def __getitem__(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: - ... - + def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: - ... - + def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: - ... - - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "loc", - "msg", - "type", - ], - str, - ], - ): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["loc", "msg", "type", ], str]): # dict_instance[name] accessor return super().__getitem__(name) - + + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: - ... - + def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... + @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[ - "loc", - "msg", - "type", - ], - str, - ], - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["loc", "msg", "type", ], str]): return super().get_item_oapg(name) + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - msg: typing.Union[ - MetaOapg.properties.msg, - str, - ], - loc: typing.Union[ - MetaOapg.properties.loc, - list, - tuple, - ], - type: typing.Union[ - MetaOapg.properties.type, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + msg: typing.Union[MetaOapg.properties.msg, str, ], + loc: typing.Union[MetaOapg.properties.loc, list, tuple, ], + type: typing.Union[MetaOapg.properties.type, str, ], _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, - ], - ) -> "ValidationError": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ValidationError': return super().__new__( cls, *_args, diff --git a/launch/api_client/model/validation_error.pyi b/launch/api_client/model/validation_error.pyi index 865e67c4..c6a35dac 100644 --- a/launch/api_client/model/validation_error.pyi +++ b/launch/api_client/model/validation_error.pyi @@ -9,42 +9,57 @@ Generated by: https://openapi-generator.tech """ +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 + from launch_client import schemas # noqa: F401 -class ValidationError(schemas.DictSchema): + +class ValidationError( + schemas.DictSchema +): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ + class MetaOapg: required = { "msg", "loc", "type", } - + class properties: - class loc(schemas.ListSchema): + + + class loc( + schemas.ListSchema + ): + + class MetaOapg: + + class items( schemas.ComposedSchema, ): + + class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -59,103 +74,32 @@ class ValidationError(schemas.DictSchema): cls.any_of_0, cls.any_of_1, ] + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ], + *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], _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, - ], - ) -> "items": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'items': return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + def __new__( cls, - _arg: typing.Union[ - typing.Tuple[ - typing.Union[ - MetaOapg.items, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ] - ], - typing.List[ - typing.Union[ - MetaOapg.items, - dict, - frozendict.frozendict, - str, - date, - datetime, - uuid.UUID, - int, - float, - decimal.Decimal, - bool, - None, - list, - tuple, - bytes, - io.FileIO, - io.BufferedReader, - ] - ], - ], + _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> "loc": + ) -> 'loc': return super().__new__( cls, _arg, _configuration=_configuration, ) + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) msg = schemas.StrSchema @@ -165,88 +109,53 @@ class ValidationError(schemas.DictSchema): "msg": msg, "type": type, } + msg: MetaOapg.properties.msg loc: MetaOapg.properties.loc type: MetaOapg.properties.type - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... + @typing.overload def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, - name: typing.Union[ - typing_extensions.Literal[ - "loc", - "msg", - "type", - ], - str, - ], - ): + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["loc", "msg", "type", ], str]): # dict_instance[name] accessor return super().__getitem__(name) + + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... + @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... + @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[ - "loc", - "msg", - "type", - ], - str, - ], - ): + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["loc", "msg", "type", ], str]): return super().get_item_oapg(name) + + def __new__( cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - ], - msg: typing.Union[ - MetaOapg.properties.msg, - str, - ], - loc: typing.Union[ - MetaOapg.properties.loc, - list, - tuple, - ], - type: typing.Union[ - MetaOapg.properties.type, - str, - ], + *_args: typing.Union[dict, frozendict.frozendict, ], + msg: typing.Union[MetaOapg.properties.msg, str, ], + loc: typing.Union[MetaOapg.properties.loc, list, tuple, ], + type: typing.Union[MetaOapg.properties.type, str, ], _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, - ], - ) -> "ValidationError": + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ValidationError': return super().__new__( cls, *_args, diff --git a/launch/api_client/models/__init__.py b/launch/api_client/models/__init__.py index cf694480..913a6e4e 100644 --- a/launch/api_client/models/__init__.py +++ b/launch/api_client/models/__init__.py @@ -11,103 +11,45 @@ # import sys # sys.setrecursionlimit(n) -from launch.api_client.model.batch_job_serialization_format import ( - BatchJobSerializationFormat, -) +from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat from launch.api_client.model.batch_job_status import BatchJobStatus from launch.api_client.model.callback_auth import CallbackAuth from launch.api_client.model.callback_basic_auth import CallbackBasicAuth from launch.api_client.model.callbackm_tls_auth import CallbackmTLSAuth -from launch.api_client.model.clone_model_bundle_v1_request import ( - CloneModelBundleV1Request, -) -from launch.api_client.model.create_async_task_v1_response import ( - CreateAsyncTaskV1Response, -) -from launch.api_client.model.create_batch_job_resource_requests import ( - CreateBatchJobResourceRequests, -) -from launch.api_client.model.create_batch_job_v1_request import ( - CreateBatchJobV1Request, -) -from launch.api_client.model.create_batch_job_v1_response import ( - CreateBatchJobV1Response, -) -from launch.api_client.model.create_model_bundle_v1_request import ( - CreateModelBundleV1Request, -) -from launch.api_client.model.create_model_bundle_v1_response import ( - CreateModelBundleV1Response, -) -from launch.api_client.model.create_model_endpoint_v1_request import ( - CreateModelEndpointV1Request, -) -from launch.api_client.model.create_model_endpoint_v1_response import ( - CreateModelEndpointV1Response, -) -from launch.api_client.model.delete_model_endpoint_v1_response import ( - DeleteModelEndpointV1Response, -) -from launch.api_client.model.endpoint_predict_v1_request import ( - EndpointPredictV1Request, -) -from launch.api_client.model.get_async_task_v1_response import ( - GetAsyncTaskV1Response, -) -from launch.api_client.model.get_batch_job_v1_response import ( - GetBatchJobV1Response, -) -from launch.api_client.model.get_model_endpoint_v1_response import ( - GetModelEndpointV1Response, -) +from launch.api_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request +from launch.api_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response +from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests +from launch.api_client.model.create_batch_job_v1_request import CreateBatchJobV1Request +from launch.api_client.model.create_batch_job_v1_response import CreateBatchJobV1Response +from launch.api_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request +from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch.api_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request +from launch.api_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response +from launch.api_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response +from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request +from launch.api_client.model.get_async_task_v1_response import GetAsyncTaskV1Response +from launch.api_client.model.get_batch_job_v1_response import GetBatchJobV1Response +from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response from launch.api_client.model.gpu_type import GpuType from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.list_model_bundles_v1_response import ( - ListModelBundlesV1Response, -) -from launch.api_client.model.list_model_endpoints_v1_response import ( - ListModelEndpointsV1Response, -) -from launch.api_client.model.model_bundle_environment_params import ( - ModelBundleEnvironmentParams, -) -from launch.api_client.model.model_bundle_framework_type import ( - ModelBundleFrameworkType, -) +from launch.api_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch.api_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response +from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams +from launch.api_client.model.model_bundle_framework_type import ModelBundleFrameworkType from launch.api_client.model.model_bundle_order_by import ModelBundleOrderBy -from launch.api_client.model.model_bundle_packaging_type import ( - ModelBundlePackagingType, -) -from launch.api_client.model.model_bundle_v1_response import ( - ModelBundleV1Response, -) -from launch.api_client.model.model_endpoint_deployment_state import ( - ModelEndpointDeploymentState, -) -from launch.api_client.model.model_endpoint_order_by import ( - ModelEndpointOrderBy, -) -from launch.api_client.model.model_endpoint_resource_state import ( - ModelEndpointResourceState, -) +from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response +from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState +from launch.api_client.model.model_endpoint_order_by import ModelEndpointOrderBy +from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState from launch.api_client.model.model_endpoint_status import ModelEndpointStatus from launch.api_client.model.model_endpoint_type import ModelEndpointType from launch.api_client.model.request_schema import RequestSchema from launch.api_client.model.response_schema import ResponseSchema -from launch.api_client.model.sync_endpoint_predict_v1_response import ( - SyncEndpointPredictV1Response, -) +from launch.api_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response from launch.api_client.model.task_status import TaskStatus -from launch.api_client.model.update_batch_job_v1_request import ( - UpdateBatchJobV1Request, -) -from launch.api_client.model.update_batch_job_v1_response import ( - UpdateBatchJobV1Response, -) -from launch.api_client.model.update_model_endpoint_v1_request import ( - UpdateModelEndpointV1Request, -) -from launch.api_client.model.update_model_endpoint_v1_response import ( - UpdateModelEndpointV1Response, -) +from launch.api_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request +from launch.api_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response +from launch.api_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request +from launch.api_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response from launch.api_client.model.validation_error import ValidationError diff --git a/launch/api_client/paths/healthcheck/__init__.py b/launch/api_client/paths/healthcheck/__init__.py index ae6dcb46..b0eea9c5 100644 --- a/launch/api_client/paths/healthcheck/__init__.py +++ b/launch/api_client/paths/healthcheck/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.HEALTHCHECK +path = PathValues.HEALTHCHECK \ No newline at end of file diff --git a/launch/api_client/paths/healthcheck/get.py b/launch/api_client/paths/healthcheck/get.py index 4cbeec4b..287d610d 100644 --- a/launch/api_client/paths/healthcheck/get.py +++ b/launch/api_client/paths/healthcheck/get.py @@ -6,22 +6,24 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions from . import path @@ -31,20 +33,25 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, + '200': _response_for_200, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -55,8 +62,9 @@ def _healthcheck_healthcheck_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _healthcheck_healthcheck_get_oapg( @@ -65,8 +73,7 @@ def _healthcheck_healthcheck_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _healthcheck_healthcheck_get_oapg( @@ -75,8 +82,10 @@ def _healthcheck_healthcheck_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _healthcheck_healthcheck_get_oapg( self, @@ -97,11 +106,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, stream=stream, timeout=timeout, @@ -117,7 +126,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -132,8 +145,9 @@ def healthcheck_healthcheck_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def healthcheck_healthcheck_get( @@ -142,8 +156,7 @@ def healthcheck_healthcheck_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def healthcheck_healthcheck_get( @@ -152,8 +165,10 @@ def healthcheck_healthcheck_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def healthcheck_healthcheck_get( self, @@ -166,7 +181,7 @@ def healthcheck_healthcheck_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -180,8 +195,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -190,8 +206,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -200,8 +215,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -214,5 +231,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/healthcheck/get.pyi b/launch/api_client/paths/healthcheck/get.pyi index 519a05dc..152c27b6 100644 --- a/launch/api_client/paths/healthcheck/get.pyi +++ b/launch/api_client/paths/healthcheck/get.pyi @@ -6,37 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -46,7 +57,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _healthcheck_healthcheck_get_oapg( self, @@ -55,6 +69,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _healthcheck_healthcheck_get_oapg( self, @@ -62,7 +77,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _healthcheck_healthcheck_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -82,11 +101,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, stream=stream, timeout=timeout, @@ -102,10 +121,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class HealthcheckHealthcheckGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -116,7 +140,10 @@ class HealthcheckHealthcheckGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def healthcheck_healthcheck_get( self, @@ -125,6 +152,7 @@ class HealthcheckHealthcheckGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def healthcheck_healthcheck_get( self, @@ -132,7 +160,11 @@ class HealthcheckHealthcheckGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def healthcheck_healthcheck_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -144,9 +176,10 @@ class HealthcheckHealthcheckGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -157,7 +190,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -166,6 +202,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -173,7 +210,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -185,5 +226,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/healthz/__init__.py b/launch/api_client/paths/healthz/__init__.py index 3253e712..b4e79532 100644 --- a/launch/api_client/paths/healthz/__init__.py +++ b/launch/api_client/paths/healthz/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.HEALTHZ +path = PathValues.HEALTHZ \ No newline at end of file diff --git a/launch/api_client/paths/healthz/get.py b/launch/api_client/paths/healthz/get.py index c71e242f..e8aabd4b 100644 --- a/launch/api_client/paths/healthz/get.py +++ b/launch/api_client/paths/healthz/get.py @@ -6,22 +6,24 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions from . import path @@ -31,20 +33,25 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, + '200': _response_for_200, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -55,8 +62,9 @@ def _healthcheck_healthz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _healthcheck_healthz_get_oapg( @@ -65,8 +73,7 @@ def _healthcheck_healthz_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _healthcheck_healthz_get_oapg( @@ -75,8 +82,10 @@ def _healthcheck_healthz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _healthcheck_healthz_get_oapg( self, @@ -97,11 +106,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, stream=stream, timeout=timeout, @@ -117,7 +126,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -132,8 +145,9 @@ def healthcheck_healthz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def healthcheck_healthz_get( @@ -142,8 +156,7 @@ def healthcheck_healthz_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def healthcheck_healthz_get( @@ -152,8 +165,10 @@ def healthcheck_healthz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def healthcheck_healthz_get( self, @@ -166,7 +181,7 @@ def healthcheck_healthz_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -180,8 +195,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -190,8 +206,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -200,8 +215,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -214,5 +231,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/healthz/get.pyi b/launch/api_client/paths/healthz/get.pyi index e80889c1..21f0bdfe 100644 --- a/launch/api_client/paths/healthz/get.pyi +++ b/launch/api_client/paths/healthz/get.pyi @@ -6,37 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -46,7 +57,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _healthcheck_healthz_get_oapg( self, @@ -55,6 +69,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _healthcheck_healthz_get_oapg( self, @@ -62,7 +77,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _healthcheck_healthz_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -82,11 +101,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, stream=stream, timeout=timeout, @@ -102,10 +121,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class HealthcheckHealthzGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -116,7 +140,10 @@ class HealthcheckHealthzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def healthcheck_healthz_get( self, @@ -125,6 +152,7 @@ class HealthcheckHealthzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def healthcheck_healthz_get( self, @@ -132,7 +160,11 @@ class HealthcheckHealthzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def healthcheck_healthz_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -144,9 +176,10 @@ class HealthcheckHealthzGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -157,7 +190,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -166,6 +202,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -173,7 +210,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -185,5 +226,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/readyz/__init__.py b/launch/api_client/paths/readyz/__init__.py index 9b49ccf0..4b5a5af4 100644 --- a/launch/api_client/paths/readyz/__init__.py +++ b/launch/api_client/paths/readyz/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.READYZ +path = PathValues.READYZ \ No newline at end of file diff --git a/launch/api_client/paths/readyz/get.py b/launch/api_client/paths/readyz/get.py index c016a017..ef5201be 100644 --- a/launch/api_client/paths/readyz/get.py +++ b/launch/api_client/paths/readyz/get.py @@ -6,22 +6,24 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions from . import path @@ -31,20 +33,25 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, + '200': _response_for_200, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -55,8 +62,9 @@ def _healthcheck_readyz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _healthcheck_readyz_get_oapg( @@ -65,8 +73,7 @@ def _healthcheck_readyz_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _healthcheck_readyz_get_oapg( @@ -75,8 +82,10 @@ def _healthcheck_readyz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _healthcheck_readyz_get_oapg( self, @@ -97,11 +106,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, stream=stream, timeout=timeout, @@ -117,7 +126,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -132,8 +145,9 @@ def healthcheck_readyz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def healthcheck_readyz_get( @@ -142,8 +156,7 @@ def healthcheck_readyz_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def healthcheck_readyz_get( @@ -152,8 +165,10 @@ def healthcheck_readyz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def healthcheck_readyz_get( self, @@ -166,7 +181,7 @@ def healthcheck_readyz_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -180,8 +195,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -190,8 +206,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -200,8 +215,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -214,5 +231,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/readyz/get.pyi b/launch/api_client/paths/readyz/get.pyi index 7ef0ef1c..5f8d2904 100644 --- a/launch/api_client/paths/readyz/get.pyi +++ b/launch/api_client/paths/readyz/get.pyi @@ -6,37 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -46,7 +57,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _healthcheck_readyz_get_oapg( self, @@ -55,6 +69,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _healthcheck_readyz_get_oapg( self, @@ -62,7 +77,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _healthcheck_readyz_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -82,11 +101,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, stream=stream, timeout=timeout, @@ -102,10 +121,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class HealthcheckReadyzGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -116,7 +140,10 @@ class HealthcheckReadyzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def healthcheck_readyz_get( self, @@ -125,6 +152,7 @@ class HealthcheckReadyzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def healthcheck_readyz_get( self, @@ -132,7 +160,11 @@ class HealthcheckReadyzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def healthcheck_readyz_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -144,9 +176,10 @@ class HealthcheckReadyzGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -157,7 +190,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -166,6 +202,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -173,7 +210,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -185,5 +226,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_async_tasks/__init__.py b/launch/api_client/paths/v1_async_tasks/__init__.py index aafe0cc4..72df600f 100644 --- a/launch/api_client/paths/v1_async_tasks/__init__.py +++ b/launch/api_client/paths/v1_async_tasks/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_ASYNCTASKS +path = PathValues.V1_ASYNCTASKS \ No newline at end of file diff --git a/launch/api_client/paths/v1_async_tasks/post.py b/launch/api_client/paths/v1_async_tasks/post.py index 19d68ae1..f795a6a0 100644 --- a/launch/api_client/paths/v1_async_tasks/post.py +++ b/launch/api_client/paths/v1_async_tasks/post.py @@ -6,44 +6,45 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.create_async_task_v1_response import ( - CreateAsyncTaskV1Response, -) -from launch.api_client.model.endpoint_predict_v1_request import ( - EndpointPredictV1Request, -) + +from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response from . import path # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - "RequestRequiredQueryParams", + 'RequestRequiredQueryParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): @@ -63,12 +64,13 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = CreateAsyncTaskV1Response @@ -76,14 +78,17 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -92,21 +97,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -120,8 +130,9 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( @@ -133,8 +144,10 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( @@ -146,8 +159,7 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( @@ -159,13 +171,15 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _create_async_inference_task_v1_async_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -182,7 +196,9 @@ class instances used_path = path.value prefix_separator_iterator = None - for parameter in (request_query_model_endpoint_id,): + for parameter in ( + request_query_model_endpoint_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -196,23 +212,22 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -231,7 +246,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -249,8 +268,9 @@ def create_async_inference_task_v1_async_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def create_async_inference_task_v1_async_tasks_post( @@ -262,8 +282,10 @@ def create_async_inference_task_v1_async_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_async_inference_task_v1_async_tasks_post( @@ -275,8 +297,7 @@ def create_async_inference_task_v1_async_tasks_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def create_async_inference_task_v1_async_tasks_post( @@ -288,13 +309,15 @@ def create_async_inference_task_v1_async_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def create_async_inference_task_v1_async_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -308,7 +331,7 @@ def create_async_inference_task_v1_async_tasks_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -325,8 +348,9 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def post( @@ -338,8 +362,10 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( @@ -351,8 +377,7 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( @@ -364,13 +389,15 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -384,5 +411,7 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_async_tasks/post.pyi b/launch/api_client/paths/v1_async_tasks/post.pyi index 3e863a0d..f9c2ffc0 100644 --- a/launch/api_client/paths/v1_async_tasks/post.pyi +++ b/launch/api_client/paths/v1_async_tasks/post.pyi @@ -6,45 +6,49 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.create_async_task_v1_response import ( - CreateAsyncTaskV1Response, -) -from launch_client.model.endpoint_predict_v1_request import ( - EndpointPredictV1Request, -) + +from launch_client.model.endpoint_predict_v1_request import EndpointPredictV1Request from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict +from launch_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - "RequestRequiredQueryParams", + 'RequestRequiredQueryParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) + class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass + request_query_model_endpoint_id = api_client.QueryParameter( name="model_endpoint_id", style=api_client.ParameterStyle.FORM, @@ -55,41 +59,56 @@ request_query_model_endpoint_id = api_client.QueryParameter( # body param SchemaForRequestBodyApplicationJson = EndpointPredictV1Request + request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateAsyncTaskV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -102,7 +121,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( self, @@ -113,7 +135,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( self, @@ -125,6 +151,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( self, @@ -135,11 +162,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _create_async_inference_task_v1_async_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -156,7 +187,9 @@ class BaseApi(api_client.Api): used_path = path.value prefix_separator_iterator = None - for parameter in (request_query_model_endpoint_id,): + for parameter in ( + request_query_model_endpoint_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -170,23 +203,22 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -205,10 +237,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -222,7 +259,10 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_async_inference_task_v1_async_tasks_post( self, @@ -233,7 +273,11 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def create_async_inference_task_v1_async_tasks_post( self, @@ -245,6 +289,7 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def create_async_inference_task_v1_async_tasks_post( self, @@ -255,11 +300,15 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def create_async_inference_task_v1_async_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -273,9 +322,10 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -289,7 +339,10 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( self, @@ -300,7 +353,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def post( self, @@ -312,6 +369,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def post( self, @@ -322,11 +380,15 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -340,5 +402,7 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_async_tasks_task_id/__init__.py b/launch/api_client/paths/v1_async_tasks_task_id/__init__.py index 21c8a0fc..ef09b1e6 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/__init__.py +++ b/launch/api_client/paths/v1_async_tasks_task_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_ASYNCTASKS_TASK_ID +path = PathValues.V1_ASYNCTASKS_TASK_ID \ No newline at end of file diff --git a/launch/api_client/paths/v1_async_tasks_task_id/get.py b/launch/api_client/paths/v1_async_tasks_task_id/get.py index 7bb49fa2..5d4dca8e 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/get.py +++ b/launch/api_client/paths/v1_async_tasks_task_id/get.py @@ -6,41 +6,44 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.get_async_task_v1_response import ( - GetAsyncTaskV1Response, -) + from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.get_async_task_v1_response import GetAsyncTaskV1Response from . import path # Path params TaskIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'task_id': typing.Union[TaskIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "task_id": typing.Union[ - TaskIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -54,7 +57,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = GetAsyncTaskV1Response @@ -62,14 +65,17 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -78,21 +84,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -104,8 +115,9 @@ def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( @@ -115,8 +127,7 @@ def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( @@ -126,8 +137,10 @@ def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, @@ -147,7 +160,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_task_id,): + for parameter in ( + request_path_task_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -155,17 +170,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -182,7 +197,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -198,8 +217,9 @@ def get_async_inference_task_v1_async_tasks_task_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( @@ -209,8 +229,7 @@ def get_async_inference_task_v1_async_tasks_task_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( @@ -220,8 +239,10 @@ def get_async_inference_task_v1_async_tasks_task_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_async_inference_task_v1_async_tasks_task_id_get( self, @@ -236,7 +257,7 @@ def get_async_inference_task_v1_async_tasks_task_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -251,8 +272,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -262,8 +284,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -273,8 +294,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -289,5 +312,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_async_tasks_task_id/get.pyi b/launch/api_client/paths/v1_async_tasks_task_id/get.pyi index c730023f..3e667842 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/get.pyi +++ b/launch/api_client/paths/v1_async_tasks_task_id/get.pyi @@ -6,42 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.get_async_task_v1_response import ( - GetAsyncTaskV1Response, -) + from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict +from launch_client.model.get_async_task_v1_response import GetAsyncTaskV1Response # Path params TaskIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'task_id': typing.Union[TaskIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "task_id": typing.Union[ - TaskIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_task_id = api_client.PathParameter( name="task_id", style=api_client.ParameterStyle.SIMPLE, @@ -50,33 +56,46 @@ request_path_task_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = GetAsyncTaskV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -87,7 +106,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, @@ -97,6 +119,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, @@ -105,7 +128,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -124,7 +151,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_task_id,): + for parameter in ( + request_path_task_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -132,17 +161,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -159,10 +188,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -174,7 +208,10 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( self, @@ -184,6 +221,7 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( self, @@ -192,7 +230,11 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_async_inference_task_v1_async_tasks_task_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -206,9 +248,10 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -220,7 +263,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -230,6 +276,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -238,7 +285,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -252,5 +303,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_batch_jobs/__init__.py b/launch/api_client/paths/v1_batch_jobs/__init__.py index 3d5cef58..65e727af 100644 --- a/launch/api_client/paths/v1_batch_jobs/__init__.py +++ b/launch/api_client/paths/v1_batch_jobs/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_BATCHJOBS +path = PathValues.V1_BATCHJOBS \ No newline at end of file diff --git a/launch/api_client/paths/v1_batch_jobs/post.py b/launch/api_client/paths/v1_batch_jobs/post.py index f8769488..75a0574e 100644 --- a/launch/api_client/paths/v1_batch_jobs/post.py +++ b/launch/api_client/paths/v1_batch_jobs/post.py @@ -6,28 +6,27 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.create_batch_job_v1_request import ( - CreateBatchJobV1Request, -) -from launch.api_client.model.create_batch_job_v1_response import ( - CreateBatchJobV1Response, -) + +from launch.api_client.model.create_batch_job_v1_response import CreateBatchJobV1Response +from launch.api_client.model.create_batch_job_v1_request import CreateBatchJobV1Request from launch.api_client.model.http_validation_error import HTTPValidationError from . import path @@ -38,12 +37,13 @@ request_body_create_batch_job_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = CreateBatchJobV1Response @@ -51,14 +51,17 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -67,21 +70,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -94,8 +102,9 @@ def _create_batch_job_v1_batch_jobs_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( @@ -106,8 +115,10 @@ def _create_batch_job_v1_batch_jobs_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( @@ -118,8 +129,7 @@ def _create_batch_job_v1_batch_jobs_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( @@ -130,13 +140,15 @@ def _create_batch_job_v1_batch_jobs_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _create_batch_job_v1_batch_jobs_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -154,23 +166,22 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_create_batch_job_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -189,7 +200,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -206,8 +221,9 @@ def create_batch_job_v1_batch_jobs_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def create_batch_job_v1_batch_jobs_post( @@ -218,8 +234,10 @@ def create_batch_job_v1_batch_jobs_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_batch_job_v1_batch_jobs_post( @@ -230,8 +248,7 @@ def create_batch_job_v1_batch_jobs_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def create_batch_job_v1_batch_jobs_post( @@ -242,13 +259,15 @@ def create_batch_job_v1_batch_jobs_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def create_batch_job_v1_batch_jobs_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -260,7 +279,7 @@ def create_batch_job_v1_batch_jobs_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -276,8 +295,9 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def post( @@ -288,8 +308,10 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( @@ -300,8 +322,7 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( @@ -312,13 +333,15 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -330,5 +353,7 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_batch_jobs/post.pyi b/launch/api_client/paths/v1_batch_jobs/post.pyi index 0f199580..7b84b5b8 100644 --- a/launch/api_client/paths/v1_batch_jobs/post.pyi +++ b/launch/api_client/paths/v1_batch_jobs/post.pyi @@ -6,67 +6,82 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.create_batch_job_v1_request import ( - CreateBatchJobV1Request, -) -from launch_client.model.create_batch_job_v1_response import ( - CreateBatchJobV1Response, -) + +from launch_client.model.create_batch_job_v1_response import CreateBatchJobV1Response +from launch_client.model.create_batch_job_v1_request import CreateBatchJobV1Request from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict # body param SchemaForRequestBodyApplicationJson = CreateBatchJobV1Request + request_body_create_batch_job_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateBatchJobV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -78,7 +93,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( self, @@ -88,7 +106,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( self, @@ -99,6 +121,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( self, @@ -108,11 +131,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _create_batch_job_v1_batch_jobs_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -130,23 +157,22 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_create_batch_job_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -165,10 +191,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class CreateBatchJobV1BatchJobsPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -181,7 +212,10 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_batch_job_v1_batch_jobs_post( self, @@ -191,7 +225,11 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def create_batch_job_v1_batch_jobs_post( self, @@ -202,6 +240,7 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def create_batch_job_v1_batch_jobs_post( self, @@ -211,11 +250,15 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def create_batch_job_v1_batch_jobs_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -227,9 +270,10 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -242,7 +286,10 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( self, @@ -252,7 +299,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def post( self, @@ -263,6 +314,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def post( self, @@ -272,11 +324,15 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -288,5 +344,7 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py index 3fa32eda..0acdf21c 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_BATCHJOBS_BATCH_JOB_ID +path = PathValues.V1_BATCHJOBS_BATCH_JOB_ID \ No newline at end of file diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py index f8a0cc74..d4b52f6f 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py @@ -6,25 +6,26 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.get_batch_job_v1_response import ( - GetBatchJobV1Response, -) + +from launch.api_client.model.get_batch_job_v1_response import GetBatchJobV1Response from launch.api_client.model.http_validation_error import HTTPValidationError from . import path @@ -32,15 +33,17 @@ # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "batch_job_id": typing.Union[ - BatchJobIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -54,7 +57,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = GetBatchJobV1Response @@ -62,14 +65,17 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -78,21 +84,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -104,8 +115,9 @@ def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( @@ -115,8 +127,7 @@ def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( @@ -126,8 +137,10 @@ def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, @@ -147,7 +160,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_batch_job_id,): + for parameter in ( + request_path_batch_job_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -155,17 +170,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -182,7 +197,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -198,8 +217,9 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( @@ -209,8 +229,7 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( @@ -220,8 +239,10 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_batch_job_v1_batch_jobs_batch_job_id_get( self, @@ -236,7 +257,7 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -251,8 +272,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -262,8 +284,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -273,8 +294,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -289,5 +312,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi index 2c9aba69..23da620e 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi @@ -6,40 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions + from launch_client.model.get_batch_job_v1_response import GetBatchJobV1Response from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "batch_job_id": typing.Union[ - BatchJobIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_batch_job_id = api_client.PathParameter( name="batch_job_id", style=api_client.ParameterStyle.SIMPLE, @@ -48,33 +56,46 @@ request_path_batch_job_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = GetBatchJobV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -85,7 +106,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, @@ -95,6 +119,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, @@ -103,7 +128,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -122,7 +151,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_batch_job_id,): + for parameter in ( + request_path_batch_job_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -130,17 +161,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -157,10 +188,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -172,7 +208,10 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( self, @@ -182,6 +221,7 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( self, @@ -190,7 +230,11 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_batch_job_v1_batch_jobs_batch_job_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -204,9 +248,10 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -218,7 +263,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -228,6 +276,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -236,7 +285,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -250,5 +303,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py index fdd87da6..f0cc38b4 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py @@ -6,44 +6,45 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions + from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.update_batch_job_v1_request import ( - UpdateBatchJobV1Request, -) -from launch.api_client.model.update_batch_job_v1_response import ( - UpdateBatchJobV1Response, -) +from launch.api_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response +from launch.api_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request from . import path # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "batch_job_id": typing.Union[ - BatchJobIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -62,12 +63,13 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): request_body_update_batch_job_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = UpdateBatchJobV1Response @@ -75,14 +77,17 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -91,21 +96,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -119,8 +129,9 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( @@ -132,8 +143,10 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( @@ -145,8 +158,7 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( @@ -158,13 +170,15 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -181,7 +195,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_batch_job_id,): + for parameter in ( + request_path_batch_job_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -189,29 +205,28 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_update_batch_job_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="put".upper(), + method='put'.upper(), headers=_headers, fields=_fields, body=_body, @@ -230,7 +245,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -248,8 +267,9 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( @@ -261,8 +281,10 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( @@ -274,8 +296,7 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( @@ -287,13 +308,15 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def update_batch_job_v1_batch_jobs_batch_job_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -307,7 +330,7 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -324,8 +347,9 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def put( @@ -337,8 +361,10 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def put( @@ -350,8 +376,7 @@ def put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def put( @@ -363,13 +388,15 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -383,5 +410,7 @@ def put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi index 65a06365..cf381c97 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi @@ -6,45 +6,49 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions + from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.update_batch_job_v1_request import ( - UpdateBatchJobV1Request, -) -from launch_client.model.update_batch_job_v1_response import ( - UpdateBatchJobV1Response, -) -from urllib3._collections import HTTPHeaderDict +from launch_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response +from launch_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "batch_job_id": typing.Union[ - BatchJobIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_batch_job_id = api_client.PathParameter( name="batch_job_id", style=api_client.ParameterStyle.SIMPLE, @@ -54,41 +58,56 @@ request_path_batch_job_id = api_client.PathParameter( # body param SchemaForRequestBodyApplicationJson = UpdateBatchJobV1Request + request_body_update_batch_job_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = UpdateBatchJobV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -101,7 +120,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, @@ -112,7 +134,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, @@ -124,6 +150,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, @@ -134,11 +161,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -155,7 +186,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_batch_job_id,): + for parameter in ( + request_path_batch_job_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -163,29 +196,28 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_update_batch_job_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="put".upper(), + method='put'.upper(), headers=_headers, fields=_fields, body=_body, @@ -204,10 +236,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -221,7 +258,10 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( self, @@ -232,7 +272,11 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( self, @@ -244,6 +288,7 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( self, @@ -254,11 +299,15 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def update_batch_job_v1_batch_jobs_batch_job_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -272,9 +321,10 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -288,7 +338,10 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def put( self, @@ -299,7 +352,11 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def put( self, @@ -311,6 +368,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def put( self, @@ -321,11 +379,15 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -339,5 +401,7 @@ class ApiForput(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles/__init__.py b/launch/api_client/paths/v1_model_bundles/__init__.py index 46bf5ae2..02168487 100644 --- a/launch/api_client/paths/v1_model_bundles/__init__.py +++ b/launch/api_client/paths/v1_model_bundles/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES +path = PathValues.V1_MODELBUNDLES \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_bundles/get.py b/launch/api_client/paths/v1_model_bundles/get.py index 4ed7d60d..dfeb1cdb 100644 --- a/launch/api_client/paths/v1_model_bundles/get.py +++ b/launch/api_client/paths/v1_model_bundles/get.py @@ -6,44 +6,46 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.list_model_bundles_v1_response import ( - ListModelBundlesV1Response, -) + from launch.api_client.model.model_bundle_order_by import ModelBundleOrderBy +from launch.api_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch.api_client.model.http_validation_error import HTTPValidationError from . import path # Query params ModelNameSchema = schemas.StrSchema OrderBySchema = ModelBundleOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) +RequestRequiredQueryParams = typing_extensions.TypedDict( + 'RequestRequiredQueryParams', + { + } +) RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", + 'RequestOptionalQueryParams', { - "model_name": typing.Union[ - ModelNameSchema, - str, - ], - "order_by": typing.Union[OrderBySchema,], + 'model_name': typing.Union[ModelNameSchema, str, ], + 'order_by': typing.Union[OrderBySchema, ], }, - total=False, + total=False ) @@ -64,7 +66,7 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = ListModelBundlesV1Response @@ -72,14 +74,17 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -88,21 +93,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -114,8 +124,9 @@ def _list_model_bundles_v1_model_bundles_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( @@ -125,8 +136,7 @@ def _list_model_bundles_v1_model_bundles_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( @@ -136,8 +146,10 @@ def _list_model_bundles_v1_model_bundles_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _list_model_bundles_v1_model_bundles_get_oapg( self, @@ -174,11 +186,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -195,7 +207,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -211,8 +227,9 @@ def list_model_bundles_v1_model_bundles_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def list_model_bundles_v1_model_bundles_get( @@ -222,8 +239,7 @@ def list_model_bundles_v1_model_bundles_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def list_model_bundles_v1_model_bundles_get( @@ -233,8 +249,10 @@ def list_model_bundles_v1_model_bundles_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def list_model_bundles_v1_model_bundles_get( self, @@ -249,7 +267,7 @@ def list_model_bundles_v1_model_bundles_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -264,8 +282,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -275,8 +294,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -286,8 +304,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -302,5 +322,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles/get.pyi b/launch/api_client/paths/v1_model_bundles/get.pyi index 2d2cf510..b912a1ef 100644 --- a/launch/api_client/paths/v1_model_bundles/get.pyi +++ b/launch/api_client/paths/v1_model_bundles/get.pyi @@ -6,46 +6,51 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.list_model_bundles_v1_response import ( - ListModelBundlesV1Response, -) + from launch_client.model.model_bundle_order_by import ModelBundleOrderBy -from urllib3._collections import HTTPHeaderDict +from launch_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch_client.model.http_validation_error import HTTPValidationError # Query params ModelNameSchema = schemas.StrSchema OrderBySchema = ModelBundleOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) +RequestRequiredQueryParams = typing_extensions.TypedDict( + 'RequestRequiredQueryParams', + { + } +) RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", + 'RequestOptionalQueryParams', { - "model_name": typing.Union[ - ModelNameSchema, - str, - ], - "order_by": typing.Union[OrderBySchema,], + 'model_name': typing.Union[ModelNameSchema, str, ], + 'order_by': typing.Union[OrderBySchema, ], }, - total=False, + total=False ) + class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass + request_query_model_name = api_client.QueryParameter( name="model_name", style=api_client.ParameterStyle.FORM, @@ -60,33 +65,46 @@ request_query_order_by = api_client.QueryParameter( ) SchemaFor200ResponseBodyApplicationJson = ListModelBundlesV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -97,7 +115,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( self, @@ -107,6 +128,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( self, @@ -115,7 +137,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _list_model_bundles_v1_model_bundles_get_oapg( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -151,11 +177,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -172,10 +198,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class ListModelBundlesV1ModelBundlesGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -187,7 +218,10 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def list_model_bundles_v1_model_bundles_get( self, @@ -197,6 +231,7 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def list_model_bundles_v1_model_bundles_get( self, @@ -205,7 +240,11 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def list_model_bundles_v1_model_bundles_get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -219,9 +258,10 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -233,7 +273,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -243,6 +286,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -251,7 +295,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -265,5 +313,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles/post.py b/launch/api_client/paths/v1_model_bundles/post.py index c850d079..69f5290e 100644 --- a/launch/api_client/paths/v1_model_bundles/post.py +++ b/launch/api_client/paths/v1_model_bundles/post.py @@ -6,29 +6,28 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.create_model_bundle_v1_request import ( - CreateModelBundleV1Request, -) -from launch.api_client.model.create_model_bundle_v1_response import ( - CreateModelBundleV1Response, -) + +from launch.api_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response from . import path @@ -38,12 +37,13 @@ request_body_create_model_bundle_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response @@ -51,14 +51,17 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -67,21 +70,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -94,8 +102,9 @@ def _create_model_bundle_v1_model_bundles_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( @@ -106,8 +115,10 @@ def _create_model_bundle_v1_model_bundles_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( @@ -118,8 +129,7 @@ def _create_model_bundle_v1_model_bundles_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( @@ -130,13 +140,15 @@ def _create_model_bundle_v1_model_bundles_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _create_model_bundle_v1_model_bundles_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -154,23 +166,22 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_create_model_bundle_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -189,7 +200,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -206,8 +221,9 @@ def create_model_bundle_v1_model_bundles_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def create_model_bundle_v1_model_bundles_post( @@ -218,8 +234,10 @@ def create_model_bundle_v1_model_bundles_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_model_bundle_v1_model_bundles_post( @@ -230,8 +248,7 @@ def create_model_bundle_v1_model_bundles_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def create_model_bundle_v1_model_bundles_post( @@ -242,13 +259,15 @@ def create_model_bundle_v1_model_bundles_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def create_model_bundle_v1_model_bundles_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -260,7 +279,7 @@ def create_model_bundle_v1_model_bundles_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -276,8 +295,9 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def post( @@ -288,8 +308,10 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( @@ -300,8 +322,7 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( @@ -312,13 +333,15 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -330,5 +353,7 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles/post.pyi b/launch/api_client/paths/v1_model_bundles/post.pyi index 780b6144..552173d6 100644 --- a/launch/api_client/paths/v1_model_bundles/post.pyi +++ b/launch/api_client/paths/v1_model_bundles/post.pyi @@ -6,67 +6,82 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.create_model_bundle_v1_request import ( - CreateModelBundleV1Request, -) -from launch_client.model.create_model_bundle_v1_response import ( - CreateModelBundleV1Response, -) + +from launch_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict +from launch_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response # body param SchemaForRequestBodyApplicationJson = CreateModelBundleV1Request + request_body_create_model_bundle_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -78,7 +93,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( self, @@ -88,7 +106,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( self, @@ -99,6 +121,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( self, @@ -108,11 +131,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _create_model_bundle_v1_model_bundles_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -130,23 +157,22 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_create_model_bundle_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -165,10 +191,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class CreateModelBundleV1ModelBundlesPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -181,7 +212,10 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_model_bundle_v1_model_bundles_post( self, @@ -191,7 +225,11 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def create_model_bundle_v1_model_bundles_post( self, @@ -202,6 +240,7 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def create_model_bundle_v1_model_bundles_post( self, @@ -211,11 +250,15 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def create_model_bundle_v1_model_bundles_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -227,9 +270,10 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -242,7 +286,10 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( self, @@ -252,7 +299,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def post( self, @@ -263,6 +314,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def post( self, @@ -272,11 +324,15 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -288,5 +344,7 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py b/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py index 35511bd5..b5c960ff 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES_CLONEWITHCHANGES +path = PathValues.V1_MODELBUNDLES_CLONEWITHCHANGES \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py index d6665999..ce1d294b 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py @@ -6,29 +6,28 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.clone_model_bundle_v1_request import ( - CloneModelBundleV1Request, -) -from launch.api_client.model.create_model_bundle_v1_response import ( - CreateModelBundleV1Response, -) + from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch.api_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request from . import path @@ -38,12 +37,13 @@ request_body_clone_model_bundle_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response @@ -51,14 +51,17 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -67,21 +70,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -94,8 +102,9 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( @@ -106,8 +115,10 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( @@ -118,8 +129,7 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( @@ -130,13 +140,15 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -154,23 +166,22 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_clone_model_bundle_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -189,7 +200,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -206,8 +221,9 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( @@ -218,8 +234,10 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( @@ -230,8 +248,7 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( @@ -242,13 +259,15 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -260,7 +279,7 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -276,8 +295,9 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def post( @@ -288,8 +308,10 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( @@ -300,8 +322,7 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( @@ -312,13 +333,15 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -330,5 +353,7 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi index 550e5780..4a15bd23 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi @@ -6,67 +6,82 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.clone_model_bundle_v1_request import ( - CloneModelBundleV1Request, -) -from launch_client.model.create_model_bundle_v1_response import ( - CreateModelBundleV1Response, -) + from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict +from launch_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request # body param SchemaForRequestBodyApplicationJson = CloneModelBundleV1Request + request_body_clone_model_bundle_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -78,7 +93,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, @@ -88,7 +106,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, @@ -99,6 +121,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, @@ -108,11 +131,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -130,23 +157,22 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_clone_model_bundle_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -165,10 +191,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -181,7 +212,10 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, @@ -191,7 +225,11 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, @@ -202,6 +240,7 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, @@ -211,11 +250,15 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -227,9 +270,10 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -242,7 +286,10 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( self, @@ -252,7 +299,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def post( self, @@ -263,6 +314,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def post( self, @@ -272,11 +324,15 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -288,5 +344,7 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles_latest/__init__.py b/launch/api_client/paths/v1_model_bundles_latest/__init__.py index b5e54b32..e8834ca7 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/__init__.py +++ b/launch/api_client/paths/v1_model_bundles_latest/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES_LATEST +path = PathValues.V1_MODELBUNDLES_LATEST \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_bundles_latest/get.py b/launch/api_client/paths/v1_model_bundles_latest/get.py index e4397a5a..1cde5141 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/get.py +++ b/launch/api_client/paths/v1_model_bundles_latest/get.py @@ -6,41 +6,44 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions + +from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.model_bundle_v1_response import ( - ModelBundleV1Response, -) from . import path # Query params ModelNameSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - "RequestRequiredQueryParams", + 'RequestRequiredQueryParams', + { + 'model_name': typing.Union[ModelNameSchema, str, ], + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', { - "model_name": typing.Union[ - ModelNameSchema, - str, - ], }, + total=False ) -RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): @@ -55,7 +58,7 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response @@ -63,14 +66,17 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -79,21 +85,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -105,8 +116,9 @@ def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( @@ -116,8 +128,7 @@ def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( @@ -127,8 +138,10 @@ def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, @@ -148,7 +161,9 @@ class instances used_path = path.value prefix_separator_iterator = None - for parameter in (request_query_model_name,): + for parameter in ( + request_query_model_name, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -162,11 +177,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -183,7 +198,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -199,8 +218,9 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( @@ -210,8 +230,7 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( @@ -221,8 +240,10 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_latest_model_bundle_v1_model_bundles_latest_get( self, @@ -237,7 +258,7 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -252,8 +273,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -263,8 +285,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -274,8 +295,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -290,5 +313,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles_latest/get.pyi b/launch/api_client/paths/v1_model_bundles_latest/get.pyi index bacb33b7..6bd40f45 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/get.pyi +++ b/launch/api_client/paths/v1_model_bundles_latest/get.pyi @@ -6,40 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.http_validation_error import HTTPValidationError + from launch_client.model.model_bundle_v1_response import ModelBundleV1Response -from urllib3._collections import HTTPHeaderDict +from launch_client.model.http_validation_error import HTTPValidationError # Query params ModelNameSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - "RequestRequiredQueryParams", + 'RequestRequiredQueryParams', + { + 'model_name': typing.Union[ModelNameSchema, str, ], + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', { - "model_name": typing.Union[ - ModelNameSchema, - str, - ], }, + total=False ) -RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) + class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass + request_query_model_name = api_client.QueryParameter( name="model_name", style=api_client.ParameterStyle.FORM, @@ -49,33 +57,46 @@ request_query_model_name = api_client.QueryParameter( ) SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -86,7 +107,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, @@ -96,6 +120,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, @@ -104,7 +129,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -123,7 +152,9 @@ class BaseApi(api_client.Api): used_path = path.value prefix_separator_iterator = None - for parameter in (request_query_model_name,): + for parameter in ( + request_query_model_name, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -137,11 +168,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -158,10 +189,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -173,7 +209,10 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( self, @@ -183,6 +222,7 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( self, @@ -191,7 +231,11 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_latest_model_bundle_v1_model_bundles_latest_get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -205,9 +249,10 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -219,7 +264,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -229,6 +277,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -237,7 +286,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -251,5 +304,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py b/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py index d3532d3a..aeafa82e 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES_MODEL_BUNDLE_ID +path = PathValues.V1_MODELBUNDLES_MODEL_BUNDLE_ID \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py index f79165c8..638fe89d 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py @@ -6,41 +6,44 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions + +from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.model_bundle_v1_response import ( - ModelBundleV1Response, -) from . import path # Path params ModelBundleIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_bundle_id': typing.Union[ModelBundleIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_bundle_id": typing.Union[ - ModelBundleIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -54,7 +57,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response @@ -62,14 +65,17 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -78,21 +84,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -104,8 +115,9 @@ def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( @@ -115,8 +127,7 @@ def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( @@ -126,8 +137,10 @@ def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, @@ -147,7 +160,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_model_bundle_id,): + for parameter in ( + request_path_model_bundle_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -155,17 +170,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -182,7 +197,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -198,8 +217,9 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( @@ -209,8 +229,7 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( @@ -220,8 +239,10 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, @@ -236,7 +257,7 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -251,8 +272,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -262,8 +284,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -273,8 +294,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -289,5 +312,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi index 4af810ea..6053dffd 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi @@ -6,40 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.http_validation_error import HTTPValidationError + from launch_client.model.model_bundle_v1_response import ModelBundleV1Response -from urllib3._collections import HTTPHeaderDict +from launch_client.model.http_validation_error import HTTPValidationError # Path params ModelBundleIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_bundle_id': typing.Union[ModelBundleIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_bundle_id": typing.Union[ - ModelBundleIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_model_bundle_id = api_client.PathParameter( name="model_bundle_id", style=api_client.ParameterStyle.SIMPLE, @@ -48,33 +56,46 @@ request_path_model_bundle_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -85,7 +106,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, @@ -95,6 +119,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, @@ -103,7 +128,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -122,7 +151,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_model_bundle_id,): + for parameter in ( + request_path_model_bundle_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -130,17 +161,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -157,10 +188,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -172,7 +208,10 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, @@ -182,6 +221,7 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, @@ -190,7 +230,11 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -204,9 +248,10 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -218,7 +263,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -228,6 +276,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -236,7 +285,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -250,5 +303,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints/__init__.py b/launch/api_client/paths/v1_model_endpoints/__init__.py index f58f6045..63a2873d 100644 --- a/launch/api_client/paths/v1_model_endpoints/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTS +path = PathValues.V1_MODELENDPOINTS \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_endpoints/get.py b/launch/api_client/paths/v1_model_endpoints/get.py index e572a293..d61dd75c 100644 --- a/launch/api_client/paths/v1_model_endpoints/get.py +++ b/launch/api_client/paths/v1_model_endpoints/get.py @@ -6,46 +6,46 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions + +from launch.api_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.list_model_endpoints_v1_response import ( - ListModelEndpointsV1Response, -) -from launch.api_client.model.model_endpoint_order_by import ( - ModelEndpointOrderBy, -) +from launch.api_client.model.model_endpoint_order_by import ModelEndpointOrderBy from . import path # Query params NameSchema = schemas.StrSchema OrderBySchema = ModelEndpointOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) +RequestRequiredQueryParams = typing_extensions.TypedDict( + 'RequestRequiredQueryParams', + { + } +) RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", + 'RequestOptionalQueryParams', { - "name": typing.Union[ - NameSchema, - str, - ], - "order_by": typing.Union[OrderBySchema,], + 'name': typing.Union[NameSchema, str, ], + 'order_by': typing.Union[OrderBySchema, ], }, - total=False, + total=False ) @@ -66,7 +66,7 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = ListModelEndpointsV1Response @@ -74,14 +74,17 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -90,21 +93,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -116,8 +124,9 @@ def _list_model_endpoints_v1_model_endpoints_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( @@ -127,8 +136,7 @@ def _list_model_endpoints_v1_model_endpoints_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( @@ -138,8 +146,10 @@ def _list_model_endpoints_v1_model_endpoints_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _list_model_endpoints_v1_model_endpoints_get_oapg( self, @@ -176,11 +186,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -197,7 +207,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -213,8 +227,9 @@ def list_model_endpoints_v1_model_endpoints_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def list_model_endpoints_v1_model_endpoints_get( @@ -224,8 +239,7 @@ def list_model_endpoints_v1_model_endpoints_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def list_model_endpoints_v1_model_endpoints_get( @@ -235,8 +249,10 @@ def list_model_endpoints_v1_model_endpoints_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def list_model_endpoints_v1_model_endpoints_get( self, @@ -251,7 +267,7 @@ def list_model_endpoints_v1_model_endpoints_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -266,8 +282,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -277,8 +294,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -288,8 +304,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -304,5 +322,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints/get.pyi b/launch/api_client/paths/v1_model_endpoints/get.pyi index fea7a870..ba836ff4 100644 --- a/launch/api_client/paths/v1_model_endpoints/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints/get.pyi @@ -6,46 +6,51 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions + +from launch_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.list_model_endpoints_v1_response import ( - ListModelEndpointsV1Response, -) from launch_client.model.model_endpoint_order_by import ModelEndpointOrderBy -from urllib3._collections import HTTPHeaderDict # Query params NameSchema = schemas.StrSchema OrderBySchema = ModelEndpointOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) +RequestRequiredQueryParams = typing_extensions.TypedDict( + 'RequestRequiredQueryParams', + { + } +) RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", + 'RequestOptionalQueryParams', { - "name": typing.Union[ - NameSchema, - str, - ], - "order_by": typing.Union[OrderBySchema,], + 'name': typing.Union[NameSchema, str, ], + 'order_by': typing.Union[OrderBySchema, ], }, - total=False, + total=False ) + class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass + request_query_name = api_client.QueryParameter( name="name", style=api_client.ParameterStyle.FORM, @@ -60,33 +65,46 @@ request_query_order_by = api_client.QueryParameter( ) SchemaFor200ResponseBodyApplicationJson = ListModelEndpointsV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -97,7 +115,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( self, @@ -107,6 +128,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( self, @@ -115,7 +137,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _list_model_endpoints_v1_model_endpoints_get_oapg( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -151,11 +177,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -172,10 +198,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class ListModelEndpointsV1ModelEndpointsGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -187,7 +218,10 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def list_model_endpoints_v1_model_endpoints_get( self, @@ -197,6 +231,7 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def list_model_endpoints_v1_model_endpoints_get( self, @@ -205,7 +240,11 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def list_model_endpoints_v1_model_endpoints_get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -219,9 +258,10 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -233,7 +273,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -243,6 +286,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -251,7 +295,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -265,5 +313,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints/post.py b/launch/api_client/paths/v1_model_endpoints/post.py index 99b4a96e..6daab4f2 100644 --- a/launch/api_client/paths/v1_model_endpoints/post.py +++ b/launch/api_client/paths/v1_model_endpoints/post.py @@ -6,28 +6,27 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.create_model_endpoint_v1_request import ( - CreateModelEndpointV1Request, -) -from launch.api_client.model.create_model_endpoint_v1_response import ( - CreateModelEndpointV1Response, -) + +from launch.api_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response +from launch.api_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request from launch.api_client.model.http_validation_error import HTTPValidationError from . import path @@ -38,12 +37,13 @@ request_body_create_model_endpoint_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = CreateModelEndpointV1Response @@ -51,14 +51,17 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -67,21 +70,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -94,8 +102,9 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( @@ -106,8 +115,10 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( @@ -118,8 +129,7 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( @@ -130,13 +140,15 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _create_model_endpoint_v1_model_endpoints_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -154,23 +166,22 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_create_model_endpoint_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -189,7 +200,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -206,8 +221,9 @@ def create_model_endpoint_v1_model_endpoints_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( @@ -218,8 +234,10 @@ def create_model_endpoint_v1_model_endpoints_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_model_endpoint_v1_model_endpoints_post( @@ -230,8 +248,7 @@ def create_model_endpoint_v1_model_endpoints_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( @@ -242,13 +259,15 @@ def create_model_endpoint_v1_model_endpoints_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def create_model_endpoint_v1_model_endpoints_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -260,7 +279,7 @@ def create_model_endpoint_v1_model_endpoints_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -276,8 +295,9 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def post( @@ -288,8 +308,10 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( @@ -300,8 +322,7 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( @@ -312,13 +333,15 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -330,5 +353,7 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints/post.pyi b/launch/api_client/paths/v1_model_endpoints/post.pyi index 2af825d6..ede948a4 100644 --- a/launch/api_client/paths/v1_model_endpoints/post.pyi +++ b/launch/api_client/paths/v1_model_endpoints/post.pyi @@ -6,67 +6,82 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.create_model_endpoint_v1_request import ( - CreateModelEndpointV1Request, -) -from launch_client.model.create_model_endpoint_v1_response import ( - CreateModelEndpointV1Response, -) + +from launch_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response +from launch_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict # body param SchemaForRequestBodyApplicationJson = CreateModelEndpointV1Request + request_body_create_model_endpoint_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateModelEndpointV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -78,7 +93,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( self, @@ -88,7 +106,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( self, @@ -99,6 +121,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( self, @@ -108,11 +131,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _create_model_endpoint_v1_model_endpoints_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -130,23 +157,22 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_create_model_endpoint_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -165,10 +191,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class CreateModelEndpointV1ModelEndpointsPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -181,7 +212,10 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_model_endpoint_v1_model_endpoints_post( self, @@ -191,7 +225,11 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def create_model_endpoint_v1_model_endpoints_post( self, @@ -202,6 +240,7 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def create_model_endpoint_v1_model_endpoints_post( self, @@ -211,11 +250,15 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def create_model_endpoint_v1_model_endpoints_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -227,9 +270,10 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -242,7 +286,10 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( self, @@ -252,7 +299,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def post( self, @@ -263,6 +314,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def post( self, @@ -272,11 +324,15 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -288,5 +344,7 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_api/__init__.py b/launch/api_client/paths/v1_model_endpoints_api/__init__.py index c4f1910d..69585e08 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints_api/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTSAPI +path = PathValues.V1_MODELENDPOINTSAPI \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_endpoints_api/get.py b/launch/api_client/paths/v1_model_endpoints_api/get.py index d46a8f06..b6d33bc2 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/get.py +++ b/launch/api_client/paths/v1_model_endpoints_api/get.py @@ -6,27 +6,29 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions from . import path _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @@ -34,20 +36,25 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, + '200': _response_for_200, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -58,8 +65,9 @@ def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( @@ -68,8 +76,7 @@ def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( @@ -78,8 +85,10 @@ def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, @@ -100,11 +109,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -121,7 +130,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -136,8 +149,9 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( @@ -146,8 +160,7 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( @@ -156,8 +169,10 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_model_endpoints_api_v1_model_endpoints_api_get( self, @@ -170,7 +185,7 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -184,8 +199,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -194,8 +210,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -204,8 +219,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -218,5 +235,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_api/get.pyi b/launch/api_client/paths/v1_model_endpoints_api/get.pyi index a95a6348..c2bd2937 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_api/get.pyi @@ -6,37 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -46,7 +57,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, @@ -55,6 +69,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, @@ -62,7 +77,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -82,11 +101,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -103,10 +122,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -117,7 +141,10 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( self, @@ -126,6 +153,7 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( self, @@ -133,7 +161,11 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_model_endpoints_api_v1_model_endpoints_api_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -145,9 +177,10 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -158,7 +191,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -167,6 +203,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -174,7 +211,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -186,5 +227,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py index fb6cdf7c..e382b4ff 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID +path = PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py index 3add1108..4968608b 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py @@ -6,25 +6,26 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.delete_model_endpoint_v1_response import ( - DeleteModelEndpointV1Response, -) + +from launch.api_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response from launch.api_client.model.http_validation_error import HTTPValidationError from . import path @@ -32,15 +33,17 @@ # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -54,7 +57,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = DeleteModelEndpointV1Response @@ -62,14 +65,17 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -78,21 +84,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -104,8 +115,9 @@ def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( @@ -115,8 +127,7 @@ def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( @@ -126,8 +137,10 @@ def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, @@ -147,7 +160,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_model_endpoint_id,): + for parameter in ( + request_path_model_endpoint_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -155,17 +170,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="delete".upper(), + method='delete'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -182,7 +197,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -198,8 +217,9 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( @@ -209,8 +229,7 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( @@ -220,8 +239,10 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, @@ -236,7 +257,7 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -251,8 +272,9 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def delete( @@ -262,8 +284,7 @@ def delete( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def delete( @@ -273,8 +294,10 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def delete( self, @@ -289,5 +312,7 @@ def delete( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi index 07bbc190..70c4cda2 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi @@ -6,42 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.delete_model_endpoint_v1_response import ( - DeleteModelEndpointV1Response, -) + +from launch_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_model_endpoint_id = api_client.PathParameter( name="model_endpoint_id", style=api_client.ParameterStyle.SIMPLE, @@ -50,33 +56,46 @@ request_path_model_endpoint_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = DeleteModelEndpointV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -87,7 +106,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, @@ -97,6 +119,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, @@ -105,7 +128,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -124,7 +151,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_model_endpoint_id,): + for parameter in ( + request_path_model_endpoint_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -132,17 +161,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="delete".upper(), + method='delete'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -159,10 +188,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -174,7 +208,10 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, @@ -184,6 +221,7 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, @@ -192,7 +230,11 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -206,9 +248,10 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -220,7 +263,10 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def delete( self, @@ -230,6 +276,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def delete( self, @@ -238,7 +285,11 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def delete( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -252,5 +303,7 @@ class ApiFordelete(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py index daa30f01..94382ce9 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py @@ -6,25 +6,26 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.get_model_endpoint_v1_response import ( - GetModelEndpointV1Response, -) + +from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response from launch.api_client.model.http_validation_error import HTTPValidationError from . import path @@ -32,15 +33,17 @@ # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -54,7 +57,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = GetModelEndpointV1Response @@ -62,14 +65,17 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -78,21 +84,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -104,8 +115,9 @@ def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( @@ -115,8 +127,7 @@ def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( @@ -126,8 +137,10 @@ def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, @@ -147,7 +160,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_model_endpoint_id,): + for parameter in ( + request_path_model_endpoint_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -155,17 +170,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -182,7 +197,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -198,8 +217,9 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( @@ -209,8 +229,7 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( @@ -220,8 +239,10 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, @@ -236,7 +257,7 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -251,8 +272,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -262,8 +284,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -273,8 +294,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -289,5 +312,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi index 1c74f794..1538b496 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi @@ -6,42 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.get_model_endpoint_v1_response import ( - GetModelEndpointV1Response, -) + +from launch_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response from launch_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_model_endpoint_id = api_client.PathParameter( name="model_endpoint_id", style=api_client.ParameterStyle.SIMPLE, @@ -50,33 +56,46 @@ request_path_model_endpoint_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = GetModelEndpointV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -87,7 +106,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, @@ -97,6 +119,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, @@ -105,7 +128,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -124,7 +151,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_model_endpoint_id,): + for parameter in ( + request_path_model_endpoint_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -132,17 +161,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -159,10 +188,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -174,7 +208,10 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, @@ -184,6 +221,7 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, @@ -192,7 +230,11 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -206,9 +248,10 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -220,7 +263,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -230,6 +276,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -238,7 +285,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -252,5 +303,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py index 6c1e4cf4..3d96a934 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py @@ -6,44 +6,45 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions + +from launch.api_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.update_model_endpoint_v1_request import ( - UpdateModelEndpointV1Request, -) -from launch.api_client.model.update_model_endpoint_v1_response import ( - UpdateModelEndpointV1Response, -) +from launch.api_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request from . import path # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -62,12 +63,13 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): request_body_update_model_endpoint_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = UpdateModelEndpointV1Response @@ -75,14 +77,17 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -91,21 +96,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -119,8 +129,9 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( @@ -132,8 +143,10 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( @@ -145,8 +158,7 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( @@ -158,13 +170,15 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -181,7 +195,9 @@ class instances used_path = path.value _path_params = {} - for parameter in (request_path_model_endpoint_id,): + for parameter in ( + request_path_model_endpoint_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -189,29 +205,28 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_update_model_endpoint_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="put".upper(), + method='put'.upper(), headers=_headers, fields=_fields, body=_body, @@ -230,7 +245,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -248,8 +267,9 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( @@ -261,8 +281,10 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( @@ -274,8 +296,7 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( @@ -287,13 +308,15 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -307,7 +330,7 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -324,8 +347,9 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def put( @@ -337,8 +361,10 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def put( @@ -350,8 +376,7 @@ def put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def put( @@ -363,13 +388,15 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -383,5 +410,7 @@ def put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi index 60495b21..0012df0a 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi @@ -6,45 +6,49 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions + +from launch_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.update_model_endpoint_v1_request import ( - UpdateModelEndpointV1Request, -) -from launch_client.model.update_model_endpoint_v1_response import ( - UpdateModelEndpointV1Response, -) -from urllib3._collections import HTTPHeaderDict +from launch_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - "RequestRequiredPathParams", + 'RequestRequiredPathParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalPathParams = typing_extensions.TypedDict( + 'RequestOptionalPathParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) + class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass + request_path_model_endpoint_id = api_client.PathParameter( name="model_endpoint_id", style=api_client.ParameterStyle.SIMPLE, @@ -54,41 +58,56 @@ request_path_model_endpoint_id = api_client.PathParameter( # body param SchemaForRequestBodyApplicationJson = UpdateModelEndpointV1Request + request_body_update_model_endpoint_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = UpdateModelEndpointV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -101,7 +120,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, @@ -112,7 +134,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, @@ -124,6 +150,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, @@ -134,11 +161,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -155,7 +186,9 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in (request_path_model_endpoint_id,): + for parameter in ( + request_path_model_endpoint_id, + ): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -163,29 +196,28 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace("{%s}" % k, v) + used_path = used_path.replace('{%s}' % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_update_model_endpoint_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="put".upper(), + method='put'.upper(), headers=_headers, fields=_fields, body=_body, @@ -204,10 +236,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -221,7 +258,10 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, @@ -232,7 +272,11 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, @@ -244,6 +288,7 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, @@ -254,11 +299,15 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -272,9 +321,10 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -288,7 +338,10 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def put( self, @@ -299,7 +352,11 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def put( self, @@ -311,6 +368,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def put( self, @@ -321,11 +379,15 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -339,5 +401,7 @@ class ApiForput(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py b/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py index 4dd4f68d..bbefa10f 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTSSCHEMA_JSON +path = PathValues.V1_MODELENDPOINTSSCHEMA_JSON \ No newline at end of file diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/get.py b/launch/api_client/paths/v1_model_endpoints_schema_json/get.py index 2cba49a7..8c24a455 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/get.py +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/get.py @@ -6,27 +6,29 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions from . import path _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @@ -34,20 +36,25 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, + '200': _response_for_200, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -58,8 +65,9 @@ def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( @@ -68,8 +76,7 @@ def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( @@ -78,8 +85,10 @@ def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, @@ -100,11 +109,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -121,7 +130,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -136,8 +149,9 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( @@ -146,8 +160,7 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( @@ -156,8 +169,10 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, @@ -170,7 +185,7 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -184,8 +199,9 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def get( @@ -194,8 +210,7 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def get( @@ -204,8 +219,10 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def get( self, @@ -218,5 +235,7 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi b/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi index 25adcc5f..780a5c95 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi @@ -6,37 +6,48 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -46,7 +57,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, @@ -55,6 +69,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, @@ -62,7 +77,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -82,11 +101,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method="get".upper(), + method='get'.upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -103,10 +122,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -117,7 +141,10 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, @@ -126,6 +153,7 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, @@ -133,7 +161,11 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -145,9 +177,10 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -158,7 +191,10 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def get( self, @@ -167,6 +203,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def get( self, @@ -174,7 +211,11 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -186,5 +227,7 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_sync_tasks/__init__.py b/launch/api_client/paths/v1_sync_tasks/__init__.py index e05b06c3..0ad403fe 100644 --- a/launch/api_client/paths/v1_sync_tasks/__init__.py +++ b/launch/api_client/paths/v1_sync_tasks/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_SYNCTASKS +path = PathValues.V1_SYNCTASKS \ No newline at end of file diff --git a/launch/api_client/paths/v1_sync_tasks/post.py b/launch/api_client/paths/v1_sync_tasks/post.py index 50fbe602..590fc5b5 100644 --- a/launch/api_client/paths/v1_sync_tasks/post.py +++ b/launch/api_client/paths/v1_sync_tasks/post.py @@ -6,44 +6,45 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch.api_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 -from urllib3._collections import HTTPHeaderDict from launch.api_client import schemas # noqa: F401 -from launch.api_client import api_client, exceptions -from launch.api_client.model.endpoint_predict_v1_request import ( - EndpointPredictV1Request, -) + +from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.sync_endpoint_predict_v1_response import ( - SyncEndpointPredictV1Response, -) +from launch.api_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response from . import path # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - "RequestRequiredQueryParams", + 'RequestRequiredQueryParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): @@ -63,12 +64,13 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - "HTTPBasic", + 'HTTPBasic', ] SchemaFor200ResponseBodyApplicationJson = SyncEndpointPredictV1Response @@ -76,14 +78,17 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -92,21 +97,26 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - "200": _response_for_200, - "422": _response_for_422, + '200': _response_for_200, + '422': _response_for_422, } -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) class BaseApi(api_client.Api): @@ -120,8 +130,9 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( @@ -133,8 +144,10 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( @@ -146,8 +159,7 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( @@ -159,13 +171,15 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -182,7 +196,9 @@ class instances used_path = path.value prefix_separator_iterator = None - for parameter in (request_query_model_endpoint_id,): + for parameter in ( + request_query_model_endpoint_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -196,23 +212,22 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -231,7 +246,11 @@ class instances api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response @@ -249,8 +268,9 @@ def create_sync_inference_task_v1_sync_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( @@ -262,8 +282,10 @@ def create_sync_inference_task_v1_sync_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_sync_inference_task_v1_sync_tasks_post( @@ -275,8 +297,7 @@ def create_sync_inference_task_v1_sync_tasks_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( @@ -288,13 +309,15 @@ def create_sync_inference_task_v1_sync_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def create_sync_inference_task_v1_sync_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -308,7 +331,7 @@ def create_sync_inference_task_v1_sync_tasks_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) @@ -325,8 +348,9 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... @typing.overload def post( @@ -338,8 +362,10 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( @@ -351,8 +377,7 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: - ... + ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( @@ -364,13 +389,15 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: - ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -384,5 +411,7 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/paths/v1_sync_tasks/post.pyi b/launch/api_client/paths/v1_sync_tasks/post.pyi index b1e97f28..1802b388 100644 --- a/launch/api_client/paths/v1_sync_tasks/post.pyi +++ b/launch/api_client/paths/v1_sync_tasks/post.pyi @@ -6,45 +6,49 @@ Generated by: https://openapi-generator.tech """ +from dataclasses import dataclass +import typing_extensions +import urllib3 +from urllib3._collections import HTTPHeaderDict + +from launch_client import api_client, exceptions +from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 +import typing_extensions # noqa: F401 import uuid # noqa: F401 -from dataclasses import dataclass -from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 -import typing_extensions # noqa: F401 -import urllib3 + from launch_client import schemas # noqa: F401 -from launch_client import api_client, exceptions -from launch_client.model.endpoint_predict_v1_request import ( - EndpointPredictV1Request, -) + +from launch_client.model.endpoint_predict_v1_request import EndpointPredictV1Request from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.sync_endpoint_predict_v1_response import ( - SyncEndpointPredictV1Response, -) -from urllib3._collections import HTTPHeaderDict +from launch_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - "RequestRequiredQueryParams", + 'RequestRequiredQueryParams', + { + 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], + } +) +RequestOptionalQueryParams = typing_extensions.TypedDict( + 'RequestOptionalQueryParams', { - "model_endpoint_id": typing.Union[ - ModelEndpointIdSchema, - str, - ], }, + total=False ) -RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) + class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass + request_query_model_endpoint_id = api_client.QueryParameter( name="model_endpoint_id", style=api_client.ParameterStyle.FORM, @@ -55,41 +59,56 @@ request_query_model_endpoint_id = api_client.QueryParameter( # body param SchemaForRequestBodyApplicationJson = EndpointPredictV1Request + request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = SyncEndpointPredictV1Response + @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor200ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError + @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] + body: typing.Union[ + SchemaFor422ResponseBodyApplicationJson, + ] headers: schemas.Unset = schemas.unset + _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), + 'application/json': api_client.MediaType( + schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ("application/json",) +_all_accept_content_types = ( + 'application/json', +) + class BaseApi(api_client.Api): @typing.overload @@ -102,7 +121,10 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, @@ -113,7 +135,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, @@ -125,6 +151,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, @@ -135,11 +162,15 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -156,7 +187,9 @@ class BaseApi(api_client.Api): used_path = path.value prefix_separator_iterator = None - for parameter in (request_query_model_endpoint_id,): + for parameter in ( + request_query_model_endpoint_id, + ): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -170,23 +203,22 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add("Accept", accept_content_type) + _headers.add('Accept', accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - "The required body parameter has an invalid value of: unset. Set a valid value instead" - ) + 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None _body = None serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) - _headers.add("Content-Type", content_type) - if "fields" in serialized_data: - _fields = serialized_data["fields"] - elif "body" in serialized_data: - _body = serialized_data["body"] + _headers.add('Content-Type', content_type) + if 'fields' in serialized_data: + _fields = serialized_data['fields'] + elif 'body' in serialized_data: + _body = serialized_data['body'] response = self.api_client.call_api( resource_path=used_path, - method="post".upper(), + method='post'.upper(), headers=_headers, fields=_fields, body=_body, @@ -205,10 +237,15 @@ class BaseApi(api_client.Api): api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) return api_response + class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -222,7 +259,10 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def create_sync_inference_task_v1_sync_tasks_post( self, @@ -233,7 +273,11 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def create_sync_inference_task_v1_sync_tasks_post( self, @@ -245,6 +289,7 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def create_sync_inference_task_v1_sync_tasks_post( self, @@ -255,11 +300,15 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def create_sync_inference_task_v1_sync_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -273,9 +322,10 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -289,7 +339,10 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + @typing.overload def post( self, @@ -300,7 +353,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ApiResponseFor200,]: ... + ) -> typing.Union[ + ApiResponseFor200, + ]: ... + + @typing.overload def post( self, @@ -312,6 +369,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload def post( self, @@ -322,11 +380,15 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, + ]: ... + def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = "application/json", + content_type: str = 'application/json', query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -340,5 +402,7 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization, + skip_deserialization=skip_deserialization ) + + diff --git a/launch/api_client/rest.py b/launch/api_client/rest.py index 2065508f..89aa1230 100644 --- a/launch/api_client/rest.py +++ b/launch/api_client/rest.py @@ -11,8 +11,8 @@ import logging import ssl -import typing from urllib.parse import urlencode +import typing import certifi import urllib3 @@ -20,10 +20,12 @@ from launch.api_client.exceptions import ApiException, ApiValueError + logger = logging.getLogger(__name__) class RESTClientObject(object): + def __init__(self, configuration, pools_size=4, maxsize=None): # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 @@ -46,13 +48,13 @@ def __init__(self, configuration, pools_size=4, maxsize=None): addition_pool_args = {} if configuration.assert_hostname is not None: - addition_pool_args["assert_hostname"] = configuration.assert_hostname # noqa: E501 + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 if configuration.retries is not None: - addition_pool_args["retries"] = configuration.retries + addition_pool_args['retries'] = configuration.retries if configuration.socket_options is not None: - addition_pool_args["socket_options"] = configuration.socket_options + addition_pool_args['socket_options'] = configuration.socket_options if maxsize is None: if configuration.connection_pool_maxsize is not None: @@ -71,7 +73,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): key_file=configuration.key_file, proxy_url=configuration.proxy, proxy_headers=configuration.proxy_headers, - **addition_pool_args, + **addition_pool_args ) else: self.pool_manager = urllib3.PoolManager( @@ -81,7 +83,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): ca_certs=ca_certs, cert_file=configuration.cert_file, key_file=configuration.key_file, - **addition_pool_args, + **addition_pool_args ) def request( @@ -112,10 +114,13 @@ def request( (connection, read) timeouts. """ method = method.upper() - assert method in ["GET", "HEAD", "DELETE", "POST", "PUT", "PATCH", "OPTIONS"] + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] if fields and body: - raise ApiValueError("body parameter cannot be used with fields parameter.") + raise ApiValueError( + "body parameter cannot be used with fields parameter." + ) fields = fields or {} headers = headers or {} @@ -123,49 +128,53 @@ def request( if timeout: if isinstance(timeout, (int, float)): # noqa: E501,F821 timeout = urllib3.Timeout(total=timeout) - elif isinstance(timeout, tuple) and len(timeout) == 2: + elif (isinstance(timeout, tuple) and + len(timeout) == 2): timeout = urllib3.Timeout(connect=timeout[0], read=timeout[1]) try: # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ["POST", "PUT", "PATCH", "OPTIONS", "DELETE"]: - if "Content-Type" not in headers and body is None: - r = self.pool_manager.request( - method, url, preload_content=not stream, timeout=timeout, headers=headers - ) - elif headers["Content-Type"] == "application/x-www-form-urlencoded": # noqa: E501 + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if 'Content-Type' not in headers and body is None: r = self.pool_manager.request( method, url, + preload_content=not stream, + timeout=timeout, + headers=headers + ) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, body=body, fields=fields, encode_multipart=False, preload_content=not stream, timeout=timeout, - headers=headers, - ) - elif headers["Content-Type"] == "multipart/form-data": + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': # must del headers['Content-Type'], or the correct # Content-Type which generated by urllib3 will be # overwritten. - del headers["Content-Type"] + del headers['Content-Type'] r = self.pool_manager.request( - method, - url, + method, url, fields=fields, encode_multipart=True, preload_content=not stream, timeout=timeout, - headers=headers, - ) + headers=headers) # Pass a `string` parameter directly in the body to support # other content types than Json when `body` argument is # provided in serialized form elif isinstance(body, str) or isinstance(body, bytes): request_body = body r = self.pool_manager.request( - method, url, body=request_body, preload_content=not stream, timeout=timeout, headers=headers - ) + method, url, + body=request_body, + preload_content=not stream, + timeout=timeout, + headers=headers) else: # Cannot generate the request from given parameters msg = """Cannot prepare a request message for provided @@ -174,7 +183,10 @@ def request( raise ApiException(status=0, reason=msg) # For `GET`, `HEAD` else: - r = self.pool_manager.request(method, url, preload_content=not stream, timeout=timeout, headers=headers) + r = self.pool_manager.request(method, url, + preload_content=not stream, + timeout=timeout, + headers=headers) except urllib3.exceptions.SSLError as e: msg = "{0}\n{1}".format(type(e).__name__, str(e)) raise ApiException(status=0, reason=msg) @@ -185,23 +197,58 @@ def request( return r - def GET(self, url, headers=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("GET", url, headers=headers, stream=stream, timeout=timeout, fields=fields) - - def HEAD(self, url, headers=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("HEAD", url, headers=headers, stream=stream, timeout=timeout, fields=fields) - - def OPTIONS(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("OPTIONS", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) - - def DELETE(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("DELETE", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) - - def POST(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("POST", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) - - def PUT(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("PUT", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) - - def PATCH(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("PATCH", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) + def GET(self, url, headers=None, stream=False, + timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("GET", url, + headers=headers, + stream=stream, + timeout=timeout, + fields=fields) + + def HEAD(self, url, headers=None, stream=False, + timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("HEAD", url, + headers=headers, + stream=stream, + timeout=timeout, + fields=fields) + + def OPTIONS(self, url, headers=None, + body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("OPTIONS", url, + headers=headers, + stream=stream, + timeout=timeout, + body=body, fields=fields) + + def DELETE(self, url, headers=None, body=None, + stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("DELETE", url, + headers=headers, + stream=stream, + timeout=timeout, + body=body, fields=fields) + + def POST(self, url, headers=None, + body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("POST", url, + headers=headers, + stream=stream, + timeout=timeout, + body=body, fields=fields) + + def PUT(self, url, headers=None, + body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("PUT", url, + headers=headers, + stream=stream, + timeout=timeout, + body=body, fields=fields) + + def PATCH(self, url, headers=None, + body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("PATCH", url, + headers=headers, + stream=stream, + timeout=timeout, + body=body, fields=fields) diff --git a/launch/api_client/schemas.py b/launch/api_client/schemas.py index 3eaf4a2a..a8c70520 100644 --- a/launch/api_client/schemas.py +++ b/launch/api_client/schemas.py @@ -9,21 +9,26 @@ Generated by: https://openapi-generator.tech """ -import decimal +from collections import defaultdict +from datetime import date, datetime, timedelta # noqa: F401 import functools +import decimal import io import re import types import typing import uuid -from collections import defaultdict -from datetime import date, datetime, timedelta # noqa: F401 +from dateutil.parser.isoparser import isoparser, _takes_ascii import frozendict -from dateutil.parser.isoparser import _takes_ascii, isoparser -from launch.api_client.configuration import Configuration -from launch.api_client.exceptions import ApiTypeError, ApiValueError +from launch.api_client.exceptions import ( + ApiTypeError, + ApiValueError, +) +from launch.api_client.configuration import ( + Configuration, +) class Unset(object): @@ -31,10 +36,8 @@ class Unset(object): An instance of this class is set as the default value for object type(dict) properties that are optional When a property has an unset value, that property will not be assigned in the dict """ - pass - unset = Unset() none_type = type(None) @@ -50,12 +53,12 @@ class FileIO(io.FileIO): def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader]): if isinstance(_arg, (io.FileIO, io.BufferedReader)): if _arg.closed: - raise ApiValueError("Invalid file state; file is closed and must be open") + raise ApiValueError('Invalid file state; file is closed and must be open') _arg.close() inst = super(FileIO, cls).__new__(cls, _arg.name) super(FileIO, inst).__init__(_arg.name) return inst - raise ApiValueError("FileIO must be passed _arg which contains the open file") + raise ApiValueError('FileIO must be passed _arg which contains the open file') def __init__(self, _arg: typing.Union[io.FileIO, io.BufferedReader]): pass @@ -79,16 +82,13 @@ class ValidationMetadata(frozendict.frozendict): """ A class storing metadata that is needed to validate OpenApi Schema payloads """ - def __new__( cls, - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(["args[0]"]), + path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']), from_server: bool = False, configuration: typing.Optional[Configuration] = None, seen_classes: typing.FrozenSet[typing.Type] = frozenset(), - validated_path_to_schemas: typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type] - ] = frozendict.frozendict(), + validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]] = frozendict.frozendict() ): """ Args: @@ -115,7 +115,7 @@ def __new__( from_server=from_server, configuration=configuration, seen_classes=seen_classes, - validated_path_to_schemas=validated_path_to_schemas, + validated_path_to_schemas=validated_path_to_schemas ) def validation_ran_earlier(self, cls: type) -> bool: @@ -129,25 +129,23 @@ def validation_ran_earlier(self, cls: type) -> bool: @property def path_to_item(self) -> typing.Tuple[typing.Union[str, int], ...]: - return self.get("path_to_item") + return self.get('path_to_item') @property def from_server(self) -> bool: - return self.get("from_server") + return self.get('from_server') @property def configuration(self) -> typing.Optional[Configuration]: - return self.get("configuration") + return self.get('configuration') @property def seen_classes(self) -> typing.FrozenSet[typing.Type]: - return self.get("seen_classes") + return self.get('seen_classes') @property - def validated_path_to_schemas( - self, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]]: - return self.get("validated_path_to_schemas") + def validated_path_to_schemas(self) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]]: + return self.get('validated_path_to_schemas') def add_deeper_validated_schemas(validation_metadata: ValidationMetadata, path_to_schemas: dict): @@ -157,7 +155,7 @@ def add_deeper_validated_schemas(validation_metadata: ValidationMetadata, path_t for path_to_item, schemas in validation_metadata.validated_path_to_schemas.items(): if len(path_to_item) < len(current_path_to_item): continue - path_begins_with_current_path = path_to_item[: len(current_path_to_item)] == current_path_to_item + path_begins_with_current_path = path_to_item[:len(current_path_to_item)] == current_path_to_item if path_begins_with_current_path: other_path_to_schemas[path_to_item] = schemas update(path_to_schemas, other_path_to_schemas) @@ -168,7 +166,6 @@ class Singleton: Enums and singletons are the same The same instance is returned for a given key of (cls, _arg) """ - _instances = {} def __new__(cls, _arg: typing.Any, **kwargs): @@ -192,15 +189,16 @@ def __new__(cls, _arg: typing.Any, **kwargs): def __repr__(self): if isinstance(self, NoneClass): - return f"<{self.__class__.__name__}: None>" + return f'<{self.__class__.__name__}: None>' elif isinstance(self, BoolClass): if bool(self): - return f"<{self.__class__.__name__}: True>" - return f"<{self.__class__.__name__}: False>" - return f"<{self.__class__.__name__}: {super().__repr__()}>" + return f'<{self.__class__.__name__}: True>' + return f'<{self.__class__.__name__}: False>' + return f'<{self.__class__.__name__}: {super().__repr__()}>' class classproperty: + def __init__(self, fget): self.fget = fget @@ -231,7 +229,7 @@ def __bool__(self) -> bool: for key, instance in self._instances.items(): if self is instance: return bool(key[1]) - raise ValueError("Unable to find the boolean value of this instance") + raise ValueError('Unable to find the boolean value of this instance') class MetaOapgTyped: @@ -241,39 +239,30 @@ class MetaOapgTyped: inclusive_minimum: typing.Union[int, float] max_items: int min_items: int - discriminator: typing.Dict[str, typing.Dict[str, typing.Type["Schema"]]] + discriminator: typing.Dict[str, typing.Dict[str, typing.Type['Schema']]] + class properties: # to hold object properties pass - additional_properties: typing.Optional[typing.Type["Schema"]] + additional_properties: typing.Optional[typing.Type['Schema']] max_properties: int min_properties: int - all_of: typing.List[typing.Type["Schema"]] - one_of: typing.List[typing.Type["Schema"]] - any_of: typing.List[typing.Type["Schema"]] - not_schema: typing.Type["Schema"] + all_of: typing.List[typing.Type['Schema']] + one_of: typing.List[typing.Type['Schema']] + any_of: typing.List[typing.Type['Schema']] + not_schema: typing.Type['Schema'] max_length: int min_length: int - items: typing.Type["Schema"] + items: typing.Type['Schema'] class Schema: """ the base class of all swagger/openapi schemas/models """ - - __inheritable_primitive_types_set = { - decimal.Decimal, - str, - tuple, - frozendict.frozendict, - FileIO, - bytes, - BoolClass, - NoneClass, - } + __inheritable_primitive_types_set = {decimal.Decimal, str, tuple, frozendict.frozendict, FileIO, bytes, BoolClass, NoneClass} _types: typing.Set[typing.Type] MetaOapg = MetaOapgTyped @@ -288,9 +277,7 @@ def __get_valid_classes_phrase(input_classes): return "is one of [{0}]".format(", ".join(all_class_names)) @staticmethod - def _get_class_oapg( - item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type["Schema"]] - ) -> typing.Type["Schema"]: + def _get_class_oapg(item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type['Schema']]) -> typing.Type['Schema']: if isinstance(item_cls, types.FunctionType): # referenced schema return item_cls() @@ -300,7 +287,9 @@ def _get_class_oapg( return item_cls @classmethod - def __type_error_message(cls, var_value=None, var_name=None, valid_classes=None, key_type=None): + def __type_error_message( + cls, var_value=None, var_name=None, valid_classes=None, key_type=None + ): """ Keyword Args: var_value (any): the variable which has the type_error @@ -343,10 +332,7 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], - ]: + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: """ Schema _validate_oapg All keyword validation except for type checking was done in calling stack frames @@ -375,9 +361,7 @@ def _validate_oapg( @staticmethod def _process_schema_classes_oapg( - schema_classes: typing.Set[ - typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple] - ] + schema_classes: typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]] ): """ Processes and mutates schema_classes @@ -397,8 +381,10 @@ def _process_schema_classes_oapg( @classmethod def __get_new_cls( - cls, arg, validation_metadata: ValidationMetadata - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]]: + cls, + arg, + validation_metadata: ValidationMetadata + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']]: """ Make a new dynamic class and return an instance of that class We are making an instance of cls, but instead of making cls @@ -437,7 +423,8 @@ def __get_new_cls( 3. N number of schema classes, classes in path_to_schemas: BoolClass/NoneClass/tuple/frozendict.frozendict/str/Decimal/bytes/FileIo """ cls._process_schema_classes_oapg(schema_classes) - enum_schema = any(issubclass(this_cls, EnumBase) for this_cls in schema_classes) + enum_schema = any( + issubclass(this_cls, EnumBase) for this_cls in schema_classes) inheritable_primitive_type = schema_classes.intersection(cls.__inheritable_primitive_types_set) chosen_schema_classes = schema_classes - inheritable_primitive_type suffix = tuple(inheritable_primitive_type) @@ -445,7 +432,7 @@ def __get_new_cls( suffix = (Singleton,) + suffix used_classes = tuple(sorted(chosen_schema_classes, key=lambda a_cls: a_cls.__name__)) + suffix - mfg_cls = get_new_class(class_name="DynamicSchema", bases=used_classes) + mfg_cls = get_new_class(class_name='DynamicSchema', bases=used_classes) path_to_schemas[path] = mfg_cls return path_to_schemas @@ -455,7 +442,7 @@ def _get_new_instance_without_conversion_oapg( cls, arg: typing.Any, path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]], + path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] ): # We have a Dynamic class and we are making an instance of it if issubclass(cls, frozendict.frozendict) and issubclass(cls, DictBase): @@ -484,16 +471,16 @@ def from_openapi_data_oapg( decimal.Decimal, bool, None, - "Schema", + 'Schema', dict, frozendict.frozendict, tuple, list, io.FileIO, io.BufferedReader, - bytes, + bytes ], - _configuration: typing.Optional[Configuration], + _configuration: typing.Optional[Configuration] ): """ Schema from_openapi_data_oapg @@ -502,12 +489,13 @@ def from_openapi_data_oapg( validated_path_to_schemas = {} arg = cast_to_allowed_types(arg, from_server, validated_path_to_schemas) validation_metadata = ValidationMetadata( - from_server=from_server, configuration=_configuration, validated_path_to_schemas=validated_path_to_schemas - ) + from_server=from_server, configuration=_configuration, validated_path_to_schemas=validated_path_to_schemas) path_to_schemas = cls.__get_new_cls(arg, validation_metadata) new_cls = path_to_schemas[validation_metadata.path_to_item] new_inst = new_cls._get_new_instance_without_conversion_oapg( - arg, validation_metadata.path_to_item, path_to_schemas + arg, + validation_metadata.path_to_item, + path_to_schemas ) return new_inst @@ -524,41 +512,7 @@ def __get_input_dict(*args, **kwargs) -> frozendict.frozendict: def __remove_unsets(kwargs): return {key: val for key, val in kwargs.items() if val is not unset} - def __new__( - cls, - *_args: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - "Schema", - ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - "Schema", - Unset, - ], - ): + def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], _configuration: typing.Optional[Configuration] = None, **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset]): """ Schema __new__ @@ -573,59 +527,35 @@ def __new__( """ __kwargs = cls.__remove_unsets(kwargs) if not _args and not __kwargs: - raise TypeError("No input given. args or kwargs must be given.") + raise TypeError( + 'No input given. args or kwargs must be given.' + ) if not __kwargs and _args and not isinstance(_args[0], dict): __arg = _args[0] else: __arg = cls.__get_input_dict(*_args, **__kwargs) __from_server = False __validated_path_to_schemas = {} - __arg = cast_to_allowed_types(__arg, __from_server, __validated_path_to_schemas) + __arg = cast_to_allowed_types( + __arg, __from_server, __validated_path_to_schemas) __validation_metadata = ValidationMetadata( - configuration=_configuration, - from_server=__from_server, - validated_path_to_schemas=__validated_path_to_schemas, - ) + configuration=_configuration, from_server=__from_server, validated_path_to_schemas=__validated_path_to_schemas) __path_to_schemas = cls.__get_new_cls(__arg, __validation_metadata) __new_cls = __path_to_schemas[__validation_metadata.path_to_item] return __new_cls._get_new_instance_without_conversion_oapg( - __arg, __validation_metadata.path_to_item, __path_to_schemas + __arg, + __validation_metadata.path_to_item, + __path_to_schemas ) def __init__( self, *_args: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - "Schema", - ], + dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], _configuration: typing.Optional[Configuration] = None, **kwargs: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - "Schema", - Unset, - ], + dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset + ] ): """ this is needed to fix 'Unexpected argument' warning in pycharm @@ -635,7 +565,6 @@ def __init__( """ pass - """ import itertools data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool') @@ -665,399 +594,269 @@ def __init__( BoolMixin = BoolClass BytesMixin = bytes FileMixin = FileIO - # qty 2 class BinaryMixin(bytes, FileIO): pass - class NoneFrozenDictMixin(NoneClass, frozendict.frozendict): pass - class NoneTupleMixin(NoneClass, tuple): pass - class NoneStrMixin(NoneClass, str): pass - class NoneDecimalMixin(NoneClass, decimal.Decimal): pass - class NoneBoolMixin(NoneClass, BoolClass): pass - class FrozenDictTupleMixin(frozendict.frozendict, tuple): pass - class FrozenDictStrMixin(frozendict.frozendict, str): pass - class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal): pass - class FrozenDictBoolMixin(frozendict.frozendict, BoolClass): pass - class TupleStrMixin(tuple, str): pass - class TupleDecimalMixin(tuple, decimal.Decimal): pass - class TupleBoolMixin(tuple, BoolClass): pass - class StrDecimalMixin(str, decimal.Decimal): pass - class StrBoolMixin(str, BoolClass): pass - class DecimalBoolMixin(decimal.Decimal, BoolClass): pass - # qty 3 class NoneFrozenDictTupleMixin(NoneClass, frozendict.frozendict, tuple): pass - class NoneFrozenDictStrMixin(NoneClass, frozendict.frozendict, str): pass - class NoneFrozenDictDecimalMixin(NoneClass, frozendict.frozendict, decimal.Decimal): pass - class NoneFrozenDictBoolMixin(NoneClass, frozendict.frozendict, BoolClass): pass - class NoneTupleStrMixin(NoneClass, tuple, str): pass - class NoneTupleDecimalMixin(NoneClass, tuple, decimal.Decimal): pass - class NoneTupleBoolMixin(NoneClass, tuple, BoolClass): pass - class NoneStrDecimalMixin(NoneClass, str, decimal.Decimal): pass - class NoneStrBoolMixin(NoneClass, str, BoolClass): pass - class NoneDecimalBoolMixin(NoneClass, decimal.Decimal, BoolClass): pass - class FrozenDictTupleStrMixin(frozendict.frozendict, tuple, str): pass - class FrozenDictTupleDecimalMixin(frozendict.frozendict, tuple, decimal.Decimal): pass - class FrozenDictTupleBoolMixin(frozendict.frozendict, tuple, BoolClass): pass - class FrozenDictStrDecimalMixin(frozendict.frozendict, str, decimal.Decimal): pass - class FrozenDictStrBoolMixin(frozendict.frozendict, str, BoolClass): pass - class FrozenDictDecimalBoolMixin(frozendict.frozendict, decimal.Decimal, BoolClass): pass - class TupleStrDecimalMixin(tuple, str, decimal.Decimal): pass - class TupleStrBoolMixin(tuple, str, BoolClass): pass - class TupleDecimalBoolMixin(tuple, decimal.Decimal, BoolClass): pass - class StrDecimalBoolMixin(str, decimal.Decimal, BoolClass): pass - # qty 4 class NoneFrozenDictTupleStrMixin(NoneClass, frozendict.frozendict, tuple, str): pass - class NoneFrozenDictTupleDecimalMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal): pass - class NoneFrozenDictTupleBoolMixin(NoneClass, frozendict.frozendict, tuple, BoolClass): pass - class NoneFrozenDictStrDecimalMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal): pass - class NoneFrozenDictStrBoolMixin(NoneClass, frozendict.frozendict, str, BoolClass): pass - class NoneFrozenDictDecimalBoolMixin(NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass): pass - class NoneTupleStrDecimalMixin(NoneClass, tuple, str, decimal.Decimal): pass - class NoneTupleStrBoolMixin(NoneClass, tuple, str, BoolClass): pass - class NoneTupleDecimalBoolMixin(NoneClass, tuple, decimal.Decimal, BoolClass): pass - class NoneStrDecimalBoolMixin(NoneClass, str, decimal.Decimal, BoolClass): pass - class FrozenDictTupleStrDecimalMixin(frozendict.frozendict, tuple, str, decimal.Decimal): pass - class FrozenDictTupleStrBoolMixin(frozendict.frozendict, tuple, str, BoolClass): pass - class FrozenDictTupleDecimalBoolMixin(frozendict.frozendict, tuple, decimal.Decimal, BoolClass): pass - class FrozenDictStrDecimalBoolMixin(frozendict.frozendict, str, decimal.Decimal, BoolClass): pass - class TupleStrDecimalBoolMixin(tuple, str, decimal.Decimal, BoolClass): pass - # qty 5 class NoneFrozenDictTupleStrDecimalMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal): pass - class NoneFrozenDictTupleStrBoolMixin(NoneClass, frozendict.frozendict, tuple, str, BoolClass): pass - class NoneFrozenDictTupleDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass): pass - class NoneFrozenDictStrDecimalBoolMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass): pass - class NoneTupleStrDecimalBoolMixin(NoneClass, tuple, str, decimal.Decimal, BoolClass): pass - class FrozenDictTupleStrDecimalBoolMixin(frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): pass - # qty 6 - class NoneFrozenDictTupleStrDecimalBoolMixin( - NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass - ): + class NoneFrozenDictTupleStrDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): pass - # qty 8 - class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin( - NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes - ): + class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes): pass - else: # qty 1 class NoneMixin: _types = {NoneClass} - class FrozenDictMixin: _types = {frozendict.frozendict} - class TupleMixin: _types = {tuple} - class StrMixin: _types = {str} - class DecimalMixin: _types = {decimal.Decimal} - class BoolMixin: _types = {BoolClass} - class BytesMixin: _types = {bytes} - class FileMixin: _types = {FileIO} - # qty 2 class BinaryMixin: _types = {bytes, FileIO} - class NoneFrozenDictMixin: _types = {NoneClass, frozendict.frozendict} - class NoneTupleMixin: _types = {NoneClass, tuple} - class NoneStrMixin: _types = {NoneClass, str} - class NoneDecimalMixin: _types = {NoneClass, decimal.Decimal} - class NoneBoolMixin: _types = {NoneClass, BoolClass} - class FrozenDictTupleMixin: _types = {frozendict.frozendict, tuple} - class FrozenDictStrMixin: _types = {frozendict.frozendict, str} - class FrozenDictDecimalMixin: _types = {frozendict.frozendict, decimal.Decimal} - class FrozenDictBoolMixin: _types = {frozendict.frozendict, BoolClass} - class TupleStrMixin: _types = {tuple, str} - class TupleDecimalMixin: _types = {tuple, decimal.Decimal} - class TupleBoolMixin: _types = {tuple, BoolClass} - class StrDecimalMixin: _types = {str, decimal.Decimal} - class StrBoolMixin: _types = {str, BoolClass} - class DecimalBoolMixin: _types = {decimal.Decimal, BoolClass} - # qty 3 class NoneFrozenDictTupleMixin: _types = {NoneClass, frozendict.frozendict, tuple} - class NoneFrozenDictStrMixin: _types = {NoneClass, frozendict.frozendict, str} - class NoneFrozenDictDecimalMixin: _types = {NoneClass, frozendict.frozendict, decimal.Decimal} - class NoneFrozenDictBoolMixin: _types = {NoneClass, frozendict.frozendict, BoolClass} - class NoneTupleStrMixin: _types = {NoneClass, tuple, str} - class NoneTupleDecimalMixin: _types = {NoneClass, tuple, decimal.Decimal} - class NoneTupleBoolMixin: _types = {NoneClass, tuple, BoolClass} - class NoneStrDecimalMixin: _types = {NoneClass, str, decimal.Decimal} - class NoneStrBoolMixin: _types = {NoneClass, str, BoolClass} - class NoneDecimalBoolMixin: _types = {NoneClass, decimal.Decimal, BoolClass} - class FrozenDictTupleStrMixin: _types = {frozendict.frozendict, tuple, str} - class FrozenDictTupleDecimalMixin: _types = {frozendict.frozendict, tuple, decimal.Decimal} - class FrozenDictTupleBoolMixin: _types = {frozendict.frozendict, tuple, BoolClass} - class FrozenDictStrDecimalMixin: _types = {frozendict.frozendict, str, decimal.Decimal} - class FrozenDictStrBoolMixin: _types = {frozendict.frozendict, str, BoolClass} - class FrozenDictDecimalBoolMixin: _types = {frozendict.frozendict, decimal.Decimal, BoolClass} - class TupleStrDecimalMixin: _types = {tuple, str, decimal.Decimal} - class TupleStrBoolMixin: _types = {tuple, str, BoolClass} - class TupleDecimalBoolMixin: _types = {tuple, decimal.Decimal, BoolClass} - class StrDecimalBoolMixin: _types = {str, decimal.Decimal, BoolClass} - # qty 4 class NoneFrozenDictTupleStrMixin: _types = {NoneClass, frozendict.frozendict, tuple, str} - class NoneFrozenDictTupleDecimalMixin: _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal} - class NoneFrozenDictTupleBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, BoolClass} - class NoneFrozenDictStrDecimalMixin: _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal} - class NoneFrozenDictStrBoolMixin: _types = {NoneClass, frozendict.frozendict, str, BoolClass} - class NoneFrozenDictDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass} - class NoneTupleStrDecimalMixin: _types = {NoneClass, tuple, str, decimal.Decimal} - class NoneTupleStrBoolMixin: _types = {NoneClass, tuple, str, BoolClass} - class NoneTupleDecimalBoolMixin: _types = {NoneClass, tuple, decimal.Decimal, BoolClass} - class NoneStrDecimalBoolMixin: _types = {NoneClass, str, decimal.Decimal, BoolClass} - class FrozenDictTupleStrDecimalMixin: _types = {frozendict.frozendict, tuple, str, decimal.Decimal} - class FrozenDictTupleStrBoolMixin: _types = {frozendict.frozendict, tuple, str, BoolClass} - class FrozenDictTupleDecimalBoolMixin: _types = {frozendict.frozendict, tuple, decimal.Decimal, BoolClass} - class FrozenDictStrDecimalBoolMixin: _types = {frozendict.frozendict, str, decimal.Decimal, BoolClass} - class TupleStrDecimalBoolMixin: _types = {tuple, str, decimal.Decimal, BoolClass} - # qty 5 class NoneFrozenDictTupleStrDecimalMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal} - class NoneFrozenDictTupleStrBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, BoolClass} - class NoneFrozenDictTupleDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass} - class NoneFrozenDictStrDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass} - class NoneTupleStrDecimalBoolMixin: _types = {NoneClass, tuple, str, decimal.Decimal, BoolClass} - class FrozenDictTupleStrDecimalBoolMixin: _types = {frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} - # qty 6 class NoneFrozenDictTupleStrDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} - # qty 8 class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes} @@ -1077,11 +876,9 @@ def _is_json_validation_enabled_oapg(schema_keyword, configuration=None): configuration (Configuration): the configuration class. """ - return ( - configuration is None - or not hasattr(configuration, "_disabled_client_side_validations") - or schema_keyword not in configuration._disabled_client_side_validations - ) + return (configuration is None or + not hasattr(configuration, '_disabled_client_side_validations') or + schema_keyword not in configuration._disabled_client_side_validations) @staticmethod def _raise_validation_error_message_oapg(value, constraint_msg, constraint_value, path_to_item, additional_txt=""): @@ -1102,10 +899,7 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], - ]: + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: """ EnumBase _validate_oapg Validates that arg is in the enum's allowed values @@ -1113,11 +907,7 @@ def _validate_oapg( try: cls.MetaOapg.enum_value_to_name[arg] except KeyError: - raise ApiValueError( - "Invalid value {} passed in to {}, allowed_values={}".format( - arg, cls, cls.MetaOapg.enum_value_to_name.keys() - ) - ) + raise ApiValueError("Invalid value {} passed in to {}, allowed_values={}".format(arg, cls, cls.MetaOapg.enum_value_to_name.keys())) return super()._validate_oapg(arg, validation_metadata=validation_metadata) @@ -1161,69 +951,68 @@ def as_str_oapg(self) -> str: @property def as_date_oapg(self) -> date: - raise Exception("not implemented") + raise Exception('not implemented') @property def as_datetime_oapg(self) -> datetime: - raise Exception("not implemented") + raise Exception('not implemented') @property def as_decimal_oapg(self) -> decimal.Decimal: - raise Exception("not implemented") + raise Exception('not implemented') @property def as_uuid_oapg(self) -> uuid.UUID: - raise Exception("not implemented") + raise Exception('not implemented') @classmethod - def __check_str_validations(cls, arg: str, validation_metadata: ValidationMetadata): - if not hasattr(cls, "MetaOapg"): + def __check_str_validations( + cls, + arg: str, + validation_metadata: ValidationMetadata + ): + if not hasattr(cls, 'MetaOapg'): return - if ( - cls._is_json_validation_enabled_oapg("maxLength", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "max_length") - and len(arg) > cls.MetaOapg.max_length - ): + if (cls._is_json_validation_enabled_oapg('maxLength', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'max_length') and + len(arg) > cls.MetaOapg.max_length): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="length must be less than or equal to", constraint_value=cls.MetaOapg.max_length, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("minLength", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "min_length") - and len(arg) < cls.MetaOapg.min_length - ): + if (cls._is_json_validation_enabled_oapg('minLength', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'min_length') and + len(arg) < cls.MetaOapg.min_length): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="length must be greater than or equal to", constraint_value=cls.MetaOapg.min_length, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if cls._is_json_validation_enabled_oapg("pattern", validation_metadata.configuration) and hasattr( - cls.MetaOapg, "regex" - ): + if (cls._is_json_validation_enabled_oapg('pattern', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'regex')): for regex_dict in cls.MetaOapg.regex: - flags = regex_dict.get("flags", 0) - if not re.search(regex_dict["pattern"], arg, flags=flags): + flags = regex_dict.get('flags', 0) + if not re.search(regex_dict['pattern'], arg, flags=flags): if flags != 0: # Don't print the regex flags if the flags are not # specified in the OAS document. cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must match regular expression", - constraint_value=regex_dict["pattern"], + constraint_value=regex_dict['pattern'], path_to_item=validation_metadata.path_to_item, - additional_txt=" with flags=`{}`".format(flags), + additional_txt=" with flags=`{}`".format(flags) ) cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must match regular expression", - constraint_value=regex_dict["pattern"], - path_to_item=validation_metadata.path_to_item, + constraint_value=regex_dict['pattern'], + path_to_item=validation_metadata.path_to_item ) @classmethod @@ -1231,10 +1020,7 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], - ]: + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: """ StrBase _validate_oapg Validates that validations pass @@ -1275,21 +1061,22 @@ def _validate_oapg( class CustomIsoparser(isoparser): + @_takes_ascii def parse_isodatetime(self, dt_str): components, pos = self._parse_isodate(dt_str) if len(dt_str) > pos: - if self._sep is None or dt_str[pos : pos + 1] == self._sep: - components += self._parse_isotime(dt_str[pos + 1 :]) + if self._sep is None or dt_str[pos:pos + 1] == self._sep: + components += self._parse_isotime(dt_str[pos + 1:]) else: - raise ValueError("String contains unknown ISO components") + raise ValueError('String contains unknown ISO components') if len(components) > 3 and components[3] == 24: components[3] = 0 return datetime(*components) + timedelta(days=1) if len(components) <= 3: - raise ValueError("Value is not a datetime") + raise ValueError('Value is not a datetime') return datetime(*components) @@ -1298,10 +1085,10 @@ def parse_isodate(self, datestr): components, pos = self._parse_isodate(datestr) if len(datestr) > pos: - raise ValueError("String contains invalid time components") + raise ValueError('String contains invalid time components') if len(components) > 3: - raise ValueError("String contains invalid time components") + raise ValueError('String contains invalid time components') return date(*components) @@ -1427,7 +1214,7 @@ def as_int_oapg(self) -> int: if self.as_tuple().exponent < 0: # this could be represented as an integer but should be represented as a float # because that's what it was serialized from - raise ApiValueError(f"{self} is not an integer") + raise ApiValueError(f'{self} is not an integer') self._as_int = int(self) return self._as_int @@ -1437,85 +1224,79 @@ def as_float_oapg(self) -> float: return self._as_float except AttributeError: if self.as_tuple().exponent >= 0: - raise ApiValueError(f"{self} is not a float") + raise ApiValueError(f'{self} is not a float') self._as_float = float(self) return self._as_float @classmethod - def __check_numeric_validations(cls, arg, validation_metadata: ValidationMetadata): - if not hasattr(cls, "MetaOapg"): + def __check_numeric_validations( + cls, + arg, + validation_metadata: ValidationMetadata + ): + if not hasattr(cls, 'MetaOapg'): return - if cls._is_json_validation_enabled_oapg("multipleOf", validation_metadata.configuration) and hasattr( - cls.MetaOapg, "multiple_of" - ): + if cls._is_json_validation_enabled_oapg('multipleOf', + validation_metadata.configuration) and hasattr(cls.MetaOapg, 'multiple_of'): multiple_of_value = cls.MetaOapg.multiple_of - if not (float(arg) / multiple_of_value).is_integer(): + if (not (float(arg) / multiple_of_value).is_integer()): # Note 'multipleOf' will be as good as the floating point arithmetic. cls._raise_validation_error_message_oapg( value=arg, constraint_msg="value must be a multiple of", constraint_value=multiple_of_value, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) checking_max_or_min_values = any( - hasattr(cls.MetaOapg, validation_key) - for validation_key in { - "exclusive_maximum", - "inclusive_maximum", - "exclusive_minimum", - "inclusive_minimum", + hasattr(cls.MetaOapg, validation_key) for validation_key in { + 'exclusive_maximum', + 'inclusive_maximum', + 'exclusive_minimum', + 'inclusive_minimum', } ) if not checking_max_or_min_values: return - if ( - cls._is_json_validation_enabled_oapg("exclusiveMaximum", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "exclusive_maximum") - and arg >= cls.MetaOapg.exclusive_maximum - ): + if (cls._is_json_validation_enabled_oapg('exclusiveMaximum', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'exclusive_maximum') and + arg >= cls.MetaOapg.exclusive_maximum): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value less than", constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("maximum", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "inclusive_maximum") - and arg > cls.MetaOapg.inclusive_maximum - ): + if (cls._is_json_validation_enabled_oapg('maximum', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'inclusive_maximum') and + arg > cls.MetaOapg.inclusive_maximum): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value less than or equal to", constraint_value=cls.MetaOapg.inclusive_maximum, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("exclusiveMinimum", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "exclusive_minimum") - and arg <= cls.MetaOapg.exclusive_minimum - ): + if (cls._is_json_validation_enabled_oapg('exclusiveMinimum', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'exclusive_minimum') and + arg <= cls.MetaOapg.exclusive_minimum): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value greater than", constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("minimum", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "inclusive_minimum") - and arg < cls.MetaOapg.inclusive_minimum - ): + if (cls._is_json_validation_enabled_oapg('minimum', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'inclusive_minimum') and + arg < cls.MetaOapg.inclusive_minimum): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value greater than or equal to", constraint_value=cls.MetaOapg.inclusive_minimum, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) @classmethod @@ -1523,10 +1304,7 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], - ]: + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: """ NumberBase _validate_oapg Validates that validations pass @@ -1556,64 +1334,59 @@ def __validate_items(cls, list_items, validation_metadata: ValidationMetadata): # if we have definitions for an items schema, use it # otherwise accept anything - item_cls = getattr(cls.MetaOapg, "items", UnsetAnyTypeSchema) + item_cls = getattr(cls.MetaOapg, 'items', UnsetAnyTypeSchema) item_cls = cls._get_class_oapg(item_cls) path_to_schemas = {} for i, value in enumerate(list_items): item_validation_metadata = ValidationMetadata( from_server=validation_metadata.from_server, configuration=validation_metadata.configuration, - path_to_item=validation_metadata.path_to_item + (i,), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, + path_to_item=validation_metadata.path_to_item+(i,), + validated_path_to_schemas=validation_metadata.validated_path_to_schemas ) if item_validation_metadata.validation_ran_earlier(item_cls): add_deeper_validated_schemas(item_validation_metadata, path_to_schemas) continue - other_path_to_schemas = item_cls._validate_oapg(value, validation_metadata=item_validation_metadata) + other_path_to_schemas = item_cls._validate_oapg( + value, validation_metadata=item_validation_metadata) update(path_to_schemas, other_path_to_schemas) return path_to_schemas @classmethod - def __check_tuple_validations(cls, arg, validation_metadata: ValidationMetadata): - if not hasattr(cls, "MetaOapg"): + def __check_tuple_validations( + cls, arg, + validation_metadata: ValidationMetadata): + if not hasattr(cls, 'MetaOapg'): return - if ( - cls._is_json_validation_enabled_oapg("maxItems", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "max_items") - and len(arg) > cls.MetaOapg.max_items - ): + if (cls._is_json_validation_enabled_oapg('maxItems', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'max_items') and + len(arg) > cls.MetaOapg.max_items): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of items must be less than or equal to", constraint_value=cls.MetaOapg.max_items, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("minItems", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "min_items") - and len(arg) < cls.MetaOapg.min_items - ): + if (cls._is_json_validation_enabled_oapg('minItems', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'min_items') and + len(arg) < cls.MetaOapg.min_items): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of items must be greater than or equal to", constraint_value=cls.MetaOapg.min_items, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("uniqueItems", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "unique_items") - and cls.MetaOapg.unique_items - and arg - ): + if (cls._is_json_validation_enabled_oapg('uniqueItems', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'unique_items') and cls.MetaOapg.unique_items and arg): unique_items = set(arg) if len(arg) > len(unique_items): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="duplicate items were found, and the tuple must not contain duplicates because", - constraint_value="unique_items==True", - path_to_item=validation_metadata.path_to_item, + constraint_value='unique_items==True', + path_to_item=validation_metadata.path_to_item ) @classmethod @@ -1647,7 +1420,7 @@ def _validate_oapg( from_server=validation_metadata.from_server, path_to_item=validation_metadata.path_to_item, seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, + validated_path_to_schemas=validation_metadata.validated_path_to_schemas ) other_path_to_schemas = cls.__validate_items(arg, validation_metadata=updated_vm) update(_path_to_schemas, other_path_to_schemas) @@ -1655,20 +1428,24 @@ def _validate_oapg( @classmethod def _get_items_oapg( - cls: "Schema", + cls: 'Schema', arg: typing.List[typing.Any], path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]], + path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] ): - """ + ''' ListBase _get_items_oapg - """ + ''' cast_items = [] for i, value in enumerate(arg): item_path_to_item = path_to_item + (i,) item_cls = path_to_schemas[item_path_to_item] - new_value = item_cls._get_new_instance_without_conversion_oapg(value, item_path_to_item, path_to_schemas) + new_value = item_cls._get_new_instance_without_conversion_oapg( + value, + item_path_to_item, + path_to_schemas + ) cast_items.append(new_value) return cast_items @@ -1678,16 +1455,12 @@ class Discriminable: MetaOapg: MetaOapgTyped @classmethod - def _ensure_discriminator_value_present_oapg( - cls, disc_property_name: str, validation_metadata: ValidationMetadata, *args - ): + def _ensure_discriminator_value_present_oapg(cls, disc_property_name: str, validation_metadata: ValidationMetadata, *args): if not args or args and disc_property_name not in args[0]: # The input data does not contain the discriminator property raise ApiValueError( "Cannot deserialize input data due to missing discriminator. " - "The discriminator property '{}' is missing at path: {}".format( - disc_property_name, validation_metadata.path_to_item - ) + "The discriminator property '{}' is missing at path: {}".format(disc_property_name, validation_metadata.path_to_item) ) @classmethod @@ -1695,7 +1468,7 @@ def get_discriminated_class_oapg(cls, disc_property_name: str, disc_payload_valu """ Used in schemas with discriminators """ - if not hasattr(cls.MetaOapg, "discriminator"): + if not hasattr(cls.MetaOapg, 'discriminator'): return None disc = cls.MetaOapg.discriminator() if disc_property_name not in disc: @@ -1703,38 +1476,38 @@ def get_discriminated_class_oapg(cls, disc_property_name: str, disc_payload_valu discriminated_cls = disc[disc_property_name].get(disc_payload_value) if discriminated_cls is not None: return discriminated_cls - if not hasattr(cls, "MetaOapg"): + if not hasattr(cls, 'MetaOapg'): return None elif not ( - hasattr(cls.MetaOapg, "all_of") or hasattr(cls.MetaOapg, "one_of") or hasattr(cls.MetaOapg, "any_of") + hasattr(cls.MetaOapg, 'all_of') or + hasattr(cls.MetaOapg, 'one_of') or + hasattr(cls.MetaOapg, 'any_of') ): return None # TODO stop traveling if a cycle is hit - if hasattr(cls.MetaOapg, "all_of"): + if hasattr(cls.MetaOapg, 'all_of'): for allof_cls in cls.MetaOapg.all_of(): discriminated_cls = allof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value - ) + disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) if discriminated_cls is not None: return discriminated_cls - if hasattr(cls.MetaOapg, "one_of"): + if hasattr(cls.MetaOapg, 'one_of'): for oneof_cls in cls.MetaOapg.one_of(): discriminated_cls = oneof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value - ) + disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) if discriminated_cls is not None: return discriminated_cls - if hasattr(cls.MetaOapg, "any_of"): + if hasattr(cls.MetaOapg, 'any_of'): for anyof_cls in cls.MetaOapg.any_of(): discriminated_cls = anyof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value - ) + disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) if discriminated_cls is not None: return discriminated_cls return None class DictBase(Discriminable, ValidatorBase): + @classmethod def __validate_arg_presence(cls, arg): """ @@ -1757,10 +1530,10 @@ def __validate_arg_presence(cls, arg): """ seen_required_properties = set() invalid_arguments = [] - required_property_names = getattr(cls.MetaOapg, "required", set()) - additional_properties = getattr(cls.MetaOapg, "additional_properties", UnsetAnyTypeSchema) - properties = getattr(cls.MetaOapg, "properties", {}) - property_annotations = getattr(properties, "__annotations__", {}) + required_property_names = getattr(cls.MetaOapg, 'required', set()) + additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema) + properties = getattr(cls.MetaOapg, 'properties', {}) + property_annotations = getattr(properties, '__annotations__', {}) for property_name in arg: if property_name in required_property_names: seen_required_properties.add(property_name) @@ -1778,14 +1551,17 @@ def __validate_arg_presence(cls, arg): cls.__name__, len(missing_required_arguments), "s" if len(missing_required_arguments) > 1 else "", - missing_required_arguments, + missing_required_arguments ) ) if invalid_arguments: invalid_arguments.sort() raise ApiTypeError( "{} was passed {} invalid argument{}: {}".format( - cls.__name__, len(invalid_arguments), "s" if len(invalid_arguments) > 1 else "", invalid_arguments + cls.__name__, + len(invalid_arguments), + "s" if len(invalid_arguments) > 1 else "", + invalid_arguments ) ) @@ -1804,11 +1580,11 @@ def __validate_args(cls, arg, validation_metadata: ValidationMetadata): ApiTypeError - for missing required arguments, or for invalid properties """ path_to_schemas = {} - additional_properties = getattr(cls.MetaOapg, "additional_properties", UnsetAnyTypeSchema) - properties = getattr(cls.MetaOapg, "properties", {}) - property_annotations = getattr(properties, "__annotations__", {}) + additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema) + properties = getattr(cls.MetaOapg, 'properties', {}) + property_annotations = getattr(properties, '__annotations__', {}) for property_name, value in arg.items(): - path_to_item = validation_metadata.path_to_item + (property_name,) + path_to_item = validation_metadata.path_to_item+(property_name,) if property_name in property_annotations: schema = property_annotations[property_name] elif additional_properties is not NotAnyTypeSchema: @@ -1822,17 +1598,15 @@ def __validate_args(cls, arg, validation_metadata: ValidationMetadata): continue schema = additional_properties else: - raise ApiTypeError( - "Unable to find schema for value={} in class={} at path_to_item={}".format( - value, cls, validation_metadata.path_to_item + (property_name,) - ) - ) + raise ApiTypeError('Unable to find schema for value={} in class={} at path_to_item={}'.format( + value, cls, validation_metadata.path_to_item+(property_name,) + )) schema = cls._get_class_oapg(schema) arg_validation_metadata = ValidationMetadata( from_server=validation_metadata.from_server, configuration=validation_metadata.configuration, path_to_item=path_to_item, - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, + validated_path_to_schemas=validation_metadata.validated_path_to_schemas ) if arg_validation_metadata.validation_ran_earlier(schema): add_deeper_validated_schemas(arg_validation_metadata, path_to_schemas) @@ -1842,31 +1616,31 @@ def __validate_args(cls, arg, validation_metadata: ValidationMetadata): return path_to_schemas @classmethod - def __check_dict_validations(cls, arg, validation_metadata: ValidationMetadata): - if not hasattr(cls, "MetaOapg"): + def __check_dict_validations( + cls, + arg, + validation_metadata: ValidationMetadata + ): + if not hasattr(cls, 'MetaOapg'): return - if ( - cls._is_json_validation_enabled_oapg("maxProperties", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "max_properties") - and len(arg) > cls.MetaOapg.max_properties - ): + if (cls._is_json_validation_enabled_oapg('maxProperties', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'max_properties') and + len(arg) > cls.MetaOapg.max_properties): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of properties must be less than or equal to", constraint_value=cls.MetaOapg.max_properties, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) - if ( - cls._is_json_validation_enabled_oapg("minProperties", validation_metadata.configuration) - and hasattr(cls.MetaOapg, "min_properties") - and len(arg) < cls.MetaOapg.min_properties - ): + if (cls._is_json_validation_enabled_oapg('minProperties', validation_metadata.configuration) and + hasattr(cls.MetaOapg, 'min_properties') and + len(arg) < cls.MetaOapg.min_properties): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of properties must be greater than or equal to", constraint_value=cls.MetaOapg.min_properties, - path_to_item=validation_metadata.path_to_item, + path_to_item=validation_metadata.path_to_item ) @classmethod @@ -1906,15 +1680,14 @@ def _validate_oapg( disc_prop_name = list(discriminator.keys())[0] cls._ensure_discriminator_value_present_oapg(disc_prop_name, validation_metadata, arg) discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_prop_name, disc_payload_value=arg[disc_prop_name] - ) + disc_property_name=disc_prop_name, disc_payload_value=arg[disc_prop_name]) if discriminated_cls is None: raise ApiValueError( "Invalid discriminator value was passed in to {}.{} Only the values {} are allowed at {}".format( cls.__name__, disc_prop_name, list(discriminator[disc_prop_name].keys()), - validation_metadata.path_to_item + (disc_prop_name,), + validation_metadata.path_to_item + (disc_prop_name,) ) ) updated_vm = ValidationMetadata( @@ -1922,7 +1695,7 @@ def _validate_oapg( from_server=validation_metadata.from_server, path_to_item=validation_metadata.path_to_item, seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, + validated_path_to_schemas=validation_metadata.validated_path_to_schemas ) if updated_vm.validation_ran_earlier(discriminated_cls): add_deeper_validated_schemas(updated_vm, _path_to_schemas) @@ -1936,7 +1709,7 @@ def _get_properties_oapg( cls, arg: typing.Dict[str, typing.Any], path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]], + path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] ): """ DictBase _get_properties_oapg, this is how properties are set @@ -1948,7 +1721,9 @@ def _get_properties_oapg( property_path_to_item = path_to_item + (property_name_js,) property_cls = path_to_schemas[property_path_to_item] new_value = property_cls._get_new_instance_without_conversion_oapg( - value, property_path_to_item, path_to_schemas + value, + property_path_to_item, + path_to_schemas ) dict_items[property_name_js] = new_value @@ -1956,7 +1731,7 @@ def _get_properties_oapg( def __setattr__(self, name: str, value: typing.Any): if not isinstance(self, FileIO): - raise AttributeError("property setting not supported on immutable instances") + raise AttributeError('property setting not supported on immutable instances') def __getattr__(self, name: str): """ @@ -1983,7 +1758,7 @@ def __getitem__(self, name: str): return super().__getattr__(name) return super().__getitem__(name) - def get_item_oapg(self, name: str) -> typing.Union["AnyTypeSchema", Unset]: + def get_item_oapg(self, name: str) -> typing.Union['AnyTypeSchema', Unset]: # dict_instance[name] accessor if not isinstance(self, frozendict.frozendict): raise NotImplementedError() @@ -1994,30 +1769,10 @@ def get_item_oapg(self, name: str) -> typing.Union["AnyTypeSchema", Unset]: def cast_to_allowed_types( - arg: typing.Union[ - str, - date, - datetime, - uuid.UUID, - decimal.Decimal, - int, - float, - None, - dict, - frozendict.frozendict, - list, - tuple, - bytes, - Schema, - io.FileIO, - io.BufferedReader, - ], + arg: typing.Union[str, date, datetime, uuid.UUID, decimal.Decimal, int, float, None, dict, frozendict.frozendict, list, tuple, bytes, Schema, io.FileIO, io.BufferedReader], from_server: bool, - validated_path_to_schemas: typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], - ], - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(["args[0]"]), + validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]], + path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']), ) -> typing.Union[frozendict.frozendict, tuple, decimal.Decimal, str, bytes, BoolClass, NoneClass, FileIO]: """ Casts the input payload arg into the allowed types @@ -2049,18 +1804,11 @@ def cast_to_allowed_types( schema_classes.add(cls) validated_path_to_schemas[path_to_item] = schema_classes - type_error = ApiTypeError( - f"Invalid type. Required value type is str and passed type was {type(arg)} at {path_to_item}" - ) + type_error = ApiTypeError(f"Invalid type. Required value type is str and passed type was {type(arg)} at {path_to_item}") if isinstance(arg, str): return str(arg) elif isinstance(arg, (dict, frozendict.frozendict)): - return frozendict.frozendict( - { - key: cast_to_allowed_types(val, from_server, validated_path_to_schemas, path_to_item + (key,)) - for key, val in arg.items() - } - ) + return frozendict.frozendict({key: cast_to_allowed_types(val, from_server, validated_path_to_schemas, path_to_item + (key,)) for key, val in arg.items()}) elif isinstance(arg, (bool, BoolClass)): """ this check must come before isinstance(arg, (int, float)) @@ -2076,15 +1824,10 @@ def cast_to_allowed_types( if decimal_from_float.as_integer_ratio()[1] == 1: # 9.0 -> Decimal('9.0') # 3.4028234663852886e+38 -> Decimal('340282346638528859811704183484516925440.0') - return decimal.Decimal(str(decimal_from_float) + ".0") + return decimal.Decimal(str(decimal_from_float)+'.0') return decimal_from_float elif isinstance(arg, (tuple, list)): - return tuple( - [ - cast_to_allowed_types(item, from_server, validated_path_to_schemas, path_to_item + (i,)) - for i, item in enumerate(arg) - ] - ) + return tuple([cast_to_allowed_types(item, from_server, validated_path_to_schemas, path_to_item + (i,)) for i, item in enumerate(arg)]) elif isinstance(arg, (none_type, NoneClass)): return NoneClass.NONE elif isinstance(arg, (date, datetime)): @@ -2101,10 +1844,11 @@ def cast_to_allowed_types( return bytes(arg) elif isinstance(arg, (io.FileIO, io.BufferedReader)): return FileIO(arg) - raise ValueError("Invalid type passed in got input={} type={}".format(arg, type(arg))) + raise ValueError('Invalid type passed in got input={} type={}'.format(arg, type(arg))) class ComposedBase(Discriminable): + @classmethod def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata): path_to_schemas = defaultdict(set) @@ -2154,7 +1898,12 @@ def __get_oneof_class( return path_to_schemas @classmethod - def __get_anyof_classes(cls, arg, discriminated_cls, validation_metadata: ValidationMetadata): + def __get_anyof_classes( + cls, + arg, + discriminated_cls, + validation_metadata: ValidationMetadata + ): anyof_classes = [] path_to_schemas = defaultdict(set) for anyof_cls in cls.MetaOapg.any_of(): @@ -2183,10 +1932,7 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], - typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], - ]: + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: """ ComposedBase _validate_oapg We return dynamic classes of different bases depending upon the inputs @@ -2210,12 +1956,12 @@ def _validate_oapg( from_server=validation_metadata.from_server, path_to_item=validation_metadata.path_to_item, seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas, + validated_path_to_schemas=validation_metadata.validated_path_to_schemas ) # process composed schema discriminator = None - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "discriminator"): + if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'discriminator'): discriminator = cls.MetaOapg.discriminator() discriminated_cls = None if discriminator and arg and isinstance(arg, frozendict.frozendict): @@ -2223,8 +1969,7 @@ def _validate_oapg( cls._ensure_discriminator_value_present_oapg(disc_property_name, updated_vm, arg) # get discriminated_cls by looking at the dict in the current class discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=arg[disc_property_name] - ) + disc_property_name=disc_property_name, disc_payload_value=arg[disc_property_name]) if discriminated_cls is None: raise ApiValueError( "Invalid discriminator value '{}' was passed in to {}.{} Only the values {} are allowed at {}".format( @@ -2232,25 +1977,29 @@ def _validate_oapg( cls.__name__, disc_property_name, list(discriminator[disc_property_name].keys()), - updated_vm.path_to_item + (disc_property_name,), + updated_vm.path_to_item + (disc_property_name,) ) ) - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "all_of"): + if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'all_of'): other_path_to_schemas = cls.__get_allof_classes(arg, validation_metadata=updated_vm) update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "one_of"): + if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'one_of'): other_path_to_schemas = cls.__get_oneof_class( - arg, discriminated_cls=discriminated_cls, validation_metadata=updated_vm + arg, + discriminated_cls=discriminated_cls, + validation_metadata=updated_vm ) update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "any_of"): + if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'any_of'): other_path_to_schemas = cls.__get_anyof_classes( - arg, discriminated_cls=discriminated_cls, validation_metadata=updated_vm + arg, + discriminated_cls=discriminated_cls, + validation_metadata=updated_vm ) update(path_to_schemas, other_path_to_schemas) not_cls = None - if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "not_schema"): + if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'not_schema'): not_cls = cls.MetaOapg.not_schema not_cls = cls._get_class_oapg(not_cls) if not_cls: @@ -2289,29 +2038,37 @@ class ComposedSchema( BoolBase, NoneBase, Schema, - NoneFrozenDictTupleStrDecimalBoolMixin, + NoneFrozenDictTupleStrDecimalBoolMixin ): @classmethod def from_openapi_data_oapg(cls, *args: typing.Any, _configuration: typing.Optional[Configuration] = None, **kwargs): if not args: if not kwargs: - raise ApiTypeError("{} is missing required input data in args or kwargs".format(cls.__name__)) - args = (kwargs,) + raise ApiTypeError('{} is missing required input data in args or kwargs'.format(cls.__name__)) + args = (kwargs, ) return super().from_openapi_data_oapg(args[0], _configuration=_configuration) -class ListSchema(ListBase, Schema, TupleMixin): +class ListSchema( + ListBase, + Schema, + TupleMixin +): + @classmethod - def from_openapi_data_oapg( - cls, arg: typing.List[typing.Any], _configuration: typing.Optional[Configuration] = None - ): + def from_openapi_data_oapg(cls, arg: typing.List[typing.Any], _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[typing.List[typing.Any], typing.Tuple[typing.Any]], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) -class NoneSchema(NoneBase, Schema, NoneMixin): +class NoneSchema( + NoneBase, + Schema, + NoneMixin +): + @classmethod def from_openapi_data_oapg(cls, arg: None, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) @@ -2320,16 +2077,18 @@ def __new__(cls, _arg: None, **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) -class NumberSchema(NumberBase, Schema, DecimalMixin): +class NumberSchema( + NumberBase, + Schema, + DecimalMixin +): """ This is used for type: number with no format Both integers AND floats are accepted """ @classmethod - def from_openapi_data_oapg( - cls, arg: typing.Union[int, float], _configuration: typing.Optional[Configuration] = None - ): + def from_openapi_data_oapg(cls, arg: typing.Union[int, float], _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[decimal.Decimal, int, float], **kwargs: Configuration): @@ -2348,6 +2107,7 @@ def as_int_oapg(self) -> int: @classmethod def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): if isinstance(arg, decimal.Decimal): + denominator = arg.as_integer_ratio()[-1] if denominator != 1: raise ApiValueError( @@ -2369,6 +2129,7 @@ def _validate_oapg( class IntSchema(IntBase, NumberSchema): + @classmethod def from_openapi_data_oapg(cls, arg: int, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) @@ -2402,7 +2163,10 @@ def _validate_oapg( return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Int32Schema(Int32Base, IntSchema): +class Int32Schema( + Int32Base, + IntSchema +): pass @@ -2431,13 +2195,16 @@ def _validate_oapg( return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Int64Schema(Int64Base, IntSchema): +class Int64Schema( + Int64Base, + IntSchema +): pass class Float32Base: - __inclusive_minimum = decimal.Decimal(-3.4028234663852886e38) - __inclusive_maximum = decimal.Decimal(3.4028234663852886e38) + __inclusive_minimum = decimal.Decimal(-3.4028234663852886e+38) + __inclusive_maximum = decimal.Decimal(3.4028234663852886e+38) @classmethod def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): @@ -2460,15 +2227,19 @@ def _validate_oapg( return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Float32Schema(Float32Base, NumberSchema): +class Float32Schema( + Float32Base, + NumberSchema +): + @classmethod def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) class Float64Base: - __inclusive_minimum = decimal.Decimal(-1.7976931348623157e308) - __inclusive_maximum = decimal.Decimal(1.7976931348623157e308) + __inclusive_minimum = decimal.Decimal(-1.7976931348623157E+308) + __inclusive_maximum = decimal.Decimal(1.7976931348623157E+308) @classmethod def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): @@ -2490,15 +2261,22 @@ def _validate_oapg( cls.__validate_format(arg, validation_metadata=validation_metadata) return super()._validate_oapg(arg, validation_metadata=validation_metadata) +class Float64Schema( + Float64Base, + NumberSchema +): -class Float64Schema(Float64Base, NumberSchema): @classmethod def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): # todo check format return super().from_openapi_data_oapg(arg, _configuration=_configuration) -class StrSchema(StrBase, Schema, StrMixin): +class StrSchema( + StrBase, + Schema, + StrMixin +): """ date + datetime string types must inherit from this class That is because one can validate a str payload as both: @@ -2507,7 +2285,7 @@ class StrSchema(StrBase, Schema, StrMixin): """ @classmethod - def from_openapi_data_oapg(cls, arg: str, _configuration: typing.Optional[Configuration] = None) -> "StrSchema": + def from_openapi_data_oapg(cls, arg: str, _configuration: typing.Optional[Configuration] = None) -> 'StrSchema': return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: Configuration): @@ -2515,21 +2293,25 @@ def __new__(cls, _arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: C class UUIDSchema(UUIDBase, StrSchema): + def __new__(cls, _arg: typing.Union[str, uuid.UUID], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) class DateSchema(DateBase, StrSchema): + def __new__(cls, _arg: typing.Union[str, date], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) class DateTimeSchema(DateTimeBase, StrSchema): + def __new__(cls, _arg: typing.Union[str, datetime], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) class DecimalSchema(DecimalBase, StrSchema): + def __new__(cls, _arg: str, **kwargs: Configuration): """ Note: Decimals may not be passed in because cast_to_allowed_types is only invoked once for payloads @@ -2542,16 +2324,21 @@ def __new__(cls, _arg: str, **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) -class BytesSchema(Schema, BytesMixin): +class BytesSchema( + Schema, + BytesMixin +): """ this class will subclass bytes and is immutable """ - def __new__(cls, _arg: bytes, **kwargs: Configuration): return super(Schema, cls).__new__(cls, _arg) -class FileSchema(Schema, FileMixin): +class FileSchema( + Schema, + FileMixin +): """ This class is NOT immutable Dynamic classes are built using it for example when AnyType allows in binary data @@ -2577,7 +2364,12 @@ class BinaryBase: pass -class BinarySchema(ComposedBase, BinaryBase, Schema, BinaryMixin): +class BinarySchema( + ComposedBase, + BinaryBase, + Schema, + BinaryMixin +): class MetaOapg: @staticmethod def one_of(): @@ -2590,7 +2382,12 @@ def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwar return super().__new__(cls, _arg) -class BoolSchema(BoolBase, Schema, BoolMixin): +class BoolSchema( + BoolBase, + Schema, + BoolMixin +): + @classmethod def from_openapi_data_oapg(cls, arg: bool, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) @@ -2600,7 +2397,14 @@ def __new__(cls, _arg: bool, **kwargs: ValidationMetadata): class AnyTypeSchema( - DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase, Schema, NoneFrozenDictTupleStrDecimalBoolFileBytesMixin + DictBase, + ListBase, + NumberBase, + StrBase, + BoolBase, + NoneBase, + Schema, + NoneFrozenDictTupleStrDecimalBoolFileBytesMixin ): # Python representation of a schema defined as true or {} pass @@ -2627,7 +2431,7 @@ def __new__( cls, *_args, _configuration: typing.Optional[Configuration] = None, - ) -> "NotAnyTypeSchema": + ) -> 'NotAnyTypeSchema': return super().__new__( cls, *_args, @@ -2635,35 +2439,16 @@ def __new__( ) -class DictSchema(DictBase, Schema, FrozenDictMixin): +class DictSchema( + DictBase, + Schema, + FrozenDictMixin +): @classmethod - def from_openapi_data_oapg( - cls, arg: typing.Dict[str, typing.Any], _configuration: typing.Optional[Configuration] = None - ): + def from_openapi_data_oapg(cls, arg: typing.Dict[str, typing.Any], _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict], - **kwargs: typing.Union[ - dict, - frozendict.frozendict, - list, - tuple, - decimal.Decimal, - float, - int, - str, - date, - datetime, - bool, - None, - bytes, - Schema, - Unset, - ValidationMetadata, - ], - ): + def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict], **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, bytes, Schema, Unset, ValidationMetadata]): return super().__new__(cls, *_args, **kwargs) @@ -2672,7 +2457,8 @@ def __new__( @functools.lru_cache() def get_new_class( - class_name: str, bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...] + class_name: str, + bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...] ) -> typing.Type[Schema]: """ Returns a new class that is made with the subclass bases @@ -2686,4 +2472,4 @@ def get_new_class( def log_cache_usage(cache_fn): if LOG_CACHE_USAGE: - print(cache_fn.__name__, cache_fn.cache_info()) + print(cache_fn.__name__, cache_fn.cache_info()) \ No newline at end of file From a3f9574ebd135a3fd5509e53e16f9ffb1c4c9c82 Mon Sep 17 00:00:00 2001 From: Anirudh-Scale Date: Tue, 21 Mar 2023 20:14:38 +0000 Subject: [PATCH 05/11] new formatted changes --- launch/api_client/__init__.py | 14 +- launch/api_client/api_client.py | 534 ++++---- launch/api_client/apis/__init__.py | 2 +- launch/api_client/apis/path_to_api.py | 15 +- .../v1_model_endpoints_model_endpoint_id.py | 2 +- launch/api_client/apis/tag_to_api.py | 5 +- launch/api_client/apis/tags/default_api.py | 53 +- launch/api_client/configuration.py | 214 +-- launch/api_client/exceptions.py | 11 +- .../model/batch_job_serialization_format.py | 15 +- .../model/batch_job_serialization_format.pyi | 14 +- launch/api_client/model/batch_job_status.py | 23 +- launch/api_client/model/batch_job_status.pyi | 18 +- launch/api_client/model/callback_auth.py | 59 +- launch/api_client/model/callback_auth.pyi | 59 +- .../api_client/model/callback_basic_auth.py | 143 ++- .../api_client/model/callback_basic_auth.pyi | 123 +- launch/api_client/model/callbackm_tls_auth.py | 136 +- .../api_client/model/callbackm_tls_auth.pyi | 112 +- .../model/clone_model_bundle_v1_request.py | 113 +- .../model/clone_model_bundle_v1_request.pyi | 101 +- .../model/create_async_task_response.py | 8 +- .../model/create_async_task_response.pyi | 8 +- .../model/create_async_task_v1_response.py | 77 +- .../model/create_async_task_v1_response.pyi | 69 +- .../model/create_batch_job_request.py | 8 +- .../model/create_batch_job_request.pyi | 8 +- .../create_batch_job_resource_requests.py | 401 ++++-- .../create_batch_job_resource_requests.pyi | 359 ++++-- .../model/create_batch_job_response.py | 8 +- .../model/create_batch_job_response.pyi | 8 +- .../model/create_batch_job_v1_request.py | 216 +++- .../model/create_batch_job_v1_request.pyi | 187 ++- .../model/create_batch_job_v1_response.py | 75 +- .../model/create_batch_job_v1_response.pyi | 69 +- .../model/create_model_bundle_response.py | 8 +- .../model/create_model_bundle_response.pyi | 8 +- .../model/create_model_bundle_v1_request.py | 272 ++-- .../model/create_model_bundle_v1_request.pyi | 231 ++-- .../model/create_model_bundle_v1_response.py | 77 +- .../model/create_model_bundle_v1_response.pyi | 69 +- .../model/create_model_endpoint_request.py | 8 +- .../model/create_model_endpoint_request.pyi | 8 +- .../model/create_model_endpoint_response.py | 8 +- .../model/create_model_endpoint_response.pyi | 8 +- .../model/create_model_endpoint_v1_request.py | 777 +++++++---- .../create_model_endpoint_v1_request.pyi | 710 ++++++---- .../create_model_endpoint_v1_response.py | 81 +- .../create_model_endpoint_v1_response.pyi | 73 +- .../model/delete_model_endpoint_response.py | 8 +- .../model/delete_model_endpoint_response.pyi | 8 +- .../delete_model_endpoint_v1_response.py | 77 +- .../delete_model_endpoint_v1_response.pyi | 69 +- .../model/endpoint_predict_v1_request.py | 200 ++- .../model/endpoint_predict_v1_request.pyi | 166 ++- .../model/get_async_task_v1_response.py | 165 ++- .../model/get_async_task_v1_response.pyi | 145 ++- .../model/get_batch_job_v1_response.py | 171 ++- .../model/get_batch_job_v1_response.pyi | 147 ++- .../model/get_model_endpoint_response.py | 8 +- .../model/get_model_endpoint_response.pyi | 8 +- .../model/get_model_endpoint_v1_response.py | 555 +++++--- .../model/get_model_endpoint_v1_response.pyi | 483 ++++--- launch/api_client/model/gpu_type.py | 17 +- launch/api_client/model/gpu_type.pyi | 15 +- .../api_client/model/http_validation_error.py | 96 +- .../model/http_validation_error.pyi | 86 +- .../model/list_model_bundles_response.py | 8 +- .../model/list_model_bundles_response.pyi | 8 +- .../model/list_model_bundles_v1_response.py | 103 +- .../model/list_model_bundles_v1_response.pyi | 91 +- .../model/list_model_endpoints_response.py | 8 +- .../model/list_model_endpoints_response.pyi | 8 +- .../model/list_model_endpoints_v1_response.py | 104 +- .../list_model_endpoints_v1_response.pyi | 92 +- .../model/model_bundle_environment_params.py | 177 ++- .../model/model_bundle_environment_params.pyi | 151 ++- .../model/model_bundle_framework_type.py | 17 +- .../model/model_bundle_framework_type.pyi | 15 +- .../api_client/model/model_bundle_order_by.py | 15 +- .../model/model_bundle_order_by.pyi | 14 +- .../model/model_bundle_packaging_type.py | 25 +- .../model/model_bundle_packaging_type.pyi | 23 +- .../model/model_bundle_v1_response.py | 367 ++++-- .../model/model_bundle_v1_response.pyi | 307 +++-- .../model/model_endpoint_deployment_state.py | 215 ++-- .../model/model_endpoint_deployment_state.pyi | 181 ++- .../model/model_endpoint_order_by.py | 17 +- .../model/model_endpoint_order_by.pyi | 15 +- .../model/model_endpoint_resource_state.py | 388 ++++-- .../model/model_endpoint_resource_state.pyi | 353 +++-- .../api_client/model/model_endpoint_status.py | 21 +- .../model/model_endpoint_status.pyi | 17 +- .../api_client/model/model_endpoint_type.py | 15 +- .../api_client/model/model_endpoint_type.pyi | 14 +- launch/api_client/model/request_schema.py | 6 +- launch/api_client/model/request_schema.pyi | 6 +- launch/api_client/model/response_schema.py | 6 +- launch/api_client/model/response_schema.pyi | 6 +- .../sync_endpoint_predict_v1_response.py | 144 ++- .../sync_endpoint_predict_v1_response.pyi | 128 +- launch/api_client/model/task_status.py | 21 +- launch/api_client/model/task_status.pyi | 17 +- .../model/update_batch_job_request.py | 8 +- .../model/update_batch_job_request.pyi | 8 +- .../model/update_batch_job_response.py | 8 +- .../model/update_batch_job_response.pyi | 8 +- .../model/update_batch_job_v1_request.py | 75 +- .../model/update_batch_job_v1_request.pyi | 69 +- .../model/update_batch_job_v1_response.py | 77 +- .../model/update_batch_job_v1_response.pyi | 69 +- .../model/update_model_endpoint_request.py | 8 +- .../model/update_model_endpoint_request.pyi | 8 +- .../model/update_model_endpoint_response.py | 8 +- .../model/update_model_endpoint_response.pyi | 8 +- .../model/update_model_endpoint_v1_request.py | 755 ++++++++--- .../update_model_endpoint_v1_request.pyi | 685 ++++++---- .../update_model_endpoint_v1_response.py | 81 +- .../update_model_endpoint_v1_response.pyi | 73 +- launch/api_client/model/validation_error.py | 231 +++- launch/api_client/model/validation_error.pyi | 203 ++- .../api_client/paths/healthcheck/__init__.py | 2 +- launch/api_client/paths/healthcheck/get.py | 88 +- launch/api_client/paths/healthcheck/get.pyi | 85 +- launch/api_client/paths/healthz/__init__.py | 2 +- launch/api_client/paths/healthz/get.py | 88 +- launch/api_client/paths/healthz/get.pyi | 85 +- launch/api_client/paths/readyz/__init__.py | 2 +- launch/api_client/paths/readyz/get.py | 88 +- launch/api_client/paths/readyz/get.pyi | 85 +- .../paths/v1_async_tasks/__init__.py | 2 +- .../api_client/paths/v1_async_tasks/post.py | 160 +-- .../api_client/paths/v1_async_tasks/post.pyi | 158 +-- .../paths/v1_async_tasks_task_id/__init__.py | 2 +- .../paths/v1_async_tasks_task_id/get.py | 122 +- .../paths/v1_async_tasks_task_id/get.pyi | 119 +- .../paths/v1_batch_jobs/__init__.py | 2 +- launch/api_client/paths/v1_batch_jobs/post.py | 142 +- .../api_client/paths/v1_batch_jobs/post.pyi | 138 +- .../v1_batch_jobs_batch_job_id/__init__.py | 2 +- .../paths/v1_batch_jobs_batch_job_id/get.py | 120 +- .../paths/v1_batch_jobs_batch_job_id/get.pyi | 117 +- .../paths/v1_batch_jobs_batch_job_id/put.py | 162 +-- .../paths/v1_batch_jobs_batch_job_id/put.pyi | 160 +-- .../paths/v1_model_bundles/__init__.py | 2 +- .../api_client/paths/v1_model_bundles/get.py | 121 +- .../api_client/paths/v1_model_bundles/get.pyi | 118 +- .../api_client/paths/v1_model_bundles/post.py | 142 +- .../paths/v1_model_bundles/post.pyi | 138 +- .../__init__.py | 2 +- .../post.py | 144 +-- .../post.pyi | 140 +- .../paths/v1_model_bundles_latest/__init__.py | 2 +- .../paths/v1_model_bundles_latest/get.py | 120 +- .../paths/v1_model_bundles_latest/get.pyi | 117 +- .../__init__.py | 2 +- .../v1_model_bundles_model_bundle_id/get.py | 122 +- .../v1_model_bundles_model_bundle_id/get.pyi | 119 +- .../paths/v1_model_endpoints/__init__.py | 2 +- .../paths/v1_model_endpoints/get.py | 119 +- .../paths/v1_model_endpoints/get.pyi | 116 +- .../paths/v1_model_endpoints/post.py | 146 +-- .../paths/v1_model_endpoints/post.pyi | 142 +- .../paths/v1_model_endpoints_api/__init__.py | 2 +- .../paths/v1_model_endpoints_api/get.py | 90 +- .../paths/v1_model_endpoints_api/get.pyi | 85 +- .../__init__.py | 2 +- .../delete.py | 120 +- .../delete.pyi | 117 +- .../get.py | 120 +- .../get.pyi | 117 +- .../put.py | 166 +-- .../put.pyi | 164 +-- .../__init__.py | 2 +- .../v1_model_endpoints_schema_json/get.py | 90 +- .../v1_model_endpoints_schema_json/get.pyi | 85 +- .../paths/v1_sync_tasks/__init__.py | 2 +- launch/api_client/paths/v1_sync_tasks/post.py | 158 +-- .../api_client/paths/v1_sync_tasks/post.pyi | 156 +-- launch/api_client/rest.py | 177 ++- launch/api_client/schemas.py | 1142 +++++++++++------ 181 files changed, 11635 insertions(+), 8419 deletions(-) diff --git a/launch/api_client/__init__.py b/launch/api_client/__init__.py index 290cb8df..528259b2 100644 --- a/launch/api_client/__init__.py +++ b/launch/api_client/__init__.py @@ -20,9 +20,11 @@ from launch.api_client.configuration import Configuration # import exceptions -from launch.api_client.exceptions import OpenApiException -from launch.api_client.exceptions import ApiAttributeError -from launch.api_client.exceptions import ApiTypeError -from launch.api_client.exceptions import ApiValueError -from launch.api_client.exceptions import ApiKeyError -from launch.api_client.exceptions import ApiException +from launch.api_client.exceptions import ( + ApiAttributeError, + ApiException, + ApiKeyError, + ApiTypeError, + ApiValueError, + OpenApiException, +) diff --git a/launch/api_client/api_client.py b/launch/api_client/api_client.py index 6df66791..39eaa4f0 100644 --- a/launch/api_client/api_client.py +++ b/launch/api_client/api_client.py @@ -8,41 +8,40 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -from decimal import Decimal -import enum +import atexit import email +import enum +import io import json import os -import io -import atexit -from multiprocessing.pool import ThreadPool import re import tempfile import typing -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict -from urllib.parse import urlparse, quote -from urllib3.fields import RequestField as RequestFieldBase +from dataclasses import dataclass +from decimal import Decimal +from multiprocessing.pool import ThreadPool +from urllib.parse import quote, urlparse import frozendict - +import typing_extensions +import urllib3 from launch.api_client import rest from launch.api_client.configuration import Configuration from launch.api_client.exceptions import ApiTypeError, ApiValueError from launch.api_client.schemas import ( - NoneClass, + BinarySchema, BoolClass, - Schema, FileIO, - BinarySchema, + NoneClass, + Schema, + Unset, date, datetime, none_type, - Unset, unset, ) +from urllib3._collections import HTTPHeaderDict +from urllib3.fields import RequestField as RequestFieldBase class RequestField(RequestFieldBase): @@ -53,7 +52,7 @@ def __eq__(self, other): class JSONEncoder(json.JSONEncoder): - compact_separators = (',', ':') + compact_separators = (",", ":") def default(self, obj): if isinstance(obj, str): @@ -74,24 +73,26 @@ def default(self, obj): return {key: self.default(val) for key, val in obj.items()} elif isinstance(obj, (list, tuple)): return [self.default(item) for item in obj] - raise ApiValueError('Unable to prepare type {} for serialization'.format(obj.__class__.__name__)) + raise ApiValueError( + "Unable to prepare type {} for serialization".format(obj.__class__.__name__) + ) class ParameterInType(enum.Enum): - QUERY = 'query' - HEADER = 'header' - PATH = 'path' - COOKIE = 'cookie' + QUERY = "query" + HEADER = "header" + PATH = "path" + COOKIE = "cookie" class ParameterStyle(enum.Enum): - MATRIX = 'matrix' - LABEL = 'label' - FORM = 'form' - SIMPLE = 'simple' - SPACE_DELIMITED = 'spaceDelimited' - PIPE_DELIMITED = 'pipeDelimited' - DEEP_OBJECT = 'deepObject' + MATRIX = "matrix" + LABEL = "label" + FORM = "form" + SIMPLE = "simple" + SPACE_DELIMITED = "spaceDelimited" + PIPE_DELIMITED = "pipeDelimited" + DEEP_OBJECT = "deepObject" class PrefixSeparatorIterator: @@ -101,10 +102,10 @@ def __init__(self, prefix: str, separator: str): self.prefix = prefix self.separator = separator self.first = True - if separator in {'.', '|', '%20'}: + if separator in {".", "|", "%20"}: item_separator = separator else: - item_separator = ',' + item_separator = "," self.item_separator = item_separator def __iter__(self): @@ -146,7 +147,9 @@ def __ref6570_item_value(in_data: typing.Any, percent_encode: bool): elif isinstance(in_data, dict) and not in_data: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return None - raise ApiValueError('Unable to generate a ref6570 item representation of {}'.format(in_data)) + raise ApiValueError( + "Unable to generate a ref6570 item representation of {}".format(in_data) + ) @staticmethod def _to_dict(name: str, value: str): @@ -161,12 +164,12 @@ def __ref6570_str_float_int_expansion( percent_encode: bool, prefix_separator_iterator: PrefixSeparatorIterator, var_name_piece: str, - named_parameter_expansion: bool + named_parameter_expansion: bool, ) -> str: item_value = cls.__ref6570_item_value(in_data, percent_encode) - if item_value is None or (item_value == '' and prefix_separator_iterator.separator == ';'): + if item_value is None or (item_value == "" and prefix_separator_iterator.separator == ";"): return next(prefix_separator_iterator) + var_name_piece - value_pair_equals = '=' if named_parameter_expansion else '' + value_pair_equals = "=" if named_parameter_expansion else "" return next(prefix_separator_iterator) + var_name_piece + value_pair_equals + item_value @classmethod @@ -178,20 +181,20 @@ def __ref6570_list_expansion( percent_encode: bool, prefix_separator_iterator: PrefixSeparatorIterator, var_name_piece: str, - named_parameter_expansion: bool + named_parameter_expansion: bool, ) -> str: item_values = [cls.__ref6570_item_value(v, percent_encode) for v in in_data] item_values = [v for v in item_values if v is not None] if not item_values: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return "" - value_pair_equals = '=' if named_parameter_expansion else '' + value_pair_equals = "=" if named_parameter_expansion else "" if not explode: return ( - next(prefix_separator_iterator) + - var_name_piece + - value_pair_equals + - prefix_separator_iterator.item_separator.join(item_values) + next(prefix_separator_iterator) + + var_name_piece + + value_pair_equals + + prefix_separator_iterator.item_separator.join(item_values) ) # exploded return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( @@ -207,27 +210,31 @@ def __ref6570_dict_expansion( percent_encode: bool, prefix_separator_iterator: PrefixSeparatorIterator, var_name_piece: str, - named_parameter_expansion: bool + named_parameter_expansion: bool, ) -> str: - in_data_transformed = {key: cls.__ref6570_item_value(val, percent_encode) for key, val in in_data.items()} - in_data_transformed = {key: val for key, val in in_data_transformed.items() if val is not None} + in_data_transformed = { + key: cls.__ref6570_item_value(val, percent_encode) for key, val in in_data.items() + } + in_data_transformed = { + key: val for key, val in in_data_transformed.items() if val is not None + } if not in_data_transformed: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return "" - value_pair_equals = '=' if named_parameter_expansion else '' + value_pair_equals = "=" if named_parameter_expansion else "" if not explode: return ( - next(prefix_separator_iterator) + - var_name_piece + value_pair_equals + - prefix_separator_iterator.item_separator.join( - prefix_separator_iterator.item_separator.join( - item_pair - ) for item_pair in in_data_transformed.items() + next(prefix_separator_iterator) + + var_name_piece + + value_pair_equals + + prefix_separator_iterator.item_separator.join( + prefix_separator_iterator.item_separator.join(item_pair) + for item_pair in in_data_transformed.items() ) ) # exploded return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( - [key + '=' + val for key, val in in_data_transformed.items()] + [key + "=" + val for key, val in in_data_transformed.items()] ) @classmethod @@ -237,13 +244,13 @@ def _ref6570_expansion( in_data: typing.Any, explode: bool, percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator + prefix_separator_iterator: PrefixSeparatorIterator, ) -> str: """ Separator is for separate variables like dict with explode true, not for array item separation """ - named_parameter_expansion = prefix_separator_iterator.separator in {'&', ';'} - var_name_piece = variable_name if named_parameter_expansion else '' + named_parameter_expansion = prefix_separator_iterator.separator in {"&", ";"} + var_name_piece = variable_name if named_parameter_expansion else "" if type(in_data) in {str, float, int}: return cls.__ref6570_str_float_int_expansion( variable_name, @@ -252,7 +259,7 @@ def _ref6570_expansion( percent_encode, prefix_separator_iterator, var_name_piece, - named_parameter_expansion + named_parameter_expansion, ) elif isinstance(in_data, none_type): # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 @@ -265,7 +272,7 @@ def _ref6570_expansion( percent_encode, prefix_separator_iterator, var_name_piece, - named_parameter_expansion + named_parameter_expansion, ) elif isinstance(in_data, dict): return cls.__ref6570_dict_expansion( @@ -275,10 +282,10 @@ def _ref6570_expansion( percent_encode, prefix_separator_iterator, var_name_piece, - named_parameter_expansion + named_parameter_expansion, ) # bool, bytes, etc - raise ApiValueError('Unable to generate a ref6570 representation of {}'.format(in_data)) + raise ApiValueError("Unable to generate a ref6570 representation of {}".format(in_data)) class StyleFormSerializer(ParameterSerializerBase): @@ -294,35 +301,34 @@ def _serialize_form( name: str, explode: bool, percent_encode: bool, - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None, ) -> str: if prefix_separator_iterator is None: - prefix_separator_iterator = PrefixSeparatorIterator('', '&') + prefix_separator_iterator = PrefixSeparatorIterator("", "&") return self._ref6570_expansion( variable_name=name, in_data=in_data, explode=explode, percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) class StyleSimpleSerializer(ParameterSerializerBase): - def _serialize_simple( self, in_data: typing.Union[None, int, float, str, bool, dict, list], name: str, explode: bool, - percent_encode: bool + percent_encode: bool, ) -> str: - prefix_separator_iterator = PrefixSeparatorIterator('', ',') + prefix_separator_iterator = PrefixSeparatorIterator("", ",") return self._ref6570_expansion( variable_name=name, in_data=in_data, explode=explode, percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) @@ -334,6 +340,7 @@ class JSONDetector: application/json-patch+json application/geo+json """ + __json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*") @classmethod @@ -369,17 +376,19 @@ class ParameterBase(JSONDetector): ParameterInType.HEADER: ParameterStyle.SIMPLE, ParameterInType.COOKIE: ParameterStyle.FORM, } - __disallowed_header_names = {'Accept', 'Content-Type', 'Authorization'} + __disallowed_header_names = {"Accept", "Content-Type", "Authorization"} _json_encoder = JSONEncoder() @classmethod - def __verify_style_to_in_type(cls, style: typing.Optional[ParameterStyle], in_type: ParameterInType): + def __verify_style_to_in_type( + cls, style: typing.Optional[ParameterStyle], in_type: ParameterInType + ): if style is None: return in_type_set = cls.__style_to_in_type[style] if in_type not in in_type_set: raise ValueError( - 'Invalid style and in_type combination. For style={} only in_type={} are allowed'.format( + "Invalid style and in_type combination. For style={} only in_type={} are allowed".format( style, in_type_set ) ) @@ -393,19 +402,23 @@ def __init__( explode: bool = False, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, ): if schema is None and content is None: - raise ValueError('Value missing; Pass in either schema or content') + raise ValueError("Value missing; Pass in either schema or content") if schema and content: - raise ValueError('Too many values provided. Both schema and content were provided. Only one may be input') + raise ValueError( + "Too many values provided. Both schema and content were provided. Only one may be input" + ) if name in self.__disallowed_header_names and in_type is ParameterInType.HEADER: - raise ValueError('Invalid name, name may not be one of {}'.format(self.__disallowed_header_names)) + raise ValueError( + "Invalid name, name may not be one of {}".format(self.__disallowed_header_names) + ) self.__verify_style_to_in_type(style, in_type) if content is None and style is None: style = self.__in_type_to_default_style[in_type] if content is not None and in_type in self.__in_type_to_default_style and len(content) != 1: - raise ValueError('Invalid content length, content length must equal 1') + raise ValueError("Invalid content length, content length must equal 1") self.in_type = in_type self.name = name self.required = required @@ -418,7 +431,7 @@ def __init__( def _serialize_json( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - eliminate_whitespace: bool = False + eliminate_whitespace: bool = False, ) -> str: if eliminate_whitespace: return json.dumps(in_data, separators=self._json_encoder.compact_separators) @@ -426,7 +439,6 @@ def _serialize_json( class PathParameter(ParameterBase, StyleSimpleSerializer): - def __init__( self, name: str, @@ -435,7 +447,7 @@ def __init__( explode: bool = False, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, ): super().__init__( name, @@ -445,34 +457,32 @@ def __init__( explode=explode, allow_reserved=allow_reserved, schema=schema, - content=content + content=content, ) def __serialize_label( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list] + self, in_data: typing.Union[None, int, float, str, bool, dict, list] ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator('.', '.') + prefix_separator_iterator = PrefixSeparatorIterator(".", ".") value = self._ref6570_expansion( variable_name=self.name, in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) return self._to_dict(self.name, value) def __serialize_matrix( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list] + self, in_data: typing.Union[None, int, float, str, bool, dict, list] ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator(';', ';') + prefix_separator_iterator = PrefixSeparatorIterator(";", ";") value = self._ref6570_expansion( variable_name=self.name, in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) return self._to_dict(self.name, value) @@ -481,17 +491,27 @@ def __serialize_simple( in_data: typing.Union[None, int, float, str, bool, dict, list], ) -> typing.Dict[str, str]: value = self._serialize_simple( - in_data=in_data, - name=self.name, - explode=self.explode, - percent_encode=True + in_data=in_data, name=self.name, explode=self.explode, percent_encode=True ) return self._to_dict(self.name, value) 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: cast_in_data = self.schema(in_data) @@ -519,11 +539,12 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self._to_dict(self.name, value) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) + raise NotImplementedError( + "Serialization of {} has not yet been implemented".format(content_type) + ) class QueryParameter(ParameterBase, StyleFormSerializer): - def __init__( self, name: str, @@ -532,7 +553,7 @@ def __init__( explode: typing.Optional[bool] = None, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, ): used_style = ParameterStyle.FORM if style is None else style used_explode = self._get_default_explode(used_style) if explode is None else explode @@ -545,13 +566,13 @@ def __init__( explode=used_explode, allow_reserved=allow_reserved, schema=schema, - content=content + content=content, ) def __serialize_space_delimited( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], ) -> typing.Dict[str, str]: if prefix_separator_iterator is None: prefix_separator_iterator = self.get_prefix_separator_iterator() @@ -560,14 +581,14 @@ def __serialize_space_delimited( in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) return self._to_dict(self.name, value) def __serialize_pipe_delimited( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], ) -> typing.Dict[str, str]: if prefix_separator_iterator is None: prefix_separator_iterator = self.get_prefix_separator_iterator() @@ -576,14 +597,14 @@ def __serialize_pipe_delimited( in_data=in_data, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) return self._to_dict(self.name, value) def __serialize_form( self, in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] + prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator], ) -> typing.Dict[str, str]: if prefix_separator_iterator is None: prefix_separator_iterator = self.get_prefix_separator_iterator() @@ -592,23 +613,36 @@ def __serialize_form( name=self.name, explode=self.explode, percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator + prefix_separator_iterator=prefix_separator_iterator, ) return self._to_dict(self.name, value) def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterator]: if self.style is ParameterStyle.FORM: - return PrefixSeparatorIterator('?', '&') + return PrefixSeparatorIterator("?", "&") elif self.style is ParameterStyle.SPACE_DELIMITED: - return PrefixSeparatorIterator('', '%20') + return PrefixSeparatorIterator("", "%20") elif self.style is ParameterStyle.PIPE_DELIMITED: - return PrefixSeparatorIterator('', '|') + return PrefixSeparatorIterator("", "|") def serialize( self, in_data: typing.Union[ - Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None + 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]: if self.schema: cast_in_data = self.schema(in_data) @@ -643,14 +677,14 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data, eliminate_whitespace=True) return self._to_dict( - self.name, - next(prefix_separator_iterator) + self.name + '=' + quote(value) + self.name, next(prefix_separator_iterator) + self.name + "=" + quote(value) ) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) + raise NotImplementedError( + "Serialization of {} has not yet been implemented".format(content_type) + ) class CookieParameter(ParameterBase, StyleFormSerializer): - def __init__( self, name: str, @@ -659,7 +693,7 @@ def __init__( explode: typing.Optional[bool] = None, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, ): used_style = ParameterStyle.FORM if style is None and content is None and schema else style used_explode = self._get_default_explode(used_style) if explode is None else explode @@ -672,13 +706,26 @@ def __init__( explode=used_explode, allow_reserved=allow_reserved, schema=schema, - content=content + content=content, ) 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: cast_in_data = self.schema(in_data) @@ -697,7 +744,7 @@ def serialize( explode=self.explode, name=self.name, percent_encode=False, - prefix_separator_iterator=PrefixSeparatorIterator('', '&') + prefix_separator_iterator=PrefixSeparatorIterator("", "&"), ) return self._to_dict(self.name, value) # self.content will be length one @@ -707,7 +754,9 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self._to_dict(self.name, value) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) + raise NotImplementedError( + "Serialization of {} has not yet been implemented".format(content_type) + ) class HeaderParameter(ParameterBase, StyleSimpleSerializer): @@ -719,7 +768,7 @@ def __init__( explode: bool = False, allow_reserved: typing.Optional[bool] = None, schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None + content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None, ): super().__init__( name, @@ -729,7 +778,7 @@ def __init__( explode=explode, allow_reserved=allow_reserved, schema=schema, - content=content + content=content, ) @staticmethod @@ -744,7 +793,20 @@ 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: cast_in_data = self.schema(in_data) @@ -764,7 +826,9 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self.__to_headers(((self.name, value),)) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) + raise NotImplementedError( + "Serialization of {} has not yet been implemented".format(content_type) + ) class Encoding: @@ -793,6 +857,7 @@ class MediaType: The encoding object SHALL only apply to requestBody objects when the media type is multipart or application/x-www-form-urlencoded. """ + schema: typing.Optional[typing.Type[Schema]] = None encoding: typing.Optional[typing.Dict[str, Encoding]] = None @@ -807,7 +872,7 @@ def __init__( self, response: urllib3.HTTPResponse, body: typing.Union[Unset, Schema] = unset, - headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset + headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset, ): """ pycharm needs this to prevent 'Unexpected argument' warnings @@ -835,7 +900,7 @@ def __init__( ): self.headers = headers if content is not None and len(content) == 0: - raise ValueError('Invalid value for content, the content dict must have >= 1 entry') + raise ValueError("Invalid value for content, the content dict must have >= 1 entry") self.content = content self.response_cls = response_cls @@ -858,7 +923,9 @@ def __file_name_from_response_url(response_url: typing.Optional[str]) -> typing. return None @classmethod - def __file_name_from_content_disposition(cls, content_disposition: typing.Optional[str]) -> typing.Optional[str]: + def __file_name_from_content_disposition( + cls, content_disposition: typing.Optional[str] + ) -> typing.Optional[str]: if content_disposition is None: return None match = cls.__filename_content_disposition_pattern.search(content_disposition) @@ -876,17 +943,16 @@ def __deserialize_application_octet_stream( a file will be written and returned """ if response.supports_chunked_reads(): - file_name = ( - self.__file_name_from_content_disposition(response.headers.get('content-disposition')) - or self.__file_name_from_response_url(response.geturl()) - ) + file_name = self.__file_name_from_content_disposition( + response.headers.get("content-disposition") + ) or self.__file_name_from_response_url(response.geturl()) if file_name is None: _fd, path = tempfile.mkstemp() else: path = os.path.join(tempfile.gettempdir(), file_name) - with open(path, 'wb') as new_file: + with open(path, "wb") as new_file: chunk_size = 1024 while True: data = response.read(chunk_size) @@ -895,14 +961,14 @@ def __deserialize_application_octet_stream( new_file.write(data) # release_conn is needed for streaming connections only response.release_conn() - new_file = open(path, 'rb') + new_file = open(path, "rb") return new_file else: return response.data @staticmethod def __deserialize_multipart_form_data( - response: urllib3.HTTPResponse + response: urllib3.HTTPResponse, ) -> typing.Dict[str, typing.Any]: msg = email.message_from_bytes(response.data) return { @@ -914,8 +980,10 @@ def __deserialize_multipart_form_data( for part in msg.get_payload() } - def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: - content_type = response.getheader('content-type') + def deserialize( + self, response: urllib3.HTTPResponse, configuration: Configuration + ) -> ApiResponse: + content_type = response.getheader("content-type") deserialized_body = unset streamed = response.supports_chunked_reads() @@ -934,29 +1002,28 @@ def deserialize(self, response: urllib3.HTTPResponse, configuration: Configurati if body_schema is None: # some specs do not define response content media type schemas return self.response_cls( - response=response, - headers=deserialized_headers, - body=unset + response=response, headers=deserialized_headers, body=unset ) if self._content_type_is_json(content_type): body_data = self.__deserialize_json(response) - elif content_type == 'application/octet-stream': + elif content_type == "application/octet-stream": body_data = self.__deserialize_application_octet_stream(response) - elif content_type.startswith('multipart/form-data'): + elif content_type.startswith("multipart/form-data"): body_data = self.__deserialize_multipart_form_data(response) - content_type = 'multipart/form-data' + content_type = "multipart/form-data" else: - raise NotImplementedError('Deserialization of {} has not yet been implemented'.format(content_type)) + raise NotImplementedError( + "Deserialization of {} has not yet been implemented".format(content_type) + ) deserialized_body = body_schema.from_openapi_data_oapg( - body_data, _configuration=configuration) + body_data, _configuration=configuration + ) elif streamed: response.release_conn() return self.response_cls( - response=response, - headers=deserialized_headers, - body=deserialized_body + response=response, headers=deserialized_headers, body=deserialized_body ) @@ -990,7 +1057,7 @@ def __init__( header_name: typing.Optional[str] = None, header_value: typing.Optional[str] = None, cookie: typing.Optional[str] = None, - pool_threads: int = 1 + pool_threads: int = 1, ): if configuration is None: configuration = Configuration() @@ -1003,7 +1070,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.6/python' + self.user_agent = "OpenAPI-Generator/1.0.6/python" def __enter__(self): return self @@ -1016,13 +1083,13 @@ def close(self): self._pool.close() self._pool.join() self._pool = None - if hasattr(atexit, 'unregister'): + if hasattr(atexit, "unregister"): atexit.unregister(self.close) @property def pool(self): """Create thread pool on first request - avoids instantiating unused threadpool for blocking clients. + avoids instantiating unused threadpool for blocking clients. """ if self._pool is None: atexit.register(self.close) @@ -1032,11 +1099,11 @@ def pool(self): @property def user_agent(self): """User agent for this API client""" - return self.default_headers['User-Agent'] + return self.default_headers["User-Agent"] @user_agent.setter def user_agent(self, value): - self.default_headers['User-Agent'] = value + self.default_headers["User-Agent"] = value def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value @@ -1053,15 +1120,13 @@ def __call_api( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, host: typing.Optional[str] = None, ) -> urllib3.HTTPResponse: - # header parameters used_headers = HTTPHeaderDict(self.default_headers) if self.cookie: - headers['Cookie'] = self.cookie + headers["Cookie"] = self.cookie # auth setting - self.update_params_for_auth(used_headers, - auth_settings, resource_path, method, body) + self.update_params_for_auth(used_headers, auth_settings, resource_path, method, body) # must happen after cookie setting and auth setting in case user is overriding those if headers: @@ -1159,7 +1224,7 @@ def call_api( stream, timeout, host, - ) + ), ) def request( @@ -1174,57 +1239,36 @@ def request( ) -> urllib3.HTTPResponse: """Makes the HTTP request using RESTClient.""" if method == "GET": - return self.rest_client.GET(url, - stream=stream, - timeout=timeout, - headers=headers) + return self.rest_client.GET(url, stream=stream, timeout=timeout, headers=headers) elif method == "HEAD": - return self.rest_client.HEAD(url, - stream=stream, - timeout=timeout, - headers=headers) + return self.rest_client.HEAD(url, stream=stream, timeout=timeout, headers=headers) elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) + return self.rest_client.OPTIONS( + url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body + ) elif method == "POST": - return self.rest_client.POST(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) + return self.rest_client.POST( + url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body + ) elif method == "PUT": - return self.rest_client.PUT(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) + return self.rest_client.PUT( + url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body + ) elif method == "PATCH": - return self.rest_client.PATCH(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) + return self.rest_client.PATCH( + url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body + ) elif method == "DELETE": - return self.rest_client.DELETE(url, - headers=headers, - stream=stream, - timeout=timeout, - body=body) + return self.rest_client.DELETE( + url, headers=headers, stream=stream, timeout=timeout, body=body + ) else: raise ApiValueError( "http method must be `GET`, `HEAD`, `OPTIONS`," " `POST`, `PATCH`, `PUT` or `DELETE`." ) - def update_params_for_auth(self, headers, auth_settings, - resource_path, method, body): + def update_params_for_auth(self, headers, auth_settings, resource_path, method, body): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. @@ -1241,21 +1285,19 @@ def update_params_for_auth(self, headers, auth_settings, auth_setting = self.configuration.auth_settings().get(auth) if not auth_setting: continue - if auth_setting['in'] == 'cookie': - headers.add('Cookie', auth_setting['value']) - elif auth_setting['in'] == 'header': - if auth_setting['type'] != 'http-signature': - headers.add(auth_setting['key'], auth_setting['value']) - elif auth_setting['in'] == 'query': - """ TODO implement auth in query + if auth_setting["in"] == "cookie": + headers.add("Cookie", auth_setting["value"]) + elif auth_setting["in"] == "header": + if auth_setting["type"] != "http-signature": + headers.add(auth_setting["key"], auth_setting["value"]) + elif auth_setting["in"] == "query": + """TODO implement auth in query need to pass in prefix_separator_iterator and need to output resource_path with query params added """ raise ApiValueError("Auth in query not yet implemented") else: - raise ApiValueError( - 'Authentication token must be in `query` or `header`' - ) + raise ApiValueError("Authentication token must be in `query` or `header`") class Api: @@ -1271,7 +1313,9 @@ def __init__(self, api_client: typing.Optional[ApiClient] = None): self.api_client = api_client @staticmethod - def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any]): + def _verify_typed_dict_inputs_oapg( + cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any] + ): """ Ensures that: - required keys are present @@ -1290,14 +1334,16 @@ def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict] required_keys_with_unset_values.append(required_key) if missing_required_keys: raise ApiTypeError( - '{} missing {} required arguments: {}'.format( + "{} missing {} required arguments: {}".format( cls.__name__, len(missing_required_keys), missing_required_keys - ) - ) + ) + ) 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 + "{} contains invalid unset values for {} required keys: {}".format( + cls.__name__, + len(required_keys_with_unset_values), + required_keys_with_unset_values, ) ) @@ -1308,7 +1354,7 @@ def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict] disallowed_additional_keys.append(key) if disallowed_additional_keys: raise ApiTypeError( - '{} got {} unexpected keyword arguments: {}'.format( + "{} got {} unexpected keyword arguments: {}".format( cls.__name__, len(disallowed_additional_keys), disallowed_additional_keys ) ) @@ -1317,7 +1363,7 @@ def _get_host_oapg( self, operation_id: str, servers: typing.Tuple[typing.Dict[str, str], ...] = tuple(), - host_index: typing.Optional[int] = None + host_index: typing.Optional[int] = None, ) -> typing.Optional[str]: configuration = self.api_client.configuration try: @@ -1335,10 +1381,7 @@ def _get_host_oapg( ) except IndexError: if servers: - raise ApiValueError( - "Invalid host index. Must be 0 <= index < %s" % - len(servers) - ) + raise ApiValueError("Invalid host index. Must be 0 <= index < %s" % len(servers)) host = None return host @@ -1353,6 +1396,7 @@ class RequestBody(StyleFormSerializer, JSONDetector): A request body parameter content: content_type to MediaType Schema info """ + __json_encoder = JSONEncoder() def __init__( @@ -1362,47 +1406,44 @@ def __init__( ): self.required = required if len(content) == 0: - raise ValueError('Invalid value for content, the content dict must have >= 1 entry') + raise ValueError("Invalid value for content, the content dict must have >= 1 entry") self.content = content - def __serialize_json( - self, - in_data: typing.Any - ) -> typing.Dict[str, bytes]: + def __serialize_json(self, in_data: typing.Any) -> typing.Dict[str, bytes]: in_data = self.__json_encoder.default(in_data) - json_str = json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode( - "utf-8" - ) + json_str = json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode("utf-8") return dict(body=json_str) @staticmethod def __serialize_text_plain(in_data: typing.Any) -> typing.Dict[str, str]: if isinstance(in_data, frozendict.frozendict): - raise ValueError('Unable to serialize type frozendict.frozendict to text/plain') + raise ValueError("Unable to serialize type frozendict.frozendict to text/plain") elif isinstance(in_data, tuple): - raise ValueError('Unable to serialize type tuple to text/plain') + raise ValueError("Unable to serialize type tuple to text/plain") elif isinstance(in_data, NoneClass): - raise ValueError('Unable to serialize type NoneClass to text/plain') + raise ValueError("Unable to serialize type NoneClass to text/plain") elif isinstance(in_data, BoolClass): - raise ValueError('Unable to serialize type BoolClass to text/plain') + raise ValueError("Unable to serialize type BoolClass to text/plain") return dict(body=str(in_data)) def __multipart_json_item(self, key: str, value: Schema) -> RequestField: json_value = self.__json_encoder.default(value) request_field = RequestField(name=key, data=json.dumps(json_value)) - request_field.make_multipart(content_type='application/json') + request_field.make_multipart(content_type="application/json") return request_field def __multipart_form_item(self, key: str, value: Schema) -> RequestField: if isinstance(value, str): request_field = RequestField(name=key, data=str(value)) - request_field.make_multipart(content_type='text/plain') + request_field.make_multipart(content_type="text/plain") elif isinstance(value, bytes): request_field = RequestField(name=key, data=value) - request_field.make_multipart(content_type='application/octet-stream') + request_field.make_multipart(content_type="application/octet-stream") elif isinstance(value, FileIO): # TODO use content.encoding to limit allowed content types if they are present - request_field = RequestField.from_tuples(key, (os.path.basename(value.name), value.read())) + request_field = RequestField.from_tuples( + key, (os.path.basename(value.name), value.read()) + ) value.close() else: request_field = self.__multipart_json_item(key=key, value=value) @@ -1412,7 +1453,9 @@ def __serialize_multipart_form_data( self, in_data: Schema ) -> typing.Dict[str, typing.Tuple[RequestField, ...]]: if not isinstance(in_data, frozendict.frozendict): - raise ValueError(f'Unable to serialize {in_data} to multipart/form-data because it is not a dict of data') + raise ValueError( + f"Unable to serialize {in_data} to multipart/form-data because it is not a dict of data" + ) """ In a multipart/form-data request body, each schema property, or each element of a schema array property, takes a section in the payload with an internal header as defined by RFC7578. The serialization strategy @@ -1444,7 +1487,9 @@ def __serialize_multipart_form_data( return dict(fields=tuple(fields)) - def __serialize_application_octet_stream(self, in_data: BinarySchema) -> typing.Dict[str, bytes]: + def __serialize_application_octet_stream( + self, in_data: BinarySchema + ) -> typing.Dict[str, bytes]: if isinstance(in_data, bytes): return dict(body=in_data) # FileIO type @@ -1452,22 +1497,19 @@ def __serialize_application_octet_stream(self, in_data: BinarySchema) -> typing. in_data.close() return result - def __serialize_application_x_www_form_data( - self, in_data: typing.Any - ) -> SerializedRequestBody: + def __serialize_application_x_www_form_data(self, in_data: typing.Any) -> SerializedRequestBody: """ POST submission of form data in body """ if not isinstance(in_data, frozendict.frozendict): raise ValueError( - f'Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data') + f"Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data" + ) cast_in_data = self.__json_encoder.default(in_data) - value = self._serialize_form(cast_in_data, name='', explode=True, percent_encode=True) + value = self._serialize_form(cast_in_data, name="", explode=True, percent_encode=True) return dict(body=value) - def serialize( - self, in_data: typing.Any, content_type: str - ) -> SerializedRequestBody: + def serialize(self, in_data: typing.Any, content_type: str) -> SerializedRequestBody: """ If a str is returned then the result will be assigned to data when making the request If a tuple is returned then the result will be used as fields input in encode_multipart_formdata @@ -1488,12 +1530,14 @@ def serialize( # and content_type is multipart or application/x-www-form-urlencoded if self._content_type_is_json(content_type): return self.__serialize_json(cast_in_data) - elif content_type == 'text/plain': + elif content_type == "text/plain": return self.__serialize_text_plain(cast_in_data) - elif content_type == 'multipart/form-data': + elif content_type == "multipart/form-data": return self.__serialize_multipart_form_data(cast_in_data) - elif content_type == 'application/x-www-form-urlencoded': + elif content_type == "application/x-www-form-urlencoded": return self.__serialize_application_x_www_form_data(cast_in_data) - elif content_type == 'application/octet-stream': + elif content_type == "application/octet-stream": return self.__serialize_application_octet_stream(cast_in_data) - raise NotImplementedError('Serialization has not yet been implemented for {}'.format(content_type)) \ No newline at end of file + raise NotImplementedError( + "Serialization has not yet been implemented for {}".format(content_type) + ) diff --git a/launch/api_client/apis/__init__.py b/launch/api_client/apis/__init__.py index 7840f772..5ca66b80 100644 --- a/launch/api_client/apis/__init__.py +++ b/launch/api_client/apis/__init__.py @@ -1,3 +1,3 @@ # do not import all endpoints into this module because that uses a lot of memory and stack frames # if you need the ability to import all endpoints then import them from -# tags, paths, or path_to_api, or tag_to_api \ No newline at end of file +# tags, paths, or path_to_api, or tag_to_api diff --git a/launch/api_client/apis/path_to_api.py b/launch/api_client/apis/path_to_api.py index 4b5eab03..7c6507df 100644 --- a/launch/api_client/apis/path_to_api.py +++ b/launch/api_client/apis/path_to_api.py @@ -1,6 +1,4 @@ import typing_extensions - -from launch.api_client.paths import PathValues from launch.api_client.apis.paths.healthcheck import Healthcheck from launch.api_client.apis.paths.healthz import Healthz from launch.api_client.apis.paths.readyz import Readyz @@ -9,17 +7,22 @@ from launch.api_client.apis.paths.v1_batch_jobs import V1BatchJobs from launch.api_client.apis.paths.v1_batch_jobs_batch_job_id import V1BatchJobsBatchJobId 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 +from launch.api_client.apis.paths.v1_model_bundles_clone_with_changes import ( + V1ModelBundlesCloneWithChanges, +) from launch.api_client.apis.paths.v1_model_bundles_latest import V1ModelBundlesLatest from launch.api_client.apis.paths.v1_model_bundles_model_bundle_id import V1ModelBundlesModelBundleId from launch.api_client.apis.paths.v1_model_endpoints import V1ModelEndpoints from launch.api_client.apis.paths.v1_model_endpoints_api import V1ModelEndpointsApi +from launch.api_client.apis.paths.v1_model_endpoints_model_endpoint_id import ( + V1ModelEndpointsModelEndpointId, +) from launch.api_client.apis.paths.v1_model_endpoints_schema_json import V1ModelEndpointsSchemaJson -from launch.api_client.apis.paths.v1_model_endpoints_model_endpoint_id import V1ModelEndpointsModelEndpointId from launch.api_client.apis.paths.v1_sync_tasks import V1SyncTasks +from launch.api_client.paths import PathValues PathToApi = typing_extensions.TypedDict( - 'PathToApi', + "PathToApi", { PathValues.HEALTHCHECK: Healthcheck, PathValues.HEALTHZ: Healthz, @@ -37,7 +40,7 @@ PathValues.V1_MODELENDPOINTSSCHEMA_JSON: V1ModelEndpointsSchemaJson, PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID: V1ModelEndpointsModelEndpointId, PathValues.V1_SYNCTASKS: V1SyncTasks, - } + }, ) path_to_api = PathToApi( diff --git a/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py b/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py index a4bd9dfb..b3f11069 100644 --- a/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py +++ b/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py @@ -1,6 +1,6 @@ +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ApiFordelete from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ApiForget from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ApiForput -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ApiFordelete class V1ModelEndpointsModelEndpointId( diff --git a/launch/api_client/apis/tag_to_api.py b/launch/api_client/apis/tag_to_api.py index f2a2dfcf..7c03da75 100644 --- a/launch/api_client/apis/tag_to_api.py +++ b/launch/api_client/apis/tag_to_api.py @@ -1,13 +1,12 @@ import typing_extensions - from launch.api_client.apis.tags import TagValues from launch.api_client.apis.tags.default_api import DefaultApi TagToApi = typing_extensions.TypedDict( - 'TagToApi', + "TagToApi", { TagValues.DEFAULT: DefaultApi, - } + }, ) tag_to_api = TagToApi( diff --git a/launch/api_client/apis/tags/default_api.py b/launch/api_client/apis/tags/default_api.py index acabeccb..4866826d 100644 --- a/launch/api_client/apis/tags/default_api.py +++ b/launch/api_client/apis/tags/default_api.py @@ -9,27 +9,47 @@ Generated by: https://openapi-generator.tech """ -from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost -from launch.api_client.paths.v1_async_tasks.post import CreateAsyncInferenceTaskV1AsyncTasksPost -from launch.api_client.paths.v1_batch_jobs.post import CreateBatchJobV1BatchJobsPost -from launch.api_client.paths.v1_model_bundles.post import CreateModelBundleV1ModelBundlesPost -from launch.api_client.paths.v1_model_endpoints.post import CreateModelEndpointV1ModelEndpointsPost -from launch.api_client.paths.v1_sync_tasks.post import CreateSyncInferenceTaskV1SyncTasksPost -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete -from launch.api_client.paths.v1_async_tasks_task_id.get import GetAsyncInferenceTaskV1AsyncTasksTaskIdGet -from launch.api_client.paths.v1_batch_jobs_batch_job_id.get import GetBatchJobV1BatchJobsBatchJobIdGet -from launch.api_client.paths.v1_model_bundles_latest.get import GetLatestModelBundleV1ModelBundlesLatestGet -from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import GetModelBundleV1ModelBundlesModelBundleIdGet -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import GetModelEndpointV1ModelEndpointsModelEndpointIdGet -from launch.api_client.paths.v1_model_endpoints_api.get import GetModelEndpointsApiV1ModelEndpointsApiGet -from launch.api_client.paths.v1_model_endpoints_schema_json.get import GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet from launch.api_client.paths.healthcheck.get import HealthcheckHealthcheckGet from launch.api_client.paths.healthz.get import HealthcheckHealthzGet from launch.api_client.paths.readyz.get import HealthcheckReadyzGet +from launch.api_client.paths.v1_async_tasks.post import CreateAsyncInferenceTaskV1AsyncTasksPost +from launch.api_client.paths.v1_async_tasks_task_id.get import ( + GetAsyncInferenceTaskV1AsyncTasksTaskIdGet, +) +from launch.api_client.paths.v1_batch_jobs.post import CreateBatchJobV1BatchJobsPost +from launch.api_client.paths.v1_batch_jobs_batch_job_id.get import GetBatchJobV1BatchJobsBatchJobIdGet +from launch.api_client.paths.v1_batch_jobs_batch_job_id.put import ( + UpdateBatchJobV1BatchJobsBatchJobIdPut, +) from launch.api_client.paths.v1_model_bundles.get import ListModelBundlesV1ModelBundlesGet +from launch.api_client.paths.v1_model_bundles.post import CreateModelBundleV1ModelBundlesPost +from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ( + CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost, +) +from launch.api_client.paths.v1_model_bundles_latest.get import ( + GetLatestModelBundleV1ModelBundlesLatestGet, +) +from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ( + GetModelBundleV1ModelBundlesModelBundleIdGet, +) from launch.api_client.paths.v1_model_endpoints.get import ListModelEndpointsV1ModelEndpointsGet -from launch.api_client.paths.v1_batch_jobs_batch_job_id.put import UpdateBatchJobV1BatchJobsBatchJobIdPut -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut +from launch.api_client.paths.v1_model_endpoints.post import CreateModelEndpointV1ModelEndpointsPost +from launch.api_client.paths.v1_model_endpoints_api.get import ( + GetModelEndpointsApiV1ModelEndpointsApiGet, +) +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ( + DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete, +) +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ( + GetModelEndpointV1ModelEndpointsModelEndpointIdGet, +) +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ( + UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut, +) +from launch.api_client.paths.v1_model_endpoints_schema_json.get import ( + GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet, +) +from launch.api_client.paths.v1_sync_tasks.post import CreateSyncInferenceTaskV1SyncTasksPost class DefaultApi( @@ -60,4 +80,5 @@ class DefaultApi( Do not edit the class manually. """ + pass diff --git a/launch/api_client/configuration.py b/launch/api_client/configuration.py index 92d13b9d..1a596048 100644 --- a/launch/api_client/configuration.py +++ b/launch/api_client/configuration.py @@ -13,85 +13,94 @@ import logging import multiprocessing import sys -import urllib3 - from http import client as http_client -from launch.api_client.exceptions import ApiValueError +import urllib3 +from launch.api_client.exceptions import ApiValueError JSON_SCHEMA_VALIDATION_KEYWORDS = { - 'multipleOf', 'maximum', 'exclusiveMaximum', - 'minimum', 'exclusiveMinimum', 'maxLength', - 'minLength', 'pattern', 'maxItems', 'minItems', - 'uniqueItems', 'maxProperties', 'minProperties', + "multipleOf", + "maximum", + "exclusiveMaximum", + "minimum", + "exclusiveMinimum", + "maxLength", + "minLength", + "pattern", + "maxItems", + "minItems", + "uniqueItems", + "maxProperties", + "minProperties", } + class Configuration(object): """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - Do not edit the class manually. - - :param host: Base url - :param api_key: Dict to store API key(s). - Each entry in the dict specifies an API key. - The dict key is the name of the security scheme in the OAS specification. - The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer) - The dict key is the name of the security scheme in the OAS specification. - The dict value is an API key prefix when generating the auth data. - :param username: Username for HTTP basic authentication - :param password: Password for HTTP basic authentication - :param discard_unknown_keys: Boolean value indicating whether to discard - unknown properties. A server may send a response that includes additional - properties that are not known by the client in the following scenarios: - 1. The OpenAPI document is incomplete, i.e. it does not match the server - implementation. - 2. The client was generated using an older version of the OpenAPI document - and the server has been upgraded since then. - If a schema in the OpenAPI document defines the additionalProperties attribute, - then all undeclared properties received by the server are injected into the - additional properties map. In that case, there are undeclared properties, and - nothing to discard. - :param disabled_client_side_validations (string): Comma-separated list of - JSON schema validation keywords to disable JSON schema structural validation - rules. The following keywords may be specified: multipleOf, maximum, - exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, - maxItems, minItems. - By default, the validation is performed for data generated locally by the client - and data received from the server, independent of any validation performed by - the server side. If the input data does not satisfy the JSON schema validation - rules specified in the OpenAPI document, an exception is raised. - If disabled_client_side_validations is set, structural validation is - disabled. This can be useful to troubleshoot data validation problem, such as - when the OpenAPI document validation rules do not match the actual API data - received by the server. - :param server_index: Index to servers configuration. - :param server_variables: Mapping with string values to replace variables in - templated server configuration. The validation of enums is performed for - variables with defined enum values before. - :param server_operation_index: Mapping from operation ID to an index to server - configuration. - :param server_operation_variables: Mapping from operation ID to a mapping with - string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum values before. - - :Example: - - HTTP Basic Authentication Example. - Given the following security scheme in the OpenAPI specification: - components: - securitySchemes: - http_basic_auth: - type: http - scheme: basic - - Configure API client with HTTP basic authentication: - -conf = launch.api_client.Configuration( - username='the-user', - password='the-password', -) + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param host: Base url + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer) + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication + :param password: Password for HTTP basic authentication + :param discard_unknown_keys: Boolean value indicating whether to discard + unknown properties. A server may send a response that includes additional + properties that are not known by the client in the following scenarios: + 1. The OpenAPI document is incomplete, i.e. it does not match the server + implementation. + 2. The client was generated using an older version of the OpenAPI document + and the server has been upgraded since then. + If a schema in the OpenAPI document defines the additionalProperties attribute, + then all undeclared properties received by the server are injected into the + additional properties map. In that case, there are undeclared properties, and + nothing to discard. + :param disabled_client_side_validations (string): Comma-separated list of + JSON schema validation keywords to disable JSON schema structural validation + rules. The following keywords may be specified: multipleOf, maximum, + exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, + maxItems, minItems. + By default, the validation is performed for data generated locally by the client + and data received from the server, independent of any validation performed by + the server side. If the input data does not satisfy the JSON schema validation + rules specified in the OpenAPI document, an exception is raised. + If disabled_client_side_validations is set, structural validation is + disabled. This can be useful to troubleshoot data validation problem, such as + when the OpenAPI document validation rules do not match the actual API data + received by the server. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum values before. + + :Example: + + HTTP Basic Authentication Example. + Given the following security scheme in the OpenAPI specification: + components: + securitySchemes: + http_basic_auth: + type: http + scheme: basic + + Configure API client with HTTP basic authentication: + + conf = launch.api_client.Configuration( + username='the-user', + password='the-password', + ) """ @@ -109,8 +118,7 @@ def __init__( server_operation_index=None, server_operation_variables=None, ): - """Constructor - """ + """Constructor""" self._base_path = "http://localhost" if host is None else host """Default Base url """ @@ -139,7 +147,7 @@ def __init__( """ self.logger["package_logger"] = logging.getLogger("launch.api_client") self.logger["urllib3_logger"] = logging.getLogger("urllib3") - self.logger_format = '%(asctime)s %(levelname)s %(message)s' + self.logger_format = "%(asctime)s %(levelname)s %(message)s" """Log format """ self.logger_stream_handler = None @@ -187,7 +195,7 @@ def __init__( self.proxy_headers = None """Proxy headers """ - self.safe_chars_for_path_param = '' + self.safe_chars_for_path_param = "" """Safe chars for path_param """ self.retries = None @@ -204,7 +212,7 @@ def __deepcopy__(self, memo): result = cls.__new__(cls) memo[id(self)] = result for k, v in self.__dict__.items(): - if k not in ('logger', 'logger_file_handler'): + if k not in ("logger", "logger_file_handler"): setattr(result, k, copy.deepcopy(v, memo)) # shallow copy of loggers result.logger = copy.copy(self.logger) @@ -215,12 +223,11 @@ def __deepcopy__(self, memo): def __setattr__(self, name, value): object.__setattr__(self, name, value) - if name == 'disabled_client_side_validations': - s = set(filter(None, value.split(','))) + if name == "disabled_client_side_validations": + s = set(filter(None, value.split(","))) for v in s: if v not in JSON_SCHEMA_VALIDATION_KEYWORDS: - raise ApiValueError( - "Invalid keyword: '{0}''".format(v)) + raise ApiValueError("Invalid keyword: '{0}''".format(v)) self._disabled_client_side_validations = s @classmethod @@ -361,9 +368,7 @@ def get_basic_auth_token(self): password = "" if self.password is not None: password = self.password - return urllib3.util.make_headers( - basic_auth=username + ':' + password - ).get('authorization') + return urllib3.util.make_headers(basic_auth=username + ":" + password).get("authorization") def auth_settings(self): """Gets Auth Settings dict for api client. @@ -372,11 +377,11 @@ def auth_settings(self): """ auth = {} if self.username is not None and self.password is not None: - auth['HTTPBasic'] = { - 'type': 'basic', - 'in': 'header', - 'key': 'Authorization', - 'value': self.get_basic_auth_token() + auth["HTTPBasic"] = { + "type": "basic", + "in": "header", + "key": "Authorization", + "value": self.get_basic_auth_token(), } return auth @@ -385,12 +390,13 @@ def to_debug_report(self): :return: The report for debugging. """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.0.0\n"\ - "SDK Package Version: 1.0.6".\ - format(env=sys.platform, pyversion=sys.version) + return ( + "Python SDK Debug Report:\n" + "OS: {env}\n" + "Python Version: {pyversion}\n" + "Version of the API: 1.0.0\n" + "SDK Package Version: 1.0.6".format(env=sys.platform, pyversion=sys.version) + ) def get_host_settings(self): """Gets an array of host settings @@ -399,8 +405,8 @@ def get_host_settings(self): """ return [ { - 'url': "", - 'description': "No description provided", + "url": "", + "description": "No description provided", } ] @@ -422,22 +428,22 @@ def get_host_from_settings(self, index, variables=None, servers=None): except IndexError: raise ValueError( "Invalid index {0} when selecting the host settings. " - "Must be less than {1}".format(index, len(servers))) + "Must be less than {1}".format(index, len(servers)) + ) - url = server['url'] + url = server["url"] # go through variables and replace placeholders - for variable_name, variable in server.get('variables', {}).items(): - used_value = variables.get( - variable_name, variable['default_value']) + for variable_name, variable in server.get("variables", {}).items(): + used_value = variables.get(variable_name, variable["default_value"]) - if 'enum_values' in variable \ - and used_value not in variable['enum_values']: + if "enum_values" in variable and used_value not in variable["enum_values"]: raise ValueError( "The variable `{0}` in the host URL has invalid value " "{1}. Must be {2}.".format( - variable_name, variables[variable_name], - variable['enum_values'])) + variable_name, variables[variable_name], variable["enum_values"] + ) + ) url = url.replace("{" + variable_name + "}", used_value) diff --git a/launch/api_client/exceptions.py b/launch/api_client/exceptions.py index 46687131..f461e207 100644 --- a/launch/api_client/exceptions.py +++ b/launch/api_client/exceptions.py @@ -19,9 +19,8 @@ class OpenApiException(Exception): class ApiTypeError(OpenApiException, TypeError): - def __init__(self, msg, path_to_item=None, valid_classes=None, - key_type=None): - """ Raises an exception for TypeErrors + def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None): + """Raises an exception for TypeErrors Args: msg (str): the exception message @@ -124,11 +123,9 @@ def headers(self) -> typing.Optional[HTTPHeaderDict]: def __str__(self): """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) + error_message = "({0})\n" "Reason: {1}\n".format(self.status, self.reason) if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) + error_message += "HTTP response headers: {0}\n".format(self.headers) if self.body: error_message += "HTTP response body: {0}\n".format(self.body) diff --git a/launch/api_client/model/batch_job_serialization_format.py b/launch/api_client/model/batch_job_serialization_format.py index 5586e157..e87af9ac 100644 --- a/launch/api_client/model/batch_job_serialization_format.py +++ b/launch/api_client/model/batch_job_serialization_format.py @@ -9,24 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 BatchJobSerializationFormat( - schemas.EnumBase, - schemas.StrSchema -): +class BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,17 +31,16 @@ class BatchJobSerializationFormat( An enumeration. """ - class MetaOapg: enum_value_to_name = { "JSON": "JSON", "PICKLE": "PICKLE", } - + @schemas.classproperty def JSON(cls): return cls("JSON") - + @schemas.classproperty def PICKLE(cls): return cls("PICKLE") diff --git a/launch/api_client/model/batch_job_serialization_format.pyi b/launch/api_client/model/batch_job_serialization_format.pyi index e19c5161..7ebc5bff 100644 --- a/launch/api_client/model/batch_job_serialization_format.pyi +++ b/launch/api_client/model/batch_job_serialization_format.pyi @@ -9,24 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class BatchJobSerializationFormat( - schemas.EnumBase, - schemas.StrSchema -): +class BatchJobSerializationFormat(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,11 +29,10 @@ class BatchJobSerializationFormat( An enumeration. """ - + @schemas.classproperty def JSON(cls): return cls("JSON") - @schemas.classproperty def PICKLE(cls): return cls("PICKLE") diff --git a/launch/api_client/model/batch_job_status.py b/launch/api_client/model/batch_job_status.py index 530ad403..543bfbc3 100644 --- a/launch/api_client/model/batch_job_status.py +++ b/launch/api_client/model/batch_job_status.py @@ -9,24 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 BatchJobStatus( - schemas.EnumBase, - schemas.StrSchema -): +class BatchJobStatus(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,7 +31,6 @@ class BatchJobStatus( An enumeration. """ - class MetaOapg: enum_value_to_name = { "PENDING": "PENDING", @@ -45,27 +40,27 @@ class MetaOapg: "CANCELLED": "CANCELLED", "UNDEFINED": "UNDEFINED", } - + @schemas.classproperty def PENDING(cls): return cls("PENDING") - + @schemas.classproperty def RUNNING(cls): return cls("RUNNING") - + @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") - + @schemas.classproperty def FAILURE(cls): return cls("FAILURE") - + @schemas.classproperty def CANCELLED(cls): return cls("CANCELLED") - + @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/batch_job_status.pyi b/launch/api_client/model/batch_job_status.pyi index 0d337988..925b6634 100644 --- a/launch/api_client/model/batch_job_status.pyi +++ b/launch/api_client/model/batch_job_status.pyi @@ -9,24 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class BatchJobStatus( - schemas.EnumBase, - schemas.StrSchema -): +class BatchJobStatus(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,27 +29,22 @@ class BatchJobStatus( An enumeration. """ - + @schemas.classproperty def PENDING(cls): return cls("PENDING") - @schemas.classproperty def RUNNING(cls): return cls("RUNNING") - @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") - @schemas.classproperty def FAILURE(cls): return cls("FAILURE") - @schemas.classproperty def CANCELLED(cls): return cls("CANCELLED") - @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/callback_auth.py b/launch/api_client/model/callback_auth.py index a3af0a7c..2ea49c41 100644 --- a/launch/api_client/model/callback_auth.py +++ b/launch/api_client/model/callback_auth.py @@ -9,17 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 @@ -32,20 +31,18 @@ class CallbackAuth( Do not edit the class manually. """ - class MetaOapg: - @staticmethod def discriminator(): return { - 'kind': { - 'CallbackBasicAuth': CallbackBasicAuth, - 'CallbackmTLSAuth': CallbackmTLSAuth, - 'basic': CallbackBasicAuth, - 'mtls': CallbackmTLSAuth, + "kind": { + "CallbackBasicAuth": CallbackBasicAuth, + "CallbackmTLSAuth": CallbackmTLSAuth, + "basic": CallbackBasicAuth, + "mtls": CallbackmTLSAuth, } } - + @classmethod @functools.lru_cache() def one_of(cls): @@ -61,13 +58,44 @@ def one_of(cls): CallbackmTLSAuth, ] - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'CallbackAuth': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CallbackAuth": return super().__new__( cls, *_args, @@ -75,5 +103,6 @@ def __new__( **kwargs, ) + from launch.api_client.model.callback_basic_auth import CallbackBasicAuth from launch.api_client.model.callbackm_tls_auth import CallbackmTLSAuth diff --git a/launch/api_client/model/callback_auth.pyi b/launch/api_client/model/callback_auth.pyi index 584516de..e7193634 100644 --- a/launch/api_client/model/callback_auth.pyi +++ b/launch/api_client/model/callback_auth.pyi @@ -9,20 +9,18 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - class CallbackAuth( schemas.ComposedSchema, ): @@ -32,20 +30,17 @@ class CallbackAuth( Do not edit the class manually. """ - class MetaOapg: - @staticmethod def discriminator(): return { - 'kind': { - 'CallbackBasicAuth': CallbackBasicAuth, - 'CallbackmTLSAuth': CallbackmTLSAuth, - 'basic': CallbackBasicAuth, - 'mtls': CallbackmTLSAuth, + "kind": { + "CallbackBasicAuth": CallbackBasicAuth, + "CallbackmTLSAuth": CallbackmTLSAuth, + "basic": CallbackBasicAuth, + "mtls": CallbackmTLSAuth, } } - @classmethod @functools.lru_cache() def one_of(cls): @@ -60,14 +55,44 @@ class CallbackAuth( CallbackBasicAuth, CallbackmTLSAuth, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'CallbackAuth': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CallbackAuth": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callback_basic_auth.py b/launch/api_client/model/callback_basic_auth.py index 1b26f739..6ce83ae9 100644 --- a/launch/api_client/model/callback_basic_auth.py +++ b/launch/api_client/model/callback_basic_auth.py @@ -9,54 +9,44 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 CallbackBasicAuth( - schemas.DictSchema -): +class CallbackBasicAuth(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "password", "kind", "username", } - + class properties: - - - class kind( - schemas.EnumBase, - schemas.StrSchema - ): - - + class kind(schemas.EnumBase, schemas.StrSchema): class MetaOapg: enum_value_to_name = { "basic": "BASIC", } - + @schemas.classproperty def BASIC(cls): return cls("basic") + password = schemas.StrSchema username = schemas.StrSchema __annotations__ = { @@ -64,53 +54,114 @@ def BASIC(cls): "password": password, "username": username, } - + password: MetaOapg.properties.password kind: MetaOapg.properties.kind username: MetaOapg.properties.username - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - + def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - + def __getitem__( + self, name: typing_extensions.Literal["password"] + ) -> MetaOapg.properties.password: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... - + def __getitem__( + self, name: typing_extensions.Literal["username"] + ) -> MetaOapg.properties.username: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["kind", "password", "username", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "kind", + "password", + "username", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - + def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["password"] + ) -> MetaOapg.properties.password: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["username"] + ) -> MetaOapg.properties.username: + ... + @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["kind", "password", "username", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "kind", + "password", + "username", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - password: typing.Union[MetaOapg.properties.password, str, ], - kind: typing.Union[MetaOapg.properties.kind, str, ], - username: typing.Union[MetaOapg.properties.username, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + password: typing.Union[ + MetaOapg.properties.password, + str, + ], + kind: typing.Union[ + MetaOapg.properties.kind, + str, + ], + username: typing.Union[ + MetaOapg.properties.username, + str, + ], _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], - ) -> 'CallbackBasicAuth': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CallbackBasicAuth": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callback_basic_auth.pyi b/launch/api_client/model/callback_basic_auth.pyi index 50b20d27..3ebc0a17 100644 --- a/launch/api_client/model/callback_basic_auth.pyi +++ b/launch/api_client/model/callback_basic_auth.pyi @@ -9,45 +9,34 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class CallbackBasicAuth( - schemas.DictSchema -): +class CallbackBasicAuth(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "password", "kind", "username", } - + class properties: - - - class kind( - schemas.EnumBase, - schemas.StrSchema - ): - + class kind(schemas.EnumBase, schemas.StrSchema): @schemas.classproperty def BASIC(cls): return cls("basic") @@ -58,53 +47,99 @@ class CallbackBasicAuth( "password": password, "username": username, } - password: MetaOapg.properties.password kind: MetaOapg.properties.kind username: MetaOapg.properties.username - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - + def __getitem__( + self, name: typing_extensions.Literal["password"] + ) -> MetaOapg.properties.password: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... - + def __getitem__( + self, name: typing_extensions.Literal["username"] + ) -> MetaOapg.properties.username: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["kind", "password", "username", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "kind", + "password", + "username", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["kind"] + ) -> MetaOapg.properties.kind: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["password"] + ) -> MetaOapg.properties.password: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["username"] + ) -> MetaOapg.properties.username: ... @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["kind", "password", "username", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "kind", + "password", + "username", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - password: typing.Union[MetaOapg.properties.password, str, ], - kind: typing.Union[MetaOapg.properties.kind, str, ], - username: typing.Union[MetaOapg.properties.username, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + password: typing.Union[ + MetaOapg.properties.password, + str, + ], + kind: typing.Union[ + MetaOapg.properties.kind, + str, + ], + username: typing.Union[ + MetaOapg.properties.username, + str, + ], _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], - ) -> 'CallbackBasicAuth': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CallbackBasicAuth": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callbackm_tls_auth.py b/launch/api_client/model/callbackm_tls_auth.py index 1ed275f9..863da381 100644 --- a/launch/api_client/model/callbackm_tls_auth.py +++ b/launch/api_client/model/callbackm_tls_auth.py @@ -9,108 +9,152 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 CallbackmTLSAuth( - schemas.DictSchema -): +class CallbackmTLSAuth(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "kind", "cert", "key", } - + class properties: cert = schemas.StrSchema key = schemas.StrSchema - - - class kind( - schemas.EnumBase, - schemas.StrSchema - ): - - + + class kind(schemas.EnumBase, schemas.StrSchema): class MetaOapg: enum_value_to_name = { "mtls": "MTLS", } - + @schemas.classproperty def MTLS(cls): return cls("mtls") + __annotations__ = { "cert": cert, "key": key, "kind": kind, } - + kind: MetaOapg.properties.kind cert: MetaOapg.properties.cert key: MetaOapg.properties.key - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... - + def __getitem__(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... - + def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - + def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cert", "key", "kind", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cert", + "key", + "kind", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... - + def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... - + def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - + def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: + ... + @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["cert", "key", "kind", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cert", + "key", + "kind", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - kind: typing.Union[MetaOapg.properties.kind, str, ], - cert: typing.Union[MetaOapg.properties.cert, str, ], - key: typing.Union[MetaOapg.properties.key, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + kind: typing.Union[ + MetaOapg.properties.kind, + str, + ], + cert: typing.Union[ + MetaOapg.properties.cert, + str, + ], + key: typing.Union[ + MetaOapg.properties.key, + str, + ], _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], - ) -> 'CallbackmTLSAuth': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CallbackmTLSAuth": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/callbackm_tls_auth.pyi b/launch/api_client/model/callbackm_tls_auth.pyi index 8aeeb00a..c002b50c 100644 --- a/launch/api_client/model/callbackm_tls_auth.pyi +++ b/launch/api_client/model/callbackm_tls_auth.pyi @@ -9,47 +9,37 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class CallbackmTLSAuth( - schemas.DictSchema -): +class CallbackmTLSAuth(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "kind", "cert", "key", } - + class properties: cert = schemas.StrSchema key = schemas.StrSchema - - - class kind( - schemas.EnumBase, - schemas.StrSchema - ): - + + class kind(schemas.EnumBase, schemas.StrSchema): @schemas.classproperty def MTLS(cls): return cls("mtls") @@ -58,53 +48,93 @@ class CallbackmTLSAuth( "key": key, "kind": kind, } - kind: MetaOapg.properties.kind cert: MetaOapg.properties.cert key: MetaOapg.properties.key - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cert", "key", "kind", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cert", + "key", + "kind", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cert"] + ) -> MetaOapg.properties.cert: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["kind"] + ) -> MetaOapg.properties.kind: ... @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["cert", "key", "kind", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cert", + "key", + "kind", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - kind: typing.Union[MetaOapg.properties.kind, str, ], - cert: typing.Union[MetaOapg.properties.cert, str, ], - key: typing.Union[MetaOapg.properties.key, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + kind: typing.Union[ + MetaOapg.properties.kind, + str, + ], + cert: typing.Union[ + MetaOapg.properties.cert, + str, + ], + key: typing.Union[ + MetaOapg.properties.key, + str, + ], _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], - ) -> 'CallbackmTLSAuth': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CallbackmTLSAuth": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/clone_model_bundle_v1_request.py b/launch/api_client/model/clone_model_bundle_v1_request.py index 52b9f905..ae09a3a7 100644 --- a/launch/api_client/model/clone_model_bundle_v1_request.py +++ b/launch/api_client/model/clone_model_bundle_v1_request.py @@ -9,23 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 -): +class CloneModelBundleV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,12 +31,11 @@ class CloneModelBundleV1Request( 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 @@ -47,44 +43,97 @@ class properties: "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: ... - + 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: ... - + 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]): + 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: ... - + 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]: ... - + 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]): + 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, + *_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': + **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, diff --git a/launch/api_client/model/clone_model_bundle_v1_request.pyi b/launch/api_client/model/clone_model_bundle_v1_request.pyi index 6d01d861..f5122b2e 100644 --- a/launch/api_client/model/clone_model_bundle_v1_request.pyi +++ b/launch/api_client/model/clone_model_bundle_v1_request.pyi @@ -9,23 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class CloneModelBundleV1Request( - schemas.DictSchema -): +class CloneModelBundleV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,12 +30,11 @@ class CloneModelBundleV1Request( 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 @@ -47,44 +42,84 @@ class CloneModelBundleV1Request( "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: ... - + 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: ... - + 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]): + 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: ... - + 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]: ... - + 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]): + 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, + *_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': + **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, diff --git a/launch/api_client/model/create_async_task_response.py b/launch/api_client/model/create_async_task_response.py index 3f339ae1..2de4d825 100644 --- a/launch/api_client/model/create_async_task_response.py +++ b/launch/api_client/model/create_async_task_response.py @@ -55,9 +55,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "task_id", - ], + typing_extensions.Literal["task_id",], str, ], ): @@ -77,9 +75,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "task_id", - ], + typing_extensions.Literal["task_id",], str, ], ): diff --git a/launch/api_client/model/create_async_task_response.pyi b/launch/api_client/model/create_async_task_response.pyi index d5d11a32..25574c28 100644 --- a/launch/api_client/model/create_async_task_response.pyi +++ b/launch/api_client/model/create_async_task_response.pyi @@ -49,9 +49,7 @@ class CreateAsyncTaskResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "task_id", - ], + typing_extensions.Literal["task_id",], str, ], ): @@ -68,9 +66,7 @@ class CreateAsyncTaskResponse(schemas.DictSchema): def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "task_id", - ], + typing_extensions.Literal["task_id",], str, ], ): diff --git a/launch/api_client/model/create_async_task_v1_response.py b/launch/api_client/model/create_async_task_v1_response.py index 5805b46f..444046a8 100644 --- a/launch/api_client/model/create_async_task_v1_response.py +++ b/launch/api_client/model/create_async_task_v1_response.py @@ -9,71 +9,94 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 CreateAsyncTaskV1Response( - schemas.DictSchema -): +class CreateAsyncTaskV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "task_id", } - + class properties: task_id = schemas.StrSchema __annotations__ = { "task_id": task_id, } - + task_id: MetaOapg.properties.task_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: + ... + @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["task_id", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - task_id: typing.Union[MetaOapg.properties.task_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + task_id: typing.Union[ + MetaOapg.properties.task_id, + str, + ], _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], - ) -> 'CreateAsyncTaskV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateAsyncTaskV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_async_task_v1_response.pyi b/launch/api_client/model/create_async_task_v1_response.pyi index 3e9fcb1b..ecb438a5 100644 --- a/launch/api_client/model/create_async_task_v1_response.pyi +++ b/launch/api_client/model/create_async_task_v1_response.pyi @@ -9,71 +9,84 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateAsyncTaskV1Response( - schemas.DictSchema -): +class CreateAsyncTaskV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "task_id", } - + class properties: task_id = schemas.StrSchema __annotations__ = { "task_id": task_id, } - task_id: MetaOapg.properties.task_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @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["task_id", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - task_id: typing.Union[MetaOapg.properties.task_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + task_id: typing.Union[ + MetaOapg.properties.task_id, + str, + ], _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], - ) -> 'CreateAsyncTaskV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateAsyncTaskV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_batch_job_request.py b/launch/api_client/model/create_batch_job_request.py index 23daf7d9..5913832c 100644 --- a/launch/api_client/model/create_batch_job_request.py +++ b/launch/api_client/model/create_batch_job_request.py @@ -47,18 +47,14 @@ class MetaOapg: def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) diff --git a/launch/api_client/model/create_batch_job_request.pyi b/launch/api_client/model/create_batch_job_request.pyi index 6a48d5a9..8d7bb2ce 100644 --- a/launch/api_client/model/create_batch_job_request.pyi +++ b/launch/api_client/model/create_batch_job_request.pyi @@ -45,17 +45,13 @@ class CreateBatchJobRequest(schemas.DictSchema): additional_properties = schemas.StrSchema def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_batch_job_resource_requests.py b/launch/api_client/model/create_batch_job_resource_requests.py index c1f62452..873734d0 100644 --- a/launch/api_client/model/create_batch_job_resource_requests.py +++ b/launch/api_client/model/create_batch_job_resource_requests.py @@ -9,45 +9,36 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 CreateBatchJobResourceRequests( - schemas.DictSchema -): +class CreateBatchJobResourceRequests(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: - - class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -63,38 +54,67 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType + gpus = schemas.IntSchema max_workers = schemas.IntSchema - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -110,33 +130,62 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + per_worker = schemas.IntSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -152,20 +201,52 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + __annotations__ = { "cpus": cpus, "gpu_type": gpu_type, @@ -175,77 +256,220 @@ def __new__( "per_worker": per_worker, "storage": storage, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpu_type", + "gpus", + "max_workers", + "memory", + "per_worker", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cpus"] + ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpus"] + ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpu_type", + "gpus", + "max_workers", + "memory", + "per_worker", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + gpus: typing.Union[ + MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + max_workers: typing.Union[ + MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + per_worker: typing.Union[ + MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'CreateBatchJobResourceRequests': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateBatchJobResourceRequests": return super().__new__( cls, *_args, @@ -260,4 +484,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/create_batch_job_resource_requests.pyi b/launch/api_client/model/create_batch_job_resource_requests.pyi index 38ca0898..a1330c2c 100644 --- a/launch/api_client/model/create_batch_job_resource_requests.pyi +++ b/launch/api_client/model/create_batch_job_resource_requests.pyi @@ -9,45 +9,35 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateBatchJobResourceRequests( - schemas.DictSchema -): +class CreateBatchJobResourceRequests(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: - - class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -63,38 +53,64 @@ class CreateBatchJobResourceRequests( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType gpus = schemas.IntSchema max_workers = schemas.IntSchema - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -110,14 +126,44 @@ class CreateBatchJobResourceRequests( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, @@ -125,18 +171,15 @@ class CreateBatchJobResourceRequests( **kwargs, ) per_worker = schemas.IntSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -152,14 +195,44 @@ class CreateBatchJobResourceRequests( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, @@ -175,77 +248,189 @@ class CreateBatchJobResourceRequests( "per_worker": per_worker, "storage": storage, } - @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def __getitem__( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpu_type", + "gpus", + "max_workers", + "memory", + "per_worker", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cpus"] + ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpus"] + ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "gpu_type", "gpus", "max_workers", "memory", "per_worker", "storage", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpu_type", + "gpus", + "max_workers", + "memory", + "per_worker", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + gpus: typing.Union[ + MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + max_workers: typing.Union[ + MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + per_worker: typing.Union[ + MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'CreateBatchJobResourceRequests': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateBatchJobResourceRequests": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_batch_job_response.py b/launch/api_client/model/create_batch_job_response.py index 7e9fb2e2..3c9eff52 100644 --- a/launch/api_client/model/create_batch_job_response.py +++ b/launch/api_client/model/create_batch_job_response.py @@ -53,9 +53,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "job_id", - ], + typing_extensions.Literal["job_id",], str, ], ): @@ -75,9 +73,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "job_id", - ], + typing_extensions.Literal["job_id",], str, ], ): diff --git a/launch/api_client/model/create_batch_job_response.pyi b/launch/api_client/model/create_batch_job_response.pyi index eba9c832..e9fbec87 100644 --- a/launch/api_client/model/create_batch_job_response.pyi +++ b/launch/api_client/model/create_batch_job_response.pyi @@ -49,9 +49,7 @@ class CreateBatchJobResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "job_id", - ], + typing_extensions.Literal["job_id",], str, ], ): @@ -68,9 +66,7 @@ class CreateBatchJobResponse(schemas.DictSchema): def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "job_id", - ], + typing_extensions.Literal["job_id",], str, ], ): diff --git a/launch/api_client/model/create_batch_job_v1_request.py b/launch/api_client/model/create_batch_job_v1_request.py index 03f4e079..3cb2cd1a 100644 --- a/launch/api_client/model/create_batch_job_v1_request.py +++ b/launch/api_client/model/create_batch_job_v1_request.py @@ -9,30 +9,26 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 CreateBatchJobV1Request( - schemas.DictSchema -): +class CreateBatchJobV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "model_bundle_id", @@ -41,47 +37,50 @@ class MetaOapg: "input_path", "labels", } - + class properties: input_path = schemas.StrSchema - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + model_bundle_id = schemas.StrSchema - + @staticmethod - def resource_requests() -> typing.Type['CreateBatchJobResourceRequests']: + def resource_requests() -> typing.Type["CreateBatchJobResourceRequests"]: return CreateBatchJobResourceRequests - + @staticmethod - def serialization_format() -> typing.Type['BatchJobSerializationFormat']: + def serialization_format() -> typing.Type["BatchJobSerializationFormat"]: return BatchJobSerializationFormat + __annotations__ = { "input_path": input_path, "labels": labels, @@ -89,69 +88,149 @@ def serialization_format() -> typing.Type['BatchJobSerializationFormat']: "resource_requests": resource_requests, "serialization_format": serialization_format, } - + model_bundle_id: MetaOapg.properties.model_bundle_id - resource_requests: 'CreateBatchJobResourceRequests' - serialization_format: 'BatchJobSerializationFormat' + resource_requests: "CreateBatchJobResourceRequests" + serialization_format: "BatchJobSerializationFormat" input_path: MetaOapg.properties.input_path labels: MetaOapg.properties.labels - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... - + def __getitem__( + self, name: typing_extensions.Literal["input_path"] + ) -> MetaOapg.properties.input_path: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... - + def __getitem__( + self, name: typing_extensions.Literal["resource_requests"] + ) -> "CreateBatchJobResourceRequests": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... - + def __getitem__( + self, name: typing_extensions.Literal["serialization_format"] + ) -> "BatchJobSerializationFormat": + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "input_path", + "labels", + "model_bundle_id", + "resource_requests", + "serialization_format", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["input_path"] + ) -> MetaOapg.properties.input_path: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["resource_requests"] + ) -> "CreateBatchJobResourceRequests": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["serialization_format"] + ) -> "BatchJobSerializationFormat": + ... + @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["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "input_path", + "labels", + "model_bundle_id", + "resource_requests", + "serialization_format", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], - resource_requests: 'CreateBatchJobResourceRequests', - serialization_format: 'BatchJobSerializationFormat', - input_path: typing.Union[MetaOapg.properties.input_path, str, ], - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, + str, + ], + resource_requests: "CreateBatchJobResourceRequests", + serialization_format: "BatchJobSerializationFormat", + input_path: typing.Union[ + MetaOapg.properties.input_path, + str, + ], + labels: typing.Union[ + MetaOapg.properties.labels, + dict, + frozendict.frozendict, + ], _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], - ) -> 'CreateBatchJobV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateBatchJobV1Request": return super().__new__( cls, *_args, @@ -164,5 +243,6 @@ def __new__( **kwargs, ) + from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests diff --git a/launch/api_client/model/create_batch_job_v1_request.pyi b/launch/api_client/model/create_batch_job_v1_request.pyi index 34b6fb0c..c775ad1c 100644 --- a/launch/api_client/model/create_batch_job_v1_request.pyi +++ b/launch/api_client/model/create_batch_job_v1_request.pyi @@ -9,30 +9,25 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateBatchJobV1Request( - schemas.DictSchema -): +class CreateBatchJobV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "model_bundle_id", @@ -41,32 +36,30 @@ class CreateBatchJobV1Request( "input_path", "labels", } - + class properties: input_path = schemas.StrSchema - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, @@ -74,13 +67,12 @@ class CreateBatchJobV1Request( **kwargs, ) model_bundle_id = schemas.StrSchema - + @staticmethod - def resource_requests() -> typing.Type['CreateBatchJobResourceRequests']: + def resource_requests() -> typing.Type["CreateBatchJobResourceRequests"]: return CreateBatchJobResourceRequests - @staticmethod - def serialization_format() -> typing.Type['BatchJobSerializationFormat']: + def serialization_format() -> typing.Type["BatchJobSerializationFormat"]: return BatchJobSerializationFormat __annotations__ = { "input_path": input_path, @@ -89,69 +81,126 @@ class CreateBatchJobV1Request( "resource_requests": resource_requests, "serialization_format": serialization_format, } - model_bundle_id: MetaOapg.properties.model_bundle_id - resource_requests: 'CreateBatchJobResourceRequests' - serialization_format: 'BatchJobSerializationFormat' + resource_requests: "CreateBatchJobResourceRequests" + serialization_format: "BatchJobSerializationFormat" input_path: MetaOapg.properties.input_path labels: MetaOapg.properties.labels - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... - + def __getitem__( + self, name: typing_extensions.Literal["input_path"] + ) -> MetaOapg.properties.input_path: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def __getitem__( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... - + def __getitem__( + self, name: typing_extensions.Literal["resource_requests"] + ) -> "CreateBatchJobResourceRequests": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... - + def __getitem__( + self, name: typing_extensions.Literal["serialization_format"] + ) -> "BatchJobSerializationFormat": ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "input_path", + "labels", + "model_bundle_id", + "resource_requests", + "serialization_format", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["input_path"] + ) -> MetaOapg.properties.input_path: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> 'CreateBatchJobResourceRequests': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["resource_requests"] + ) -> "CreateBatchJobResourceRequests": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> 'BatchJobSerializationFormat': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["serialization_format"] + ) -> "BatchJobSerializationFormat": ... @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["input_path", "labels", "model_bundle_id", "resource_requests", "serialization_format", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "input_path", + "labels", + "model_bundle_id", + "resource_requests", + "serialization_format", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], - resource_requests: 'CreateBatchJobResourceRequests', - serialization_format: 'BatchJobSerializationFormat', - input_path: typing.Union[MetaOapg.properties.input_path, str, ], - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, + str, + ], + resource_requests: "CreateBatchJobResourceRequests", + serialization_format: "BatchJobSerializationFormat", + input_path: typing.Union[ + MetaOapg.properties.input_path, + str, + ], + labels: typing.Union[ + MetaOapg.properties.labels, + dict, + frozendict.frozendict, + ], _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], - ) -> 'CreateBatchJobV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateBatchJobV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_batch_job_v1_response.py b/launch/api_client/model/create_batch_job_v1_response.py index 48561f4d..1e0e4f6e 100644 --- a/launch/api_client/model/create_batch_job_v1_response.py +++ b/launch/api_client/model/create_batch_job_v1_response.py @@ -9,71 +9,92 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 CreateBatchJobV1Response( - schemas.DictSchema -): +class CreateBatchJobV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "job_id", } - + class properties: job_id = schemas.StrSchema __annotations__ = { "job_id": job_id, } - + job_id: MetaOapg.properties.job_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... - + def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["job_id"] + ) -> MetaOapg.properties.job_id: + ... + @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["job_id", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - job_id: typing.Union[MetaOapg.properties.job_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + job_id: typing.Union[ + MetaOapg.properties.job_id, + str, + ], _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], - ) -> 'CreateBatchJobV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateBatchJobV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_batch_job_v1_response.pyi b/launch/api_client/model/create_batch_job_v1_response.pyi index 01425585..47201dd1 100644 --- a/launch/api_client/model/create_batch_job_v1_response.pyi +++ b/launch/api_client/model/create_batch_job_v1_response.pyi @@ -9,71 +9,84 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateBatchJobV1Response( - schemas.DictSchema -): +class CreateBatchJobV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "job_id", } - + class properties: job_id = schemas.StrSchema __annotations__ = { "job_id": job_id, } - job_id: MetaOapg.properties.job_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["job_id"] + ) -> MetaOapg.properties.job_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["job_id"] + ) -> MetaOapg.properties.job_id: ... @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["job_id", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - job_id: typing.Union[MetaOapg.properties.job_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + job_id: typing.Union[ + MetaOapg.properties.job_id, + str, + ], _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], - ) -> 'CreateBatchJobV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateBatchJobV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_bundle_response.py b/launch/api_client/model/create_model_bundle_response.py index f51185f5..835e260f 100644 --- a/launch/api_client/model/create_model_bundle_response.py +++ b/launch/api_client/model/create_model_bundle_response.py @@ -57,9 +57,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundle_id", - ], + typing_extensions.Literal["model_bundle_id",], str, ], ): @@ -79,9 +77,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundle_id", - ], + typing_extensions.Literal["model_bundle_id",], str, ], ): diff --git a/launch/api_client/model/create_model_bundle_response.pyi b/launch/api_client/model/create_model_bundle_response.pyi index c7145f61..f62f7bb0 100644 --- a/launch/api_client/model/create_model_bundle_response.pyi +++ b/launch/api_client/model/create_model_bundle_response.pyi @@ -51,9 +51,7 @@ class CreateModelBundleResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundle_id", - ], + typing_extensions.Literal["model_bundle_id",], str, ], ): @@ -70,9 +68,7 @@ class CreateModelBundleResponse(schemas.DictSchema): def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundle_id", - ], + typing_extensions.Literal["model_bundle_id",], str, ], ): diff --git a/launch/api_client/model/create_model_bundle_v1_request.py b/launch/api_client/model/create_model_bundle_v1_request.py index d797e244..a630ea56 100644 --- a/launch/api_client/model/create_model_bundle_v1_request.py +++ b/launch/api_client/model/create_model_bundle_v1_request.py @@ -9,23 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 CreateModelBundleV1Request( - schemas.DictSchema -): +class CreateModelBundleV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,7 +31,6 @@ class CreateModelBundleV1Request( Request object for creating a Model Bundle. """ - class MetaOapg: required = { "requirements", @@ -43,41 +39,50 @@ class MetaOapg: "location", "env_params", } - + class properties: - @staticmethod - def env_params() -> typing.Type['ModelBundleEnvironmentParams']: + def env_params() -> typing.Type["ModelBundleEnvironmentParams"]: return ModelBundleEnvironmentParams + location = schemas.StrSchema name = schemas.StrSchema - + @staticmethod - def packaging_type() -> typing.Type['ModelBundlePackagingType']: + def packaging_type() -> typing.Type["ModelBundlePackagingType"]: return ModelBundlePackagingType - - - class requirements( - schemas.ListSchema - ): - - + + class requirements(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'requirements': + ) -> "requirements": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + app_config = schemas.DictSchema metadata = schemas.DictSchema schema_location = schemas.StrSchema @@ -91,90 +96,198 @@ def __getitem__(self, i: int) -> MetaOapg.items: "metadata": metadata, "schema_location": schema_location, } - + requirements: MetaOapg.properties.requirements - packaging_type: 'ModelBundlePackagingType' + packaging_type: "ModelBundlePackagingType" name: MetaOapg.properties.name location: MetaOapg.properties.location - env_params: 'ModelBundleEnvironmentParams' - + env_params: "ModelBundleEnvironmentParams" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def __getitem__( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - + def __getitem__( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def __getitem__( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - + def __getitem__( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... - + def __getitem__( + self, name: typing_extensions.Literal["app_config"] + ) -> MetaOapg.properties.app_config: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... - + def __getitem__( + self, name: typing_extensions.Literal["schema_location"] + ) -> MetaOapg.properties.schema_location: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "env_params", + "location", + "name", + "packaging_type", + "requirements", + "app_config", + "metadata", + "schema_location", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["app_config"] + ) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["schema_location"] + ) -> typing.Union[MetaOapg.properties.schema_location, 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["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "env_params", + "location", + "name", + "packaging_type", + "requirements", + "app_config", + "metadata", + "schema_location", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], - packaging_type: 'ModelBundlePackagingType', - name: typing.Union[MetaOapg.properties.name, str, ], - location: typing.Union[MetaOapg.properties.location, str, ], - env_params: 'ModelBundleEnvironmentParams', - app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + requirements: typing.Union[ + MetaOapg.properties.requirements, + list, + tuple, + ], + packaging_type: "ModelBundlePackagingType", + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + location: typing.Union[ + MetaOapg.properties.location, + str, + ], + env_params: "ModelBundleEnvironmentParams", + app_config: typing.Union[ + MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + metadata: typing.Union[ + MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + schema_location: typing.Union[ + MetaOapg.properties.schema_location, str, 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], - ) -> 'CreateModelBundleV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelBundleV1Request": return super().__new__( cls, *_args, @@ -190,5 +303,6 @@ def __new__( **kwargs, ) + from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/create_model_bundle_v1_request.pyi b/launch/api_client/model/create_model_bundle_v1_request.pyi index c951cd74..820c2300 100644 --- a/launch/api_client/model/create_model_bundle_v1_request.pyi +++ b/launch/api_client/model/create_model_bundle_v1_request.pyi @@ -9,23 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateModelBundleV1Request( - schemas.DictSchema -): +class CreateModelBundleV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,7 +30,6 @@ class CreateModelBundleV1Request( Request object for creating a Model Bundle. """ - class MetaOapg: required = { "requirements", @@ -43,39 +38,44 @@ class CreateModelBundleV1Request( "location", "env_params", } - + class properties: - @staticmethod - def env_params() -> typing.Type['ModelBundleEnvironmentParams']: + def env_params() -> typing.Type["ModelBundleEnvironmentParams"]: return ModelBundleEnvironmentParams location = schemas.StrSchema name = schemas.StrSchema - + @staticmethod - def packaging_type() -> typing.Type['ModelBundlePackagingType']: + def packaging_type() -> typing.Type["ModelBundlePackagingType"]: return ModelBundlePackagingType - - - class requirements( - schemas.ListSchema - ): - - + + class requirements(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'requirements': + ) -> "requirements": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) app_config = schemas.DictSchema @@ -91,90 +91,163 @@ class CreateModelBundleV1Request( "metadata": metadata, "schema_location": schema_location, } - requirements: MetaOapg.properties.requirements - packaging_type: 'ModelBundlePackagingType' + packaging_type: "ModelBundlePackagingType" name: MetaOapg.properties.name location: MetaOapg.properties.location - env_params: 'ModelBundleEnvironmentParams' - + env_params: "ModelBundleEnvironmentParams" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def __getitem__( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - + def __getitem__( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def __getitem__( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - + def __getitem__( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... - + def __getitem__( + self, name: typing_extensions.Literal["app_config"] + ) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... - + def __getitem__( + self, name: typing_extensions.Literal["schema_location"] + ) -> MetaOapg.properties.schema_location: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "env_params", + "location", + "name", + "packaging_type", + "requirements", + "app_config", + "metadata", + "schema_location", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["name"] + ) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["app_config"] + ) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["schema_location"] + ) -> typing.Union[MetaOapg.properties.schema_location, 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["env_params", "location", "name", "packaging_type", "requirements", "app_config", "metadata", "schema_location", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "env_params", + "location", + "name", + "packaging_type", + "requirements", + "app_config", + "metadata", + "schema_location", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], - packaging_type: 'ModelBundlePackagingType', - name: typing.Union[MetaOapg.properties.name, str, ], - location: typing.Union[MetaOapg.properties.location, str, ], - env_params: 'ModelBundleEnvironmentParams', - app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + requirements: typing.Union[ + MetaOapg.properties.requirements, + list, + tuple, + ], + packaging_type: "ModelBundlePackagingType", + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + location: typing.Union[ + MetaOapg.properties.location, + str, + ], + env_params: "ModelBundleEnvironmentParams", + app_config: typing.Union[ + MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + metadata: typing.Union[ + MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + schema_location: typing.Union[ + MetaOapg.properties.schema_location, str, 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], - ) -> 'CreateModelBundleV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelBundleV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_bundle_v1_response.py b/launch/api_client/model/create_model_bundle_v1_response.py index 638bd0cb..d0a658d8 100644 --- a/launch/api_client/model/create_model_bundle_v1_response.py +++ b/launch/api_client/model/create_model_bundle_v1_response.py @@ -9,23 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 CreateModelBundleV1Response( - schemas.DictSchema -): +class CreateModelBundleV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,48 +31,74 @@ class CreateModelBundleV1Response( Response object for creating a Model Bundle. """ - class MetaOapg: required = { "model_bundle_id", } - + class properties: model_bundle_id = schemas.StrSchema __annotations__ = { "model_bundle_id": model_bundle_id, } - + model_bundle_id: MetaOapg.properties.model_bundle_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: + ... + @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["model_bundle_id", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, + str, + ], _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], - ) -> 'CreateModelBundleV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelBundleV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_bundle_v1_response.pyi b/launch/api_client/model/create_model_bundle_v1_response.pyi index c7da6274..51d3076d 100644 --- a/launch/api_client/model/create_model_bundle_v1_response.pyi +++ b/launch/api_client/model/create_model_bundle_v1_response.pyi @@ -9,23 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateModelBundleV1Response( - schemas.DictSchema -): +class CreateModelBundleV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,48 +30,65 @@ class CreateModelBundleV1Response( Response object for creating a Model Bundle. """ - class MetaOapg: required = { "model_bundle_id", } - + class properties: model_bundle_id = schemas.StrSchema __annotations__ = { "model_bundle_id": model_bundle_id, } - model_bundle_id: MetaOapg.properties.model_bundle_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @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["model_bundle_id", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, + str, + ], _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], - ) -> 'CreateModelBundleV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelBundleV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_endpoint_request.py b/launch/api_client/model/create_model_endpoint_request.py index 56aca0e6..70fd7e3a 100644 --- a/launch/api_client/model/create_model_endpoint_request.py +++ b/launch/api_client/model/create_model_endpoint_request.py @@ -128,18 +128,14 @@ class MetaOapg: def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) diff --git a/launch/api_client/model/create_model_endpoint_request.pyi b/launch/api_client/model/create_model_endpoint_request.pyi index b1a37806..8258052a 100644 --- a/launch/api_client/model/create_model_endpoint_request.pyi +++ b/launch/api_client/model/create_model_endpoint_request.pyi @@ -123,17 +123,13 @@ class CreateModelEndpointRequest(schemas.DictSchema): additional_properties = schemas.StrSchema def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_model_endpoint_response.py b/launch/api_client/model/create_model_endpoint_response.py index 716018f7..4f3144b3 100644 --- a/launch/api_client/model/create_model_endpoint_response.py +++ b/launch/api_client/model/create_model_endpoint_response.py @@ -55,9 +55,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): @@ -77,9 +75,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): diff --git a/launch/api_client/model/create_model_endpoint_response.pyi b/launch/api_client/model/create_model_endpoint_response.pyi index 6c562738..2c4ebedf 100644 --- a/launch/api_client/model/create_model_endpoint_response.pyi +++ b/launch/api_client/model/create_model_endpoint_response.pyi @@ -49,9 +49,7 @@ class CreateModelEndpointResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): @@ -68,9 +66,7 @@ class CreateModelEndpointResponse(schemas.DictSchema): def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): diff --git a/launch/api_client/model/create_model_endpoint_v1_request.py b/launch/api_client/model/create_model_endpoint_v1_request.py index b3198236..ace2de91 100644 --- a/launch/api_client/model/create_model_endpoint_v1_request.py +++ b/launch/api_client/model/create_model_endpoint_v1_request.py @@ -9,30 +9,26 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 CreateModelEndpointV1Request( - schemas.DictSchema -): +class CreateModelEndpointV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_type", @@ -47,20 +43,16 @@ class MetaOapg: "per_worker", "labels", } - + class properties: - - class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -76,83 +68,102 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def endpoint_type() -> typing.Type['ModelEndpointType']: + def endpoint_type() -> typing.Type["ModelEndpointType"]: return ModelEndpointType - - - class gpus( - schemas.IntSchema - ): - - + + class gpus(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - - class max_workers( - schemas.IntSchema - ): - - + + class max_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -168,99 +179,125 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + metadata = schemas.DictSchema - - - class min_workers( - schemas.IntSchema - ): - - + + class min_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 + model_bundle_id = schemas.StrSchema - - - class name( - schemas.StrSchema - ): - - + + class name(schemas.StrSchema): class MetaOapg: max_length = 63 + per_worker = schemas.IntSchema billing_tags = schemas.DictSchema - + @staticmethod - def default_callback_auth() -> typing.Type['CallbackAuth']: + def default_callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth - - - class default_callback_url( - schemas.StrSchema - ): - - + + class default_callback_url(schemas.StrSchema): class MetaOapg: - format = 'uri' + format = "uri" max_length = 2083 min_length = 1 - + @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType + high_priority = schemas.BoolSchema optimize_costs = schemas.BoolSchema - - - class post_inference_hooks( - schemas.ListSchema - ): - - + + class post_inference_hooks(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'post_inference_hooks': + ) -> "post_inference_hooks": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + prewarm = schemas.BoolSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -276,20 +313,52 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + __annotations__ = { "cpus": cpus, "endpoint_type": endpoint_type, @@ -312,8 +381,8 @@ def __new__( "prewarm": prewarm, "storage": storage, } - - endpoint_type: 'ModelEndpointType' + + endpoint_type: "ModelEndpointType" metadata: MetaOapg.properties.metadata memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus @@ -324,168 +393,435 @@ def __new__( name: MetaOapg.properties.name per_worker: MetaOapg.properties.per_worker labels: MetaOapg.properties.labels - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... - + def __getitem__( + self, name: typing_extensions.Literal["billing_tags"] + ) -> MetaOapg.properties.billing_tags: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> MetaOapg.properties.default_callback_url: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... - + def __getitem__( + self, name: typing_extensions.Literal["high_priority"] + ) -> MetaOapg.properties.high_priority: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... - + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... - + def __getitem__( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> MetaOapg.properties.post_inference_hooks: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... - + def __getitem__( + self, name: typing_extensions.Literal["prewarm"] + ) -> MetaOapg.properties.prewarm: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "endpoint_type", + "gpus", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "name", + "per_worker", + "billing_tags", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "high_priority", + "optimize_costs", + "post_inference_hooks", + "prewarm", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["billing_tags"] + ) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["high_priority"] + ) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["prewarm"] + ) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "endpoint_type", + "gpus", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "name", + "per_worker", + "billing_tags", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "high_priority", + "optimize_costs", + "post_inference_hooks", + "prewarm", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_type: 'ModelEndpointType', - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], - name: typing.Union[MetaOapg.properties.name, str, ], - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], - billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, - high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_type: "ModelEndpointType", + metadata: typing.Union[ + MetaOapg.properties.metadata, + dict, + frozendict.frozendict, + ], + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + max_workers: typing.Union[ + MetaOapg.properties.max_workers, + decimal.Decimal, + int, + ], + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, + str, + ], + min_workers: typing.Union[ + MetaOapg.properties.min_workers, + decimal.Decimal, + int, + ], + gpus: typing.Union[ + MetaOapg.properties.gpus, + decimal.Decimal, + int, + ], + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + per_worker: typing.Union[ + MetaOapg.properties.per_worker, + decimal.Decimal, + int, + ], + labels: typing.Union[ + MetaOapg.properties.labels, + dict, + frozendict.frozendict, + ], + billing_tags: typing.Union[ + MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[ + MetaOapg.properties.default_callback_url, str, schemas.Unset + ] = schemas.unset, + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + high_priority: typing.Union[ + MetaOapg.properties.high_priority, bool, schemas.Unset + ] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, + post_inference_hooks: typing.Union[ + MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset + ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'CreateModelEndpointV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelEndpointV1Request": return super().__new__( cls, *_args, @@ -513,6 +849,7 @@ def __new__( **kwargs, ) + from launch.api_client.model.callback_auth import CallbackAuth from launch.api_client.model.gpu_type import GpuType from launch.api_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/create_model_endpoint_v1_request.pyi b/launch/api_client/model/create_model_endpoint_v1_request.pyi index d1849c99..297d59e6 100644 --- a/launch/api_client/model/create_model_endpoint_v1_request.pyi +++ b/launch/api_client/model/create_model_endpoint_v1_request.pyi @@ -9,30 +9,25 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateModelEndpointV1Request( - schemas.DictSchema -): +class CreateModelEndpointV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_type", @@ -47,20 +42,16 @@ class CreateModelEndpointV1Request( "per_worker", "labels", } - + class properties: - - class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -76,77 +67,95 @@ class CreateModelEndpointV1Request( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - @staticmethod - def endpoint_type() -> typing.Type['ModelEndpointType']: + def endpoint_type() -> typing.Type["ModelEndpointType"]: return ModelEndpointType - - - class gpus( - schemas.IntSchema - ): + + class gpus(schemas.IntSchema): pass - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - - class max_workers( - schemas.IntSchema - ): + + class max_workers(schemas.IntSchema): pass - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -162,14 +171,44 @@ class CreateModelEndpointV1Request( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, @@ -177,73 +216,66 @@ class CreateModelEndpointV1Request( **kwargs, ) metadata = schemas.DictSchema - - - class min_workers( - schemas.IntSchema - ): + + class min_workers(schemas.IntSchema): pass model_bundle_id = schemas.StrSchema - - - class name( - schemas.StrSchema - ): + + class name(schemas.StrSchema): pass per_worker = schemas.IntSchema billing_tags = schemas.DictSchema - + @staticmethod - def default_callback_auth() -> typing.Type['CallbackAuth']: + def default_callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth - - - class default_callback_url( - schemas.StrSchema - ): + + class default_callback_url(schemas.StrSchema): pass - @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType high_priority = schemas.BoolSchema optimize_costs = schemas.BoolSchema - - - class post_inference_hooks( - schemas.ListSchema - ): - - + + class post_inference_hooks(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'post_inference_hooks': + ) -> "post_inference_hooks": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) prewarm = schemas.BoolSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -259,14 +291,44 @@ class CreateModelEndpointV1Request( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, @@ -295,8 +357,7 @@ class CreateModelEndpointV1Request( "prewarm": prewarm, "storage": storage, } - - endpoint_type: 'ModelEndpointType' + endpoint_type: "ModelEndpointType" metadata: MetaOapg.properties.metadata memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus @@ -307,168 +368,363 @@ class CreateModelEndpointV1Request( name: MetaOapg.properties.name per_worker: MetaOapg.properties.per_worker labels: MetaOapg.properties.labels - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def __getitem__( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def __getitem__( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def __getitem__( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... - + def __getitem__( + self, name: typing_extensions.Literal["billing_tags"] + ) -> MetaOapg.properties.billing_tags: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> MetaOapg.properties.default_callback_url: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... - + def __getitem__( + self, name: typing_extensions.Literal["high_priority"] + ) -> MetaOapg.properties.high_priority: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... - + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... - + def __getitem__( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... - + def __getitem__( + self, name: typing_extensions.Literal["prewarm"] + ) -> MetaOapg.properties.prewarm: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "endpoint_type", + "gpus", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "name", + "per_worker", + "billing_tags", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "high_priority", + "optimize_costs", + "post_inference_hooks", + "prewarm", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "endpoint_type", "gpus", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "name", "per_worker", "billing_tags", "default_callback_auth", "default_callback_url", "gpu_type", "high_priority", "optimize_costs", "post_inference_hooks", "prewarm", "storage", ], str]): + def get_item_oapg( + self, name: typing_extensions.Literal["cpus"] + ) -> MetaOapg.properties.cpus: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["gpus"] + ) -> MetaOapg.properties.gpus: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["name"] + ) -> MetaOapg.properties.name: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["billing_tags"] + ) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["high_priority"] + ) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["prewarm"] + ) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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[ + "cpus", + "endpoint_type", + "gpus", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "name", + "per_worker", + "billing_tags", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "high_priority", + "optimize_costs", + "post_inference_hooks", + "prewarm", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_type: 'ModelEndpointType', - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, ], - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], - name: typing.Union[MetaOapg.properties.name, str, ], - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, ], - billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, - high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_type: "ModelEndpointType", + metadata: typing.Union[ + MetaOapg.properties.metadata, + dict, + frozendict.frozendict, + ], + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + max_workers: typing.Union[ + MetaOapg.properties.max_workers, + decimal.Decimal, + int, + ], + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, + str, + ], + min_workers: typing.Union[ + MetaOapg.properties.min_workers, + decimal.Decimal, + int, + ], + gpus: typing.Union[ + MetaOapg.properties.gpus, + decimal.Decimal, + int, + ], + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + per_worker: typing.Union[ + MetaOapg.properties.per_worker, + decimal.Decimal, + int, + ], + labels: typing.Union[ + MetaOapg.properties.labels, + dict, + frozendict.frozendict, + ], + billing_tags: typing.Union[ + MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[ + MetaOapg.properties.default_callback_url, str, schemas.Unset + ] = schemas.unset, + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + high_priority: typing.Union[ + MetaOapg.properties.high_priority, bool, schemas.Unset + ] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, + post_inference_hooks: typing.Union[ + MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset + ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'CreateModelEndpointV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelEndpointV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_endpoint_v1_response.py b/launch/api_client/model/create_model_endpoint_v1_response.py index 6f344894..33d4b0db 100644 --- a/launch/api_client/model/create_model_endpoint_v1_response.py +++ b/launch/api_client/model/create_model_endpoint_v1_response.py @@ -9,71 +9,98 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 CreateModelEndpointV1Response( - schemas.DictSchema -): +class CreateModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_creation_task_id", } - + class properties: endpoint_creation_task_id = schemas.StrSchema __annotations__ = { "endpoint_creation_task_id": endpoint_creation_task_id, } - + endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: + ... + @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["endpoint_creation_task_id", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_creation_task_id: typing.Union[ + MetaOapg.properties.endpoint_creation_task_id, + str, + ], _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], - ) -> 'CreateModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/create_model_endpoint_v1_response.pyi b/launch/api_client/model/create_model_endpoint_v1_response.pyi index 0b696784..0272962c 100644 --- a/launch/api_client/model/create_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/create_model_endpoint_v1_response.pyi @@ -9,71 +9,88 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class CreateModelEndpointV1Response( - schemas.DictSchema -): +class CreateModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_creation_task_id", } - + class properties: endpoint_creation_task_id = schemas.StrSchema __annotations__ = { "endpoint_creation_task_id": endpoint_creation_task_id, } - endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): + def __getitem__( + self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: ... @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["endpoint_creation_task_id", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_creation_task_id: typing.Union[ + MetaOapg.properties.endpoint_creation_task_id, + str, + ], _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], - ) -> 'CreateModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "CreateModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/delete_model_endpoint_response.py b/launch/api_client/model/delete_model_endpoint_response.py index 3525cd4e..bd1f96ae 100644 --- a/launch/api_client/model/delete_model_endpoint_response.py +++ b/launch/api_client/model/delete_model_endpoint_response.py @@ -55,9 +55,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "deleted", - ], + typing_extensions.Literal["deleted",], str, ], ): @@ -77,9 +75,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "deleted", - ], + typing_extensions.Literal["deleted",], str, ], ): diff --git a/launch/api_client/model/delete_model_endpoint_response.pyi b/launch/api_client/model/delete_model_endpoint_response.pyi index e74f51b3..0b6c6e3d 100644 --- a/launch/api_client/model/delete_model_endpoint_response.pyi +++ b/launch/api_client/model/delete_model_endpoint_response.pyi @@ -49,9 +49,7 @@ class DeleteModelEndpointResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "deleted", - ], + typing_extensions.Literal["deleted",], str, ], ): @@ -68,9 +66,7 @@ class DeleteModelEndpointResponse(schemas.DictSchema): def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "deleted", - ], + typing_extensions.Literal["deleted",], str, ], ): diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.py b/launch/api_client/model/delete_model_endpoint_v1_response.py index dea0d23d..e585c376 100644 --- a/launch/api_client/model/delete_model_endpoint_v1_response.py +++ b/launch/api_client/model/delete_model_endpoint_v1_response.py @@ -9,71 +9,94 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 DeleteModelEndpointV1Response( - schemas.DictSchema -): +class DeleteModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "deleted", } - + class properties: deleted = schemas.BoolSchema __annotations__ = { "deleted": deleted, } - + deleted: MetaOapg.properties.deleted - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... - + def __getitem__( + self, name: typing_extensions.Literal["deleted"] + ) -> MetaOapg.properties.deleted: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["deleted"] + ) -> MetaOapg.properties.deleted: + ... + @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["deleted", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - deleted: typing.Union[MetaOapg.properties.deleted, bool, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + deleted: typing.Union[ + MetaOapg.properties.deleted, + bool, + ], _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], - ) -> 'DeleteModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "DeleteModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.pyi b/launch/api_client/model/delete_model_endpoint_v1_response.pyi index f8cc65ff..02ec015a 100644 --- a/launch/api_client/model/delete_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/delete_model_endpoint_v1_response.pyi @@ -9,71 +9,84 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class DeleteModelEndpointV1Response( - schemas.DictSchema -): +class DeleteModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "deleted", } - + class properties: deleted = schemas.BoolSchema __annotations__ = { "deleted": deleted, } - deleted: MetaOapg.properties.deleted - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... - + def __getitem__( + self, name: typing_extensions.Literal["deleted"] + ) -> MetaOapg.properties.deleted: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["deleted"] + ) -> MetaOapg.properties.deleted: ... @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["deleted", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - deleted: typing.Union[MetaOapg.properties.deleted, bool, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + deleted: typing.Union[ + MetaOapg.properties.deleted, + bool, + ], _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], - ) -> 'DeleteModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "DeleteModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/endpoint_predict_v1_request.py b/launch/api_client/model/endpoint_predict_v1_request.py index 79f2c87b..aeea7869 100644 --- a/launch/api_client/model/endpoint_predict_v1_request.py +++ b/launch/api_client/model/endpoint_predict_v1_request.py @@ -9,38 +9,34 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 EndpointPredictV1Request( - schemas.DictSchema -): +class EndpointPredictV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: args = schemas.AnyTypeSchema - + @staticmethod - def callback_auth() -> typing.Type['CallbackAuth']: + def callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth + callback_url = schemas.StrSchema cloudpickle = schemas.StrSchema return_pickled = schemas.BoolSchema @@ -53,70 +49,169 @@ def callback_auth() -> typing.Type['CallbackAuth']: "return_pickled": return_pickled, "url": url, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["args"]) -> MetaOapg.properties.args: ... - + def __getitem__(self, name: typing_extensions.Literal["args"]) -> MetaOapg.properties.args: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "CallbackAuth": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["callback_url"] + ) -> MetaOapg.properties.callback_url: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... - + def __getitem__( + self, name: typing_extensions.Literal["cloudpickle"] + ) -> MetaOapg.properties.cloudpickle: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... - + def __getitem__( + self, name: typing_extensions.Literal["return_pickled"] + ) -> MetaOapg.properties.return_pickled: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... - + def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "args", + "callback_auth", + "callback_url", + "cloudpickle", + "return_pickled", + "url", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["args"]) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["args"] + ) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["callback_url"]) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["callback_url"] + ) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cloudpickle"]) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cloudpickle"] + ) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["return_pickled"]) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["return_pickled"] + ) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["url"]) -> typing.Union[MetaOapg.properties.url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["url"] + ) -> typing.Union[MetaOapg.properties.url, 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["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "args", + "callback_auth", + "callback_url", + "cloudpickle", + "return_pickled", + "url", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - args: typing.Union[MetaOapg.properties.args, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, - cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, - return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + args: typing.Union[ + MetaOapg.properties.args, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + callback_url: typing.Union[ + MetaOapg.properties.callback_url, str, schemas.Unset + ] = schemas.unset, + cloudpickle: typing.Union[ + MetaOapg.properties.cloudpickle, str, schemas.Unset + ] = schemas.unset, + return_pickled: typing.Union[ + MetaOapg.properties.return_pickled, bool, schemas.Unset + ] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, 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], - ) -> 'EndpointPredictV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "EndpointPredictV1Request": return super().__new__( cls, *_args, @@ -130,4 +225,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.callback_auth import CallbackAuth diff --git a/launch/api_client/model/endpoint_predict_v1_request.pyi b/launch/api_client/model/endpoint_predict_v1_request.pyi index 018c61dc..d3eef101 100644 --- a/launch/api_client/model/endpoint_predict_v1_request.pyi +++ b/launch/api_client/model/endpoint_predict_v1_request.pyi @@ -9,37 +9,31 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class EndpointPredictV1Request( - schemas.DictSchema -): +class EndpointPredictV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: args = schemas.AnyTypeSchema - + @staticmethod - def callback_auth() -> typing.Type['CallbackAuth']: + def callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth callback_url = schemas.StrSchema cloudpickle = schemas.StrSchema @@ -53,70 +47,140 @@ class EndpointPredictV1Request( "return_pickled": return_pickled, "url": url, } - @typing.overload def __getitem__(self, name: typing_extensions.Literal["args"]) -> MetaOapg.properties.args: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "CallbackAuth": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["callback_url"] + ) -> MetaOapg.properties.callback_url: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... - + def __getitem__( + self, name: typing_extensions.Literal["cloudpickle"] + ) -> MetaOapg.properties.cloudpickle: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... - + def __getitem__( + self, name: typing_extensions.Literal["return_pickled"] + ) -> MetaOapg.properties.return_pickled: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "args", + "callback_auth", + "callback_url", + "cloudpickle", + "return_pickled", + "url", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["args"]) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["args"] + ) -> typing.Union[MetaOapg.properties.args, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["callback_url"]) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["callback_url"] + ) -> typing.Union[MetaOapg.properties.callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cloudpickle"]) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cloudpickle"] + ) -> typing.Union[MetaOapg.properties.cloudpickle, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["return_pickled"]) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["return_pickled"] + ) -> typing.Union[MetaOapg.properties.return_pickled, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["url"]) -> typing.Union[MetaOapg.properties.url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["url"] + ) -> typing.Union[MetaOapg.properties.url, 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["args", "callback_auth", "callback_url", "cloudpickle", "return_pickled", "url", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "args", + "callback_auth", + "callback_url", + "cloudpickle", + "return_pickled", + "url", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - args: typing.Union[MetaOapg.properties.args, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, - cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, - return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + args: typing.Union[ + MetaOapg.properties.args, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + callback_url: typing.Union[ + MetaOapg.properties.callback_url, str, schemas.Unset + ] = schemas.unset, + cloudpickle: typing.Union[ + MetaOapg.properties.cloudpickle, str, schemas.Unset + ] = schemas.unset, + return_pickled: typing.Union[ + MetaOapg.properties.return_pickled, bool, schemas.Unset + ] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, 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], - ) -> 'EndpointPredictV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "EndpointPredictV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/get_async_task_v1_response.py b/launch/api_client/model/get_async_task_v1_response.py index 101107ad..7db6383e 100644 --- a/launch/api_client/model/get_async_task_v1_response.py +++ b/launch/api_client/model/get_async_task_v1_response.py @@ -9,41 +9,37 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 GetAsyncTaskV1Response( - schemas.DictSchema -): +class GetAsyncTaskV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "task_id", "status", } - + class properties: - @staticmethod - def status() -> typing.Type['TaskStatus']: + def status() -> typing.Type["TaskStatus"]: return TaskStatus + task_id = schemas.StrSchema result = schemas.AnyTypeSchema traceback = schemas.StrSchema @@ -53,59 +49,139 @@ def status() -> typing.Type['TaskStatus']: "result": result, "traceback": traceback, } - + task_id: MetaOapg.properties.task_id - status: 'TaskStatus' - + status: "TaskStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... - + def __getitem__( + self, name: typing_extensions.Literal["traceback"] + ) -> MetaOapg.properties.traceback: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "task_id", "result", "traceback", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "task_id", + "result", + "traceback", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["result"] + ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["traceback"] + ) -> typing.Union[MetaOapg.properties.traceback, 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["status", "task_id", "result", "traceback", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "task_id", + "result", + "traceback", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - task_id: typing.Union[MetaOapg.properties.task_id, str, ], - status: 'TaskStatus', - result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + task_id: typing.Union[ + MetaOapg.properties.task_id, + str, + ], + status: "TaskStatus", + result: typing.Union[ + MetaOapg.properties.result, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, traceback: typing.Union[MetaOapg.properties.traceback, str, 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], - ) -> 'GetAsyncTaskV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "GetAsyncTaskV1Response": return super().__new__( cls, *_args, @@ -117,4 +193,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.task_status import TaskStatus diff --git a/launch/api_client/model/get_async_task_v1_response.pyi b/launch/api_client/model/get_async_task_v1_response.pyi index d560363f..bd6c00e8 100644 --- a/launch/api_client/model/get_async_task_v1_response.pyi +++ b/launch/api_client/model/get_async_task_v1_response.pyi @@ -9,40 +9,34 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class GetAsyncTaskV1Response( - schemas.DictSchema -): +class GetAsyncTaskV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "task_id", "status", } - + class properties: - @staticmethod - def status() -> typing.Type['TaskStatus']: + def status() -> typing.Type["TaskStatus"]: return TaskStatus task_id = schemas.StrSchema result = schemas.AnyTypeSchema @@ -53,59 +47,120 @@ class GetAsyncTaskV1Response( "result": result, "traceback": traceback, } - task_id: MetaOapg.properties.task_id - status: 'TaskStatus' - + status: "TaskStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - + def __getitem__( + self, name: typing_extensions.Literal["result"] + ) -> MetaOapg.properties.result: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... - + def __getitem__( + self, name: typing_extensions.Literal["traceback"] + ) -> MetaOapg.properties.traceback: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "task_id", "result", "traceback", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "task_id", + "result", + "traceback", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["task_id"] + ) -> MetaOapg.properties.task_id: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["result"] + ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["traceback"] + ) -> typing.Union[MetaOapg.properties.traceback, 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["status", "task_id", "result", "traceback", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "task_id", + "result", + "traceback", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - task_id: typing.Union[MetaOapg.properties.task_id, str, ], - status: 'TaskStatus', - result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + task_id: typing.Union[ + MetaOapg.properties.task_id, + str, + ], + status: "TaskStatus", + result: typing.Union[ + MetaOapg.properties.result, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, traceback: typing.Union[MetaOapg.properties.traceback, str, 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], - ) -> 'GetAsyncTaskV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "GetAsyncTaskV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/get_batch_job_v1_response.py b/launch/api_client/model/get_batch_job_v1_response.py index d6a779c6..e12f9c27 100644 --- a/launch/api_client/model/get_batch_job_v1_response.py +++ b/launch/api_client/model/get_batch_job_v1_response.py @@ -9,42 +9,39 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 GetBatchJobV1Response( - schemas.DictSchema -): +class GetBatchJobV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "duration", "status", } - + class properties: duration = schemas.NumberSchema - + @staticmethod - def status() -> typing.Type['BatchJobStatus']: + def status() -> typing.Type["BatchJobStatus"]: return BatchJobStatus + num_tasks_completed = schemas.IntSchema num_tasks_pending = schemas.IntSchema result = schemas.StrSchema @@ -55,66 +52,141 @@ def status() -> typing.Type['BatchJobStatus']: "num_tasks_pending": num_tasks_pending, "result": result, } - + duration: MetaOapg.properties.duration - status: 'BatchJobStatus' - + status: "BatchJobStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... - + def __getitem__( + self, name: typing_extensions.Literal["duration"] + ) -> MetaOapg.properties.duration: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_tasks_completed"]) -> MetaOapg.properties.num_tasks_completed: ... - + def __getitem__( + self, name: typing_extensions.Literal["num_tasks_completed"] + ) -> MetaOapg.properties.num_tasks_completed: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_tasks_pending"]) -> MetaOapg.properties.num_tasks_pending: ... - + def __getitem__( + self, name: typing_extensions.Literal["num_tasks_pending"] + ) -> MetaOapg.properties.num_tasks_pending: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "duration", + "status", + "num_tasks_completed", + "num_tasks_pending", + "result", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["duration"] + ) -> MetaOapg.properties.duration: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_completed"]) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["num_tasks_completed"] + ) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_pending"]) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["num_tasks_pending"] + ) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["result"] + ) -> typing.Union[MetaOapg.properties.result, 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["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "duration", + "status", + "num_tasks_completed", + "num_tasks_pending", + "result", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - duration: typing.Union[MetaOapg.properties.duration, decimal.Decimal, int, float, ], - status: 'BatchJobStatus', - num_tasks_completed: typing.Union[MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset] = schemas.unset, - num_tasks_pending: typing.Union[MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + duration: typing.Union[ + MetaOapg.properties.duration, + decimal.Decimal, + int, + float, + ], + status: "BatchJobStatus", + num_tasks_completed: typing.Union[ + MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + num_tasks_pending: typing.Union[ + MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, result: typing.Union[MetaOapg.properties.result, str, 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], - ) -> 'GetBatchJobV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "GetBatchJobV1Response": return super().__new__( cls, *_args, @@ -127,4 +199,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.batch_job_status import BatchJobStatus diff --git a/launch/api_client/model/get_batch_job_v1_response.pyi b/launch/api_client/model/get_batch_job_v1_response.pyi index b0b58d48..f78540ae 100644 --- a/launch/api_client/model/get_batch_job_v1_response.pyi +++ b/launch/api_client/model/get_batch_job_v1_response.pyi @@ -9,41 +9,36 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class GetBatchJobV1Response( - schemas.DictSchema -): +class GetBatchJobV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "duration", "status", } - + class properties: duration = schemas.NumberSchema - + @staticmethod - def status() -> typing.Type['BatchJobStatus']: + def status() -> typing.Type["BatchJobStatus"]: return BatchJobStatus num_tasks_completed = schemas.IntSchema num_tasks_pending = schemas.IntSchema @@ -55,66 +50,118 @@ class GetBatchJobV1Response( "num_tasks_pending": num_tasks_pending, "result": result, } - duration: MetaOapg.properties.duration - status: 'BatchJobStatus' - + status: "BatchJobStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... - + def __getitem__( + self, name: typing_extensions.Literal["duration"] + ) -> MetaOapg.properties.duration: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_tasks_completed"]) -> MetaOapg.properties.num_tasks_completed: ... - + def __getitem__( + self, name: typing_extensions.Literal["num_tasks_completed"] + ) -> MetaOapg.properties.num_tasks_completed: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_tasks_pending"]) -> MetaOapg.properties.num_tasks_pending: ... - + def __getitem__( + self, name: typing_extensions.Literal["num_tasks_pending"] + ) -> MetaOapg.properties.num_tasks_pending: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - + def __getitem__( + self, name: typing_extensions.Literal["result"] + ) -> MetaOapg.properties.result: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "duration", + "status", + "num_tasks_completed", + "num_tasks_pending", + "result", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["duration"] + ) -> MetaOapg.properties.duration: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'BatchJobStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_completed"]) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["num_tasks_completed"] + ) -> typing.Union[MetaOapg.properties.num_tasks_completed, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["num_tasks_pending"]) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["num_tasks_pending"] + ) -> typing.Union[MetaOapg.properties.num_tasks_pending, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["result"] + ) -> typing.Union[MetaOapg.properties.result, 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["duration", "status", "num_tasks_completed", "num_tasks_pending", "result", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "duration", + "status", + "num_tasks_completed", + "num_tasks_pending", + "result", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - duration: typing.Union[MetaOapg.properties.duration, decimal.Decimal, int, float, ], - status: 'BatchJobStatus', - num_tasks_completed: typing.Union[MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset] = schemas.unset, - num_tasks_pending: typing.Union[MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + duration: typing.Union[ + MetaOapg.properties.duration, + decimal.Decimal, + int, + float, + ], + status: "BatchJobStatus", + num_tasks_completed: typing.Union[ + MetaOapg.properties.num_tasks_completed, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + num_tasks_pending: typing.Union[ + MetaOapg.properties.num_tasks_pending, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, result: typing.Union[MetaOapg.properties.result, str, 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], - ) -> 'GetBatchJobV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "GetBatchJobV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/get_model_endpoint_response.py b/launch/api_client/model/get_model_endpoint_response.py index 1257117e..b4142208 100644 --- a/launch/api_client/model/get_model_endpoint_response.py +++ b/launch/api_client/model/get_model_endpoint_response.py @@ -84,18 +84,14 @@ class MetaOapg: def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) diff --git a/launch/api_client/model/get_model_endpoint_response.pyi b/launch/api_client/model/get_model_endpoint_response.pyi index 5add04a0..e3e521b8 100644 --- a/launch/api_client/model/get_model_endpoint_response.pyi +++ b/launch/api_client/model/get_model_endpoint_response.pyi @@ -76,17 +76,13 @@ class GetModelEndpointResponse(schemas.DictSchema): additional_properties = schemas.StrSchema def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/get_model_endpoint_v1_response.py b/launch/api_client/model/get_model_endpoint_v1_response.py index 49bcbab2..c5882958 100644 --- a/launch/api_client/model/get_model_endpoint_v1_response.py +++ b/launch/api_client/model/get_model_endpoint_v1_response.py @@ -9,30 +9,26 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 GetModelEndpointV1Response( - schemas.DictSchema -): +class GetModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_type", @@ -45,102 +41,111 @@ class MetaOapg: "created_by", "status", } - + class properties: bundle_name = schemas.StrSchema created_at = schemas.DateTimeSchema created_by = schemas.StrSchema destination = schemas.StrSchema - + @staticmethod - def endpoint_type() -> typing.Type['ModelEndpointType']: + def endpoint_type() -> typing.Type["ModelEndpointType"]: return ModelEndpointType + id = schemas.StrSchema last_updated_at = schemas.DateTimeSchema name = schemas.StrSchema - + @staticmethod - def status() -> typing.Type['ModelEndpointStatus']: + def status() -> typing.Type["ModelEndpointStatus"]: return ModelEndpointStatus + aws_role = schemas.StrSchema - + @staticmethod - def default_callback_auth() -> typing.Type['CallbackAuth']: + def default_callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth - - - class default_callback_url( - schemas.StrSchema - ): - - + + class default_callback_url(schemas.StrSchema): class MetaOapg: - format = 'uri' + format = "uri" max_length = 2083 min_length = 1 + deployment_name = schemas.StrSchema - + @staticmethod - def deployment_state() -> typing.Type['ModelEndpointDeploymentState']: + def deployment_state() -> typing.Type["ModelEndpointDeploymentState"]: return ModelEndpointDeploymentState - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + metadata = schemas.DictSchema num_queued_items = schemas.IntSchema - - - class post_inference_hooks( - schemas.ListSchema - ): - - + + class post_inference_hooks(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'post_inference_hooks': + ) -> "post_inference_hooks": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) - + @staticmethod - def resource_state() -> typing.Type['ModelEndpointResourceState']: + def resource_state() -> typing.Type["ModelEndpointResourceState"]: return ModelEndpointResourceState + results_s3_bucket = schemas.StrSchema __annotations__ = { "bundle_name": bundle_name, @@ -164,8 +169,8 @@ def resource_state() -> typing.Type['ModelEndpointResourceState']: "resource_state": resource_state, "results_s3_bucket": results_s3_bucket, } - - endpoint_type: 'ModelEndpointType' + + endpoint_type: "ModelEndpointType" last_updated_at: MetaOapg.properties.last_updated_at destination: MetaOapg.properties.destination name: MetaOapg.properties.name @@ -173,169 +178,384 @@ def resource_state() -> typing.Type['ModelEndpointResourceState']: bundle_name: MetaOapg.properties.bundle_name id: MetaOapg.properties.id created_by: MetaOapg.properties.created_by - status: 'ModelEndpointStatus' - + status: "ModelEndpointStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... - + def __getitem__( + self, name: typing_extensions.Literal["bundle_name"] + ) -> MetaOapg.properties.bundle_name: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - + def __getitem__( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... - + def __getitem__( + self, name: typing_extensions.Literal["created_by"] + ) -> MetaOapg.properties.created_by: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - + def __getitem__( + self, name: typing_extensions.Literal["destination"] + ) -> MetaOapg.properties.destination: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... - + def __getitem__( + self, name: typing_extensions.Literal["last_updated_at"] + ) -> MetaOapg.properties.last_updated_at: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... - + def __getitem__( + self, name: typing_extensions.Literal["aws_role"] + ) -> MetaOapg.properties.aws_role: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> MetaOapg.properties.default_callback_url: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: ... - + def __getitem__( + self, name: typing_extensions.Literal["deployment_name"] + ) -> MetaOapg.properties.deployment_name: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> 'ModelEndpointDeploymentState': ... - + def __getitem__( + self, name: typing_extensions.Literal["deployment_state"] + ) -> "ModelEndpointDeploymentState": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: ... - + def __getitem__( + self, name: typing_extensions.Literal["num_queued_items"] + ) -> MetaOapg.properties.num_queued_items: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... - + def __getitem__( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> MetaOapg.properties.post_inference_hooks: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> 'ModelEndpointResourceState': ... - + def __getitem__( + self, name: typing_extensions.Literal["resource_state"] + ) -> "ModelEndpointResourceState": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... - + def __getitem__( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> MetaOapg.properties.results_s3_bucket: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "bundle_name", + "created_at", + "created_by", + "destination", + "endpoint_type", + "id", + "last_updated_at", + "name", + "status", + "aws_role", + "default_callback_auth", + "default_callback_url", + "deployment_name", + "deployment_state", + "labels", + "metadata", + "num_queued_items", + "post_inference_hooks", + "resource_state", + "results_s3_bucket", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["bundle_name"] + ) -> MetaOapg.properties.bundle_name: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["created_by"] + ) -> MetaOapg.properties.created_by: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["destination"] + ) -> MetaOapg.properties.destination: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["last_updated_at"] + ) -> MetaOapg.properties.last_updated_at: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["aws_role"] + ) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deployment_name"]) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["deployment_name"] + ) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deployment_state"]) -> typing.Union['ModelEndpointDeploymentState', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["deployment_state"] + ) -> typing.Union["ModelEndpointDeploymentState", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["num_queued_items"]) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["num_queued_items"] + ) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource_state"]) -> typing.Union['ModelEndpointResourceState', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["resource_state"] + ) -> typing.Union["ModelEndpointResourceState", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> typing.Union[MetaOapg.properties.results_s3_bucket, 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["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "bundle_name", + "created_at", + "created_by", + "destination", + "endpoint_type", + "id", + "last_updated_at", + "name", + "status", + "aws_role", + "default_callback_auth", + "default_callback_url", + "deployment_name", + "deployment_state", + "labels", + "metadata", + "num_queued_items", + "post_inference_hooks", + "resource_state", + "results_s3_bucket", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_type: 'ModelEndpointType', - last_updated_at: typing.Union[MetaOapg.properties.last_updated_at, str, datetime, ], - destination: typing.Union[MetaOapg.properties.destination, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], - bundle_name: typing.Union[MetaOapg.properties.bundle_name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - created_by: typing.Union[MetaOapg.properties.created_by, str, ], - status: 'ModelEndpointStatus', + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_type: "ModelEndpointType", + last_updated_at: typing.Union[ + MetaOapg.properties.last_updated_at, + str, + datetime, + ], + destination: typing.Union[ + MetaOapg.properties.destination, + str, + ], + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + created_at: typing.Union[ + MetaOapg.properties.created_at, + str, + datetime, + ], + bundle_name: typing.Union[ + MetaOapg.properties.bundle_name, + str, + ], + id: typing.Union[ + MetaOapg.properties.id, + str, + ], + created_by: typing.Union[ + MetaOapg.properties.created_by, + str, + ], + status: "ModelEndpointStatus", aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, - deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, - deployment_state: typing.Union['ModelEndpointDeploymentState', schemas.Unset] = schemas.unset, - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - num_queued_items: typing.Union[MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, - resource_state: typing.Union['ModelEndpointResourceState', schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[ + MetaOapg.properties.default_callback_url, str, schemas.Unset + ] = schemas.unset, + deployment_name: typing.Union[ + MetaOapg.properties.deployment_name, str, schemas.Unset + ] = schemas.unset, + deployment_state: typing.Union[ + "ModelEndpointDeploymentState", schemas.Unset + ] = schemas.unset, + labels: typing.Union[ + MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + metadata: typing.Union[ + MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + num_queued_items: typing.Union[ + MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + post_inference_hooks: typing.Union[ + MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset + ] = schemas.unset, + resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[ + MetaOapg.properties.results_s3_bucket, str, 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], - ) -> 'GetModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "GetModelEndpointV1Response": return super().__new__( cls, *_args, @@ -363,6 +583,7 @@ def __new__( **kwargs, ) + from launch.api_client.model.callback_auth import CallbackAuth from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState diff --git a/launch/api_client/model/get_model_endpoint_v1_response.pyi b/launch/api_client/model/get_model_endpoint_v1_response.pyi index 9daf947d..ade66ce5 100644 --- a/launch/api_client/model/get_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/get_model_endpoint_v1_response.pyi @@ -9,30 +9,25 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class GetModelEndpointV1Response( - schemas.DictSchema -): +class GetModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_type", @@ -45,62 +40,57 @@ class GetModelEndpointV1Response( "created_by", "status", } - + class properties: bundle_name = schemas.StrSchema created_at = schemas.DateTimeSchema created_by = schemas.StrSchema destination = schemas.StrSchema - + @staticmethod - def endpoint_type() -> typing.Type['ModelEndpointType']: + def endpoint_type() -> typing.Type["ModelEndpointType"]: return ModelEndpointType id = schemas.StrSchema last_updated_at = schemas.DateTimeSchema name = schemas.StrSchema - + @staticmethod - def status() -> typing.Type['ModelEndpointStatus']: + def status() -> typing.Type["ModelEndpointStatus"]: return ModelEndpointStatus aws_role = schemas.StrSchema - + @staticmethod - def default_callback_auth() -> typing.Type['CallbackAuth']: + def default_callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth - - - class default_callback_url( - schemas.StrSchema - ): + + class default_callback_url(schemas.StrSchema): pass deployment_name = schemas.StrSchema - + @staticmethod - def deployment_state() -> typing.Type['ModelEndpointDeploymentState']: + def deployment_state() -> typing.Type["ModelEndpointDeploymentState"]: return ModelEndpointDeploymentState - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, @@ -109,32 +99,37 @@ class GetModelEndpointV1Response( ) metadata = schemas.DictSchema num_queued_items = schemas.IntSchema - - - class post_inference_hooks( - schemas.ListSchema - ): - - + + class post_inference_hooks(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'post_inference_hooks': + ) -> "post_inference_hooks": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) - @staticmethod - def resource_state() -> typing.Type['ModelEndpointResourceState']: + def resource_state() -> typing.Type["ModelEndpointResourceState"]: return ModelEndpointResourceState results_s3_bucket = schemas.StrSchema __annotations__ = { @@ -159,8 +154,7 @@ class GetModelEndpointV1Response( "resource_state": resource_state, "results_s3_bucket": results_s3_bucket, } - - endpoint_type: 'ModelEndpointType' + endpoint_type: "ModelEndpointType" last_updated_at: MetaOapg.properties.last_updated_at destination: MetaOapg.properties.destination name: MetaOapg.properties.name @@ -168,169 +162,306 @@ class GetModelEndpointV1Response( bundle_name: MetaOapg.properties.bundle_name id: MetaOapg.properties.id created_by: MetaOapg.properties.created_by - status: 'ModelEndpointStatus' - + status: "ModelEndpointStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... - + def __getitem__( + self, name: typing_extensions.Literal["bundle_name"] + ) -> MetaOapg.properties.bundle_name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - + def __getitem__( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... - + def __getitem__( + self, name: typing_extensions.Literal["created_by"] + ) -> MetaOapg.properties.created_by: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - + def __getitem__( + self, name: typing_extensions.Literal["destination"] + ) -> MetaOapg.properties.destination: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def __getitem__( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... - + def __getitem__( + self, name: typing_extensions.Literal["last_updated_at"] + ) -> MetaOapg.properties.last_updated_at: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... - + def __getitem__( + self, name: typing_extensions.Literal["aws_role"] + ) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> MetaOapg.properties.default_callback_url: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: ... - + def __getitem__( + self, name: typing_extensions.Literal["deployment_name"] + ) -> MetaOapg.properties.deployment_name: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> 'ModelEndpointDeploymentState': ... - + def __getitem__( + self, name: typing_extensions.Literal["deployment_state"] + ) -> "ModelEndpointDeploymentState": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def __getitem__( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: ... - + def __getitem__( + self, name: typing_extensions.Literal["num_queued_items"] + ) -> MetaOapg.properties.num_queued_items: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... - + def __getitem__( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> 'ModelEndpointResourceState': ... - + def __getitem__( + self, name: typing_extensions.Literal["resource_state"] + ) -> "ModelEndpointResourceState": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... - + def __getitem__( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> MetaOapg.properties.results_s3_bucket: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "bundle_name", + "created_at", + "created_by", + "destination", + "endpoint_type", + "id", + "last_updated_at", + "name", + "status", + "aws_role", + "default_callback_auth", + "default_callback_url", + "deployment_name", + "deployment_state", + "labels", + "metadata", + "num_queued_items", + "post_inference_hooks", + "resource_state", + "results_s3_bucket", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["bundle_name"] + ) -> MetaOapg.properties.bundle_name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["created_by"] + ) -> MetaOapg.properties.created_by: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["destination"] + ) -> MetaOapg.properties.destination: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> 'ModelEndpointType': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_type"] + ) -> "ModelEndpointType": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'ModelEndpointStatus': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deployment_name"]) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["deployment_state"]) -> typing.Union['ModelEndpointDeploymentState', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["num_queued_items"]) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource_state"]) -> typing.Union['ModelEndpointResourceState', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, 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["bundle_name", "created_at", "created_by", "destination", "endpoint_type", "id", "last_updated_at", "name", "status", "aws_role", "default_callback_auth", "default_callback_url", "deployment_name", "deployment_state", "labels", "metadata", "num_queued_items", "post_inference_hooks", "resource_state", "results_s3_bucket", ], str]): + def get_item_oapg( + self, name: typing_extensions.Literal["last_updated_at"] + ) -> MetaOapg.properties.last_updated_at: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["name"] + ) -> MetaOapg.properties.name: ... + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["aws_role"] + ) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["deployment_name"] + ) -> typing.Union[MetaOapg.properties.deployment_name, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["deployment_state"] + ) -> typing.Union["ModelEndpointDeploymentState", schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["num_queued_items"] + ) -> typing.Union[MetaOapg.properties.num_queued_items, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["resource_state"] + ) -> typing.Union["ModelEndpointResourceState", schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> typing.Union[MetaOapg.properties.results_s3_bucket, 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[ + "bundle_name", + "created_at", + "created_by", + "destination", + "endpoint_type", + "id", + "last_updated_at", + "name", + "status", + "aws_role", + "default_callback_auth", + "default_callback_url", + "deployment_name", + "deployment_state", + "labels", + "metadata", + "num_queued_items", + "post_inference_hooks", + "resource_state", + "results_s3_bucket", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_type: 'ModelEndpointType', - last_updated_at: typing.Union[MetaOapg.properties.last_updated_at, str, datetime, ], - destination: typing.Union[MetaOapg.properties.destination, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], - bundle_name: typing.Union[MetaOapg.properties.bundle_name, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - created_by: typing.Union[MetaOapg.properties.created_by, str, ], - status: 'ModelEndpointStatus', + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_type: "ModelEndpointType", + last_updated_at: typing.Union[ + MetaOapg.properties.last_updated_at, + str, + datetime, + ], + destination: typing.Union[ + MetaOapg.properties.destination, + str, + ], + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + created_at: typing.Union[ + MetaOapg.properties.created_at, + str, + datetime, + ], + bundle_name: typing.Union[ + MetaOapg.properties.bundle_name, + str, + ], + id: typing.Union[ + MetaOapg.properties.id, + str, + ], + created_by: typing.Union[ + MetaOapg.properties.created_by, + str, + ], + status: "ModelEndpointStatus", aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, - deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, - deployment_state: typing.Union['ModelEndpointDeploymentState', schemas.Unset] = schemas.unset, - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - num_queued_items: typing.Union[MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, - resource_state: typing.Union['ModelEndpointResourceState', schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, + default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[ + MetaOapg.properties.default_callback_url, str, schemas.Unset + ] = schemas.unset, + deployment_name: typing.Union[ + MetaOapg.properties.deployment_name, str, schemas.Unset + ] = schemas.unset, + deployment_state: typing.Union[ + "ModelEndpointDeploymentState", schemas.Unset + ] = schemas.unset, + labels: typing.Union[ + MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + metadata: typing.Union[ + MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + num_queued_items: typing.Union[ + MetaOapg.properties.num_queued_items, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + post_inference_hooks: typing.Union[ + MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset + ] = schemas.unset, + resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[ + MetaOapg.properties.results_s3_bucket, str, 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], - ) -> 'GetModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "GetModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/gpu_type.py b/launch/api_client/model/gpu_type.py index 34158fa2..d97eee2f 100644 --- a/launch/api_client/model/gpu_type.py +++ b/launch/api_client/model/gpu_type.py @@ -9,24 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 GpuType( - schemas.EnumBase, - schemas.StrSchema -): +class GpuType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,22 +31,21 @@ class GpuType( Lists allowed GPU types for Launch. """ - class MetaOapg: enum_value_to_name = { "nvidia-tesla-t4": "TESLAT4", "nvidia-ampere-a10": "AMPEREA10", "nvidia-a100": "A100", } - + @schemas.classproperty def TESLAT4(cls): return cls("nvidia-tesla-t4") - + @schemas.classproperty def AMPEREA10(cls): return cls("nvidia-ampere-a10") - + @schemas.classproperty def A100(cls): return cls("nvidia-a100") diff --git a/launch/api_client/model/gpu_type.pyi b/launch/api_client/model/gpu_type.pyi index 2c8853fe..f24497d2 100644 --- a/launch/api_client/model/gpu_type.pyi +++ b/launch/api_client/model/gpu_type.pyi @@ -9,24 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class GpuType( - schemas.EnumBase, - schemas.StrSchema -): +class GpuType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,15 +29,13 @@ class GpuType( Lists allowed GPU types for Launch. """ - + @schemas.classproperty def TESLAT4(cls): return cls("nvidia-tesla-t4") - @schemas.classproperty def AMPEREA10(cls): return cls("nvidia-ampere-a10") - @schemas.classproperty def A100(cls): return cls("nvidia-a100") diff --git a/launch/api_client/model/http_validation_error.py b/launch/api_client/model/http_validation_error.py index e19f05b2..74b2e61b 100644 --- a/launch/api_client/model/http_validation_error.py +++ b/launch/api_client/model/http_validation_error.py @@ -9,91 +9,106 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 HTTPValidationError( - schemas.DictSchema -): +class HTTPValidationError(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: - - - class detail( - schemas.ListSchema - ): - - + class detail(schemas.ListSchema): class MetaOapg: - @staticmethod - def items() -> typing.Type['ValidationError']: + def items() -> typing.Type["ValidationError"]: return ValidationError - + def __new__( cls, - _arg: typing.Union[typing.Tuple['ValidationError'], typing.List['ValidationError']], + _arg: typing.Union[ + typing.Tuple["ValidationError"], typing.List["ValidationError"] + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'detail': + ) -> "detail": return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> 'ValidationError': + + def __getitem__(self, i: int) -> "ValidationError": return super().__getitem__(i) + __annotations__ = { "detail": detail, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: ... - + def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["detail"]) -> typing.Union[MetaOapg.properties.detail, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["detail"] + ) -> typing.Union[MetaOapg.properties.detail, 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["detail", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["detail",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - detail: typing.Union[MetaOapg.properties.detail, list, tuple, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + detail: typing.Union[ + MetaOapg.properties.detail, list, tuple, 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], - ) -> 'HTTPValidationError': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "HTTPValidationError": return super().__new__( cls, *_args, @@ -102,4 +117,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.validation_error import ValidationError diff --git a/launch/api_client/model/http_validation_error.pyi b/launch/api_client/model/http_validation_error.pyi index fa6a6998..0e97c80a 100644 --- a/launch/api_client/model/http_validation_error.pyi +++ b/launch/api_client/model/http_validation_error.pyi @@ -9,91 +9,95 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class HTTPValidationError( - schemas.DictSchema -): +class HTTPValidationError(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: - - - class detail( - schemas.ListSchema - ): - - + class detail(schemas.ListSchema): class MetaOapg: - @staticmethod - def items() -> typing.Type['ValidationError']: + def items() -> typing.Type["ValidationError"]: return ValidationError - def __new__( cls, - _arg: typing.Union[typing.Tuple['ValidationError'], typing.List['ValidationError']], + _arg: typing.Union[ + typing.Tuple["ValidationError"], typing.List["ValidationError"] + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'detail': + ) -> "detail": return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> 'ValidationError': + def __getitem__(self, i: int) -> "ValidationError": return super().__getitem__(i) __annotations__ = { "detail": detail, } - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: ... - + def __getitem__( + self, name: typing_extensions.Literal["detail"] + ) -> MetaOapg.properties.detail: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["detail"]) -> typing.Union[MetaOapg.properties.detail, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["detail"] + ) -> typing.Union[MetaOapg.properties.detail, 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["detail", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["detail",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - detail: typing.Union[MetaOapg.properties.detail, list, tuple, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + detail: typing.Union[ + MetaOapg.properties.detail, list, tuple, 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], - ) -> 'HTTPValidationError': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "HTTPValidationError": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/list_model_bundles_response.py b/launch/api_client/model/list_model_bundles_response.py index 6718f67c..4b860787 100644 --- a/launch/api_client/model/list_model_bundles_response.py +++ b/launch/api_client/model/list_model_bundles_response.py @@ -78,9 +78,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundles", - ], + typing_extensions.Literal["model_bundles",], str, ], ): @@ -100,9 +98,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundles", - ], + typing_extensions.Literal["model_bundles",], str, ], ): diff --git a/launch/api_client/model/list_model_bundles_response.pyi b/launch/api_client/model/list_model_bundles_response.pyi index 67698b2d..a99dcd6d 100644 --- a/launch/api_client/model/list_model_bundles_response.pyi +++ b/launch/api_client/model/list_model_bundles_response.pyi @@ -69,9 +69,7 @@ class ListModelBundlesResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundles", - ], + typing_extensions.Literal["model_bundles",], str, ], ): @@ -88,9 +86,7 @@ class ListModelBundlesResponse(schemas.DictSchema): def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "model_bundles", - ], + typing_extensions.Literal["model_bundles",], str, ], ): diff --git a/launch/api_client/model/list_model_bundles_v1_response.py b/launch/api_client/model/list_model_bundles_v1_response.py index 330b8226..7e1caa41 100644 --- a/launch/api_client/model/list_model_bundles_v1_response.py +++ b/launch/api_client/model/list_model_bundles_v1_response.py @@ -9,23 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ListModelBundlesV1Response( - schemas.DictSchema -): +class ListModelBundlesV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,73 +31,96 @@ class ListModelBundlesV1Response( Response object for listing Model Bundles. """ - class MetaOapg: required = { "model_bundles", } - + class properties: - - - class model_bundles( - schemas.ListSchema - ): - - + class model_bundles(schemas.ListSchema): class MetaOapg: - @staticmethod - def items() -> typing.Type['ModelBundleV1Response']: + def items() -> typing.Type["ModelBundleV1Response"]: return ModelBundleV1Response - + def __new__( cls, - _arg: typing.Union[typing.Tuple['ModelBundleV1Response'], typing.List['ModelBundleV1Response']], + _arg: typing.Union[ + typing.Tuple["ModelBundleV1Response"], typing.List["ModelBundleV1Response"] + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'model_bundles': + ) -> "model_bundles": return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> 'ModelBundleV1Response': + + def __getitem__(self, i: int) -> "ModelBundleV1Response": return super().__getitem__(i) + __annotations__ = { "model_bundles": model_bundles, } - + model_bundles: MetaOapg.properties.model_bundles - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundles"] + ) -> MetaOapg.properties.model_bundles: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundles"] + ) -> MetaOapg.properties.model_bundles: + ... + @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["model_bundles", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_bundles: typing.Union[MetaOapg.properties.model_bundles, list, tuple, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_bundles: typing.Union[ + MetaOapg.properties.model_bundles, + list, + tuple, + ], _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], - ) -> 'ListModelBundlesV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ListModelBundlesV1Response": return super().__new__( cls, *_args, @@ -109,4 +129,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response diff --git a/launch/api_client/model/list_model_bundles_v1_response.pyi b/launch/api_client/model/list_model_bundles_v1_response.pyi index 99555d85..42dfda02 100644 --- a/launch/api_client/model/list_model_bundles_v1_response.pyi +++ b/launch/api_client/model/list_model_bundles_v1_response.pyi @@ -9,23 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ListModelBundlesV1Response( - schemas.DictSchema -): +class ListModelBundlesV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,73 +30,84 @@ class ListModelBundlesV1Response( Response object for listing Model Bundles. """ - class MetaOapg: required = { "model_bundles", } - + class properties: - - - class model_bundles( - schemas.ListSchema - ): - - + class model_bundles(schemas.ListSchema): class MetaOapg: - @staticmethod - def items() -> typing.Type['ModelBundleV1Response']: + def items() -> typing.Type["ModelBundleV1Response"]: return ModelBundleV1Response - def __new__( cls, - _arg: typing.Union[typing.Tuple['ModelBundleV1Response'], typing.List['ModelBundleV1Response']], + _arg: typing.Union[ + typing.Tuple["ModelBundleV1Response"], typing.List["ModelBundleV1Response"] + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'model_bundles': + ) -> "model_bundles": return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> 'ModelBundleV1Response': + def __getitem__(self, i: int) -> "ModelBundleV1Response": return super().__getitem__(i) __annotations__ = { "model_bundles": model_bundles, } - model_bundles: MetaOapg.properties.model_bundles - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundles"] + ) -> MetaOapg.properties.model_bundles: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundles"] + ) -> MetaOapg.properties.model_bundles: ... @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["model_bundles", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_bundles: typing.Union[MetaOapg.properties.model_bundles, list, tuple, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_bundles: typing.Union[ + MetaOapg.properties.model_bundles, + list, + tuple, + ], _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], - ) -> 'ListModelBundlesV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ListModelBundlesV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/list_model_endpoints_response.py b/launch/api_client/model/list_model_endpoints_response.py index 54938121..6cddb6f1 100644 --- a/launch/api_client/model/list_model_endpoints_response.py +++ b/launch/api_client/model/list_model_endpoints_response.py @@ -77,9 +77,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "model_endpoints", - ], + typing_extensions.Literal["model_endpoints",], str, ], ): @@ -99,9 +97,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "model_endpoints", - ], + typing_extensions.Literal["model_endpoints",], str, ], ): diff --git a/launch/api_client/model/list_model_endpoints_response.pyi b/launch/api_client/model/list_model_endpoints_response.pyi index e9fe854d..1cd2cb5f 100644 --- a/launch/api_client/model/list_model_endpoints_response.pyi +++ b/launch/api_client/model/list_model_endpoints_response.pyi @@ -68,9 +68,7 @@ class ListModelEndpointsResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "model_endpoints", - ], + typing_extensions.Literal["model_endpoints",], str, ], ): @@ -87,9 +85,7 @@ class ListModelEndpointsResponse(schemas.DictSchema): def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "model_endpoints", - ], + typing_extensions.Literal["model_endpoints",], str, ], ): diff --git a/launch/api_client/model/list_model_endpoints_v1_response.py b/launch/api_client/model/list_model_endpoints_v1_response.py index 4c7007ac..e9083248 100644 --- a/launch/api_client/model/list_model_endpoints_v1_response.py +++ b/launch/api_client/model/list_model_endpoints_v1_response.py @@ -9,96 +9,117 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ListModelEndpointsV1Response( - schemas.DictSchema -): +class ListModelEndpointsV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "model_endpoints", } - + class properties: - - - class model_endpoints( - schemas.ListSchema - ): - - + class model_endpoints(schemas.ListSchema): class MetaOapg: - @staticmethod - def items() -> typing.Type['GetModelEndpointV1Response']: + def items() -> typing.Type["GetModelEndpointV1Response"]: return GetModelEndpointV1Response - + def __new__( cls, - _arg: typing.Union[typing.Tuple['GetModelEndpointV1Response'], typing.List['GetModelEndpointV1Response']], + _arg: typing.Union[ + typing.Tuple["GetModelEndpointV1Response"], + typing.List["GetModelEndpointV1Response"], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'model_endpoints': + ) -> "model_endpoints": return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> 'GetModelEndpointV1Response': + + def __getitem__(self, i: int) -> "GetModelEndpointV1Response": return super().__getitem__(i) + __annotations__ = { "model_endpoints": model_endpoints, } - + model_endpoints: MetaOapg.properties.model_endpoints - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_endpoints"] + ) -> MetaOapg.properties.model_endpoints: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_endpoints"] + ) -> MetaOapg.properties.model_endpoints: + ... + @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["model_endpoints", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_endpoints: typing.Union[MetaOapg.properties.model_endpoints, list, tuple, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_endpoints: typing.Union[ + MetaOapg.properties.model_endpoints, + list, + tuple, + ], _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], - ) -> 'ListModelEndpointsV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ListModelEndpointsV1Response": return super().__new__( cls, *_args, @@ -107,4 +128,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response diff --git a/launch/api_client/model/list_model_endpoints_v1_response.pyi b/launch/api_client/model/list_model_endpoints_v1_response.pyi index 742211e6..14a20b66 100644 --- a/launch/api_client/model/list_model_endpoints_v1_response.pyi +++ b/launch/api_client/model/list_model_endpoints_v1_response.pyi @@ -9,96 +9,104 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ListModelEndpointsV1Response( - schemas.DictSchema -): +class ListModelEndpointsV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "model_endpoints", } - + class properties: - - - class model_endpoints( - schemas.ListSchema - ): - - + class model_endpoints(schemas.ListSchema): class MetaOapg: - @staticmethod - def items() -> typing.Type['GetModelEndpointV1Response']: + def items() -> typing.Type["GetModelEndpointV1Response"]: return GetModelEndpointV1Response - def __new__( cls, - _arg: typing.Union[typing.Tuple['GetModelEndpointV1Response'], typing.List['GetModelEndpointV1Response']], + _arg: typing.Union[ + typing.Tuple["GetModelEndpointV1Response"], + typing.List["GetModelEndpointV1Response"], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'model_endpoints': + ) -> "model_endpoints": return super().__new__( cls, _arg, _configuration=_configuration, ) - - def __getitem__(self, i: int) -> 'GetModelEndpointV1Response': + def __getitem__(self, i: int) -> "GetModelEndpointV1Response": return super().__getitem__(i) __annotations__ = { "model_endpoints": model_endpoints, } - model_endpoints: MetaOapg.properties.model_endpoints - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_endpoints"] + ) -> MetaOapg.properties.model_endpoints: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_endpoints"] + ) -> MetaOapg.properties.model_endpoints: ... @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["model_endpoints", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - model_endpoints: typing.Union[MetaOapg.properties.model_endpoints, list, tuple, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + model_endpoints: typing.Union[ + MetaOapg.properties.model_endpoints, + list, + tuple, + ], _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], - ) -> 'ListModelEndpointsV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ListModelEndpointsV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_bundle_environment_params.py b/launch/api_client/model/model_bundle_environment_params.py index 037698eb..c49c89ad 100644 --- a/launch/api_client/model/model_bundle_environment_params.py +++ b/launch/api_client/model/model_bundle_environment_params.py @@ -9,43 +9,39 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ModelBundleEnvironmentParams( - schemas.DictSchema -): +class ModelBundleEnvironmentParams(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - This is the entity-layer class for the Model Bundle environment parameters. Being an -entity-layer class, it should be a plain data object. + This is the entity-layer class for the Model Bundle environment parameters. Being an + entity-layer class, it should be a plain data object. """ - class MetaOapg: required = { "framework_type", } - + class properties: - @staticmethod - def framework_type() -> typing.Type['ModelBundleFrameworkType']: + def framework_type() -> typing.Type["ModelBundleFrameworkType"]: return ModelBundleFrameworkType + ecr_repo = schemas.StrSchema image_tag = schemas.StrSchema pytorch_image_tag = schemas.StrSchema @@ -57,65 +53,141 @@ def framework_type() -> typing.Type['ModelBundleFrameworkType']: "pytorch_image_tag": pytorch_image_tag, "tensorflow_version": tensorflow_version, } - - framework_type: 'ModelBundleFrameworkType' - + + framework_type: "ModelBundleFrameworkType" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... - + def __getitem__( + self, name: typing_extensions.Literal["framework_type"] + ) -> "ModelBundleFrameworkType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: ... - + def __getitem__( + self, name: typing_extensions.Literal["ecr_repo"] + ) -> MetaOapg.properties.ecr_repo: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: ... - + def __getitem__( + self, name: typing_extensions.Literal["image_tag"] + ) -> MetaOapg.properties.image_tag: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> MetaOapg.properties.pytorch_image_tag: ... - + def __getitem__( + self, name: typing_extensions.Literal["pytorch_image_tag"] + ) -> MetaOapg.properties.pytorch_image_tag: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tensorflow_version"]) -> MetaOapg.properties.tensorflow_version: ... - + def __getitem__( + self, name: typing_extensions.Literal["tensorflow_version"] + ) -> MetaOapg.properties.tensorflow_version: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "framework_type", + "ecr_repo", + "image_tag", + "pytorch_image_tag", + "tensorflow_version", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["framework_type"] + ) -> "ModelBundleFrameworkType": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ecr_repo"]) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["ecr_repo"] + ) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["image_tag"]) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["image_tag"] + ) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["pytorch_image_tag"] + ) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tensorflow_version"]) -> typing.Union[MetaOapg.properties.tensorflow_version, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["tensorflow_version"] + ) -> typing.Union[MetaOapg.properties.tensorflow_version, 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["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "framework_type", + "ecr_repo", + "image_tag", + "pytorch_image_tag", + "tensorflow_version", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - framework_type: 'ModelBundleFrameworkType', + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + framework_type: "ModelBundleFrameworkType", ecr_repo: typing.Union[MetaOapg.properties.ecr_repo, str, schemas.Unset] = schemas.unset, image_tag: typing.Union[MetaOapg.properties.image_tag, str, schemas.Unset] = schemas.unset, - pytorch_image_tag: typing.Union[MetaOapg.properties.pytorch_image_tag, str, schemas.Unset] = schemas.unset, - tensorflow_version: typing.Union[MetaOapg.properties.tensorflow_version, str, schemas.Unset] = schemas.unset, + pytorch_image_tag: typing.Union[ + MetaOapg.properties.pytorch_image_tag, str, schemas.Unset + ] = schemas.unset, + tensorflow_version: typing.Union[ + MetaOapg.properties.tensorflow_version, str, 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], - ) -> 'ModelBundleEnvironmentParams': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelBundleEnvironmentParams": return super().__new__( cls, *_args, @@ -128,4 +200,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.model_bundle_framework_type import ModelBundleFrameworkType diff --git a/launch/api_client/model/model_bundle_environment_params.pyi b/launch/api_client/model/model_bundle_environment_params.pyi index 34f9c425..7a02224e 100644 --- a/launch/api_client/model/model_bundle_environment_params.pyi +++ b/launch/api_client/model/model_bundle_environment_params.pyi @@ -9,42 +9,36 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelBundleEnvironmentParams( - schemas.DictSchema -): +class ModelBundleEnvironmentParams(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - This is the entity-layer class for the Model Bundle environment parameters. Being an -entity-layer class, it should be a plain data object. + This is the entity-layer class for the Model Bundle environment parameters. Being an + entity-layer class, it should be a plain data object. """ - class MetaOapg: required = { "framework_type", } - + class properties: - @staticmethod - def framework_type() -> typing.Type['ModelBundleFrameworkType']: + def framework_type() -> typing.Type["ModelBundleFrameworkType"]: return ModelBundleFrameworkType ecr_repo = schemas.StrSchema image_tag = schemas.StrSchema @@ -57,65 +51,116 @@ entity-layer class, it should be a plain data object. "pytorch_image_tag": pytorch_image_tag, "tensorflow_version": tensorflow_version, } - - framework_type: 'ModelBundleFrameworkType' - + framework_type: "ModelBundleFrameworkType" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... - + def __getitem__( + self, name: typing_extensions.Literal["framework_type"] + ) -> "ModelBundleFrameworkType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: ... - + def __getitem__( + self, name: typing_extensions.Literal["ecr_repo"] + ) -> MetaOapg.properties.ecr_repo: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: ... - + def __getitem__( + self, name: typing_extensions.Literal["image_tag"] + ) -> MetaOapg.properties.image_tag: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> MetaOapg.properties.pytorch_image_tag: ... - + def __getitem__( + self, name: typing_extensions.Literal["pytorch_image_tag"] + ) -> MetaOapg.properties.pytorch_image_tag: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tensorflow_version"]) -> MetaOapg.properties.tensorflow_version: ... - + def __getitem__( + self, name: typing_extensions.Literal["tensorflow_version"] + ) -> MetaOapg.properties.tensorflow_version: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "framework_type", + "ecr_repo", + "image_tag", + "pytorch_image_tag", + "tensorflow_version", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> 'ModelBundleFrameworkType': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["framework_type"] + ) -> "ModelBundleFrameworkType": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ecr_repo"]) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["ecr_repo"] + ) -> typing.Union[MetaOapg.properties.ecr_repo, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["image_tag"]) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["image_tag"] + ) -> typing.Union[MetaOapg.properties.image_tag, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pytorch_image_tag"]) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["pytorch_image_tag"] + ) -> typing.Union[MetaOapg.properties.pytorch_image_tag, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tensorflow_version"]) -> typing.Union[MetaOapg.properties.tensorflow_version, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["tensorflow_version"] + ) -> typing.Union[MetaOapg.properties.tensorflow_version, 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["framework_type", "ecr_repo", "image_tag", "pytorch_image_tag", "tensorflow_version", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "framework_type", + "ecr_repo", + "image_tag", + "pytorch_image_tag", + "tensorflow_version", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - framework_type: 'ModelBundleFrameworkType', + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + framework_type: "ModelBundleFrameworkType", ecr_repo: typing.Union[MetaOapg.properties.ecr_repo, str, schemas.Unset] = schemas.unset, image_tag: typing.Union[MetaOapg.properties.image_tag, str, schemas.Unset] = schemas.unset, - pytorch_image_tag: typing.Union[MetaOapg.properties.pytorch_image_tag, str, schemas.Unset] = schemas.unset, - tensorflow_version: typing.Union[MetaOapg.properties.tensorflow_version, str, schemas.Unset] = schemas.unset, + pytorch_image_tag: typing.Union[ + MetaOapg.properties.pytorch_image_tag, str, schemas.Unset + ] = schemas.unset, + tensorflow_version: typing.Union[ + MetaOapg.properties.tensorflow_version, str, 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], - ) -> 'ModelBundleEnvironmentParams': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelBundleEnvironmentParams": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_bundle_framework_type.py b/launch/api_client/model/model_bundle_framework_type.py index 3a11569b..b0adc828 100644 --- a/launch/api_client/model/model_bundle_framework_type.py +++ b/launch/api_client/model/model_bundle_framework_type.py @@ -9,24 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ModelBundleFrameworkType( - schemas.EnumBase, - schemas.StrSchema -): +class ModelBundleFrameworkType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,22 +31,21 @@ class ModelBundleFrameworkType( The canonical list of possible machine learning frameworks of Model Bundles. """ - class MetaOapg: enum_value_to_name = { "pytorch": "PYTORCH", "tensorflow": "TENSORFLOW", "custom_base_image": "CUSTOM_BASE_IMAGE", } - + @schemas.classproperty def PYTORCH(cls): return cls("pytorch") - + @schemas.classproperty def TENSORFLOW(cls): return cls("tensorflow") - + @schemas.classproperty def CUSTOM_BASE_IMAGE(cls): return cls("custom_base_image") diff --git a/launch/api_client/model/model_bundle_framework_type.pyi b/launch/api_client/model/model_bundle_framework_type.pyi index bba8559d..6dac94df 100644 --- a/launch/api_client/model/model_bundle_framework_type.pyi +++ b/launch/api_client/model/model_bundle_framework_type.pyi @@ -9,24 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelBundleFrameworkType( - schemas.EnumBase, - schemas.StrSchema -): +class ModelBundleFrameworkType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,15 +29,13 @@ class ModelBundleFrameworkType( The canonical list of possible machine learning frameworks of Model Bundles. """ - + @schemas.classproperty def PYTORCH(cls): return cls("pytorch") - @schemas.classproperty def TENSORFLOW(cls): return cls("tensorflow") - @schemas.classproperty def CUSTOM_BASE_IMAGE(cls): return cls("custom_base_image") diff --git a/launch/api_client/model/model_bundle_order_by.py b/launch/api_client/model/model_bundle_order_by.py index fd5679d9..91aab2aa 100644 --- a/launch/api_client/model/model_bundle_order_by.py +++ b/launch/api_client/model/model_bundle_order_by.py @@ -9,24 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ModelBundleOrderBy( - schemas.EnumBase, - schemas.StrSchema -): +class ModelBundleOrderBy(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,17 +31,16 @@ class ModelBundleOrderBy( The canonical list of possible orderings of Model Bundles. """ - class MetaOapg: enum_value_to_name = { "newest": "NEWEST", "oldest": "OLDEST", } - + @schemas.classproperty def NEWEST(cls): return cls("newest") - + @schemas.classproperty def OLDEST(cls): return cls("oldest") diff --git a/launch/api_client/model/model_bundle_order_by.pyi b/launch/api_client/model/model_bundle_order_by.pyi index 8183c616..caa21cef 100644 --- a/launch/api_client/model/model_bundle_order_by.pyi +++ b/launch/api_client/model/model_bundle_order_by.pyi @@ -9,24 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelBundleOrderBy( - schemas.EnumBase, - schemas.StrSchema -): +class ModelBundleOrderBy(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,11 +29,10 @@ class ModelBundleOrderBy( The canonical list of possible orderings of Model Bundles. """ - + @schemas.classproperty def NEWEST(cls): return cls("newest") - @schemas.classproperty def OLDEST(cls): return cls("oldest") diff --git a/launch/api_client/model/model_bundle_packaging_type.py b/launch/api_client/model/model_bundle_packaging_type.py index 7f92d164..6b03a04b 100644 --- a/launch/api_client/model/model_bundle_packaging_type.py +++ b/launch/api_client/model/model_bundle_packaging_type.py @@ -9,50 +9,45 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ModelBundlePackagingType( - schemas.EnumBase, - schemas.StrSchema -): +class ModelBundlePackagingType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - The canonical list of possible packaging types for Model Bundles. + The canonical list of possible packaging types for Model Bundles. -These values broadly determine how the model endpoint will obtain its code & dependencies. + These values broadly determine how the model endpoint will obtain its code & dependencies. """ - class MetaOapg: enum_value_to_name = { "cloudpickle": "CLOUDPICKLE", "zip": "ZIP", "lira": "LIRA", } - + @schemas.classproperty def CLOUDPICKLE(cls): return cls("cloudpickle") - + @schemas.classproperty def ZIP(cls): return cls("zip") - + @schemas.classproperty def LIRA(cls): return cls("lira") diff --git a/launch/api_client/model/model_bundle_packaging_type.pyi b/launch/api_client/model/model_bundle_packaging_type.pyi index f2a66978..0ff122fb 100644 --- a/launch/api_client/model/model_bundle_packaging_type.pyi +++ b/launch/api_client/model/model_bundle_packaging_type.pyi @@ -9,42 +9,35 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelBundlePackagingType( - schemas.EnumBase, - schemas.StrSchema -): +class ModelBundlePackagingType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech + Ref: https://openapi-generator.tech - Do not edit the class manually. + Do not edit the class manually. - The canonical list of possible packaging types for Model Bundles. + The canonical list of possible packaging types for Model Bundles. -These values broadly determine how the model endpoint will obtain its code & dependencies. + These values broadly determine how the model endpoint will obtain its code & dependencies. """ - + @schemas.classproperty def CLOUDPICKLE(cls): return cls("cloudpickle") - @schemas.classproperty def ZIP(cls): return cls("zip") - @schemas.classproperty def LIRA(cls): return cls("lira") diff --git a/launch/api_client/model/model_bundle_v1_response.py b/launch/api_client/model/model_bundle_v1_response.py index d3a56489..e06a1f25 100644 --- a/launch/api_client/model/model_bundle_v1_response.py +++ b/launch/api_client/model/model_bundle_v1_response.py @@ -9,23 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ModelBundleV1Response( - schemas.DictSchema -): +class ModelBundleV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,7 +31,6 @@ class ModelBundleV1Response( Response object for a single Model Bundle. """ - class MetaOapg: required = { "metadata", @@ -47,67 +43,86 @@ class MetaOapg: "id", "env_params", } - + class properties: created_at = schemas.DateTimeSchema - + @staticmethod - def env_params() -> typing.Type['ModelBundleEnvironmentParams']: + def env_params() -> typing.Type["ModelBundleEnvironmentParams"]: return ModelBundleEnvironmentParams + id = schemas.StrSchema location = schemas.StrSchema metadata = schemas.DictSchema - - - class model_artifact_ids( - schemas.ListSchema - ): - - + + class model_artifact_ids(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'model_artifact_ids': + ) -> "model_artifact_ids": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + name = schemas.StrSchema - + @staticmethod - def packaging_type() -> typing.Type['ModelBundlePackagingType']: + def packaging_type() -> typing.Type["ModelBundlePackagingType"]: return ModelBundlePackagingType - - - class requirements( - schemas.ListSchema - ): - - + + class requirements(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'requirements': + ) -> "requirements": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + app_config = schemas.DictSchema schema_location = schemas.StrSchema __annotations__ = { @@ -123,115 +138,256 @@ def __getitem__(self, i: int) -> MetaOapg.items: "app_config": app_config, "schema_location": schema_location, } - + metadata: MetaOapg.properties.metadata requirements: MetaOapg.properties.requirements model_artifact_ids: MetaOapg.properties.model_artifact_ids - packaging_type: 'ModelBundlePackagingType' + packaging_type: "ModelBundlePackagingType" name: MetaOapg.properties.name created_at: MetaOapg.properties.created_at location: MetaOapg.properties.location id: MetaOapg.properties.id - env_params: 'ModelBundleEnvironmentParams' - + env_params: "ModelBundleEnvironmentParams" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - + def __getitem__( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def __getitem__( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - + def __getitem__( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_artifact_ids"] + ) -> MetaOapg.properties.model_artifact_ids: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def __getitem__( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - + def __getitem__( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... - + def __getitem__( + self, name: typing_extensions.Literal["app_config"] + ) -> MetaOapg.properties.app_config: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... - + def __getitem__( + self, name: typing_extensions.Literal["schema_location"] + ) -> MetaOapg.properties.schema_location: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "created_at", + "env_params", + "id", + "location", + "metadata", + "model_artifact_ids", + "name", + "packaging_type", + "requirements", + "app_config", + "schema_location", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_artifact_ids"] + ) -> MetaOapg.properties.model_artifact_ids: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["app_config"] + ) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["schema_location"] + ) -> typing.Union[MetaOapg.properties.schema_location, 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["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "created_at", + "env_params", + "id", + "location", + "metadata", + "model_artifact_ids", + "name", + "packaging_type", + "requirements", + "app_config", + "schema_location", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], - requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], - model_artifact_ids: typing.Union[MetaOapg.properties.model_artifact_ids, list, tuple, ], - packaging_type: 'ModelBundlePackagingType', - name: typing.Union[MetaOapg.properties.name, str, ], - created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], - location: typing.Union[MetaOapg.properties.location, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - env_params: 'ModelBundleEnvironmentParams', - app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + metadata: typing.Union[ + MetaOapg.properties.metadata, + dict, + frozendict.frozendict, + ], + requirements: typing.Union[ + MetaOapg.properties.requirements, + list, + tuple, + ], + model_artifact_ids: typing.Union[ + MetaOapg.properties.model_artifact_ids, + list, + tuple, + ], + packaging_type: "ModelBundlePackagingType", + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + created_at: typing.Union[ + MetaOapg.properties.created_at, + str, + datetime, + ], + location: typing.Union[ + MetaOapg.properties.location, + str, + ], + id: typing.Union[ + MetaOapg.properties.id, + str, + ], + env_params: "ModelBundleEnvironmentParams", + app_config: typing.Union[ + MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + schema_location: typing.Union[ + MetaOapg.properties.schema_location, str, 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], - ) -> 'ModelBundleV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelBundleV1Response": return super().__new__( cls, *_args, @@ -250,5 +406,6 @@ def __new__( **kwargs, ) + from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType diff --git a/launch/api_client/model/model_bundle_v1_response.pyi b/launch/api_client/model/model_bundle_v1_response.pyi index 8c3f0594..f8ca65c7 100644 --- a/launch/api_client/model/model_bundle_v1_response.pyi +++ b/launch/api_client/model/model_bundle_v1_response.pyi @@ -9,23 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelBundleV1Response( - schemas.DictSchema -): +class ModelBundleV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,7 +30,6 @@ class ModelBundleV1Response( Response object for a single Model Bundle. """ - class MetaOapg: required = { "metadata", @@ -47,65 +42,77 @@ class ModelBundleV1Response( "id", "env_params", } - + class properties: created_at = schemas.DateTimeSchema - + @staticmethod - def env_params() -> typing.Type['ModelBundleEnvironmentParams']: + def env_params() -> typing.Type["ModelBundleEnvironmentParams"]: return ModelBundleEnvironmentParams id = schemas.StrSchema location = schemas.StrSchema metadata = schemas.DictSchema - - - class model_artifact_ids( - schemas.ListSchema - ): - - + + class model_artifact_ids(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'model_artifact_ids': + ) -> "model_artifact_ids": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) name = schemas.StrSchema - + @staticmethod - def packaging_type() -> typing.Type['ModelBundlePackagingType']: + def packaging_type() -> typing.Type["ModelBundlePackagingType"]: return ModelBundlePackagingType - - - class requirements( - schemas.ListSchema - ): - - + + class requirements(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'requirements': + ) -> "requirements": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) app_config = schemas.DictSchema @@ -123,115 +130,209 @@ class ModelBundleV1Response( "app_config": app_config, "schema_location": schema_location, } - metadata: MetaOapg.properties.metadata requirements: MetaOapg.properties.requirements model_artifact_ids: MetaOapg.properties.model_artifact_ids - packaging_type: 'ModelBundlePackagingType' + packaging_type: "ModelBundlePackagingType" name: MetaOapg.properties.name created_at: MetaOapg.properties.created_at location: MetaOapg.properties.location id: MetaOapg.properties.id - env_params: 'ModelBundleEnvironmentParams' - + env_params: "ModelBundleEnvironmentParams" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - + def __getitem__( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def __getitem__( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - + def __getitem__( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_artifact_ids"] + ) -> MetaOapg.properties.model_artifact_ids: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def __getitem__( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - + def __getitem__( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... - + def __getitem__( + self, name: typing_extensions.Literal["app_config"] + ) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... - + def __getitem__( + self, name: typing_extensions.Literal["schema_location"] + ) -> MetaOapg.properties.schema_location: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "created_at", + "env_params", + "id", + "location", + "metadata", + "model_artifact_ids", + "name", + "packaging_type", + "requirements", + "app_config", + "schema_location", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["created_at"] + ) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> 'ModelBundleEnvironmentParams': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["env_params"] + ) -> "ModelBundleEnvironmentParams": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["location"] + ) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_artifact_ids"]) -> MetaOapg.properties.model_artifact_ids: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_artifact_ids"] + ) -> MetaOapg.properties.model_artifact_ids: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["name"] + ) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> 'ModelBundlePackagingType': ... - + def get_item_oapg( + self, name: typing_extensions.Literal["packaging_type"] + ) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["requirements"] + ) -> MetaOapg.properties.requirements: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["app_config"]) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["app_config"] + ) -> typing.Union[MetaOapg.properties.app_config, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["schema_location"]) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["schema_location"] + ) -> typing.Union[MetaOapg.properties.schema_location, 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["created_at", "env_params", "id", "location", "metadata", "model_artifact_ids", "name", "packaging_type", "requirements", "app_config", "schema_location", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "created_at", + "env_params", + "id", + "location", + "metadata", + "model_artifact_ids", + "name", + "packaging_type", + "requirements", + "app_config", + "schema_location", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, ], - requirements: typing.Union[MetaOapg.properties.requirements, list, tuple, ], - model_artifact_ids: typing.Union[MetaOapg.properties.model_artifact_ids, list, tuple, ], - packaging_type: 'ModelBundlePackagingType', - name: typing.Union[MetaOapg.properties.name, str, ], - created_at: typing.Union[MetaOapg.properties.created_at, str, datetime, ], - location: typing.Union[MetaOapg.properties.location, str, ], - id: typing.Union[MetaOapg.properties.id, str, ], - env_params: 'ModelBundleEnvironmentParams', - app_config: typing.Union[MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + metadata: typing.Union[ + MetaOapg.properties.metadata, + dict, + frozendict.frozendict, + ], + requirements: typing.Union[ + MetaOapg.properties.requirements, + list, + tuple, + ], + model_artifact_ids: typing.Union[ + MetaOapg.properties.model_artifact_ids, + list, + tuple, + ], + packaging_type: "ModelBundlePackagingType", + name: typing.Union[ + MetaOapg.properties.name, + str, + ], + created_at: typing.Union[ + MetaOapg.properties.created_at, + str, + datetime, + ], + location: typing.Union[ + MetaOapg.properties.location, + str, + ], + id: typing.Union[ + MetaOapg.properties.id, + str, + ], + env_params: "ModelBundleEnvironmentParams", + app_config: typing.Union[ + MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + schema_location: typing.Union[ + MetaOapg.properties.schema_location, str, 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], - ) -> 'ModelBundleV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelBundleV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_deployment_state.py b/launch/api_client/model/model_endpoint_deployment_state.py index d613d10d..71a9b3bb 100644 --- a/launch/api_client/model/model_endpoint_deployment_state.py +++ b/launch/api_client/model/model_endpoint_deployment_state.py @@ -9,23 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ModelEndpointDeploymentState( - schemas.DictSchema -): +class ModelEndpointDeploymentState(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,52 +31,32 @@ class ModelEndpointDeploymentState( This is the entity-layer class for the deployment settings related to a Model Endpoint. """ - class MetaOapg: required = { "max_workers", "min_workers", "per_worker", } - + class properties: - - - class max_workers( - schemas.IntSchema - ): - - + class max_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 - - - class min_workers( - schemas.IntSchema - ): - - + + class min_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 + per_worker = schemas.IntSchema - - - class available_workers( - schemas.IntSchema - ): - - + + class available_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 - - - class unavailable_workers( - schemas.IntSchema - ): - - + + class unavailable_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 + __annotations__ = { "max_workers": max_workers, "min_workers": min_workers, @@ -87,67 +64,155 @@ class MetaOapg: "available_workers": available_workers, "unavailable_workers": unavailable_workers, } - + max_workers: MetaOapg.properties.max_workers min_workers: MetaOapg.properties.min_workers per_worker: MetaOapg.properties.per_worker - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available_workers"]) -> MetaOapg.properties.available_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["available_workers"] + ) -> MetaOapg.properties.available_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["unavailable_workers"]) -> MetaOapg.properties.unavailable_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["unavailable_workers"] + ) -> MetaOapg.properties.unavailable_workers: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "max_workers", + "min_workers", + "per_worker", + "available_workers", + "unavailable_workers", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available_workers"]) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["available_workers"] + ) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["unavailable_workers"]) -> typing.Union[MetaOapg.properties.unavailable_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["unavailable_workers"] + ) -> typing.Union[MetaOapg.properties.unavailable_workers, 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["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "max_workers", + "min_workers", + "per_worker", + "available_workers", + "unavailable_workers", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], - available_workers: typing.Union[MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - unavailable_workers: typing.Union[MetaOapg.properties.unavailable_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + max_workers: typing.Union[ + MetaOapg.properties.max_workers, + decimal.Decimal, + int, + ], + min_workers: typing.Union[ + MetaOapg.properties.min_workers, + decimal.Decimal, + int, + ], + per_worker: typing.Union[ + MetaOapg.properties.per_worker, + decimal.Decimal, + int, + ], + available_workers: typing.Union[ + MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + unavailable_workers: typing.Union[ + MetaOapg.properties.unavailable_workers, decimal.Decimal, int, 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], - ) -> 'ModelEndpointDeploymentState': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelEndpointDeploymentState": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_deployment_state.pyi b/launch/api_client/model/model_endpoint_deployment_state.pyi index 65d9de9d..85db137e 100644 --- a/launch/api_client/model/model_endpoint_deployment_state.pyi +++ b/launch/api_client/model/model_endpoint_deployment_state.pyi @@ -9,23 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelEndpointDeploymentState( - schemas.DictSchema -): +class ModelEndpointDeploymentState(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,39 +30,25 @@ class ModelEndpointDeploymentState( This is the entity-layer class for the deployment settings related to a Model Endpoint. """ - class MetaOapg: required = { "max_workers", "min_workers", "per_worker", } - + class properties: - - - class max_workers( - schemas.IntSchema - ): + class max_workers(schemas.IntSchema): pass - - - class min_workers( - schemas.IntSchema - ): + + class min_workers(schemas.IntSchema): pass per_worker = schemas.IntSchema - - - class available_workers( - schemas.IntSchema - ): + + class available_workers(schemas.IntSchema): pass - - - class unavailable_workers( - schemas.IntSchema - ): + + class unavailable_workers(schemas.IntSchema): pass __annotations__ = { "max_workers": max_workers, @@ -75,67 +57,130 @@ class ModelEndpointDeploymentState( "available_workers": available_workers, "unavailable_workers": unavailable_workers, } - max_workers: MetaOapg.properties.max_workers min_workers: MetaOapg.properties.min_workers per_worker: MetaOapg.properties.per_worker - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["available_workers"]) -> MetaOapg.properties.available_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["available_workers"] + ) -> MetaOapg.properties.available_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["unavailable_workers"]) -> MetaOapg.properties.unavailable_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["unavailable_workers"] + ) -> MetaOapg.properties.unavailable_workers: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "max_workers", + "min_workers", + "per_worker", + "available_workers", + "unavailable_workers", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["available_workers"]) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["available_workers"] + ) -> typing.Union[MetaOapg.properties.available_workers, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["unavailable_workers"]) -> typing.Union[MetaOapg.properties.unavailable_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["unavailable_workers"] + ) -> typing.Union[MetaOapg.properties.unavailable_workers, 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["max_workers", "min_workers", "per_worker", "available_workers", "unavailable_workers", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "max_workers", + "min_workers", + "per_worker", + "available_workers", + "unavailable_workers", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, ], - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, ], - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, ], - available_workers: typing.Union[MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - unavailable_workers: typing.Union[MetaOapg.properties.unavailable_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + max_workers: typing.Union[ + MetaOapg.properties.max_workers, + decimal.Decimal, + int, + ], + min_workers: typing.Union[ + MetaOapg.properties.min_workers, + decimal.Decimal, + int, + ], + per_worker: typing.Union[ + MetaOapg.properties.per_worker, + decimal.Decimal, + int, + ], + available_workers: typing.Union[ + MetaOapg.properties.available_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + unavailable_workers: typing.Union[ + MetaOapg.properties.unavailable_workers, decimal.Decimal, int, 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], - ) -> 'ModelEndpointDeploymentState': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelEndpointDeploymentState": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_order_by.py b/launch/api_client/model/model_endpoint_order_by.py index 85a5d7e0..cce85bd5 100644 --- a/launch/api_client/model/model_endpoint_order_by.py +++ b/launch/api_client/model/model_endpoint_order_by.py @@ -9,24 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ModelEndpointOrderBy( - schemas.EnumBase, - schemas.StrSchema -): +class ModelEndpointOrderBy(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,22 +31,21 @@ class ModelEndpointOrderBy( The canonical list of possible orderings of Model Bundles. """ - class MetaOapg: enum_value_to_name = { "newest": "NEWEST", "oldest": "OLDEST", "alphabetical": "ALPHABETICAL", } - + @schemas.classproperty def NEWEST(cls): return cls("newest") - + @schemas.classproperty def OLDEST(cls): return cls("oldest") - + @schemas.classproperty def ALPHABETICAL(cls): return cls("alphabetical") diff --git a/launch/api_client/model/model_endpoint_order_by.pyi b/launch/api_client/model/model_endpoint_order_by.pyi index 891a380d..28193762 100644 --- a/launch/api_client/model/model_endpoint_order_by.pyi +++ b/launch/api_client/model/model_endpoint_order_by.pyi @@ -9,24 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelEndpointOrderBy( - schemas.EnumBase, - schemas.StrSchema -): +class ModelEndpointOrderBy(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,15 +29,13 @@ class ModelEndpointOrderBy( The canonical list of possible orderings of Model Bundles. """ - + @schemas.classproperty def NEWEST(cls): return cls("newest") - @schemas.classproperty def OLDEST(cls): return cls("oldest") - @schemas.classproperty def ALPHABETICAL(cls): return cls("alphabetical") diff --git a/launch/api_client/model/model_endpoint_resource_state.py b/launch/api_client/model/model_endpoint_resource_state.py index e232a176..39617c55 100644 --- a/launch/api_client/model/model_endpoint_resource_state.py +++ b/launch/api_client/model/model_endpoint_resource_state.py @@ -9,23 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ModelEndpointResourceState( - schemas.DictSchema -): +class ModelEndpointResourceState(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,27 +31,22 @@ class ModelEndpointResourceState( This is the entity-layer class for the resource settings per worker of a Model Endpoint. """ - class MetaOapg: required = { "memory", "cpus", "gpus", } - + class properties: - - class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -70,41 +62,64 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - - class gpus( - schemas.IntSchema - ): - - + + class gpus(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -120,37 +135,66 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType + optimize_costs = schemas.BoolSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -166,20 +210,52 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + __annotations__ = { "cpus": cpus, "gpus": gpus, @@ -188,74 +264,203 @@ def __new__( "optimize_costs": optimize_costs, "storage": storage, } - + memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus gpus: MetaOapg.properties.gpus - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... - + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpus", + "memory", + "gpu_type", + "optimize_costs", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpus", + "memory", + "gpu_type", + "optimize_costs", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + gpus: typing.Union[ + MetaOapg.properties.gpus, + decimal.Decimal, + int, + ], + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'ModelEndpointResourceState': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelEndpointResourceState": return super().__new__( cls, *_args, @@ -269,4 +474,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/model_endpoint_resource_state.pyi b/launch/api_client/model/model_endpoint_resource_state.pyi index d114992c..2739358a 100644 --- a/launch/api_client/model/model_endpoint_resource_state.pyi +++ b/launch/api_client/model/model_endpoint_resource_state.pyi @@ -9,23 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelEndpointResourceState( - schemas.DictSchema -): +class ModelEndpointResourceState(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,27 +30,22 @@ class ModelEndpointResourceState( This is the entity-layer class for the resource settings per worker of a Model Endpoint. """ - class MetaOapg: required = { "memory", "cpus", "gpus", } - + class properties: - - class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -70,38 +61,62 @@ class ModelEndpointResourceState( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - - class gpus( - schemas.IntSchema - ): + + class gpus(schemas.IntSchema): pass - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -117,37 +132,63 @@ class ModelEndpointResourceState( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType optimize_costs = schemas.BoolSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -163,14 +204,44 @@ class ModelEndpointResourceState( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, @@ -185,74 +256,180 @@ class ModelEndpointResourceState( "optimize_costs": optimize_costs, "storage": storage, } - memory: MetaOapg.properties.memory cpus: MetaOapg.properties.cpus gpus: MetaOapg.properties.gpus - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def __getitem__( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... - + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpus", + "memory", + "gpu_type", + "optimize_costs", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cpus"] + ) -> MetaOapg.properties.cpus: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpus"] + ) -> MetaOapg.properties.gpus: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["cpus", "gpus", "memory", "gpu_type", "optimize_costs", "storage", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "cpus", + "gpus", + "memory", + "gpu_type", + "optimize_costs", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, ], - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], + gpus: typing.Union[ + MetaOapg.properties.gpus, + decimal.Decimal, + int, + ], + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'ModelEndpointResourceState': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ModelEndpointResourceState": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/model_endpoint_status.py b/launch/api_client/model/model_endpoint_status.py index c1ceaf1b..3976764e 100644 --- a/launch/api_client/model/model_endpoint_status.py +++ b/launch/api_client/model/model_endpoint_status.py @@ -9,24 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ModelEndpointStatus( - schemas.EnumBase, - schemas.StrSchema -): +class ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,7 +31,6 @@ class ModelEndpointStatus( An enumeration. """ - class MetaOapg: enum_value_to_name = { "READY": "READY", @@ -44,23 +39,23 @@ class MetaOapg: "UPDATE_FAILED": "UPDATE_FAILED", "DELETE_IN_PROGRESS": "DELETE_IN_PROGRESS", } - + @schemas.classproperty def READY(cls): return cls("READY") - + @schemas.classproperty def UPDATE_PENDING(cls): return cls("UPDATE_PENDING") - + @schemas.classproperty def UPDATE_IN_PROGRESS(cls): return cls("UPDATE_IN_PROGRESS") - + @schemas.classproperty def UPDATE_FAILED(cls): return cls("UPDATE_FAILED") - + @schemas.classproperty def DELETE_IN_PROGRESS(cls): return cls("DELETE_IN_PROGRESS") diff --git a/launch/api_client/model/model_endpoint_status.pyi b/launch/api_client/model/model_endpoint_status.pyi index 2c69f8c7..8f1377bd 100644 --- a/launch/api_client/model/model_endpoint_status.pyi +++ b/launch/api_client/model/model_endpoint_status.pyi @@ -9,24 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelEndpointStatus( - schemas.EnumBase, - schemas.StrSchema -): +class ModelEndpointStatus(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,23 +29,19 @@ class ModelEndpointStatus( An enumeration. """ - + @schemas.classproperty def READY(cls): return cls("READY") - @schemas.classproperty def UPDATE_PENDING(cls): return cls("UPDATE_PENDING") - @schemas.classproperty def UPDATE_IN_PROGRESS(cls): return cls("UPDATE_IN_PROGRESS") - @schemas.classproperty def UPDATE_FAILED(cls): return cls("UPDATE_FAILED") - @schemas.classproperty def DELETE_IN_PROGRESS(cls): return cls("DELETE_IN_PROGRESS") diff --git a/launch/api_client/model/model_endpoint_type.py b/launch/api_client/model/model_endpoint_type.py index 5c5037b8..ce5046f0 100644 --- a/launch/api_client/model/model_endpoint_type.py +++ b/launch/api_client/model/model_endpoint_type.py @@ -9,24 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ModelEndpointType( - schemas.EnumBase, - schemas.StrSchema -): +class ModelEndpointType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,17 +31,16 @@ class ModelEndpointType( An enumeration. """ - class MetaOapg: enum_value_to_name = { "async": "ASYNC", "sync": "SYNC", } - + @schemas.classproperty def ASYNC(cls): return cls("async") - + @schemas.classproperty def SYNC(cls): return cls("sync") diff --git a/launch/api_client/model/model_endpoint_type.pyi b/launch/api_client/model/model_endpoint_type.pyi index 15fd296f..7a9bef5b 100644 --- a/launch/api_client/model/model_endpoint_type.pyi +++ b/launch/api_client/model/model_endpoint_type.pyi @@ -9,24 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ModelEndpointType( - schemas.EnumBase, - schemas.StrSchema -): +class ModelEndpointType(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,11 +29,10 @@ class ModelEndpointType( An enumeration. """ - + @schemas.classproperty def ASYNC(cls): return cls("async") - @schemas.classproperty def SYNC(cls): return cls("sync") diff --git a/launch/api_client/model/request_schema.py b/launch/api_client/model/request_schema.py index 3546ebfd..ecd8c713 100644 --- a/launch/api_client/model/request_schema.py +++ b/launch/api_client/model/request_schema.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 + RequestSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/request_schema.pyi b/launch/api_client/model/request_schema.pyi index 113fed8a..031787ad 100644 --- a/launch/api_client/model/request_schema.pyi +++ b/launch/api_client/model/request_schema.pyi @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 + RequestSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/response_schema.py b/launch/api_client/model/response_schema.py index 816504b4..a971b885 100644 --- a/launch/api_client/model/response_schema.py +++ b/launch/api_client/model/response_schema.py @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 + ResponseSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/response_schema.pyi b/launch/api_client/model/response_schema.pyi index b31db7e3..800305f1 100644 --- a/launch/api_client/model/response_schema.pyi +++ b/launch/api_client/model/response_schema.pyi @@ -9,16 +9,16 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 + ResponseSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/sync_endpoint_predict_v1_response.py b/launch/api_client/model/sync_endpoint_predict_v1_response.py index 08311f09..5188b13c 100644 --- a/launch/api_client/model/sync_endpoint_predict_v1_response.py +++ b/launch/api_client/model/sync_endpoint_predict_v1_response.py @@ -9,40 +9,36 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 SyncEndpointPredictV1Response( - schemas.DictSchema -): +class SyncEndpointPredictV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "status", } - + class properties: - @staticmethod - def status() -> typing.Type['TaskStatus']: + def status() -> typing.Type["TaskStatus"]: return TaskStatus + result = schemas.AnyTypeSchema traceback = schemas.StrSchema __annotations__ = { @@ -50,51 +46,120 @@ def status() -> typing.Type['TaskStatus']: "result": result, "traceback": traceback, } - - status: 'TaskStatus' - + + status: "TaskStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... - + def __getitem__( + self, name: typing_extensions.Literal["traceback"] + ) -> MetaOapg.properties.traceback: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "result", "traceback", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "result", + "traceback", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["result"] + ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["traceback"] + ) -> typing.Union[MetaOapg.properties.traceback, 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["status", "result", "traceback", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "result", + "traceback", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - status: 'TaskStatus', - result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + status: "TaskStatus", + result: typing.Union[ + MetaOapg.properties.result, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, traceback: typing.Union[MetaOapg.properties.traceback, str, 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], - ) -> 'SyncEndpointPredictV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "SyncEndpointPredictV1Response": return super().__new__( cls, *_args, @@ -105,4 +170,5 @@ def __new__( **kwargs, ) + from launch.api_client.model.task_status import TaskStatus diff --git a/launch/api_client/model/sync_endpoint_predict_v1_response.pyi b/launch/api_client/model/sync_endpoint_predict_v1_response.pyi index 063e0357..193fbfed 100644 --- a/launch/api_client/model/sync_endpoint_predict_v1_response.pyi +++ b/launch/api_client/model/sync_endpoint_predict_v1_response.pyi @@ -9,39 +9,33 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class SyncEndpointPredictV1Response( - schemas.DictSchema -): +class SyncEndpointPredictV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "status", } - + class properties: - @staticmethod - def status() -> typing.Type['TaskStatus']: + def status() -> typing.Type["TaskStatus"]: return TaskStatus result = schemas.AnyTypeSchema traceback = schemas.StrSchema @@ -50,51 +44,105 @@ class SyncEndpointPredictV1Response( "result": result, "traceback": traceback, } - - status: 'TaskStatus' - + status: "TaskStatus" + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... - + def __getitem__( + self, name: typing_extensions.Literal["result"] + ) -> MetaOapg.properties.result: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... - + def __getitem__( + self, name: typing_extensions.Literal["traceback"] + ) -> MetaOapg.properties.traceback: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", "result", "traceback", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "result", + "traceback", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> 'TaskStatus': ... - + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["result"]) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["result"] + ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["traceback"]) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["traceback"] + ) -> typing.Union[MetaOapg.properties.traceback, 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["status", "result", "traceback", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "status", + "result", + "traceback", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - status: 'TaskStatus', - result: typing.Union[MetaOapg.properties.result, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + status: "TaskStatus", + result: typing.Union[ + MetaOapg.properties.result, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, traceback: typing.Union[MetaOapg.properties.traceback, str, 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], - ) -> 'SyncEndpointPredictV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "SyncEndpointPredictV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/task_status.py b/launch/api_client/model/task_status.py index d162efff..d83c6cfb 100644 --- a/launch/api_client/model/task_status.py +++ b/launch/api_client/model/task_status.py @@ -9,24 +9,20 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 TaskStatus( - schemas.EnumBase, - schemas.StrSchema -): +class TaskStatus(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,7 +31,6 @@ class TaskStatus( An enumeration. """ - class MetaOapg: enum_value_to_name = { "PENDING": "PENDING", @@ -44,23 +39,23 @@ class MetaOapg: "FAILURE": "FAILURE", "UNDEFINED": "UNDEFINED", } - + @schemas.classproperty def PENDING(cls): return cls("PENDING") - + @schemas.classproperty def STARTED(cls): return cls("STARTED") - + @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") - + @schemas.classproperty def FAILURE(cls): return cls("FAILURE") - + @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/task_status.pyi b/launch/api_client/model/task_status.pyi index 1a313148..d81b166f 100644 --- a/launch/api_client/model/task_status.pyi +++ b/launch/api_client/model/task_status.pyi @@ -9,24 +9,19 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class TaskStatus( - schemas.EnumBase, - schemas.StrSchema -): +class TaskStatus(schemas.EnumBase, schemas.StrSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -34,23 +29,19 @@ class TaskStatus( An enumeration. """ - + @schemas.classproperty def PENDING(cls): return cls("PENDING") - @schemas.classproperty def STARTED(cls): return cls("STARTED") - @schemas.classproperty def SUCCESS(cls): return cls("SUCCESS") - @schemas.classproperty def FAILURE(cls): return cls("FAILURE") - @schemas.classproperty def UNDEFINED(cls): return cls("UNDEFINED") diff --git a/launch/api_client/model/update_batch_job_request.py b/launch/api_client/model/update_batch_job_request.py index 882b380d..a71e0d4c 100644 --- a/launch/api_client/model/update_batch_job_request.py +++ b/launch/api_client/model/update_batch_job_request.py @@ -53,9 +53,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "cancel", - ], + typing_extensions.Literal["cancel",], str, ], ): @@ -75,9 +73,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "cancel", - ], + typing_extensions.Literal["cancel",], str, ], ): diff --git a/launch/api_client/model/update_batch_job_request.pyi b/launch/api_client/model/update_batch_job_request.pyi index af407069..f72a2651 100644 --- a/launch/api_client/model/update_batch_job_request.pyi +++ b/launch/api_client/model/update_batch_job_request.pyi @@ -49,9 +49,7 @@ class UpdateBatchJobRequest(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "cancel", - ], + typing_extensions.Literal["cancel",], str, ], ): @@ -68,9 +66,7 @@ class UpdateBatchJobRequest(schemas.DictSchema): def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "cancel", - ], + typing_extensions.Literal["cancel",], str, ], ): diff --git a/launch/api_client/model/update_batch_job_response.py b/launch/api_client/model/update_batch_job_response.py index a7175781..0012740b 100644 --- a/launch/api_client/model/update_batch_job_response.py +++ b/launch/api_client/model/update_batch_job_response.py @@ -55,9 +55,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "success", - ], + typing_extensions.Literal["success",], str, ], ): @@ -77,9 +75,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "success", - ], + typing_extensions.Literal["success",], str, ], ): diff --git a/launch/api_client/model/update_batch_job_response.pyi b/launch/api_client/model/update_batch_job_response.pyi index b6a583f8..b662d0b3 100644 --- a/launch/api_client/model/update_batch_job_response.pyi +++ b/launch/api_client/model/update_batch_job_response.pyi @@ -49,9 +49,7 @@ class UpdateBatchJobResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "success", - ], + typing_extensions.Literal["success",], str, ], ): @@ -68,9 +66,7 @@ class UpdateBatchJobResponse(schemas.DictSchema): def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "success", - ], + typing_extensions.Literal["success",], str, ], ): diff --git a/launch/api_client/model/update_batch_job_v1_request.py b/launch/api_client/model/update_batch_job_v1_request.py index abf9b3a1..f2ab0ca7 100644 --- a/launch/api_client/model/update_batch_job_v1_request.py +++ b/launch/api_client/model/update_batch_job_v1_request.py @@ -9,71 +9,92 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 UpdateBatchJobV1Request( - schemas.DictSchema -): +class UpdateBatchJobV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "cancel", } - + class properties: cancel = schemas.BoolSchema __annotations__ = { "cancel": cancel, } - + cancel: MetaOapg.properties.cancel - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... - + def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cancel"] + ) -> MetaOapg.properties.cancel: + ... + @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["cancel", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - cancel: typing.Union[MetaOapg.properties.cancel, bool, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + cancel: typing.Union[ + MetaOapg.properties.cancel, + bool, + ], _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], - ) -> 'UpdateBatchJobV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateBatchJobV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_batch_job_v1_request.pyi b/launch/api_client/model/update_batch_job_v1_request.pyi index 96a62273..85960c5f 100644 --- a/launch/api_client/model/update_batch_job_v1_request.pyi +++ b/launch/api_client/model/update_batch_job_v1_request.pyi @@ -9,71 +9,84 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class UpdateBatchJobV1Request( - schemas.DictSchema -): +class UpdateBatchJobV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "cancel", } - + class properties: cancel = schemas.BoolSchema __annotations__ = { "cancel": cancel, } - cancel: MetaOapg.properties.cancel - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... - + def __getitem__( + self, name: typing_extensions.Literal["cancel"] + ) -> MetaOapg.properties.cancel: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cancel"] + ) -> MetaOapg.properties.cancel: ... @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["cancel", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - cancel: typing.Union[MetaOapg.properties.cancel, bool, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + cancel: typing.Union[ + MetaOapg.properties.cancel, + bool, + ], _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], - ) -> 'UpdateBatchJobV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateBatchJobV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_batch_job_v1_response.py b/launch/api_client/model/update_batch_job_v1_response.py index 4f702046..427fff33 100644 --- a/launch/api_client/model/update_batch_job_v1_response.py +++ b/launch/api_client/model/update_batch_job_v1_response.py @@ -9,71 +9,94 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 UpdateBatchJobV1Response( - schemas.DictSchema -): +class UpdateBatchJobV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "success", } - + class properties: success = schemas.BoolSchema __annotations__ = { "success": success, } - + success: MetaOapg.properties.success - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - + def __getitem__( + self, name: typing_extensions.Literal["success"] + ) -> MetaOapg.properties.success: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["success"] + ) -> MetaOapg.properties.success: + ... + @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["success", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success",], str]): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + success: typing.Union[ + MetaOapg.properties.success, + bool, + ], _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], - ) -> 'UpdateBatchJobV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateBatchJobV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_batch_job_v1_response.pyi b/launch/api_client/model/update_batch_job_v1_response.pyi index ff8a3d63..b1fd7380 100644 --- a/launch/api_client/model/update_batch_job_v1_response.pyi +++ b/launch/api_client/model/update_batch_job_v1_response.pyi @@ -9,71 +9,84 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class UpdateBatchJobV1Response( - schemas.DictSchema -): +class UpdateBatchJobV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "success", } - + class properties: success = schemas.BoolSchema __annotations__ = { "success": success, } - success: MetaOapg.properties.success - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - + def __getitem__( + self, name: typing_extensions.Literal["success"] + ) -> MetaOapg.properties.success: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["success"] + ) -> MetaOapg.properties.success: ... @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["success", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success",], str]): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - success: typing.Union[MetaOapg.properties.success, bool, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + success: typing.Union[ + MetaOapg.properties.success, + bool, + ], _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], - ) -> 'UpdateBatchJobV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateBatchJobV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_model_endpoint_request.py b/launch/api_client/model/update_model_endpoint_request.py index e2f76f75..7b083c0e 100644 --- a/launch/api_client/model/update_model_endpoint_request.py +++ b/launch/api_client/model/update_model_endpoint_request.py @@ -127,18 +127,14 @@ class MetaOapg: def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) diff --git a/launch/api_client/model/update_model_endpoint_request.pyi b/launch/api_client/model/update_model_endpoint_request.pyi index f357ee05..1e2d99e3 100644 --- a/launch/api_client/model/update_model_endpoint_request.pyi +++ b/launch/api_client/model/update_model_endpoint_request.pyi @@ -118,17 +118,13 @@ class UpdateModelEndpointRequest(schemas.DictSchema): additional_properties = schemas.StrSchema def __getitem__( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) def get_item_oapg( self, - name: typing.Union[ - str, - ], + name: typing.Union[str,], ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/update_model_endpoint_response.py b/launch/api_client/model/update_model_endpoint_response.py index 9e3df010..20d54a28 100644 --- a/launch/api_client/model/update_model_endpoint_response.py +++ b/launch/api_client/model/update_model_endpoint_response.py @@ -55,9 +55,7 @@ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): @@ -77,9 +75,7 @@ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, s def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): diff --git a/launch/api_client/model/update_model_endpoint_response.pyi b/launch/api_client/model/update_model_endpoint_response.pyi index e8fa304d..82108eb2 100644 --- a/launch/api_client/model/update_model_endpoint_response.pyi +++ b/launch/api_client/model/update_model_endpoint_response.pyi @@ -49,9 +49,7 @@ class UpdateModelEndpointResponse(schemas.DictSchema): def __getitem__( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): @@ -68,9 +66,7 @@ class UpdateModelEndpointResponse(schemas.DictSchema): def get_item_oapg( self, name: typing.Union[ - typing_extensions.Literal[ - "endpoint_creation_task_id", - ], + typing_extensions.Literal["endpoint_creation_task_id",], str, ], ): diff --git a/launch/api_client/model/update_model_endpoint_v1_request.py b/launch/api_client/model/update_model_endpoint_v1_request.py index 769f2fe7..20b2a2d6 100644 --- a/launch/api_client/model/update_model_endpoint_v1_request.py +++ b/launch/api_client/model/update_model_endpoint_v1_request.py @@ -9,47 +9,39 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 UpdateModelEndpointV1Request( - schemas.DictSchema -): +class UpdateModelEndpointV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: aws_role = schemas.StrSchema billing_tags = schemas.DictSchema - - + class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -65,99 +57,114 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + @staticmethod - def default_callback_auth() -> typing.Type['CallbackAuth']: + def default_callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth - - - class default_callback_url( - schemas.StrSchema - ): - - + + class default_callback_url(schemas.StrSchema): class MetaOapg: - format = 'uri' + format = "uri" max_length = 2083 min_length = 1 - + @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType - - - class gpus( - schemas.IntSchema - ): - - + + class gpus(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 + high_priority = schemas.BoolSchema - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - - class max_workers( - schemas.IntSchema - ): - - + + class max_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -173,70 +180,104 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + metadata = schemas.DictSchema - - - class min_workers( - schemas.IntSchema - ): - - + + class min_workers(schemas.IntSchema): class MetaOapg: inclusive_minimum = 0 + model_bundle_id = schemas.StrSchema optimize_costs = schemas.BoolSchema per_worker = schemas.IntSchema - - - class post_inference_hooks( - schemas.ListSchema - ): - - + + class post_inference_hooks(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'post_inference_hooks': + ) -> "post_inference_hooks": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + prewarm = schemas.BoolSchema results_s3_bucket = schemas.StrSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -252,20 +293,52 @@ def any_of(cls): cls.any_of_1, cls.any_of_2, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) + __annotations__ = { "aws_role": aws_role, "billing_tags": billing_tags, @@ -288,168 +361,433 @@ def __new__( "results_s3_bucket": results_s3_bucket, "storage": storage, } - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... - + def __getitem__( + self, name: typing_extensions.Literal["aws_role"] + ) -> MetaOapg.properties.aws_role: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... - + def __getitem__( + self, name: typing_extensions.Literal["billing_tags"] + ) -> MetaOapg.properties.billing_tags: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - + def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> MetaOapg.properties.default_callback_url: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - + def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... - + def __getitem__( + self, name: typing_extensions.Literal["high_priority"] + ) -> MetaOapg.properties.high_priority: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... - + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... - + def __getitem__( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> MetaOapg.properties.post_inference_hooks: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... - + def __getitem__( + self, name: typing_extensions.Literal["prewarm"] + ) -> MetaOapg.properties.prewarm: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... - + def __getitem__( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> MetaOapg.properties.results_s3_bucket: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "aws_role", + "billing_tags", + "cpus", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "gpus", + "high_priority", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "optimize_costs", + "per_worker", + "post_inference_hooks", + "prewarm", + "results_s3_bucket", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["aws_role"] + ) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["billing_tags"] + ) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["cpus"] + ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["gpus"] + ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["high_priority"] + ) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["min_workers"] + ) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["prewarm"] + ) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "aws_role", + "billing_tags", + "cpus", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "gpus", + "high_priority", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "optimize_costs", + "per_worker", + "post_inference_hooks", + "prewarm", + "results_s3_bucket", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, - billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, - high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + billing_tags: typing.Union[ + MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[ + MetaOapg.properties.default_callback_url, str, schemas.Unset + ] = schemas.unset, + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + gpus: typing.Union[ + MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + high_priority: typing.Union[ + MetaOapg.properties.high_priority, bool, schemas.Unset + ] = schemas.unset, + labels: typing.Union[ + MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + max_workers: typing.Union[ + MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + metadata: typing.Union[ + MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + min_workers: typing.Union[ + MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, str, schemas.Unset + ] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, + per_worker: typing.Union[ + MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + post_inference_hooks: typing.Union[ + MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset + ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[ + MetaOapg.properties.results_s3_bucket, str, schemas.Unset + ] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'UpdateModelEndpointV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateModelEndpointV1Request": return super().__new__( cls, *_args, @@ -477,5 +815,6 @@ def __new__( **kwargs, ) + from launch.api_client.model.callback_auth import CallbackAuth from launch.api_client.model.gpu_type import GpuType diff --git a/launch/api_client/model/update_model_endpoint_v1_request.pyi b/launch/api_client/model/update_model_endpoint_v1_request.pyi index 9aadf01d..e8db501d 100644 --- a/launch/api_client/model/update_model_endpoint_v1_request.pyi +++ b/launch/api_client/model/update_model_endpoint_v1_request.pyi @@ -9,47 +9,38 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class UpdateModelEndpointV1Request( - schemas.DictSchema -): +class UpdateModelEndpointV1Request(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: - class properties: aws_role = schemas.StrSchema billing_tags = schemas.DictSchema - - + class cpus( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -65,88 +56,102 @@ class UpdateModelEndpointV1Request( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'cpus': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "cpus": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - @staticmethod - def default_callback_auth() -> typing.Type['CallbackAuth']: + def default_callback_auth() -> typing.Type["CallbackAuth"]: return CallbackAuth - - - class default_callback_url( - schemas.StrSchema - ): + + class default_callback_url(schemas.StrSchema): pass - @staticmethod - def gpu_type() -> typing.Type['GpuType']: + def gpu_type() -> typing.Type["GpuType"]: return GpuType - - - class gpus( - schemas.IntSchema - ): + + class gpus(schemas.IntSchema): pass high_priority = schemas.BoolSchema - - - class labels( - schemas.DictSchema - ): - - + + class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'labels': + **kwargs: typing.Union[ + MetaOapg.additional_properties, + str, + ], + ) -> "labels": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - - - class max_workers( - schemas.IntSchema - ): + + class max_workers(schemas.IntSchema): pass - - + class memory( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -162,14 +167,44 @@ class UpdateModelEndpointV1Request( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'memory': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "memory": return super().__new__( cls, *_args, @@ -177,52 +212,52 @@ class UpdateModelEndpointV1Request( **kwargs, ) metadata = schemas.DictSchema - - - class min_workers( - schemas.IntSchema - ): + + class min_workers(schemas.IntSchema): pass model_bundle_id = schemas.StrSchema optimize_costs = schemas.BoolSchema per_worker = schemas.IntSchema - - - class post_inference_hooks( - schemas.ListSchema - ): - - + + class post_inference_hooks(schemas.ListSchema): class MetaOapg: items = schemas.StrSchema - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + str, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'post_inference_hooks': + ) -> "post_inference_hooks": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) prewarm = schemas.BoolSchema results_s3_bucket = schemas.StrSchema - - + class storage( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema any_of_2 = schemas.NumberSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -238,14 +273,44 @@ class UpdateModelEndpointV1Request( cls.any_of_1, cls.any_of_2, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'storage': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "storage": return super().__new__( cls, *_args, @@ -274,168 +339,352 @@ class UpdateModelEndpointV1Request( "results_s3_bucket": results_s3_bucket, "storage": storage, } - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... - + def __getitem__( + self, name: typing_extensions.Literal["aws_role"] + ) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... - + def __getitem__( + self, name: typing_extensions.Literal["billing_tags"] + ) -> MetaOapg.properties.billing_tags: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> 'CallbackAuth': ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> "CallbackAuth": ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["default_callback_url"]) -> MetaOapg.properties.default_callback_url: ... - + def __getitem__( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> MetaOapg.properties.default_callback_url: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> 'GpuType': ... - + def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... - + def __getitem__( + self, name: typing_extensions.Literal["high_priority"] + ) -> MetaOapg.properties.high_priority: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... - + def __getitem__( + self, name: typing_extensions.Literal["labels"] + ) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["max_workers"] + ) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... - + def __getitem__( + self, name: typing_extensions.Literal["memory"] + ) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - + def __getitem__( + self, name: typing_extensions.Literal["metadata"] + ) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... - + def __getitem__( + self, name: typing_extensions.Literal["min_workers"] + ) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... - + def __getitem__( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... - + def __getitem__( + self, name: typing_extensions.Literal["per_worker"] + ) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["post_inference_hooks"]) -> MetaOapg.properties.post_inference_hooks: ... - + def __getitem__( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... - + def __getitem__( + self, name: typing_extensions.Literal["prewarm"] + ) -> MetaOapg.properties.prewarm: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["results_s3_bucket"]) -> MetaOapg.properties.results_s3_bucket: ... - + def __getitem__( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> MetaOapg.properties.results_s3_bucket: ... @typing.overload - def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... - + def __getitem__( + self, name: typing_extensions.Literal["storage"] + ) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "aws_role", + "billing_tags", + "cpus", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "gpus", + "high_priority", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "optimize_costs", + "per_worker", + "post_inference_hooks", + "prewarm", + "results_s3_bucket", + "storage", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["aws_role"]) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["billing_tags"]) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_auth"]) -> typing.Union['CallbackAuth', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["default_callback_url"]) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union['GpuType', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["high_priority"]) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["optimize_costs"]) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["post_inference_hooks"]) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["prewarm"]) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["results_s3_bucket"]) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["storage"]) -> typing.Union[MetaOapg.properties.storage, 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["aws_role", "billing_tags", "cpus", "default_callback_auth", "default_callback_url", "gpu_type", "gpus", "high_priority", "labels", "max_workers", "memory", "metadata", "min_workers", "model_bundle_id", "optimize_costs", "per_worker", "post_inference_hooks", "prewarm", "results_s3_bucket", "storage", ], str]): + def get_item_oapg( + self, name: typing_extensions.Literal["aws_role"] + ) -> typing.Union[MetaOapg.properties.aws_role, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["billing_tags"] + ) -> typing.Union[MetaOapg.properties.billing_tags, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["cpus"] + ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_auth"] + ) -> typing.Union["CallbackAuth", schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["default_callback_url"] + ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["gpu_type"] + ) -> typing.Union["GpuType", schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["gpus"] + ) -> typing.Union[MetaOapg.properties.gpus, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["high_priority"] + ) -> typing.Union[MetaOapg.properties.high_priority, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["labels"] + ) -> typing.Union[MetaOapg.properties.labels, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["max_workers"] + ) -> typing.Union[MetaOapg.properties.max_workers, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["memory"] + ) -> typing.Union[MetaOapg.properties.memory, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["metadata"] + ) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["min_workers"] + ) -> typing.Union[MetaOapg.properties.min_workers, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["model_bundle_id"] + ) -> typing.Union[MetaOapg.properties.model_bundle_id, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["optimize_costs"] + ) -> typing.Union[MetaOapg.properties.optimize_costs, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["per_worker"] + ) -> typing.Union[MetaOapg.properties.per_worker, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["post_inference_hooks"] + ) -> typing.Union[MetaOapg.properties.post_inference_hooks, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["prewarm"] + ) -> typing.Union[MetaOapg.properties.prewarm, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["results_s3_bucket"] + ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... + @typing.overload + def get_item_oapg( + self, name: typing_extensions.Literal["storage"] + ) -> typing.Union[MetaOapg.properties.storage, 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[ + "aws_role", + "billing_tags", + "cpus", + "default_callback_auth", + "default_callback_url", + "gpu_type", + "gpus", + "high_priority", + "labels", + "max_workers", + "memory", + "metadata", + "min_workers", + "model_bundle_id", + "optimize_costs", + "per_worker", + "post_inference_hooks", + "prewarm", + "results_s3_bucket", + "storage", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], aws_role: typing.Union[MetaOapg.properties.aws_role, str, schemas.Unset] = schemas.unset, - billing_tags: typing.Union[MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - cpus: typing.Union[MetaOapg.properties.cpus, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - default_callback_auth: typing.Union['CallbackAuth', schemas.Unset] = schemas.unset, - default_callback_url: typing.Union[MetaOapg.properties.default_callback_url, str, schemas.Unset] = schemas.unset, - gpu_type: typing.Union['GpuType', schemas.Unset] = schemas.unset, - gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, - high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, - labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - memory: typing.Union[MetaOapg.properties.memory, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, - model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, - per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, - post_inference_hooks: typing.Union[MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset] = schemas.unset, + billing_tags: typing.Union[ + MetaOapg.properties.billing_tags, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + cpus: typing.Union[ + MetaOapg.properties.cpus, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + default_callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, + default_callback_url: typing.Union[ + MetaOapg.properties.default_callback_url, str, schemas.Unset + ] = schemas.unset, + gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, + gpus: typing.Union[ + MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + high_priority: typing.Union[ + MetaOapg.properties.high_priority, bool, schemas.Unset + ] = schemas.unset, + labels: typing.Union[ + MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + max_workers: typing.Union[ + MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + memory: typing.Union[ + MetaOapg.properties.memory, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + schemas.Unset, + ] = schemas.unset, + metadata: typing.Union[ + MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset + ] = schemas.unset, + min_workers: typing.Union[ + MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + model_bundle_id: typing.Union[ + MetaOapg.properties.model_bundle_id, str, schemas.Unset + ] = schemas.unset, + optimize_costs: typing.Union[ + MetaOapg.properties.optimize_costs, bool, schemas.Unset + ] = schemas.unset, + per_worker: typing.Union[ + MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset + ] = schemas.unset, + post_inference_hooks: typing.Union[ + MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset + ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, - storage: typing.Union[MetaOapg.properties.storage, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + results_s3_bucket: typing.Union[ + MetaOapg.properties.results_s3_bucket, str, schemas.Unset + ] = schemas.unset, + storage: typing.Union[ + MetaOapg.properties.storage, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + 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], - ) -> 'UpdateModelEndpointV1Request': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateModelEndpointV1Request": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_model_endpoint_v1_response.py b/launch/api_client/model/update_model_endpoint_v1_response.py index 7aeff47a..68de57e5 100644 --- a/launch/api_client/model/update_model_endpoint_v1_response.py +++ b/launch/api_client/model/update_model_endpoint_v1_response.py @@ -9,71 +9,98 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 UpdateModelEndpointV1Response( - schemas.DictSchema -): +class UpdateModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_creation_task_id", } - + class properties: endpoint_creation_task_id = schemas.StrSchema __annotations__ = { "endpoint_creation_task_id": endpoint_creation_task_id, } - + endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: + ... + @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["endpoint_creation_task_id", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_creation_task_id: typing.Union[ + MetaOapg.properties.endpoint_creation_task_id, + str, + ], _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], - ) -> 'UpdateModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/update_model_endpoint_v1_response.pyi b/launch/api_client/model/update_model_endpoint_v1_response.pyi index 87aa1609..6da66a1a 100644 --- a/launch/api_client/model/update_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/update_model_endpoint_v1_response.pyi @@ -9,71 +9,88 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class UpdateModelEndpointV1Response( - schemas.DictSchema -): +class UpdateModelEndpointV1Response(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "endpoint_creation_task_id", } - + class properties: endpoint_creation_task_id = schemas.StrSchema __annotations__ = { "endpoint_creation_task_id": endpoint_creation_task_id, } - endpoint_creation_task_id: MetaOapg.properties.endpoint_creation_task_id - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def __getitem__( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id", ], str]): + def __getitem__( + self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint_creation_task_id"]) -> MetaOapg.properties.endpoint_creation_task_id: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["endpoint_creation_task_id"] + ) -> MetaOapg.properties.endpoint_creation_task_id: ... @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["endpoint_creation_task_id", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint_creation_task_id: typing.Union[MetaOapg.properties.endpoint_creation_task_id, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + endpoint_creation_task_id: typing.Union[ + MetaOapg.properties.endpoint_creation_task_id, + str, + ], _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], - ) -> 'UpdateModelEndpointV1Response': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "UpdateModelEndpointV1Response": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/validation_error.py b/launch/api_client/model/validation_error.py index 42a25b83..1cb90f8f 100644 --- a/launch/api_client/model/validation_error.py +++ b/launch/api_client/model/validation_error.py @@ -9,57 +9,43 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # 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 ValidationError( - schemas.DictSchema -): +class ValidationError(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "msg", "loc", "type", } - + class properties: - - - class loc( - schemas.ListSchema - ): - - + class loc(schemas.ListSchema): class MetaOapg: - - class items( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -74,34 +60,109 @@ def any_of(cls): cls.any_of_0, cls.any_of_1, ] - - + def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'items': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "items": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - + def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'loc': + ) -> "loc": return super().__new__( cls, _arg, _configuration=_configuration, ) - + def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) + msg = schemas.StrSchema type = schemas.StrSchema __annotations__ = { @@ -109,53 +170,107 @@ def __getitem__(self, i: int) -> MetaOapg.items: "msg": msg, "type": type, } - + msg: MetaOapg.properties.msg loc: MetaOapg.properties.loc type: MetaOapg.properties.type - + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... - + def __getitem__(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - + def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: + ... + @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - + def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: + ... + @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["loc", "msg", "type", ], str]): + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: + ... + + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "loc", + "msg", + "type", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... - + def get_item_oapg(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - + def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: + ... + @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - + def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: + ... + @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["loc", "msg", "type", ], str]): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: + ... + + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "loc", + "msg", + "type", + ], + str, + ], + ): return super().get_item_oapg(name) - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - msg: typing.Union[MetaOapg.properties.msg, str, ], - loc: typing.Union[MetaOapg.properties.loc, list, tuple, ], - type: typing.Union[MetaOapg.properties.type, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + msg: typing.Union[ + MetaOapg.properties.msg, + str, + ], + loc: typing.Union[ + MetaOapg.properties.loc, + list, + tuple, + ], + type: typing.Union[ + MetaOapg.properties.type, + str, + ], _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], - ) -> 'ValidationError': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ValidationError": return super().__new__( cls, *_args, diff --git a/launch/api_client/model/validation_error.pyi b/launch/api_client/model/validation_error.pyi index c6a35dac..f406533e 100644 --- a/launch/api_client/model/validation_error.pyi +++ b/launch/api_client/model/validation_error.pyi @@ -9,57 +9,42 @@ Generated by: https://openapi-generator.tech """ -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 from launch_client import schemas # noqa: F401 - -class ValidationError( - schemas.DictSchema -): +class ValidationError(schemas.DictSchema): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - class MetaOapg: required = { "msg", "loc", "type", } - + class properties: - - - class loc( - schemas.ListSchema - ): - - + class loc(schemas.ListSchema): class MetaOapg: - - class items( schemas.ComposedSchema, ): - - class MetaOapg: any_of_0 = schemas.StrSchema any_of_1 = schemas.IntSchema - + @classmethod @functools.lru_cache() def any_of(cls): @@ -74,32 +59,103 @@ class ValidationError( cls.any_of_0, cls.any_of_1, ] - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ], _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], - ) -> 'items': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "items": return super().__new__( cls, *_args, _configuration=_configuration, **kwargs, ) - def __new__( cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _arg: typing.Union[ + typing.Tuple[ + typing.Union[ + MetaOapg.items, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ] + ], + typing.List[ + typing.Union[ + MetaOapg.items, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + bool, + None, + list, + tuple, + bytes, + io.FileIO, + io.BufferedReader, + ] + ], + ], _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'loc': + ) -> "loc": return super().__new__( cls, _arg, _configuration=_configuration, ) - def __getitem__(self, i: int) -> MetaOapg.items: return super().__getitem__(i) msg = schemas.StrSchema @@ -109,53 +165,92 @@ class ValidationError( "msg": msg, "type": type, } - msg: MetaOapg.properties.msg loc: MetaOapg.properties.loc type: MetaOapg.properties.type - + @typing.overload def __getitem__(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - @typing.overload def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["loc", "msg", "type", ], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal[ + "loc", + "msg", + "type", + ], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) - - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["loc"]) -> MetaOapg.properties.loc: ... - @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - + def get_item_oapg( + self, name: typing_extensions.Literal["type"] + ) -> MetaOapg.properties.type: ... @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["loc", "msg", "type", ], str]): + def get_item_oapg( + self, name: str + ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal[ + "loc", + "msg", + "type", + ], + str, + ], + ): return super().get_item_oapg(name) - - def __new__( cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - msg: typing.Union[MetaOapg.properties.msg, str, ], - loc: typing.Union[MetaOapg.properties.loc, list, tuple, ], - type: typing.Union[MetaOapg.properties.type, str, ], + *_args: typing.Union[ + dict, + frozendict.frozendict, + ], + msg: typing.Union[ + MetaOapg.properties.msg, + str, + ], + loc: typing.Union[ + MetaOapg.properties.loc, + list, + tuple, + ], + type: typing.Union[ + MetaOapg.properties.type, + str, + ], _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], - ) -> 'ValidationError': + **kwargs: typing.Union[ + schemas.AnyTypeSchema, + dict, + frozendict.frozendict, + str, + date, + datetime, + uuid.UUID, + int, + float, + decimal.Decimal, + None, + list, + tuple, + bytes, + ], + ) -> "ValidationError": return super().__new__( cls, *_args, diff --git a/launch/api_client/paths/healthcheck/__init__.py b/launch/api_client/paths/healthcheck/__init__.py index b0eea9c5..ae6dcb46 100644 --- a/launch/api_client/paths/healthcheck/__init__.py +++ b/launch/api_client/paths/healthcheck/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.HEALTHCHECK \ No newline at end of file +path = PathValues.HEALTHCHECK diff --git a/launch/api_client/paths/healthcheck/get.py b/launch/api_client/paths/healthcheck/get.py index 287d610d..31cde267 100644 --- a/launch/api_client/paths/healthcheck/get.py +++ b/launch/api_client/paths/healthcheck/get.py @@ -6,24 +6,21 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 +from launch.api_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict from . import path @@ -33,25 +30,20 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, + "200": _response_for_200, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -62,9 +54,8 @@ def _healthcheck_healthcheck_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _healthcheck_healthcheck_get_oapg( @@ -73,7 +64,8 @@ def _healthcheck_healthcheck_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _healthcheck_healthcheck_get_oapg( @@ -82,10 +74,8 @@ def _healthcheck_healthcheck_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _healthcheck_healthcheck_get_oapg( self, @@ -106,11 +96,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, stream=stream, timeout=timeout, @@ -121,15 +111,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -145,9 +135,8 @@ def healthcheck_healthcheck_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def healthcheck_healthcheck_get( @@ -156,7 +145,8 @@ def healthcheck_healthcheck_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def healthcheck_healthcheck_get( @@ -165,10 +155,8 @@ def healthcheck_healthcheck_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def healthcheck_healthcheck_get( self, @@ -181,7 +169,7 @@ def healthcheck_healthcheck_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -195,9 +183,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -206,7 +193,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -215,10 +203,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -231,7 +217,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/healthcheck/get.pyi b/launch/api_client/paths/healthcheck/get.pyi index 152c27b6..08eb7fdb 100644 --- a/launch/api_client/paths/healthcheck/get.pyi +++ b/launch/api_client/paths/healthcheck/get.pyi @@ -6,48 +6,37 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 +from launch_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -57,10 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _healthcheck_healthcheck_get_oapg( self, @@ -69,7 +55,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _healthcheck_healthcheck_get_oapg( self, @@ -77,11 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _healthcheck_healthcheck_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -101,11 +82,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, stream=stream, timeout=timeout, @@ -116,20 +97,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class HealthcheckHealthcheckGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -140,10 +120,7 @@ class HealthcheckHealthcheckGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def healthcheck_healthcheck_get( self, @@ -152,7 +129,6 @@ class HealthcheckHealthcheckGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def healthcheck_healthcheck_get( self, @@ -160,11 +136,7 @@ class HealthcheckHealthcheckGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def healthcheck_healthcheck_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -176,10 +148,9 @@ class HealthcheckHealthcheckGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -190,10 +161,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -202,7 +170,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -210,11 +177,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -226,7 +189,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/healthz/__init__.py b/launch/api_client/paths/healthz/__init__.py index b4e79532..3253e712 100644 --- a/launch/api_client/paths/healthz/__init__.py +++ b/launch/api_client/paths/healthz/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.HEALTHZ \ No newline at end of file +path = PathValues.HEALTHZ diff --git a/launch/api_client/paths/healthz/get.py b/launch/api_client/paths/healthz/get.py index e8aabd4b..4e7dbe35 100644 --- a/launch/api_client/paths/healthz/get.py +++ b/launch/api_client/paths/healthz/get.py @@ -6,24 +6,21 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 +from launch.api_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict from . import path @@ -33,25 +30,20 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, + "200": _response_for_200, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -62,9 +54,8 @@ def _healthcheck_healthz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _healthcheck_healthz_get_oapg( @@ -73,7 +64,8 @@ def _healthcheck_healthz_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _healthcheck_healthz_get_oapg( @@ -82,10 +74,8 @@ def _healthcheck_healthz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _healthcheck_healthz_get_oapg( self, @@ -106,11 +96,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, stream=stream, timeout=timeout, @@ -121,15 +111,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -145,9 +135,8 @@ def healthcheck_healthz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def healthcheck_healthz_get( @@ -156,7 +145,8 @@ def healthcheck_healthz_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def healthcheck_healthz_get( @@ -165,10 +155,8 @@ def healthcheck_healthz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def healthcheck_healthz_get( self, @@ -181,7 +169,7 @@ def healthcheck_healthz_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -195,9 +183,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -206,7 +193,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -215,10 +203,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -231,7 +217,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/healthz/get.pyi b/launch/api_client/paths/healthz/get.pyi index 21f0bdfe..445e62de 100644 --- a/launch/api_client/paths/healthz/get.pyi +++ b/launch/api_client/paths/healthz/get.pyi @@ -6,48 +6,37 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 +from launch_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -57,10 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _healthcheck_healthz_get_oapg( self, @@ -69,7 +55,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _healthcheck_healthz_get_oapg( self, @@ -77,11 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _healthcheck_healthz_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -101,11 +82,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, stream=stream, timeout=timeout, @@ -116,20 +97,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class HealthcheckHealthzGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -140,10 +120,7 @@ class HealthcheckHealthzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def healthcheck_healthz_get( self, @@ -152,7 +129,6 @@ class HealthcheckHealthzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def healthcheck_healthz_get( self, @@ -160,11 +136,7 @@ class HealthcheckHealthzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def healthcheck_healthz_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -176,10 +148,9 @@ class HealthcheckHealthzGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -190,10 +161,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -202,7 +170,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -210,11 +177,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -226,7 +189,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/readyz/__init__.py b/launch/api_client/paths/readyz/__init__.py index 4b5a5af4..9b49ccf0 100644 --- a/launch/api_client/paths/readyz/__init__.py +++ b/launch/api_client/paths/readyz/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.READYZ \ No newline at end of file +path = PathValues.READYZ diff --git a/launch/api_client/paths/readyz/get.py b/launch/api_client/paths/readyz/get.py index ef5201be..a532808d 100644 --- a/launch/api_client/paths/readyz/get.py +++ b/launch/api_client/paths/readyz/get.py @@ -6,24 +6,21 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 +from launch.api_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict from . import path @@ -33,25 +30,20 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, + "200": _response_for_200, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -62,9 +54,8 @@ def _healthcheck_readyz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _healthcheck_readyz_get_oapg( @@ -73,7 +64,8 @@ def _healthcheck_readyz_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _healthcheck_readyz_get_oapg( @@ -82,10 +74,8 @@ def _healthcheck_readyz_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _healthcheck_readyz_get_oapg( self, @@ -106,11 +96,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, stream=stream, timeout=timeout, @@ -121,15 +111,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -145,9 +135,8 @@ def healthcheck_readyz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def healthcheck_readyz_get( @@ -156,7 +145,8 @@ def healthcheck_readyz_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def healthcheck_readyz_get( @@ -165,10 +155,8 @@ def healthcheck_readyz_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def healthcheck_readyz_get( self, @@ -181,7 +169,7 @@ def healthcheck_readyz_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -195,9 +183,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -206,7 +193,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -215,10 +203,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -231,7 +217,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/readyz/get.pyi b/launch/api_client/paths/readyz/get.pyi index 5f8d2904..f67c6816 100644 --- a/launch/api_client/paths/readyz/get.pyi +++ b/launch/api_client/paths/readyz/get.pyi @@ -6,48 +6,37 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 +from launch_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -57,10 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _healthcheck_readyz_get_oapg( self, @@ -69,7 +55,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _healthcheck_readyz_get_oapg( self, @@ -77,11 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _healthcheck_readyz_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -101,11 +82,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, stream=stream, timeout=timeout, @@ -116,20 +97,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class HealthcheckReadyzGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -140,10 +120,7 @@ class HealthcheckReadyzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def healthcheck_readyz_get( self, @@ -152,7 +129,6 @@ class HealthcheckReadyzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def healthcheck_readyz_get( self, @@ -160,11 +136,7 @@ class HealthcheckReadyzGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def healthcheck_readyz_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -176,10 +148,9 @@ class HealthcheckReadyzGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -190,10 +161,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -202,7 +170,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -210,11 +177,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -226,7 +189,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_async_tasks/__init__.py b/launch/api_client/paths/v1_async_tasks/__init__.py index 72df600f..aafe0cc4 100644 --- a/launch/api_client/paths/v1_async_tasks/__init__.py +++ b/launch/api_client/paths/v1_async_tasks/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_ASYNCTASKS \ No newline at end of file +path = PathValues.V1_ASYNCTASKS diff --git a/launch/api_client/paths/v1_async_tasks/post.py b/launch/api_client/paths/v1_async_tasks/post.py index f795a6a0..dcfdfcb0 100644 --- a/launch/api_client/paths/v1_async_tasks/post.py +++ b/launch/api_client/paths/v1_async_tasks/post.py @@ -6,44 +6,40 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - +from launch.api_client import api_client, exceptions +from launch.api_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response +from urllib3._collections import HTTPHeaderDict from . import path # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', + "RequestRequiredQueryParams", { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], + }, ) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False + "RequestOptionalQueryParams", {}, total=False ) @@ -64,13 +60,12 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = CreateAsyncTaskV1Response @@ -78,17 +73,14 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -97,26 +89,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -130,9 +117,8 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( @@ -144,10 +130,8 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( @@ -159,7 +143,8 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( @@ -171,15 +156,13 @@ def _create_async_inference_task_v1_async_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _create_async_inference_task_v1_async_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -196,9 +179,7 @@ class instances used_path = path.value prefix_separator_iterator = None - for parameter in ( - request_query_model_endpoint_id, - ): + for parameter in (request_query_model_endpoint_id,): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -212,22 +193,23 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -241,15 +223,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -268,9 +250,8 @@ def create_async_inference_task_v1_async_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_async_inference_task_v1_async_tasks_post( @@ -282,10 +263,8 @@ def create_async_inference_task_v1_async_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_async_inference_task_v1_async_tasks_post( @@ -297,7 +276,8 @@ def create_async_inference_task_v1_async_tasks_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def create_async_inference_task_v1_async_tasks_post( @@ -309,15 +289,13 @@ def create_async_inference_task_v1_async_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def create_async_inference_task_v1_async_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -331,7 +309,7 @@ def create_async_inference_task_v1_async_tasks_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -348,9 +326,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -362,10 +339,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -377,7 +352,8 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def post( @@ -389,15 +365,13 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -411,7 +385,5 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_async_tasks/post.pyi b/launch/api_client/paths/v1_async_tasks/post.pyi index f9c2ffc0..f98e88aa 100644 --- a/launch/api_client/paths/v1_async_tasks/post.pyi +++ b/launch/api_client/paths/v1_async_tasks/post.pyi @@ -6,49 +6,43 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - +from launch_client import api_client, exceptions +from launch_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response from launch_client.model.endpoint_predict_v1_request import EndpointPredictV1Request from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response +from urllib3._collections import HTTPHeaderDict # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', + "RequestRequiredQueryParams", { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], + }, ) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False + "RequestOptionalQueryParams", {}, total=False ) - class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass - request_query_model_endpoint_id = api_client.QueryParameter( name="model_endpoint_id", style=api_client.ParameterStyle.FORM, @@ -59,56 +53,41 @@ request_query_model_endpoint_id = api_client.QueryParameter( # body param SchemaForRequestBodyApplicationJson = EndpointPredictV1Request - request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateAsyncTaskV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -121,10 +100,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( self, @@ -135,11 +111,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( self, @@ -151,7 +123,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _create_async_inference_task_v1_async_tasks_post_oapg( self, @@ -162,15 +133,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _create_async_inference_task_v1_async_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -187,9 +154,7 @@ class BaseApi(api_client.Api): used_path = path.value prefix_separator_iterator = None - for parameter in ( - request_query_model_endpoint_id, - ): + for parameter in (request_query_model_endpoint_id,): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -203,22 +168,23 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -232,20 +198,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -259,10 +224,7 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_async_inference_task_v1_async_tasks_post( self, @@ -273,11 +235,7 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_async_inference_task_v1_async_tasks_post( self, @@ -289,7 +247,6 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def create_async_inference_task_v1_async_tasks_post( self, @@ -300,15 +257,11 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def create_async_inference_task_v1_async_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -322,10 +275,9 @@ class CreateAsyncInferenceTaskV1AsyncTasksPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -339,10 +291,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -353,11 +302,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -369,7 +314,6 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def post( self, @@ -380,15 +324,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -402,7 +342,5 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_async_tasks_task_id/__init__.py b/launch/api_client/paths/v1_async_tasks_task_id/__init__.py index ef09b1e6..21c8a0fc 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/__init__.py +++ b/launch/api_client/paths/v1_async_tasks_task_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_ASYNCTASKS_TASK_ID \ No newline at end of file +path = PathValues.V1_ASYNCTASKS_TASK_ID diff --git a/launch/api_client/paths/v1_async_tasks_task_id/get.py b/launch/api_client/paths/v1_async_tasks_task_id/get.py index 5d4dca8e..56cc00c7 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/get.py +++ b/launch/api_client/paths/v1_async_tasks_task_id/get.py @@ -6,43 +6,39 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client import api_client, exceptions from launch.api_client.model.get_async_task_v1_response import GetAsyncTaskV1Response +from launch.api_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict from . import path # Path params TaskIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'task_id': typing.Union[TaskIdSchema, str, ], - } + "task_id": typing.Union[ + TaskIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) @@ -57,7 +53,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = GetAsyncTaskV1Response @@ -65,17 +61,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -84,26 +77,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -115,9 +103,8 @@ def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( @@ -127,7 +114,8 @@ def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( @@ -137,10 +125,8 @@ def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, @@ -160,9 +146,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_task_id, - ): + for parameter in (request_path_task_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -170,17 +154,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -192,15 +176,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -217,9 +201,8 @@ def get_async_inference_task_v1_async_tasks_task_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( @@ -229,7 +212,8 @@ def get_async_inference_task_v1_async_tasks_task_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( @@ -239,10 +223,8 @@ def get_async_inference_task_v1_async_tasks_task_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_async_inference_task_v1_async_tasks_task_id_get( self, @@ -257,7 +239,7 @@ def get_async_inference_task_v1_async_tasks_task_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -272,9 +254,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -284,7 +265,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -294,10 +276,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -312,7 +292,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_async_tasks_task_id/get.pyi b/launch/api_client/paths/v1_async_tasks_task_id/get.pyi index 3e667842..c71ca57a 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/get.pyi +++ b/launch/api_client/paths/v1_async_tasks_task_id/get.pyi @@ -6,48 +6,42 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.http_validation_error import HTTPValidationError +from launch_client import api_client, exceptions from launch_client.model.get_async_task_v1_response import GetAsyncTaskV1Response +from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # Path params TaskIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'task_id': typing.Union[TaskIdSchema, str, ], - } + "task_id": typing.Union[ + TaskIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) - class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_task_id = api_client.PathParameter( name="task_id", style=api_client.ParameterStyle.SIMPLE, @@ -56,46 +50,33 @@ request_path_task_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = GetAsyncTaskV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -106,10 +87,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, @@ -119,7 +97,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, @@ -128,11 +105,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_async_inference_task_v1_async_tasks_task_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -151,9 +124,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_task_id, - ): + for parameter in (request_path_task_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -161,17 +132,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -183,20 +154,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -208,10 +178,7 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( self, @@ -221,7 +188,6 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_async_inference_task_v1_async_tasks_task_id_get( self, @@ -230,11 +196,7 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_async_inference_task_v1_async_tasks_task_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -248,10 +210,9 @@ class GetAsyncInferenceTaskV1AsyncTasksTaskIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -263,10 +224,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -276,7 +234,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -285,11 +242,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -303,7 +256,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_batch_jobs/__init__.py b/launch/api_client/paths/v1_batch_jobs/__init__.py index 65e727af..3d5cef58 100644 --- a/launch/api_client/paths/v1_batch_jobs/__init__.py +++ b/launch/api_client/paths/v1_batch_jobs/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_BATCHJOBS \ No newline at end of file +path = PathValues.V1_BATCHJOBS diff --git a/launch/api_client/paths/v1_batch_jobs/post.py b/launch/api_client/paths/v1_batch_jobs/post.py index 75a0574e..fea5907f 100644 --- a/launch/api_client/paths/v1_batch_jobs/post.py +++ b/launch/api_client/paths/v1_batch_jobs/post.py @@ -6,28 +6,24 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.create_batch_job_v1_response import CreateBatchJobV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.create_batch_job_v1_request import CreateBatchJobV1Request +from launch.api_client.model.create_batch_job_v1_response import CreateBatchJobV1Response from launch.api_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict from . import path @@ -37,13 +33,12 @@ request_body_create_batch_job_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = CreateBatchJobV1Response @@ -51,17 +46,14 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -70,26 +62,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -102,9 +89,8 @@ def _create_batch_job_v1_batch_jobs_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( @@ -115,10 +101,8 @@ def _create_batch_job_v1_batch_jobs_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( @@ -129,7 +113,8 @@ def _create_batch_job_v1_batch_jobs_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( @@ -140,15 +125,13 @@ def _create_batch_job_v1_batch_jobs_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _create_batch_job_v1_batch_jobs_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,22 +149,23 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_create_batch_job_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -195,15 +179,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -221,9 +205,8 @@ def create_batch_job_v1_batch_jobs_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_batch_job_v1_batch_jobs_post( @@ -234,10 +217,8 @@ def create_batch_job_v1_batch_jobs_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_batch_job_v1_batch_jobs_post( @@ -248,7 +229,8 @@ def create_batch_job_v1_batch_jobs_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def create_batch_job_v1_batch_jobs_post( @@ -259,15 +241,13 @@ def create_batch_job_v1_batch_jobs_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def create_batch_job_v1_batch_jobs_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -279,7 +259,7 @@ def create_batch_job_v1_batch_jobs_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -295,9 +275,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -308,10 +287,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -322,7 +299,8 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def post( @@ -333,15 +311,13 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -353,7 +329,5 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_batch_jobs/post.pyi b/launch/api_client/paths/v1_batch_jobs/post.pyi index 7b84b5b8..ddd882a5 100644 --- a/launch/api_client/paths/v1_batch_jobs/post.pyi +++ b/launch/api_client/paths/v1_batch_jobs/post.pyi @@ -6,82 +6,63 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.create_batch_job_v1_response import CreateBatchJobV1Response +from launch_client import api_client, exceptions from launch_client.model.create_batch_job_v1_request import CreateBatchJobV1Request +from launch_client.model.create_batch_job_v1_response import CreateBatchJobV1Response from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # body param SchemaForRequestBodyApplicationJson = CreateBatchJobV1Request - request_body_create_batch_job_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateBatchJobV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -93,10 +74,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( self, @@ -106,11 +84,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( self, @@ -121,7 +95,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _create_batch_job_v1_batch_jobs_post_oapg( self, @@ -131,15 +104,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _create_batch_job_v1_batch_jobs_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,22 +126,23 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_create_batch_job_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -186,20 +156,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class CreateBatchJobV1BatchJobsPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -212,10 +181,7 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_batch_job_v1_batch_jobs_post( self, @@ -225,11 +191,7 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_batch_job_v1_batch_jobs_post( self, @@ -240,7 +202,6 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def create_batch_job_v1_batch_jobs_post( self, @@ -250,15 +211,11 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def create_batch_job_v1_batch_jobs_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -270,10 +227,9 @@ class CreateBatchJobV1BatchJobsPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -286,10 +242,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -299,11 +252,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -314,7 +263,6 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def post( self, @@ -324,15 +272,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -344,7 +288,5 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py index 0acdf21c..3fa32eda 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_BATCHJOBS_BATCH_JOB_ID \ No newline at end of file +path = PathValues.V1_BATCHJOBS_BATCH_JOB_ID diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py index d4b52f6f..71a0c3d4 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py @@ -6,43 +6,39 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - +from launch.api_client import api_client, exceptions from launch.api_client.model.get_batch_job_v1_response import GetBatchJobV1Response from launch.api_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict from . import path # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], - } + "batch_job_id": typing.Union[ + BatchJobIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) @@ -57,7 +53,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = GetBatchJobV1Response @@ -65,17 +61,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -84,26 +77,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -115,9 +103,8 @@ def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( @@ -127,7 +114,8 @@ def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( @@ -137,10 +125,8 @@ def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, @@ -160,9 +146,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_batch_job_id, - ): + for parameter in (request_path_batch_job_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -170,17 +154,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -192,15 +176,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -217,9 +201,8 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( @@ -229,7 +212,8 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( @@ -239,10 +223,8 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_batch_job_v1_batch_jobs_batch_job_id_get( self, @@ -257,7 +239,7 @@ def get_batch_job_v1_batch_jobs_batch_job_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -272,9 +254,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -284,7 +265,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -294,10 +276,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -312,7 +292,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi index 23da620e..f21f3440 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi @@ -6,48 +6,42 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - +from launch_client import api_client, exceptions from launch_client.model.get_batch_job_v1_response import GetBatchJobV1Response from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], - } + "batch_job_id": typing.Union[ + BatchJobIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) - class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_batch_job_id = api_client.PathParameter( name="batch_job_id", style=api_client.ParameterStyle.SIMPLE, @@ -56,46 +50,33 @@ request_path_batch_job_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = GetBatchJobV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -106,10 +87,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, @@ -119,7 +97,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, @@ -128,11 +105,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_batch_job_v1_batch_jobs_batch_job_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -151,9 +124,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_batch_job_id, - ): + for parameter in (request_path_batch_job_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -161,17 +132,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -183,20 +154,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -208,10 +178,7 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( self, @@ -221,7 +188,6 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_batch_job_v1_batch_jobs_batch_job_id_get( self, @@ -230,11 +196,7 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_batch_job_v1_batch_jobs_batch_job_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -248,10 +210,9 @@ class GetBatchJobV1BatchJobsBatchJobIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -263,10 +224,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -276,7 +234,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -285,11 +242,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -303,7 +256,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py index f0cc38b4..49781059 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py @@ -6,44 +6,40 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - +from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response from launch.api_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request +from launch.api_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response +from urllib3._collections import HTTPHeaderDict from . import path # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], - } + "batch_job_id": typing.Union[ + BatchJobIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) @@ -63,13 +59,12 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): request_body_update_batch_job_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = UpdateBatchJobV1Response @@ -77,17 +72,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -96,26 +88,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -129,9 +116,8 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( @@ -143,10 +129,8 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( @@ -158,7 +142,8 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( @@ -170,15 +155,13 @@ def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -195,9 +178,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_batch_job_id, - ): + for parameter in (request_path_batch_job_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -205,28 +186,29 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_update_batch_job_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='put'.upper(), + method="put".upper(), headers=_headers, fields=_fields, body=_body, @@ -240,15 +222,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -267,9 +249,8 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( @@ -281,10 +262,8 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( @@ -296,7 +275,8 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( @@ -308,15 +288,13 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def update_batch_job_v1_batch_jobs_batch_job_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -330,7 +308,7 @@ def update_batch_job_v1_batch_jobs_batch_job_id_put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -347,9 +325,8 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def put( @@ -361,10 +338,8 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def put( @@ -376,7 +351,8 @@ def put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def put( @@ -388,15 +364,13 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -410,7 +384,5 @@ def put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi index cf381c97..396780ce 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi @@ -6,49 +6,43 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - +from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response from launch_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request +from launch_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response +from urllib3._collections import HTTPHeaderDict # Path params BatchJobIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'batch_job_id': typing.Union[BatchJobIdSchema, str, ], - } + "batch_job_id": typing.Union[ + BatchJobIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) - class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_batch_job_id = api_client.PathParameter( name="batch_job_id", style=api_client.ParameterStyle.SIMPLE, @@ -58,56 +52,41 @@ request_path_batch_job_id = api_client.PathParameter( # body param SchemaForRequestBodyApplicationJson = UpdateBatchJobV1Request - request_body_update_batch_job_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = UpdateBatchJobV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -120,10 +99,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, @@ -134,11 +110,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, @@ -150,7 +122,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, @@ -161,15 +132,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _update_batch_job_v1_batch_jobs_batch_job_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -186,9 +153,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_batch_job_id, - ): + for parameter in (request_path_batch_job_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -196,28 +161,29 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_update_batch_job_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='put'.upper(), + method="put".upper(), headers=_headers, fields=_fields, body=_body, @@ -231,20 +197,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -258,10 +223,7 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( self, @@ -272,11 +234,7 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( self, @@ -288,7 +246,6 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def update_batch_job_v1_batch_jobs_batch_job_id_put( self, @@ -299,15 +256,11 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def update_batch_job_v1_batch_jobs_batch_job_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -321,10 +274,9 @@ class UpdateBatchJobV1BatchJobsBatchJobIdPut(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -338,10 +290,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def put( self, @@ -352,11 +301,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def put( self, @@ -368,7 +313,6 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def put( self, @@ -379,15 +323,11 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -401,7 +341,5 @@ class ApiForput(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles/__init__.py b/launch/api_client/paths/v1_model_bundles/__init__.py index 02168487..46bf5ae2 100644 --- a/launch/api_client/paths/v1_model_bundles/__init__.py +++ b/launch/api_client/paths/v1_model_bundles/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES \ No newline at end of file +path = PathValues.V1_MODELBUNDLES diff --git a/launch/api_client/paths/v1_model_bundles/get.py b/launch/api_client/paths/v1_model_bundles/get.py index dfeb1cdb..b8b340ad 100644 --- a/launch/api_client/paths/v1_model_bundles/get.py +++ b/launch/api_client/paths/v1_model_bundles/get.py @@ -6,46 +6,41 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.model_bundle_order_by import ModelBundleOrderBy -from launch.api_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch.api_client.model.model_bundle_order_by import ModelBundleOrderBy +from urllib3._collections import HTTPHeaderDict from . import path # Query params ModelNameSchema = schemas.StrSchema OrderBySchema = ModelBundleOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) +RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestOptionalQueryParams", { - 'model_name': typing.Union[ModelNameSchema, str, ], - 'order_by': typing.Union[OrderBySchema, ], + "model_name": typing.Union[ + ModelNameSchema, + str, + ], + "order_by": typing.Union[OrderBySchema,], }, - total=False + total=False, ) @@ -66,7 +61,7 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = ListModelBundlesV1Response @@ -74,17 +69,14 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -93,26 +85,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -124,9 +111,8 @@ def _list_model_bundles_v1_model_bundles_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( @@ -136,7 +122,8 @@ def _list_model_bundles_v1_model_bundles_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( @@ -146,10 +133,8 @@ def _list_model_bundles_v1_model_bundles_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _list_model_bundles_v1_model_bundles_get_oapg( self, @@ -186,11 +171,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -202,15 +187,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -227,9 +212,8 @@ def list_model_bundles_v1_model_bundles_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def list_model_bundles_v1_model_bundles_get( @@ -239,7 +223,8 @@ def list_model_bundles_v1_model_bundles_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def list_model_bundles_v1_model_bundles_get( @@ -249,10 +234,8 @@ def list_model_bundles_v1_model_bundles_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def list_model_bundles_v1_model_bundles_get( self, @@ -267,7 +250,7 @@ def list_model_bundles_v1_model_bundles_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -282,9 +265,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -294,7 +276,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -304,10 +287,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -322,7 +303,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles/get.pyi b/launch/api_client/paths/v1_model_bundles/get.pyi index b912a1ef..3008f70b 100644 --- a/launch/api_client/paths/v1_model_bundles/get.pyi +++ b/launch/api_client/paths/v1_model_bundles/get.pyi @@ -6,51 +6,44 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.model_bundle_order_by import ModelBundleOrderBy -from launch_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError +from launch_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch_client.model.model_bundle_order_by import ModelBundleOrderBy +from urllib3._collections import HTTPHeaderDict # Query params ModelNameSchema = schemas.StrSchema OrderBySchema = ModelBundleOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) +RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestOptionalQueryParams", { - 'model_name': typing.Union[ModelNameSchema, str, ], - 'order_by': typing.Union[OrderBySchema, ], + "model_name": typing.Union[ + ModelNameSchema, + str, + ], + "order_by": typing.Union[OrderBySchema,], }, - total=False + total=False, ) - class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass - request_query_model_name = api_client.QueryParameter( name="model_name", style=api_client.ParameterStyle.FORM, @@ -65,46 +58,33 @@ request_query_order_by = api_client.QueryParameter( ) SchemaFor200ResponseBodyApplicationJson = ListModelBundlesV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -115,10 +95,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( self, @@ -128,7 +105,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _list_model_bundles_v1_model_bundles_get_oapg( self, @@ -137,11 +113,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _list_model_bundles_v1_model_bundles_get_oapg( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -177,11 +149,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -193,20 +165,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class ListModelBundlesV1ModelBundlesGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -218,10 +189,7 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def list_model_bundles_v1_model_bundles_get( self, @@ -231,7 +199,6 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def list_model_bundles_v1_model_bundles_get( self, @@ -240,11 +207,7 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def list_model_bundles_v1_model_bundles_get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -258,10 +221,9 @@ class ListModelBundlesV1ModelBundlesGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -273,10 +235,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -286,7 +245,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -295,11 +253,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -313,7 +267,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles/post.py b/launch/api_client/paths/v1_model_bundles/post.py index 69f5290e..b860335f 100644 --- a/launch/api_client/paths/v1_model_bundles/post.py +++ b/launch/api_client/paths/v1_model_bundles/post.py @@ -6,28 +6,24 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - +from launch.api_client import api_client, exceptions from launch.api_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request -from launch.api_client.model.http_validation_error import HTTPValidationError from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch.api_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict from . import path @@ -37,13 +33,12 @@ request_body_create_model_bundle_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response @@ -51,17 +46,14 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -70,26 +62,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -102,9 +89,8 @@ def _create_model_bundle_v1_model_bundles_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( @@ -115,10 +101,8 @@ def _create_model_bundle_v1_model_bundles_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( @@ -129,7 +113,8 @@ def _create_model_bundle_v1_model_bundles_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( @@ -140,15 +125,13 @@ def _create_model_bundle_v1_model_bundles_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _create_model_bundle_v1_model_bundles_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,22 +149,23 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_create_model_bundle_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -195,15 +179,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -221,9 +205,8 @@ def create_model_bundle_v1_model_bundles_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_model_bundle_v1_model_bundles_post( @@ -234,10 +217,8 @@ def create_model_bundle_v1_model_bundles_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_model_bundle_v1_model_bundles_post( @@ -248,7 +229,8 @@ def create_model_bundle_v1_model_bundles_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def create_model_bundle_v1_model_bundles_post( @@ -259,15 +241,13 @@ def create_model_bundle_v1_model_bundles_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def create_model_bundle_v1_model_bundles_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -279,7 +259,7 @@ def create_model_bundle_v1_model_bundles_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -295,9 +275,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -308,10 +287,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -322,7 +299,8 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def post( @@ -333,15 +311,13 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -353,7 +329,5 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles/post.pyi b/launch/api_client/paths/v1_model_bundles/post.pyi index 552173d6..f902270e 100644 --- a/launch/api_client/paths/v1_model_bundles/post.pyi +++ b/launch/api_client/paths/v1_model_bundles/post.pyi @@ -6,82 +6,63 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - +from launch_client import api_client, exceptions from launch_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request -from launch_client.model.http_validation_error import HTTPValidationError from launch_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # body param SchemaForRequestBodyApplicationJson = CreateModelBundleV1Request - request_body_create_model_bundle_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -93,10 +74,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( self, @@ -106,11 +84,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( self, @@ -121,7 +95,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _create_model_bundle_v1_model_bundles_post_oapg( self, @@ -131,15 +104,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _create_model_bundle_v1_model_bundles_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,22 +126,23 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_create_model_bundle_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -186,20 +156,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class CreateModelBundleV1ModelBundlesPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -212,10 +181,7 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_model_bundle_v1_model_bundles_post( self, @@ -225,11 +191,7 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_model_bundle_v1_model_bundles_post( self, @@ -240,7 +202,6 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def create_model_bundle_v1_model_bundles_post( self, @@ -250,15 +211,11 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def create_model_bundle_v1_model_bundles_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -270,10 +227,9 @@ class CreateModelBundleV1ModelBundlesPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -286,10 +242,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -299,11 +252,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -314,7 +263,6 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def post( self, @@ -324,15 +272,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -344,7 +288,5 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py b/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py index b5c960ff..35511bd5 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES_CLONEWITHCHANGES \ No newline at end of file +path = PathValues.V1_MODELBUNDLES_CLONEWITHCHANGES diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py index ce1d294b..0c994182 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py @@ -6,28 +6,24 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request +from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch.api_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict from . import path @@ -37,13 +33,12 @@ request_body_clone_model_bundle_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response @@ -51,17 +46,14 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -70,26 +62,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -102,9 +89,8 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( @@ -115,10 +101,8 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( @@ -129,7 +113,8 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( @@ -140,15 +125,13 @@ def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oa stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,22 +149,23 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_clone_model_bundle_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -195,15 +179,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -221,9 +205,8 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( @@ -234,10 +217,8 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( @@ -248,7 +229,8 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( @@ -259,15 +241,13 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -279,7 +259,7 @@ def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -295,9 +275,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -308,10 +287,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -322,7 +299,8 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def post( @@ -333,15 +311,13 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -353,7 +329,5 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi index 4a15bd23..107543d9 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi @@ -6,82 +6,63 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch_client import api_client, exceptions from launch_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request +from launch_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # body param SchemaForRequestBodyApplicationJson = CloneModelBundleV1Request - request_body_clone_model_bundle_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateModelBundleV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -93,10 +74,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, @@ -106,11 +84,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, @@ -121,7 +95,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, @@ -131,15 +104,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,22 +126,23 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_clone_model_bundle_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -186,20 +156,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -212,10 +181,7 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, @@ -225,11 +191,7 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, @@ -240,7 +202,6 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, @@ -250,15 +211,11 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def clone_model_bundle_with_changes_v1_model_bundles_clone_with_changes_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -270,10 +227,9 @@ class CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -286,10 +242,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -299,11 +252,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -314,7 +263,6 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def post( self, @@ -324,15 +272,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -344,7 +288,5 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles_latest/__init__.py b/launch/api_client/paths/v1_model_bundles_latest/__init__.py index e8834ca7..b5e54b32 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/__init__.py +++ b/launch/api_client/paths/v1_model_bundles_latest/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES_LATEST \ No newline at end of file +path = PathValues.V1_MODELBUNDLES_LATEST diff --git a/launch/api_client/paths/v1_model_bundles_latest/get.py b/launch/api_client/paths/v1_model_bundles_latest/get.py index 1cde5141..5788a2ae 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/get.py +++ b/launch/api_client/paths/v1_model_bundles_latest/get.py @@ -6,43 +6,39 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response +from urllib3._collections import HTTPHeaderDict from . import path # Query params ModelNameSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', + "RequestRequiredQueryParams", { - 'model_name': typing.Union[ModelNameSchema, str, ], - } + "model_name": typing.Union[ + ModelNameSchema, + str, + ], + }, ) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False + "RequestOptionalQueryParams", {}, total=False ) @@ -58,7 +54,7 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response @@ -66,17 +62,14 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -85,26 +78,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -116,9 +104,8 @@ def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( @@ -128,7 +115,8 @@ def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( @@ -138,10 +126,8 @@ def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, @@ -161,9 +147,7 @@ class instances used_path = path.value prefix_separator_iterator = None - for parameter in ( - request_query_model_name, - ): + for parameter in (request_query_model_name,): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -177,11 +161,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -193,15 +177,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -218,9 +202,8 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( @@ -230,7 +213,8 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( @@ -240,10 +224,8 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_latest_model_bundle_v1_model_bundles_latest_get( self, @@ -258,7 +240,7 @@ def get_latest_model_bundle_v1_model_bundles_latest_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -273,9 +255,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -285,7 +266,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -295,10 +277,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -313,7 +293,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles_latest/get.pyi b/launch/api_client/paths/v1_model_bundles_latest/get.pyi index 6bd40f45..28d050cc 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/get.pyi +++ b/launch/api_client/paths/v1_model_bundles_latest/get.pyi @@ -6,48 +6,42 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.model_bundle_v1_response import ModelBundleV1Response +from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError +from launch_client.model.model_bundle_v1_response import ModelBundleV1Response +from urllib3._collections import HTTPHeaderDict # Query params ModelNameSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', + "RequestRequiredQueryParams", { - 'model_name': typing.Union[ModelNameSchema, str, ], - } + "model_name": typing.Union[ + ModelNameSchema, + str, + ], + }, ) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False + "RequestOptionalQueryParams", {}, total=False ) - class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass - request_query_model_name = api_client.QueryParameter( name="model_name", style=api_client.ParameterStyle.FORM, @@ -57,46 +51,33 @@ request_query_model_name = api_client.QueryParameter( ) SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -107,10 +88,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, @@ -120,7 +98,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, @@ -129,11 +106,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_latest_model_bundle_v1_model_bundles_latest_get_oapg( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -152,9 +125,7 @@ class BaseApi(api_client.Api): used_path = path.value prefix_separator_iterator = None - for parameter in ( - request_query_model_name, - ): + for parameter in (request_query_model_name,): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -168,11 +139,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -184,20 +155,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -209,10 +179,7 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( self, @@ -222,7 +189,6 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_latest_model_bundle_v1_model_bundles_latest_get( self, @@ -231,11 +197,7 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_latest_model_bundle_v1_model_bundles_latest_get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -249,10 +211,9 @@ class GetLatestModelBundleV1ModelBundlesLatestGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -264,10 +225,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -277,7 +235,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -286,11 +243,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -304,7 +257,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py b/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py index aeafa82e..d3532d3a 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELBUNDLES_MODEL_BUNDLE_ID \ No newline at end of file +path = PathValues.V1_MODELBUNDLES_MODEL_BUNDLE_ID diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py index 638fe89d..f6b7a6e6 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py @@ -6,43 +6,39 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response +from urllib3._collections import HTTPHeaderDict from . import path # Path params ModelBundleIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'model_bundle_id': typing.Union[ModelBundleIdSchema, str, ], - } + "model_bundle_id": typing.Union[ + ModelBundleIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) @@ -57,7 +53,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response @@ -65,17 +61,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -84,26 +77,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -115,9 +103,8 @@ def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( @@ -127,7 +114,8 @@ def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( @@ -137,10 +125,8 @@ def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, @@ -160,9 +146,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_model_bundle_id, - ): + for parameter in (request_path_model_bundle_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -170,17 +154,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -192,15 +176,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -217,9 +201,8 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( @@ -229,7 +212,8 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( @@ -239,10 +223,8 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, @@ -257,7 +239,7 @@ def get_model_bundle_v1_model_bundles_model_bundle_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -272,9 +254,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -284,7 +265,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -294,10 +276,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -312,7 +292,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi index 6053dffd..9efb6e16 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi @@ -6,48 +6,42 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.model_bundle_v1_response import ModelBundleV1Response +from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError +from launch_client.model.model_bundle_v1_response import ModelBundleV1Response +from urllib3._collections import HTTPHeaderDict # Path params ModelBundleIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'model_bundle_id': typing.Union[ModelBundleIdSchema, str, ], - } + "model_bundle_id": typing.Union[ + ModelBundleIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) - class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_model_bundle_id = api_client.PathParameter( name="model_bundle_id", style=api_client.ParameterStyle.SIMPLE, @@ -56,46 +50,33 @@ request_path_model_bundle_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = ModelBundleV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -106,10 +87,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, @@ -119,7 +97,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, @@ -128,11 +105,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_model_bundle_v1_model_bundles_model_bundle_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -151,9 +124,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_model_bundle_id, - ): + for parameter in (request_path_model_bundle_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -161,17 +132,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -183,20 +154,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -208,10 +178,7 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, @@ -221,7 +188,6 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, @@ -230,11 +196,7 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_model_bundle_v1_model_bundles_model_bundle_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -248,10 +210,9 @@ class GetModelBundleV1ModelBundlesModelBundleIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -263,10 +224,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -276,7 +234,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -285,11 +242,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -303,7 +256,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints/__init__.py b/launch/api_client/paths/v1_model_endpoints/__init__.py index 63a2873d..f58f6045 100644 --- a/launch/api_client/paths/v1_model_endpoints/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTS \ No newline at end of file +path = PathValues.V1_MODELENDPOINTS diff --git a/launch/api_client/paths/v1_model_endpoints/get.py b/launch/api_client/paths/v1_model_endpoints/get.py index d61dd75c..122ac815 100644 --- a/launch/api_client/paths/v1_model_endpoints/get.py +++ b/launch/api_client/paths/v1_model_endpoints/get.py @@ -6,46 +6,41 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError +from launch.api_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response from launch.api_client.model.model_endpoint_order_by import ModelEndpointOrderBy +from urllib3._collections import HTTPHeaderDict from . import path # Query params NameSchema = schemas.StrSchema OrderBySchema = ModelEndpointOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) +RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestOptionalQueryParams", { - 'name': typing.Union[NameSchema, str, ], - 'order_by': typing.Union[OrderBySchema, ], + "name": typing.Union[ + NameSchema, + str, + ], + "order_by": typing.Union[OrderBySchema,], }, - total=False + total=False, ) @@ -66,7 +61,7 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) explode=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = ListModelEndpointsV1Response @@ -74,17 +69,14 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -93,26 +85,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -124,9 +111,8 @@ def _list_model_endpoints_v1_model_endpoints_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( @@ -136,7 +122,8 @@ def _list_model_endpoints_v1_model_endpoints_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( @@ -146,10 +133,8 @@ def _list_model_endpoints_v1_model_endpoints_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _list_model_endpoints_v1_model_endpoints_get_oapg( self, @@ -186,11 +171,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -202,15 +187,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -227,9 +212,8 @@ def list_model_endpoints_v1_model_endpoints_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def list_model_endpoints_v1_model_endpoints_get( @@ -239,7 +223,8 @@ def list_model_endpoints_v1_model_endpoints_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def list_model_endpoints_v1_model_endpoints_get( @@ -249,10 +234,8 @@ def list_model_endpoints_v1_model_endpoints_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def list_model_endpoints_v1_model_endpoints_get( self, @@ -267,7 +250,7 @@ def list_model_endpoints_v1_model_endpoints_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -282,9 +265,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -294,7 +276,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -304,10 +287,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -322,7 +303,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints/get.pyi b/launch/api_client/paths/v1_model_endpoints/get.pyi index ba836ff4..a0583a51 100644 --- a/launch/api_client/paths/v1_model_endpoints/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints/get.pyi @@ -6,51 +6,44 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response +from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError +from launch_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response from launch_client.model.model_endpoint_order_by import ModelEndpointOrderBy +from urllib3._collections import HTTPHeaderDict # Query params NameSchema = schemas.StrSchema OrderBySchema = ModelEndpointOrderBy -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) +RequestRequiredQueryParams = typing_extensions.TypedDict("RequestRequiredQueryParams", {}) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', + "RequestOptionalQueryParams", { - 'name': typing.Union[NameSchema, str, ], - 'order_by': typing.Union[OrderBySchema, ], + "name": typing.Union[ + NameSchema, + str, + ], + "order_by": typing.Union[OrderBySchema,], }, - total=False + total=False, ) - class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass - request_query_name = api_client.QueryParameter( name="name", style=api_client.ParameterStyle.FORM, @@ -65,46 +58,33 @@ request_query_order_by = api_client.QueryParameter( ) SchemaFor200ResponseBodyApplicationJson = ListModelEndpointsV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -115,10 +95,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( self, @@ -128,7 +105,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _list_model_endpoints_v1_model_endpoints_get_oapg( self, @@ -137,11 +113,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _list_model_endpoints_v1_model_endpoints_get_oapg( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -177,11 +149,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -193,20 +165,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class ListModelEndpointsV1ModelEndpointsGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -218,10 +189,7 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def list_model_endpoints_v1_model_endpoints_get( self, @@ -231,7 +199,6 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def list_model_endpoints_v1_model_endpoints_get( self, @@ -240,11 +207,7 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def list_model_endpoints_v1_model_endpoints_get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -258,10 +221,9 @@ class ListModelEndpointsV1ModelEndpointsGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -273,10 +235,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -286,7 +245,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -295,11 +253,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, query_params: RequestQueryParams = frozendict.frozendict(), @@ -313,7 +267,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints/post.py b/launch/api_client/paths/v1_model_endpoints/post.py index 6daab4f2..89072771 100644 --- a/launch/api_client/paths/v1_model_endpoints/post.py +++ b/launch/api_client/paths/v1_model_endpoints/post.py @@ -6,28 +6,24 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request +from launch.api_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response from launch.api_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict from . import path @@ -37,13 +33,12 @@ request_body_create_model_endpoint_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = CreateModelEndpointV1Response @@ -51,17 +46,14 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -70,26 +62,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -102,9 +89,8 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( @@ -115,10 +101,8 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( @@ -129,7 +113,8 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( @@ -140,15 +125,13 @@ def _create_model_endpoint_v1_model_endpoints_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _create_model_endpoint_v1_model_endpoints_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,22 +149,25 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None - serialized_data = request_body_create_model_endpoint_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + serialized_data = request_body_create_model_endpoint_v1_request.serialize( + body, content_type + ) + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -195,15 +181,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -221,9 +207,8 @@ def create_model_endpoint_v1_model_endpoints_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( @@ -234,10 +219,8 @@ def create_model_endpoint_v1_model_endpoints_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( @@ -248,7 +231,8 @@ def create_model_endpoint_v1_model_endpoints_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( @@ -259,15 +243,13 @@ def create_model_endpoint_v1_model_endpoints_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def create_model_endpoint_v1_model_endpoints_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -279,7 +261,7 @@ def create_model_endpoint_v1_model_endpoints_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -295,9 +277,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -308,10 +289,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -322,7 +301,8 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def post( @@ -333,15 +313,13 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -353,7 +331,5 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints/post.pyi b/launch/api_client/paths/v1_model_endpoints/post.pyi index ede948a4..1d8bf671 100644 --- a/launch/api_client/paths/v1_model_endpoints/post.pyi +++ b/launch/api_client/paths/v1_model_endpoints/post.pyi @@ -6,82 +6,63 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response +from launch_client import api_client, exceptions from launch_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request +from launch_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # body param SchemaForRequestBodyApplicationJson = CreateModelEndpointV1Request - request_body_create_model_endpoint_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = CreateModelEndpointV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -93,10 +74,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( self, @@ -106,11 +84,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( self, @@ -121,7 +95,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _create_model_endpoint_v1_model_endpoints_post_oapg( self, @@ -131,15 +104,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _create_model_endpoint_v1_model_endpoints_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,22 +126,25 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None - serialized_data = request_body_create_model_endpoint_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + serialized_data = request_body_create_model_endpoint_v1_request.serialize( + body, content_type + ) + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -186,20 +158,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class CreateModelEndpointV1ModelEndpointsPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -212,10 +183,7 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( self, @@ -225,11 +193,7 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_model_endpoint_v1_model_endpoints_post( self, @@ -240,7 +204,6 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def create_model_endpoint_v1_model_endpoints_post( self, @@ -250,15 +213,11 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def create_model_endpoint_v1_model_endpoints_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -270,10 +229,9 @@ class CreateModelEndpointV1ModelEndpointsPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -286,10 +244,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -299,11 +254,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -314,7 +265,6 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def post( self, @@ -324,15 +274,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -344,7 +290,5 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_api/__init__.py b/launch/api_client/paths/v1_model_endpoints_api/__init__.py index 69585e08..c4f1910d 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints_api/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTSAPI \ No newline at end of file +path = PathValues.V1_MODELENDPOINTSAPI diff --git a/launch/api_client/paths/v1_model_endpoints_api/get.py b/launch/api_client/paths/v1_model_endpoints_api/get.py index b6d33bc2..c597cb28 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/get.py +++ b/launch/api_client/paths/v1_model_endpoints_api/get.py @@ -6,29 +6,26 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 +from launch.api_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict from . import path _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @@ -36,25 +33,20 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, + "200": _response_for_200, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -65,9 +57,8 @@ def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( @@ -76,7 +67,8 @@ def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( @@ -85,10 +77,8 @@ def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, @@ -109,11 +99,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -125,15 +115,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -149,9 +139,8 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( @@ -160,7 +149,8 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( @@ -169,10 +159,8 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_model_endpoints_api_v1_model_endpoints_api_get( self, @@ -185,7 +173,7 @@ def get_model_endpoints_api_v1_model_endpoints_api_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -199,9 +187,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -210,7 +197,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -219,10 +207,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -235,7 +221,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_api/get.pyi b/launch/api_client/paths/v1_model_endpoints_api/get.pyi index c2bd2937..02af8d5a 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_api/get.pyi @@ -6,48 +6,37 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 +from launch_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -57,10 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, @@ -69,7 +55,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, @@ -77,11 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_model_endpoints_api_v1_model_endpoints_api_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -101,11 +82,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -117,20 +98,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -141,10 +121,7 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( self, @@ -153,7 +130,6 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_model_endpoints_api_v1_model_endpoints_api_get( self, @@ -161,11 +137,7 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_model_endpoints_api_v1_model_endpoints_api_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -177,10 +149,9 @@ class GetModelEndpointsApiV1ModelEndpointsApiGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -191,10 +162,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -203,7 +171,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -211,11 +178,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -227,7 +190,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py index e382b4ff..fb6cdf7c 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID \ No newline at end of file +path = PathValues.V1_MODELENDPOINTS_MODEL_ENDPOINT_ID diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py index 4968608b..2f37b146 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py @@ -6,43 +6,39 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - +from launch.api_client import api_client, exceptions from launch.api_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response from launch.api_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict from . import path # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) @@ -57,7 +53,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = DeleteModelEndpointV1Response @@ -65,17 +61,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -84,26 +77,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -115,9 +103,8 @@ def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( @@ -127,7 +114,8 @@ def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( @@ -137,10 +125,8 @@ def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, @@ -160,9 +146,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_model_endpoint_id, - ): + for parameter in (request_path_model_endpoint_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -170,17 +154,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='delete'.upper(), + method="delete".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -192,15 +176,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -217,9 +201,8 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( @@ -229,7 +212,8 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( @@ -239,10 +223,8 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, @@ -257,7 +239,7 @@ def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -272,9 +254,8 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def delete( @@ -284,7 +265,8 @@ def delete( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def delete( @@ -294,10 +276,8 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def delete( self, @@ -312,7 +292,5 @@ def delete( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi index 70c4cda2..a4c4e68b 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi @@ -6,48 +6,42 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - +from launch_client import api_client, exceptions from launch_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) - class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_model_endpoint_id = api_client.PathParameter( name="model_endpoint_id", style=api_client.ParameterStyle.SIMPLE, @@ -56,46 +50,33 @@ request_path_model_endpoint_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = DeleteModelEndpointV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -106,10 +87,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, @@ -119,7 +97,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, @@ -128,11 +105,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -151,9 +124,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_model_endpoint_id, - ): + for parameter in (request_path_model_endpoint_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -161,17 +132,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='delete'.upper(), + method="delete".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -183,20 +154,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -208,10 +178,7 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, @@ -221,7 +188,6 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, @@ -230,11 +196,7 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def delete_model_endpoint_v1_model_endpoints_model_endpoint_id_delete( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -248,10 +210,9 @@ class DeleteModelEndpointV1ModelEndpointsModelEndpointIdDelete(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -263,10 +224,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def delete( self, @@ -276,7 +234,6 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def delete( self, @@ -285,11 +242,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def delete( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -303,7 +256,5 @@ class ApiFordelete(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py index 94382ce9..95c24286 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py @@ -6,43 +6,39 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - +from launch.api_client import api_client, exceptions from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response from launch.api_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict from . import path # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) @@ -57,7 +53,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = GetModelEndpointV1Response @@ -65,17 +61,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -84,26 +77,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -115,9 +103,8 @@ def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( @@ -127,7 +114,8 @@ def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( @@ -137,10 +125,8 @@ def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, @@ -160,9 +146,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_model_endpoint_id, - ): + for parameter in (request_path_model_endpoint_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -170,17 +154,17 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -192,15 +176,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -217,9 +201,8 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( @@ -229,7 +212,8 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( @@ -239,10 +223,8 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, @@ -257,7 +239,7 @@ def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -272,9 +254,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -284,7 +265,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -294,10 +276,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -312,7 +292,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi index 1538b496..6e876c82 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi @@ -6,48 +6,42 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - +from launch_client import api_client, exceptions from launch_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response from launch_client.model.http_validation_error import HTTPValidationError +from urllib3._collections import HTTPHeaderDict # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) - class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_model_endpoint_id = api_client.PathParameter( name="model_endpoint_id", style=api_client.ParameterStyle.SIMPLE, @@ -56,46 +50,33 @@ request_path_model_endpoint_id = api_client.PathParameter( ) SchemaFor200ResponseBodyApplicationJson = GetModelEndpointV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -106,10 +87,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, @@ -119,7 +97,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, @@ -128,11 +105,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_model_endpoint_v1_model_endpoints_model_endpoint_id_get_oapg( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -151,9 +124,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_model_endpoint_id, - ): + for parameter in (request_path_model_endpoint_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -161,17 +132,17 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -183,20 +154,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -208,10 +178,7 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, @@ -221,7 +188,6 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, @@ -230,11 +196,7 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_model_endpoint_v1_model_endpoints_model_endpoint_id_get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -248,10 +210,9 @@ class GetModelEndpointV1ModelEndpointsModelEndpointIdGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -263,10 +224,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -276,7 +234,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -285,11 +242,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, path_params: RequestPathParams = frozendict.frozendict(), @@ -303,7 +256,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py index 3d96a934..76576081 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py @@ -6,44 +6,40 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - -from launch.api_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response +from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError from launch.api_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request +from launch.api_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response +from urllib3._collections import HTTPHeaderDict from . import path # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) @@ -63,13 +59,12 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): request_body_update_model_endpoint_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = UpdateModelEndpointV1Response @@ -77,17 +72,14 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -96,26 +88,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -129,9 +116,8 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( @@ -143,10 +129,8 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( @@ -158,7 +142,8 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( @@ -170,15 +155,13 @@ def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -195,9 +178,7 @@ class instances used_path = path.value _path_params = {} - for parameter in ( - request_path_model_endpoint_id, - ): + for parameter in (request_path_model_endpoint_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -205,28 +186,31 @@ class instances _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None - serialized_data = request_body_update_model_endpoint_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + serialized_data = request_body_update_model_endpoint_v1_request.serialize( + body, content_type + ) + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='put'.upper(), + method="put".upper(), headers=_headers, fields=_fields, body=_body, @@ -240,15 +224,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -267,9 +251,8 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( @@ -281,10 +264,8 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( @@ -296,7 +277,8 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( @@ -308,15 +290,13 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -330,7 +310,7 @@ def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -347,9 +327,8 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def put( @@ -361,10 +340,8 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def put( @@ -376,7 +353,8 @@ def put( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def put( @@ -388,15 +366,13 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -410,7 +386,5 @@ def put( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi index 0012df0a..22eb8cab 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi @@ -6,49 +6,43 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - -from launch_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response +from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError from launch_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request +from launch_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response +from urllib3._collections import HTTPHeaderDict # Path params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', + "RequestRequiredPathParams", { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], + }, ) RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False + "RequestOptionalPathParams", {}, total=False ) - class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass - request_path_model_endpoint_id = api_client.PathParameter( name="model_endpoint_id", style=api_client.ParameterStyle.SIMPLE, @@ -58,56 +52,41 @@ request_path_model_endpoint_id = api_client.PathParameter( # body param SchemaForRequestBodyApplicationJson = UpdateModelEndpointV1Request - request_body_update_model_endpoint_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = UpdateModelEndpointV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -120,10 +99,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, @@ -134,11 +110,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, @@ -150,7 +122,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, @@ -161,15 +132,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _update_model_endpoint_v1_model_endpoints_model_endpoint_id_put_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -186,9 +153,7 @@ class BaseApi(api_client.Api): used_path = path.value _path_params = {} - for parameter in ( - request_path_model_endpoint_id, - ): + for parameter in (request_path_model_endpoint_id,): parameter_data = path_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -196,28 +161,31 @@ class BaseApi(api_client.Api): _path_params.update(serialized_data) for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) + used_path = used_path.replace("{%s}" % k, v) _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None - serialized_data = request_body_update_model_endpoint_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + serialized_data = request_body_update_model_endpoint_v1_request.serialize( + body, content_type + ) + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='put'.upper(), + method="put".upper(), headers=_headers, fields=_fields, body=_body, @@ -231,20 +199,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -258,10 +225,7 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, @@ -272,11 +236,7 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, @@ -288,7 +248,6 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, @@ -299,15 +258,11 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -321,10 +276,9 @@ class UpdateModelEndpointV1ModelEndpointsModelEndpointIdPut(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -338,10 +292,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def put( self, @@ -352,11 +303,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def put( self, @@ -368,7 +315,6 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def put( self, @@ -379,15 +325,11 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def put( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -401,7 +343,5 @@ class ApiForput(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py b/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py index bbefa10f..4dd4f68d 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_MODELENDPOINTSSCHEMA_JSON \ No newline at end of file +path = PathValues.V1_MODELENDPOINTSSCHEMA_JSON diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/get.py b/launch/api_client/paths/v1_model_endpoints_schema_json/get.py index 8c24a455..3cfa0287 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/get.py +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/get.py @@ -6,29 +6,26 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 +from launch.api_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict from . import path _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @@ -36,25 +33,20 @@ @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, + "200": _response_for_200, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -65,9 +57,8 @@ def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( @@ -76,7 +67,8 @@ def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( @@ -85,10 +77,8 @@ def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, @@ -109,11 +99,11 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -125,15 +115,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -149,9 +139,8 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( @@ -160,7 +149,8 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( @@ -169,10 +159,8 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, @@ -185,7 +173,7 @@ def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -199,9 +187,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def get( @@ -210,7 +197,8 @@ def get( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def get( @@ -219,10 +207,8 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def get( self, @@ -235,7 +221,5 @@ def get( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi b/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi index 780a5c95..aac7e01b 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi @@ -6,48 +6,37 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 +from launch_client import api_client, exceptions +from urllib3._collections import HTTPHeaderDict SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -57,10 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, @@ -69,7 +55,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, @@ -77,11 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _get_model_endpoints_schema_v1_model_endpoints_schema_json_get_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -101,11 +82,11 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) response = self.api_client.call_api( resource_path=used_path, - method='get'.upper(), + method="get".upper(), headers=_headers, auth_settings=_auth, stream=stream, @@ -117,20 +98,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -141,10 +121,7 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, @@ -153,7 +130,6 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, @@ -161,11 +137,7 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get_model_endpoints_schema_v1_model_endpoints_schema_json_get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -177,10 +149,9 @@ class GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -191,10 +162,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def get( self, @@ -203,7 +171,6 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def get( self, @@ -211,11 +178,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def get( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -227,7 +190,5 @@ class ApiForget(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_sync_tasks/__init__.py b/launch/api_client/paths/v1_sync_tasks/__init__.py index 0ad403fe..e05b06c3 100644 --- a/launch/api_client/paths/v1_sync_tasks/__init__.py +++ b/launch/api_client/paths/v1_sync_tasks/__init__.py @@ -4,4 +4,4 @@ from launch.api_client.paths import PathValues -path = PathValues.V1_SYNCTASKS \ No newline at end of file +path = PathValues.V1_SYNCTASKS diff --git a/launch/api_client/paths/v1_sync_tasks/post.py b/launch/api_client/paths/v1_sync_tasks/post.py index 590fc5b5..09d960a2 100644 --- a/launch/api_client/paths/v1_sync_tasks/post.py +++ b/launch/api_client/paths/v1_sync_tasks/post.py @@ -6,44 +6,40 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch.api_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch.api_client import schemas # noqa: F401 - +from launch.api_client import api_client, exceptions from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request from launch.api_client.model.http_validation_error import HTTPValidationError from launch.api_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response +from urllib3._collections import HTTPHeaderDict from . import path # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', + "RequestRequiredQueryParams", { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], + }, ) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False + "RequestOptionalQueryParams", {}, total=False ) @@ -64,13 +60,12 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) _auth = [ - 'HTTPBasic', + "HTTPBasic", ] SchemaFor200ResponseBodyApplicationJson = SyncEndpointPredictV1Response @@ -78,17 +73,14 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams) @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError @@ -97,26 +89,21 @@ class ApiResponseFor200(api_client.ApiResponse): @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) _status_code_to_response = { - '200': _response_for_200, - '422': _response_for_422, + "200": _response_for_200, + "422": _response_for_422, } -_all_accept_content_types = ( - 'application/json', -) +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @@ -130,9 +117,8 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( @@ -144,10 +130,8 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( @@ -159,7 +143,8 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( @@ -171,15 +156,13 @@ def _create_sync_inference_task_v1_sync_tasks_post_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -196,9 +179,7 @@ class instances used_path = path.value prefix_separator_iterator = None - for parameter in ( - request_query_model_endpoint_id, - ): + for parameter in (request_query_model_endpoint_id,): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -212,22 +193,23 @@ class instances # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -241,15 +223,15 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response @@ -268,9 +250,8 @@ def create_sync_inference_task_v1_sync_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( @@ -282,10 +263,8 @@ def create_sync_inference_task_v1_sync_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( @@ -297,7 +276,8 @@ def create_sync_inference_task_v1_sync_tasks_post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( @@ -309,15 +289,13 @@ def create_sync_inference_task_v1_sync_tasks_post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def create_sync_inference_task_v1_sync_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -331,7 +309,7 @@ def create_sync_inference_task_v1_sync_tasks_post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) @@ -348,9 +326,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -362,10 +339,8 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: + ... @typing.overload def post( @@ -377,7 +352,8 @@ def post( accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... + ) -> api_client.ApiResponseWithoutDeserialization: + ... @typing.overload def post( @@ -389,15 +365,13 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: + ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -411,7 +385,5 @@ def post( accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/paths/v1_sync_tasks/post.pyi b/launch/api_client/paths/v1_sync_tasks/post.pyi index 1802b388..6e9ab54f 100644 --- a/launch/api_client/paths/v1_sync_tasks/post.pyi +++ b/launch/api_client/paths/v1_sync_tasks/post.pyi @@ -6,49 +6,43 @@ Generated by: https://openapi-generator.tech """ -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from launch_client import api_client, exceptions -from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 -import typing_extensions # noqa: F401 import uuid # noqa: F401 +from dataclasses import dataclass +from datetime import date, datetime # noqa: F401 import frozendict # noqa: F401 - +import typing_extensions # noqa: F401 +import urllib3 from launch_client import schemas # noqa: F401 - +from launch_client import api_client, exceptions from launch_client.model.endpoint_predict_v1_request import EndpointPredictV1Request from launch_client.model.http_validation_error import HTTPValidationError from launch_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response +from urllib3._collections import HTTPHeaderDict # Query params ModelEndpointIdSchema = schemas.StrSchema RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', + "RequestRequiredQueryParams", { - 'model_endpoint_id': typing.Union[ModelEndpointIdSchema, str, ], - } + "model_endpoint_id": typing.Union[ + ModelEndpointIdSchema, + str, + ], + }, ) RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - }, - total=False + "RequestOptionalQueryParams", {}, total=False ) - class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass - request_query_model_endpoint_id = api_client.QueryParameter( name="model_endpoint_id", style=api_client.ParameterStyle.FORM, @@ -59,56 +53,41 @@ request_query_model_endpoint_id = api_client.QueryParameter( # body param SchemaForRequestBodyApplicationJson = EndpointPredictV1Request - request_body_endpoint_predict_v1_request = api_client.RequestBody( content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaForRequestBodyApplicationJson), }, required=True, ) SchemaFor200ResponseBodyApplicationJson = SyncEndpointPredictV1Response - @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor200ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor200ResponseBodyApplicationJson), }, ) SchemaFor422ResponseBodyApplicationJson = HTTPValidationError - @dataclass class ApiResponseFor422(api_client.ApiResponse): response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor422ResponseBodyApplicationJson, - ] + body: typing.Union[SchemaFor422ResponseBodyApplicationJson,] headers: schemas.Unset = schemas.unset - _response_for_422 = api_client.OpenApiResponse( response_cls=ApiResponseFor422, content={ - 'application/json': api_client.MediaType( - schema=SchemaFor422ResponseBodyApplicationJson), + "application/json": api_client.MediaType(schema=SchemaFor422ResponseBodyApplicationJson), }, ) -_all_accept_content_types = ( - 'application/json', -) - +_all_accept_content_types = ("application/json",) class BaseApi(api_client.Api): @typing.overload @@ -121,10 +100,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, @@ -135,11 +111,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, @@ -151,7 +123,6 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, @@ -162,15 +133,11 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def _create_sync_inference_task_v1_sync_tasks_post_oapg( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -187,9 +154,7 @@ class BaseApi(api_client.Api): used_path = path.value prefix_separator_iterator = None - for parameter in ( - request_query_model_endpoint_id, - ): + for parameter in (request_query_model_endpoint_id,): parameter_data = query_params.get(parameter.name, schemas.unset) if parameter_data is schemas.unset: continue @@ -203,22 +168,23 @@ class BaseApi(api_client.Api): # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) + _headers.add("Accept", accept_content_type) if body is schemas.unset: raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') + "The required body parameter has an invalid value of: unset. Set a valid value instead" + ) _fields = None _body = None serialized_data = request_body_endpoint_predict_v1_request.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] + _headers.add("Content-Type", content_type) + if "fields" in serialized_data: + _fields = serialized_data["fields"] + elif "body" in serialized_data: + _body = serialized_data["body"] response = self.api_client.call_api( resource_path=used_path, - method='post'.upper(), + method="post".upper(), headers=_headers, fields=_fields, body=_body, @@ -232,20 +198,19 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) + api_response = response_for_status.deserialize( + response, self.api_client.configuration + ) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response + status=response.status, reason=response.reason, api_response=api_response ) return api_response - class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @@ -259,10 +224,7 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( self, @@ -273,11 +235,7 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def create_sync_inference_task_v1_sync_tasks_post( self, @@ -289,7 +247,6 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def create_sync_inference_task_v1_sync_tasks_post( self, @@ -300,15 +257,11 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def create_sync_inference_task_v1_sync_tasks_post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -322,10 +275,9 @@ class CreateSyncInferenceTaskV1SyncTasksPost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @@ -339,10 +291,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -353,11 +302,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ]: ... - - + ) -> typing.Union[ApiResponseFor200,]: ... @typing.overload def post( self, @@ -369,7 +314,6 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... - @typing.overload def post( self, @@ -380,15 +324,11 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - api_client.ApiResponseWithoutDeserialization, - ]: ... - + ) -> typing.Union[ApiResponseFor200, api_client.ApiResponseWithoutDeserialization,]: ... def post( self, body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', + content_type: str = "application/json", query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -402,7 +342,5 @@ class ApiForpost(BaseApi): accept_content_types=accept_content_types, stream=stream, timeout=timeout, - skip_deserialization=skip_deserialization + skip_deserialization=skip_deserialization, ) - - diff --git a/launch/api_client/rest.py b/launch/api_client/rest.py index 89aa1230..8d3d9e67 100644 --- a/launch/api_client/rest.py +++ b/launch/api_client/rest.py @@ -11,21 +11,18 @@ import logging import ssl -from urllib.parse import urlencode import typing +from urllib.parse import urlencode import certifi import urllib3 -from urllib3._collections import HTTPHeaderDict - from launch.api_client.exceptions import ApiException, ApiValueError - +from urllib3._collections import HTTPHeaderDict logger = logging.getLogger(__name__) class RESTClientObject(object): - def __init__(self, configuration, pools_size=4, maxsize=None): # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 @@ -48,13 +45,13 @@ def __init__(self, configuration, pools_size=4, maxsize=None): addition_pool_args = {} if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + addition_pool_args["assert_hostname"] = configuration.assert_hostname # noqa: E501 if configuration.retries is not None: - addition_pool_args['retries'] = configuration.retries + addition_pool_args["retries"] = configuration.retries if configuration.socket_options is not None: - addition_pool_args['socket_options'] = configuration.socket_options + addition_pool_args["socket_options"] = configuration.socket_options if maxsize is None: if configuration.connection_pool_maxsize is not None: @@ -73,7 +70,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): key_file=configuration.key_file, proxy_url=configuration.proxy, proxy_headers=configuration.proxy_headers, - **addition_pool_args + **addition_pool_args, ) else: self.pool_manager = urllib3.PoolManager( @@ -83,7 +80,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): ca_certs=ca_certs, cert_file=configuration.cert_file, key_file=configuration.key_file, - **addition_pool_args + **addition_pool_args, ) def request( @@ -114,13 +111,10 @@ def request( (connection, read) timeouts. """ method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] + assert method in ["GET", "HEAD", "DELETE", "POST", "PUT", "PATCH", "OPTIONS"] if fields and body: - raise ApiValueError( - "body parameter cannot be used with fields parameter." - ) + raise ApiValueError("body parameter cannot be used with fields parameter.") fields = fields or {} headers = headers or {} @@ -128,53 +122,54 @@ def request( if timeout: if isinstance(timeout, (int, float)): # noqa: E501,F821 timeout = urllib3.Timeout(total=timeout) - elif (isinstance(timeout, tuple) and - len(timeout) == 2): + elif isinstance(timeout, tuple) and len(timeout) == 2: timeout = urllib3.Timeout(connect=timeout[0], read=timeout[1]) try: # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if 'Content-Type' not in headers and body is None: + if method in ["POST", "PUT", "PATCH", "OPTIONS", "DELETE"]: + if "Content-Type" not in headers and body is None: r = self.pool_manager.request( - method, - url, - preload_content=not stream, - timeout=timeout, - headers=headers + method, url, preload_content=not stream, timeout=timeout, headers=headers ) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + elif headers["Content-Type"] == "application/x-www-form-urlencoded": # noqa: E501 r = self.pool_manager.request( - method, url, + method, + url, body=body, fields=fields, encode_multipart=False, preload_content=not stream, timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': + headers=headers, + ) + elif headers["Content-Type"] == "multipart/form-data": # must del headers['Content-Type'], or the correct # Content-Type which generated by urllib3 will be # overwritten. - del headers['Content-Type'] + del headers["Content-Type"] r = self.pool_manager.request( - method, url, + method, + url, fields=fields, encode_multipart=True, preload_content=not stream, timeout=timeout, - headers=headers) + headers=headers, + ) # Pass a `string` parameter directly in the body to support # other content types than Json when `body` argument is # provided in serialized form elif isinstance(body, str) or isinstance(body, bytes): request_body = body r = self.pool_manager.request( - method, url, + method, + url, body=request_body, preload_content=not stream, timeout=timeout, - headers=headers) + headers=headers, + ) else: # Cannot generate the request from given parameters msg = """Cannot prepare a request message for provided @@ -183,10 +178,9 @@ def request( raise ApiException(status=0, reason=msg) # For `GET`, `HEAD` else: - r = self.pool_manager.request(method, url, - preload_content=not stream, - timeout=timeout, - headers=headers) + r = self.pool_manager.request( + method, url, preload_content=not stream, timeout=timeout, headers=headers + ) except urllib3.exceptions.SSLError as e: msg = "{0}\n{1}".format(type(e).__name__, str(e)) raise ApiException(status=0, reason=msg) @@ -197,58 +191,57 @@ def request( return r - def GET(self, url, headers=None, stream=False, - timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("GET", url, - headers=headers, - stream=stream, - timeout=timeout, - fields=fields) - - def HEAD(self, url, headers=None, stream=False, - timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("HEAD", url, - headers=headers, - stream=stream, - timeout=timeout, - fields=fields) - - def OPTIONS(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("OPTIONS", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def DELETE(self, url, headers=None, body=None, - stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("DELETE", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def POST(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("POST", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def PUT(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("PUT", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def PATCH(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("PATCH", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) + def GET( + self, url, headers=None, stream=False, timeout=None, fields=None + ) -> urllib3.HTTPResponse: + return self.request( + "GET", url, headers=headers, stream=stream, timeout=timeout, fields=fields + ) + + def HEAD( + self, url, headers=None, stream=False, timeout=None, fields=None + ) -> urllib3.HTTPResponse: + return self.request( + "HEAD", url, headers=headers, stream=stream, timeout=timeout, fields=fields + ) + + def OPTIONS( + self, url, headers=None, body=None, stream=False, timeout=None, fields=None + ) -> urllib3.HTTPResponse: + return self.request( + "OPTIONS", + url, + headers=headers, + stream=stream, + timeout=timeout, + body=body, + fields=fields, + ) + + def DELETE( + self, url, headers=None, body=None, stream=False, timeout=None, fields=None + ) -> urllib3.HTTPResponse: + return self.request( + "DELETE", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields + ) + + def POST( + self, url, headers=None, body=None, stream=False, timeout=None, fields=None + ) -> urllib3.HTTPResponse: + return self.request( + "POST", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields + ) + + def PUT( + self, url, headers=None, body=None, stream=False, timeout=None, fields=None + ) -> urllib3.HTTPResponse: + return self.request( + "PUT", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields + ) + + def PATCH( + self, url, headers=None, body=None, stream=False, timeout=None, fields=None + ) -> urllib3.HTTPResponse: + return self.request( + "PATCH", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields + ) diff --git a/launch/api_client/schemas.py b/launch/api_client/schemas.py index a8c70520..8223412e 100644 --- a/launch/api_client/schemas.py +++ b/launch/api_client/schemas.py @@ -9,26 +9,20 @@ Generated by: https://openapi-generator.tech """ -from collections import defaultdict -from datetime import date, datetime, timedelta # noqa: F401 -import functools import decimal +import functools import io import re import types import typing import uuid +from collections import defaultdict +from datetime import date, datetime, timedelta # noqa: F401 -from dateutil.parser.isoparser import isoparser, _takes_ascii import frozendict - -from launch.api_client.exceptions import ( - ApiTypeError, - ApiValueError, -) -from launch.api_client.configuration import ( - Configuration, -) +from dateutil.parser.isoparser import _takes_ascii, isoparser +from launch.api_client.configuration import Configuration +from launch.api_client.exceptions import ApiTypeError, ApiValueError class Unset(object): @@ -36,8 +30,10 @@ class Unset(object): An instance of this class is set as the default value for object type(dict) properties that are optional When a property has an unset value, that property will not be assigned in the dict """ + pass + unset = Unset() none_type = type(None) @@ -53,12 +49,12 @@ class FileIO(io.FileIO): def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader]): if isinstance(_arg, (io.FileIO, io.BufferedReader)): if _arg.closed: - raise ApiValueError('Invalid file state; file is closed and must be open') + raise ApiValueError("Invalid file state; file is closed and must be open") _arg.close() inst = super(FileIO, cls).__new__(cls, _arg.name) super(FileIO, inst).__init__(_arg.name) return inst - raise ApiValueError('FileIO must be passed _arg which contains the open file') + raise ApiValueError("FileIO must be passed _arg which contains the open file") def __init__(self, _arg: typing.Union[io.FileIO, io.BufferedReader]): pass @@ -82,13 +78,16 @@ class ValidationMetadata(frozendict.frozendict): """ A class storing metadata that is needed to validate OpenApi Schema payloads """ + def __new__( cls, - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']), + path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(["args[0]"]), from_server: bool = False, configuration: typing.Optional[Configuration] = None, seen_classes: typing.FrozenSet[typing.Type] = frozenset(), - validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]] = frozendict.frozendict() + validated_path_to_schemas: typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type] + ] = frozendict.frozendict(), ): """ Args: @@ -115,7 +114,7 @@ def __new__( from_server=from_server, configuration=configuration, seen_classes=seen_classes, - validated_path_to_schemas=validated_path_to_schemas + validated_path_to_schemas=validated_path_to_schemas, ) def validation_ran_earlier(self, cls: type) -> bool: @@ -129,23 +128,25 @@ def validation_ran_earlier(self, cls: type) -> bool: @property def path_to_item(self) -> typing.Tuple[typing.Union[str, int], ...]: - return self.get('path_to_item') + return self.get("path_to_item") @property def from_server(self) -> bool: - return self.get('from_server') + return self.get("from_server") @property def configuration(self) -> typing.Optional[Configuration]: - return self.get('configuration') + return self.get("configuration") @property def seen_classes(self) -> typing.FrozenSet[typing.Type]: - return self.get('seen_classes') + return self.get("seen_classes") @property - def validated_path_to_schemas(self) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]]: - return self.get('validated_path_to_schemas') + def validated_path_to_schemas( + self, + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]]: + return self.get("validated_path_to_schemas") def add_deeper_validated_schemas(validation_metadata: ValidationMetadata, path_to_schemas: dict): @@ -155,7 +156,9 @@ def add_deeper_validated_schemas(validation_metadata: ValidationMetadata, path_t for path_to_item, schemas in validation_metadata.validated_path_to_schemas.items(): if len(path_to_item) < len(current_path_to_item): continue - path_begins_with_current_path = path_to_item[:len(current_path_to_item)] == current_path_to_item + path_begins_with_current_path = ( + path_to_item[: len(current_path_to_item)] == current_path_to_item + ) if path_begins_with_current_path: other_path_to_schemas[path_to_item] = schemas update(path_to_schemas, other_path_to_schemas) @@ -166,6 +169,7 @@ class Singleton: Enums and singletons are the same The same instance is returned for a given key of (cls, _arg) """ + _instances = {} def __new__(cls, _arg: typing.Any, **kwargs): @@ -189,16 +193,15 @@ def __new__(cls, _arg: typing.Any, **kwargs): def __repr__(self): if isinstance(self, NoneClass): - return f'<{self.__class__.__name__}: None>' + return f"<{self.__class__.__name__}: None>" elif isinstance(self, BoolClass): if bool(self): - return f'<{self.__class__.__name__}: True>' - return f'<{self.__class__.__name__}: False>' - return f'<{self.__class__.__name__}: {super().__repr__()}>' + return f"<{self.__class__.__name__}: True>" + return f"<{self.__class__.__name__}: False>" + return f"<{self.__class__.__name__}: {super().__repr__()}>" class classproperty: - def __init__(self, fget): self.fget = fget @@ -229,7 +232,7 @@ def __bool__(self) -> bool: for key, instance in self._instances.items(): if self is instance: return bool(key[1]) - raise ValueError('Unable to find the boolean value of this instance') + raise ValueError("Unable to find the boolean value of this instance") class MetaOapgTyped: @@ -239,30 +242,39 @@ class MetaOapgTyped: inclusive_minimum: typing.Union[int, float] max_items: int min_items: int - discriminator: typing.Dict[str, typing.Dict[str, typing.Type['Schema']]] - + discriminator: typing.Dict[str, typing.Dict[str, typing.Type["Schema"]]] class properties: # to hold object properties pass - additional_properties: typing.Optional[typing.Type['Schema']] + additional_properties: typing.Optional[typing.Type["Schema"]] max_properties: int min_properties: int - all_of: typing.List[typing.Type['Schema']] - one_of: typing.List[typing.Type['Schema']] - any_of: typing.List[typing.Type['Schema']] - not_schema: typing.Type['Schema'] + all_of: typing.List[typing.Type["Schema"]] + one_of: typing.List[typing.Type["Schema"]] + any_of: typing.List[typing.Type["Schema"]] + not_schema: typing.Type["Schema"] max_length: int min_length: int - items: typing.Type['Schema'] + items: typing.Type["Schema"] class Schema: """ the base class of all swagger/openapi schemas/models """ - __inheritable_primitive_types_set = {decimal.Decimal, str, tuple, frozendict.frozendict, FileIO, bytes, BoolClass, NoneClass} + + __inheritable_primitive_types_set = { + decimal.Decimal, + str, + tuple, + frozendict.frozendict, + FileIO, + bytes, + BoolClass, + NoneClass, + } _types: typing.Set[typing.Type] MetaOapg = MetaOapgTyped @@ -277,7 +289,9 @@ def __get_valid_classes_phrase(input_classes): return "is one of [{0}]".format(", ".join(all_class_names)) @staticmethod - def _get_class_oapg(item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type['Schema']]) -> typing.Type['Schema']: + def _get_class_oapg( + item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type["Schema"]] + ) -> typing.Type["Schema"]: if isinstance(item_cls, types.FunctionType): # referenced schema return item_cls() @@ -287,9 +301,7 @@ def _get_class_oapg(item_cls: typing.Union[types.FunctionType, staticmethod, typ return item_cls @classmethod - def __type_error_message( - cls, var_value=None, var_name=None, valid_classes=None, key_type=None - ): + def __type_error_message(cls, var_value=None, var_name=None, valid_classes=None, key_type=None): """ Keyword Args: var_value (any): the variable which has the type_error @@ -332,7 +344,14 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: + ) -> typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], + typing.Set[ + typing.Union[ + "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple + ] + ], + ]: """ Schema _validate_oapg All keyword validation except for type checking was done in calling stack frames @@ -361,7 +380,11 @@ def _validate_oapg( @staticmethod def _process_schema_classes_oapg( - schema_classes: typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]] + schema_classes: typing.Set[ + typing.Union[ + "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple + ] + ] ): """ Processes and mutates schema_classes @@ -381,10 +404,8 @@ def _process_schema_classes_oapg( @classmethod def __get_new_cls( - cls, - arg, - validation_metadata: ValidationMetadata - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']]: + cls, arg, validation_metadata: ValidationMetadata + ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]]: """ Make a new dynamic class and return an instance of that class We are making an instance of cls, but instead of making cls @@ -423,16 +444,19 @@ def __get_new_cls( 3. N number of schema classes, classes in path_to_schemas: BoolClass/NoneClass/tuple/frozendict.frozendict/str/Decimal/bytes/FileIo """ cls._process_schema_classes_oapg(schema_classes) - enum_schema = any( - issubclass(this_cls, EnumBase) for this_cls in schema_classes) - inheritable_primitive_type = schema_classes.intersection(cls.__inheritable_primitive_types_set) + enum_schema = any(issubclass(this_cls, EnumBase) for this_cls in schema_classes) + inheritable_primitive_type = schema_classes.intersection( + cls.__inheritable_primitive_types_set + ) chosen_schema_classes = schema_classes - inheritable_primitive_type suffix = tuple(inheritable_primitive_type) if enum_schema and suffix[0] not in {NoneClass, BoolClass}: suffix = (Singleton,) + suffix - used_classes = tuple(sorted(chosen_schema_classes, key=lambda a_cls: a_cls.__name__)) + suffix - mfg_cls = get_new_class(class_name='DynamicSchema', bases=used_classes) + used_classes = ( + tuple(sorted(chosen_schema_classes, key=lambda a_cls: a_cls.__name__)) + suffix + ) + mfg_cls = get_new_class(class_name="DynamicSchema", bases=used_classes) path_to_schemas[path] = mfg_cls return path_to_schemas @@ -442,7 +466,9 @@ def _get_new_instance_without_conversion_oapg( cls, arg: typing.Any, path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] + path_to_schemas: typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"] + ], ): # We have a Dynamic class and we are making an instance of it if issubclass(cls, frozendict.frozendict) and issubclass(cls, DictBase): @@ -471,16 +497,16 @@ def from_openapi_data_oapg( decimal.Decimal, bool, None, - 'Schema', + "Schema", dict, frozendict.frozendict, tuple, list, io.FileIO, io.BufferedReader, - bytes + bytes, ], - _configuration: typing.Optional[Configuration] + _configuration: typing.Optional[Configuration], ): """ Schema from_openapi_data_oapg @@ -489,13 +515,14 @@ def from_openapi_data_oapg( validated_path_to_schemas = {} arg = cast_to_allowed_types(arg, from_server, validated_path_to_schemas) validation_metadata = ValidationMetadata( - from_server=from_server, configuration=_configuration, validated_path_to_schemas=validated_path_to_schemas) + from_server=from_server, + configuration=_configuration, + validated_path_to_schemas=validated_path_to_schemas, + ) path_to_schemas = cls.__get_new_cls(arg, validation_metadata) new_cls = path_to_schemas[validation_metadata.path_to_item] new_inst = new_cls._get_new_instance_without_conversion_oapg( - arg, - validation_metadata.path_to_item, - path_to_schemas + arg, validation_metadata.path_to_item, path_to_schemas ) return new_inst @@ -512,7 +539,41 @@ def __get_input_dict(*args, **kwargs) -> frozendict.frozendict: def __remove_unsets(kwargs): return {key: val for key, val in kwargs.items() if val is not unset} - def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], _configuration: typing.Optional[Configuration] = None, **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset]): + def __new__( + cls, + *_args: typing.Union[ + dict, + frozendict.frozendict, + list, + tuple, + decimal.Decimal, + float, + int, + str, + date, + datetime, + bool, + None, + "Schema", + ], + _configuration: typing.Optional[Configuration] = None, + **kwargs: typing.Union[ + dict, + frozendict.frozendict, + list, + tuple, + decimal.Decimal, + float, + int, + str, + date, + datetime, + bool, + None, + "Schema", + Unset, + ], + ): """ Schema __new__ @@ -527,35 +588,59 @@ def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict, list, tuple, """ __kwargs = cls.__remove_unsets(kwargs) if not _args and not __kwargs: - raise TypeError( - 'No input given. args or kwargs must be given.' - ) + raise TypeError("No input given. args or kwargs must be given.") if not __kwargs and _args and not isinstance(_args[0], dict): __arg = _args[0] else: __arg = cls.__get_input_dict(*_args, **__kwargs) __from_server = False __validated_path_to_schemas = {} - __arg = cast_to_allowed_types( - __arg, __from_server, __validated_path_to_schemas) + __arg = cast_to_allowed_types(__arg, __from_server, __validated_path_to_schemas) __validation_metadata = ValidationMetadata( - configuration=_configuration, from_server=__from_server, validated_path_to_schemas=__validated_path_to_schemas) + configuration=_configuration, + from_server=__from_server, + validated_path_to_schemas=__validated_path_to_schemas, + ) __path_to_schemas = cls.__get_new_cls(__arg, __validation_metadata) __new_cls = __path_to_schemas[__validation_metadata.path_to_item] return __new_cls._get_new_instance_without_conversion_oapg( - __arg, - __validation_metadata.path_to_item, - __path_to_schemas + __arg, __validation_metadata.path_to_item, __path_to_schemas ) def __init__( self, *_args: typing.Union[ - dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], + dict, + frozendict.frozendict, + list, + tuple, + decimal.Decimal, + float, + int, + str, + date, + datetime, + bool, + None, + "Schema", + ], _configuration: typing.Optional[Configuration] = None, **kwargs: typing.Union[ - dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset - ] + dict, + frozendict.frozendict, + list, + tuple, + decimal.Decimal, + float, + int, + str, + date, + datetime, + bool, + None, + "Schema", + Unset, + ], ): """ this is needed to fix 'Unexpected argument' warning in pycharm @@ -565,6 +650,7 @@ def __init__( """ pass + """ import itertools data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool') @@ -594,272 +680,421 @@ def __init__( BoolMixin = BoolClass BytesMixin = bytes FileMixin = FileIO + # qty 2 class BinaryMixin(bytes, FileIO): pass + class NoneFrozenDictMixin(NoneClass, frozendict.frozendict): pass + class NoneTupleMixin(NoneClass, tuple): pass + class NoneStrMixin(NoneClass, str): pass + class NoneDecimalMixin(NoneClass, decimal.Decimal): pass + class NoneBoolMixin(NoneClass, BoolClass): pass + class FrozenDictTupleMixin(frozendict.frozendict, tuple): pass + class FrozenDictStrMixin(frozendict.frozendict, str): pass + class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal): pass + class FrozenDictBoolMixin(frozendict.frozendict, BoolClass): pass + class TupleStrMixin(tuple, str): pass + class TupleDecimalMixin(tuple, decimal.Decimal): pass + class TupleBoolMixin(tuple, BoolClass): pass + class StrDecimalMixin(str, decimal.Decimal): pass + class StrBoolMixin(str, BoolClass): pass + class DecimalBoolMixin(decimal.Decimal, BoolClass): pass + # qty 3 class NoneFrozenDictTupleMixin(NoneClass, frozendict.frozendict, tuple): pass + class NoneFrozenDictStrMixin(NoneClass, frozendict.frozendict, str): pass + class NoneFrozenDictDecimalMixin(NoneClass, frozendict.frozendict, decimal.Decimal): pass + class NoneFrozenDictBoolMixin(NoneClass, frozendict.frozendict, BoolClass): pass + class NoneTupleStrMixin(NoneClass, tuple, str): pass + class NoneTupleDecimalMixin(NoneClass, tuple, decimal.Decimal): pass + class NoneTupleBoolMixin(NoneClass, tuple, BoolClass): pass + class NoneStrDecimalMixin(NoneClass, str, decimal.Decimal): pass + class NoneStrBoolMixin(NoneClass, str, BoolClass): pass + class NoneDecimalBoolMixin(NoneClass, decimal.Decimal, BoolClass): pass + class FrozenDictTupleStrMixin(frozendict.frozendict, tuple, str): pass + class FrozenDictTupleDecimalMixin(frozendict.frozendict, tuple, decimal.Decimal): pass + class FrozenDictTupleBoolMixin(frozendict.frozendict, tuple, BoolClass): pass + class FrozenDictStrDecimalMixin(frozendict.frozendict, str, decimal.Decimal): pass + class FrozenDictStrBoolMixin(frozendict.frozendict, str, BoolClass): pass + class FrozenDictDecimalBoolMixin(frozendict.frozendict, decimal.Decimal, BoolClass): pass + class TupleStrDecimalMixin(tuple, str, decimal.Decimal): pass + class TupleStrBoolMixin(tuple, str, BoolClass): pass + class TupleDecimalBoolMixin(tuple, decimal.Decimal, BoolClass): pass + class StrDecimalBoolMixin(str, decimal.Decimal, BoolClass): pass + # qty 4 class NoneFrozenDictTupleStrMixin(NoneClass, frozendict.frozendict, tuple, str): pass + class NoneFrozenDictTupleDecimalMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal): pass + class NoneFrozenDictTupleBoolMixin(NoneClass, frozendict.frozendict, tuple, BoolClass): pass + class NoneFrozenDictStrDecimalMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal): pass + class NoneFrozenDictStrBoolMixin(NoneClass, frozendict.frozendict, str, BoolClass): pass - class NoneFrozenDictDecimalBoolMixin(NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass): + + class NoneFrozenDictDecimalBoolMixin( + NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass + ): pass + class NoneTupleStrDecimalMixin(NoneClass, tuple, str, decimal.Decimal): pass + class NoneTupleStrBoolMixin(NoneClass, tuple, str, BoolClass): pass + class NoneTupleDecimalBoolMixin(NoneClass, tuple, decimal.Decimal, BoolClass): pass + class NoneStrDecimalBoolMixin(NoneClass, str, decimal.Decimal, BoolClass): pass + class FrozenDictTupleStrDecimalMixin(frozendict.frozendict, tuple, str, decimal.Decimal): pass + class FrozenDictTupleStrBoolMixin(frozendict.frozendict, tuple, str, BoolClass): pass + class FrozenDictTupleDecimalBoolMixin(frozendict.frozendict, tuple, decimal.Decimal, BoolClass): pass + class FrozenDictStrDecimalBoolMixin(frozendict.frozendict, str, decimal.Decimal, BoolClass): pass + class TupleStrDecimalBoolMixin(tuple, str, decimal.Decimal, BoolClass): pass + # qty 5 - class NoneFrozenDictTupleStrDecimalMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal): + class NoneFrozenDictTupleStrDecimalMixin( + NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal + ): pass + class NoneFrozenDictTupleStrBoolMixin(NoneClass, frozendict.frozendict, tuple, str, BoolClass): pass - class NoneFrozenDictTupleDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass): + + class NoneFrozenDictTupleDecimalBoolMixin( + NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass + ): pass - class NoneFrozenDictStrDecimalBoolMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass): + + class NoneFrozenDictStrDecimalBoolMixin( + NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass + ): pass + class NoneTupleStrDecimalBoolMixin(NoneClass, tuple, str, decimal.Decimal, BoolClass): pass - class FrozenDictTupleStrDecimalBoolMixin(frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): + + class FrozenDictTupleStrDecimalBoolMixin( + frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass + ): pass + # qty 6 - class NoneFrozenDictTupleStrDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): + class NoneFrozenDictTupleStrDecimalBoolMixin( + NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass + ): pass + # qty 8 - class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes): + class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin( + NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes + ): pass + else: # qty 1 class NoneMixin: _types = {NoneClass} + class FrozenDictMixin: _types = {frozendict.frozendict} + class TupleMixin: _types = {tuple} + class StrMixin: _types = {str} + class DecimalMixin: _types = {decimal.Decimal} + class BoolMixin: _types = {BoolClass} + class BytesMixin: _types = {bytes} + class FileMixin: _types = {FileIO} + # qty 2 class BinaryMixin: _types = {bytes, FileIO} + class NoneFrozenDictMixin: _types = {NoneClass, frozendict.frozendict} + class NoneTupleMixin: _types = {NoneClass, tuple} + class NoneStrMixin: _types = {NoneClass, str} + class NoneDecimalMixin: _types = {NoneClass, decimal.Decimal} + class NoneBoolMixin: _types = {NoneClass, BoolClass} + class FrozenDictTupleMixin: _types = {frozendict.frozendict, tuple} + class FrozenDictStrMixin: _types = {frozendict.frozendict, str} + class FrozenDictDecimalMixin: _types = {frozendict.frozendict, decimal.Decimal} + class FrozenDictBoolMixin: _types = {frozendict.frozendict, BoolClass} + class TupleStrMixin: _types = {tuple, str} + class TupleDecimalMixin: _types = {tuple, decimal.Decimal} + class TupleBoolMixin: _types = {tuple, BoolClass} + class StrDecimalMixin: _types = {str, decimal.Decimal} + class StrBoolMixin: _types = {str, BoolClass} + class DecimalBoolMixin: _types = {decimal.Decimal, BoolClass} + # qty 3 class NoneFrozenDictTupleMixin: _types = {NoneClass, frozendict.frozendict, tuple} + class NoneFrozenDictStrMixin: _types = {NoneClass, frozendict.frozendict, str} + class NoneFrozenDictDecimalMixin: _types = {NoneClass, frozendict.frozendict, decimal.Decimal} + class NoneFrozenDictBoolMixin: _types = {NoneClass, frozendict.frozendict, BoolClass} + class NoneTupleStrMixin: _types = {NoneClass, tuple, str} + class NoneTupleDecimalMixin: _types = {NoneClass, tuple, decimal.Decimal} + class NoneTupleBoolMixin: _types = {NoneClass, tuple, BoolClass} + class NoneStrDecimalMixin: _types = {NoneClass, str, decimal.Decimal} + class NoneStrBoolMixin: _types = {NoneClass, str, BoolClass} + class NoneDecimalBoolMixin: _types = {NoneClass, decimal.Decimal, BoolClass} + class FrozenDictTupleStrMixin: _types = {frozendict.frozendict, tuple, str} + class FrozenDictTupleDecimalMixin: _types = {frozendict.frozendict, tuple, decimal.Decimal} + class FrozenDictTupleBoolMixin: _types = {frozendict.frozendict, tuple, BoolClass} + class FrozenDictStrDecimalMixin: _types = {frozendict.frozendict, str, decimal.Decimal} + class FrozenDictStrBoolMixin: _types = {frozendict.frozendict, str, BoolClass} + class FrozenDictDecimalBoolMixin: _types = {frozendict.frozendict, decimal.Decimal, BoolClass} + class TupleStrDecimalMixin: _types = {tuple, str, decimal.Decimal} + class TupleStrBoolMixin: _types = {tuple, str, BoolClass} + class TupleDecimalBoolMixin: _types = {tuple, decimal.Decimal, BoolClass} + class StrDecimalBoolMixin: _types = {str, decimal.Decimal, BoolClass} + # qty 4 class NoneFrozenDictTupleStrMixin: _types = {NoneClass, frozendict.frozendict, tuple, str} + class NoneFrozenDictTupleDecimalMixin: _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal} + class NoneFrozenDictTupleBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, BoolClass} + class NoneFrozenDictStrDecimalMixin: _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal} + class NoneFrozenDictStrBoolMixin: _types = {NoneClass, frozendict.frozendict, str, BoolClass} + class NoneFrozenDictDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass} + class NoneTupleStrDecimalMixin: _types = {NoneClass, tuple, str, decimal.Decimal} + class NoneTupleStrBoolMixin: _types = {NoneClass, tuple, str, BoolClass} + class NoneTupleDecimalBoolMixin: _types = {NoneClass, tuple, decimal.Decimal, BoolClass} + class NoneStrDecimalBoolMixin: _types = {NoneClass, str, decimal.Decimal, BoolClass} + class FrozenDictTupleStrDecimalMixin: _types = {frozendict.frozendict, tuple, str, decimal.Decimal} + class FrozenDictTupleStrBoolMixin: _types = {frozendict.frozendict, tuple, str, BoolClass} + class FrozenDictTupleDecimalBoolMixin: _types = {frozendict.frozendict, tuple, decimal.Decimal, BoolClass} + class FrozenDictStrDecimalBoolMixin: _types = {frozendict.frozendict, str, decimal.Decimal, BoolClass} + class TupleStrDecimalBoolMixin: _types = {tuple, str, decimal.Decimal, BoolClass} + # qty 5 class NoneFrozenDictTupleStrDecimalMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal} + class NoneFrozenDictTupleStrBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, BoolClass} + class NoneFrozenDictTupleDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass} + class NoneFrozenDictStrDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass} + class NoneTupleStrDecimalBoolMixin: _types = {NoneClass, tuple, str, decimal.Decimal, BoolClass} + class FrozenDictTupleStrDecimalBoolMixin: _types = {frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} + # qty 6 class NoneFrozenDictTupleStrDecimalBoolMixin: _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} + # qty 8 class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes} + _types = { + NoneClass, + frozendict.frozendict, + tuple, + str, + decimal.Decimal, + BoolClass, + FileIO, + bytes, + } class ValidatorBase: @@ -876,12 +1111,16 @@ def _is_json_validation_enabled_oapg(schema_keyword, configuration=None): configuration (Configuration): the configuration class. """ - return (configuration is None or - not hasattr(configuration, '_disabled_client_side_validations') or - schema_keyword not in configuration._disabled_client_side_validations) + return ( + configuration is None + or not hasattr(configuration, "_disabled_client_side_validations") + or schema_keyword not in configuration._disabled_client_side_validations + ) @staticmethod - def _raise_validation_error_message_oapg(value, constraint_msg, constraint_value, path_to_item, additional_txt=""): + def _raise_validation_error_message_oapg( + value, constraint_msg, constraint_value, path_to_item, additional_txt="" + ): raise ApiValueError( "Invalid value `{value}`, {constraint_msg} `{constraint_value}`{additional_txt} at {path_to_item}".format( value=value, @@ -899,7 +1138,14 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: + ) -> typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], + typing.Set[ + typing.Union[ + "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple + ] + ], + ]: """ EnumBase _validate_oapg Validates that arg is in the enum's allowed values @@ -907,7 +1153,11 @@ def _validate_oapg( try: cls.MetaOapg.enum_value_to_name[arg] except KeyError: - raise ApiValueError("Invalid value {} passed in to {}, allowed_values={}".format(arg, cls, cls.MetaOapg.enum_value_to_name.keys())) + raise ApiValueError( + "Invalid value {} passed in to {}, allowed_values={}".format( + arg, cls, cls.MetaOapg.enum_value_to_name.keys() + ) + ) return super()._validate_oapg(arg, validation_metadata=validation_metadata) @@ -951,68 +1201,69 @@ def as_str_oapg(self) -> str: @property def as_date_oapg(self) -> date: - raise Exception('not implemented') + raise Exception("not implemented") @property def as_datetime_oapg(self) -> datetime: - raise Exception('not implemented') + raise Exception("not implemented") @property def as_decimal_oapg(self) -> decimal.Decimal: - raise Exception('not implemented') + raise Exception("not implemented") @property def as_uuid_oapg(self) -> uuid.UUID: - raise Exception('not implemented') + raise Exception("not implemented") @classmethod - def __check_str_validations( - cls, - arg: str, - validation_metadata: ValidationMetadata - ): - if not hasattr(cls, 'MetaOapg'): + def __check_str_validations(cls, arg: str, validation_metadata: ValidationMetadata): + if not hasattr(cls, "MetaOapg"): return - if (cls._is_json_validation_enabled_oapg('maxLength', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'max_length') and - len(arg) > cls.MetaOapg.max_length): + if ( + cls._is_json_validation_enabled_oapg("maxLength", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "max_length") + and len(arg) > cls.MetaOapg.max_length + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="length must be less than or equal to", constraint_value=cls.MetaOapg.max_length, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('minLength', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'min_length') and - len(arg) < cls.MetaOapg.min_length): + if ( + cls._is_json_validation_enabled_oapg("minLength", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "min_length") + and len(arg) < cls.MetaOapg.min_length + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="length must be greater than or equal to", constraint_value=cls.MetaOapg.min_length, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('pattern', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'regex')): + if cls._is_json_validation_enabled_oapg( + "pattern", validation_metadata.configuration + ) and hasattr(cls.MetaOapg, "regex"): for regex_dict in cls.MetaOapg.regex: - flags = regex_dict.get('flags', 0) - if not re.search(regex_dict['pattern'], arg, flags=flags): + flags = regex_dict.get("flags", 0) + if not re.search(regex_dict["pattern"], arg, flags=flags): if flags != 0: # Don't print the regex flags if the flags are not # specified in the OAS document. cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must match regular expression", - constraint_value=regex_dict['pattern'], + constraint_value=regex_dict["pattern"], path_to_item=validation_metadata.path_to_item, - additional_txt=" with flags=`{}`".format(flags) + additional_txt=" with flags=`{}`".format(flags), ) cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must match regular expression", - constraint_value=regex_dict['pattern'], - path_to_item=validation_metadata.path_to_item + constraint_value=regex_dict["pattern"], + path_to_item=validation_metadata.path_to_item, ) @classmethod @@ -1020,7 +1271,14 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: + ) -> typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], + typing.Set[ + typing.Union[ + "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple + ] + ], + ]: """ StrBase _validate_oapg Validates that validations pass @@ -1044,7 +1302,9 @@ def __validate_format(cls, arg: typing.Optional[str], validation_metadata: Valid return True except ValueError: raise ApiValueError( - "Invalid value '{}' for type UUID at {}".format(arg, validation_metadata.path_to_item) + "Invalid value '{}' for type UUID at {}".format( + arg, validation_metadata.path_to_item + ) ) @classmethod @@ -1061,22 +1321,21 @@ def _validate_oapg( class CustomIsoparser(isoparser): - @_takes_ascii def parse_isodatetime(self, dt_str): components, pos = self._parse_isodate(dt_str) if len(dt_str) > pos: - if self._sep is None or dt_str[pos:pos + 1] == self._sep: - components += self._parse_isotime(dt_str[pos + 1:]) + if self._sep is None or dt_str[pos : pos + 1] == self._sep: + components += self._parse_isotime(dt_str[pos + 1 :]) else: - raise ValueError('String contains unknown ISO components') + raise ValueError("String contains unknown ISO components") if len(components) > 3 and components[3] == 24: components[3] = 0 return datetime(*components) + timedelta(days=1) if len(components) <= 3: - raise ValueError('Value is not a datetime') + raise ValueError("Value is not a datetime") return datetime(*components) @@ -1085,10 +1344,10 @@ def parse_isodate(self, datestr): components, pos = self._parse_isodate(datestr) if len(datestr) > pos: - raise ValueError('String contains invalid time components') + raise ValueError("String contains invalid time components") if len(components) > 3: - raise ValueError('String contains invalid time components') + raise ValueError("String contains invalid time components") return date(*components) @@ -1111,7 +1370,9 @@ def __validate_format(cls, arg: typing.Optional[str], validation_metadata: Valid except ValueError: raise ApiValueError( "Value does not conform to the required ISO-8601 date format. " - "Invalid value '{}' for type date at {}".format(arg, validation_metadata.path_to_item) + "Invalid value '{}' for type date at {}".format( + arg, validation_metadata.path_to_item + ) ) @classmethod @@ -1142,7 +1403,9 @@ def __validate_format(cls, arg: typing.Optional[str], validation_metadata: Valid except ValueError: raise ApiValueError( "Value does not conform to the required ISO-8601 datetime format. " - "Invalid value '{}' for type datetime at {}".format(arg, validation_metadata.path_to_item) + "Invalid value '{}' for type datetime at {}".format( + arg, validation_metadata.path_to_item + ) ) @classmethod @@ -1179,7 +1442,9 @@ def __validate_format(cls, arg: typing.Optional[str], validation_metadata: Valid except decimal.InvalidOperation: raise ApiValueError( "Value cannot be converted to a decimal. " - "Invalid value '{}' for type decimal at {}".format(arg, validation_metadata.path_to_item) + "Invalid value '{}' for type decimal at {}".format( + arg, validation_metadata.path_to_item + ) ) @classmethod @@ -1214,7 +1479,7 @@ def as_int_oapg(self) -> int: if self.as_tuple().exponent < 0: # this could be represented as an integer but should be represented as a float # because that's what it was serialized from - raise ApiValueError(f'{self} is not an integer') + raise ApiValueError(f"{self} is not an integer") self._as_int = int(self) return self._as_int @@ -1224,79 +1489,89 @@ def as_float_oapg(self) -> float: return self._as_float except AttributeError: if self.as_tuple().exponent >= 0: - raise ApiValueError(f'{self} is not a float') + raise ApiValueError(f"{self} is not a float") self._as_float = float(self) return self._as_float @classmethod - def __check_numeric_validations( - cls, - arg, - validation_metadata: ValidationMetadata - ): - if not hasattr(cls, 'MetaOapg'): + def __check_numeric_validations(cls, arg, validation_metadata: ValidationMetadata): + if not hasattr(cls, "MetaOapg"): return - if cls._is_json_validation_enabled_oapg('multipleOf', - validation_metadata.configuration) and hasattr(cls.MetaOapg, 'multiple_of'): + if cls._is_json_validation_enabled_oapg( + "multipleOf", validation_metadata.configuration + ) and hasattr(cls.MetaOapg, "multiple_of"): multiple_of_value = cls.MetaOapg.multiple_of - if (not (float(arg) / multiple_of_value).is_integer()): + if not (float(arg) / multiple_of_value).is_integer(): # Note 'multipleOf' will be as good as the floating point arithmetic. cls._raise_validation_error_message_oapg( value=arg, constraint_msg="value must be a multiple of", constraint_value=multiple_of_value, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) checking_max_or_min_values = any( - hasattr(cls.MetaOapg, validation_key) for validation_key in { - 'exclusive_maximum', - 'inclusive_maximum', - 'exclusive_minimum', - 'inclusive_minimum', + hasattr(cls.MetaOapg, validation_key) + for validation_key in { + "exclusive_maximum", + "inclusive_maximum", + "exclusive_minimum", + "inclusive_minimum", } ) if not checking_max_or_min_values: return - if (cls._is_json_validation_enabled_oapg('exclusiveMaximum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'exclusive_maximum') and - arg >= cls.MetaOapg.exclusive_maximum): + if ( + cls._is_json_validation_enabled_oapg( + "exclusiveMaximum", validation_metadata.configuration + ) + and hasattr(cls.MetaOapg, "exclusive_maximum") + and arg >= cls.MetaOapg.exclusive_maximum + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value less than", constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('maximum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'inclusive_maximum') and - arg > cls.MetaOapg.inclusive_maximum): + if ( + cls._is_json_validation_enabled_oapg("maximum", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "inclusive_maximum") + and arg > cls.MetaOapg.inclusive_maximum + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value less than or equal to", constraint_value=cls.MetaOapg.inclusive_maximum, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('exclusiveMinimum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'exclusive_minimum') and - arg <= cls.MetaOapg.exclusive_minimum): + if ( + cls._is_json_validation_enabled_oapg( + "exclusiveMinimum", validation_metadata.configuration + ) + and hasattr(cls.MetaOapg, "exclusive_minimum") + and arg <= cls.MetaOapg.exclusive_minimum + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value greater than", constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('minimum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'inclusive_minimum') and - arg < cls.MetaOapg.inclusive_minimum): + if ( + cls._is_json_validation_enabled_oapg("minimum", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "inclusive_minimum") + and arg < cls.MetaOapg.inclusive_minimum + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="must be a value greater than or equal to", constraint_value=cls.MetaOapg.inclusive_minimum, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) @classmethod @@ -1304,7 +1579,14 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: + ) -> typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], + typing.Set[ + typing.Union[ + "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple + ] + ], + ]: """ NumberBase _validate_oapg Validates that validations pass @@ -1334,59 +1616,66 @@ def __validate_items(cls, list_items, validation_metadata: ValidationMetadata): # if we have definitions for an items schema, use it # otherwise accept anything - item_cls = getattr(cls.MetaOapg, 'items', UnsetAnyTypeSchema) + item_cls = getattr(cls.MetaOapg, "items", UnsetAnyTypeSchema) item_cls = cls._get_class_oapg(item_cls) path_to_schemas = {} for i, value in enumerate(list_items): item_validation_metadata = ValidationMetadata( from_server=validation_metadata.from_server, configuration=validation_metadata.configuration, - path_to_item=validation_metadata.path_to_item+(i,), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas + path_to_item=validation_metadata.path_to_item + (i,), + validated_path_to_schemas=validation_metadata.validated_path_to_schemas, ) if item_validation_metadata.validation_ran_earlier(item_cls): add_deeper_validated_schemas(item_validation_metadata, path_to_schemas) continue other_path_to_schemas = item_cls._validate_oapg( - value, validation_metadata=item_validation_metadata) + value, validation_metadata=item_validation_metadata + ) update(path_to_schemas, other_path_to_schemas) return path_to_schemas @classmethod - def __check_tuple_validations( - cls, arg, - validation_metadata: ValidationMetadata): - if not hasattr(cls, 'MetaOapg'): + def __check_tuple_validations(cls, arg, validation_metadata: ValidationMetadata): + if not hasattr(cls, "MetaOapg"): return - if (cls._is_json_validation_enabled_oapg('maxItems', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'max_items') and - len(arg) > cls.MetaOapg.max_items): + if ( + cls._is_json_validation_enabled_oapg("maxItems", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "max_items") + and len(arg) > cls.MetaOapg.max_items + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of items must be less than or equal to", constraint_value=cls.MetaOapg.max_items, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('minItems', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'min_items') and - len(arg) < cls.MetaOapg.min_items): + if ( + cls._is_json_validation_enabled_oapg("minItems", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "min_items") + and len(arg) < cls.MetaOapg.min_items + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of items must be greater than or equal to", constraint_value=cls.MetaOapg.min_items, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('uniqueItems', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'unique_items') and cls.MetaOapg.unique_items and arg): + if ( + cls._is_json_validation_enabled_oapg("uniqueItems", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "unique_items") + and cls.MetaOapg.unique_items + and arg + ): unique_items = set(arg) if len(arg) > len(unique_items): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="duplicate items were found, and the tuple must not contain duplicates because", - constraint_value='unique_items==True', - path_to_item=validation_metadata.path_to_item + constraint_value="unique_items==True", + path_to_item=validation_metadata.path_to_item, ) @classmethod @@ -1420,7 +1709,7 @@ def _validate_oapg( from_server=validation_metadata.from_server, path_to_item=validation_metadata.path_to_item, seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas + validated_path_to_schemas=validation_metadata.validated_path_to_schemas, ) other_path_to_schemas = cls.__validate_items(arg, validation_metadata=updated_vm) update(_path_to_schemas, other_path_to_schemas) @@ -1428,23 +1717,23 @@ def _validate_oapg( @classmethod def _get_items_oapg( - cls: 'Schema', + cls: "Schema", arg: typing.List[typing.Any], path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] + path_to_schemas: typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"] + ], ): - ''' + """ ListBase _get_items_oapg - ''' + """ cast_items = [] for i, value in enumerate(arg): item_path_to_item = path_to_item + (i,) item_cls = path_to_schemas[item_path_to_item] new_value = item_cls._get_new_instance_without_conversion_oapg( - value, - item_path_to_item, - path_to_schemas + value, item_path_to_item, path_to_schemas ) cast_items.append(new_value) @@ -1455,12 +1744,16 @@ class Discriminable: MetaOapg: MetaOapgTyped @classmethod - def _ensure_discriminator_value_present_oapg(cls, disc_property_name: str, validation_metadata: ValidationMetadata, *args): + def _ensure_discriminator_value_present_oapg( + cls, disc_property_name: str, validation_metadata: ValidationMetadata, *args + ): if not args or args and disc_property_name not in args[0]: # The input data does not contain the discriminator property raise ApiValueError( "Cannot deserialize input data due to missing discriminator. " - "The discriminator property '{}' is missing at path: {}".format(disc_property_name, validation_metadata.path_to_item) + "The discriminator property '{}' is missing at path: {}".format( + disc_property_name, validation_metadata.path_to_item + ) ) @classmethod @@ -1468,7 +1761,7 @@ def get_discriminated_class_oapg(cls, disc_property_name: str, disc_payload_valu """ Used in schemas with discriminators """ - if not hasattr(cls.MetaOapg, 'discriminator'): + if not hasattr(cls.MetaOapg, "discriminator"): return None disc = cls.MetaOapg.discriminator() if disc_property_name not in disc: @@ -1476,38 +1769,40 @@ def get_discriminated_class_oapg(cls, disc_property_name: str, disc_payload_valu discriminated_cls = disc[disc_property_name].get(disc_payload_value) if discriminated_cls is not None: return discriminated_cls - if not hasattr(cls, 'MetaOapg'): + if not hasattr(cls, "MetaOapg"): return None elif not ( - hasattr(cls.MetaOapg, 'all_of') or - hasattr(cls.MetaOapg, 'one_of') or - hasattr(cls.MetaOapg, 'any_of') + hasattr(cls.MetaOapg, "all_of") + or hasattr(cls.MetaOapg, "one_of") + or hasattr(cls.MetaOapg, "any_of") ): return None # TODO stop traveling if a cycle is hit - if hasattr(cls.MetaOapg, 'all_of'): + if hasattr(cls.MetaOapg, "all_of"): for allof_cls in cls.MetaOapg.all_of(): discriminated_cls = allof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) + disc_property_name=disc_property_name, disc_payload_value=disc_payload_value + ) if discriminated_cls is not None: return discriminated_cls - if hasattr(cls.MetaOapg, 'one_of'): + if hasattr(cls.MetaOapg, "one_of"): for oneof_cls in cls.MetaOapg.one_of(): discriminated_cls = oneof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) + disc_property_name=disc_property_name, disc_payload_value=disc_payload_value + ) if discriminated_cls is not None: return discriminated_cls - if hasattr(cls.MetaOapg, 'any_of'): + if hasattr(cls.MetaOapg, "any_of"): for anyof_cls in cls.MetaOapg.any_of(): discriminated_cls = anyof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) + disc_property_name=disc_property_name, disc_payload_value=disc_payload_value + ) if discriminated_cls is not None: return discriminated_cls return None class DictBase(Discriminable, ValidatorBase): - @classmethod def __validate_arg_presence(cls, arg): """ @@ -1530,10 +1825,10 @@ def __validate_arg_presence(cls, arg): """ seen_required_properties = set() invalid_arguments = [] - required_property_names = getattr(cls.MetaOapg, 'required', set()) - additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema) - properties = getattr(cls.MetaOapg, 'properties', {}) - property_annotations = getattr(properties, '__annotations__', {}) + required_property_names = getattr(cls.MetaOapg, "required", set()) + additional_properties = getattr(cls.MetaOapg, "additional_properties", UnsetAnyTypeSchema) + properties = getattr(cls.MetaOapg, "properties", {}) + property_annotations = getattr(properties, "__annotations__", {}) for property_name in arg: if property_name in required_property_names: seen_required_properties.add(property_name) @@ -1551,7 +1846,7 @@ def __validate_arg_presence(cls, arg): cls.__name__, len(missing_required_arguments), "s" if len(missing_required_arguments) > 1 else "", - missing_required_arguments + missing_required_arguments, ) ) if invalid_arguments: @@ -1561,7 +1856,7 @@ def __validate_arg_presence(cls, arg): cls.__name__, len(invalid_arguments), "s" if len(invalid_arguments) > 1 else "", - invalid_arguments + invalid_arguments, ) ) @@ -1580,11 +1875,11 @@ def __validate_args(cls, arg, validation_metadata: ValidationMetadata): ApiTypeError - for missing required arguments, or for invalid properties """ path_to_schemas = {} - additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema) - properties = getattr(cls.MetaOapg, 'properties', {}) - property_annotations = getattr(properties, '__annotations__', {}) + additional_properties = getattr(cls.MetaOapg, "additional_properties", UnsetAnyTypeSchema) + properties = getattr(cls.MetaOapg, "properties", {}) + property_annotations = getattr(properties, "__annotations__", {}) for property_name, value in arg.items(): - path_to_item = validation_metadata.path_to_item+(property_name,) + path_to_item = validation_metadata.path_to_item + (property_name,) if property_name in property_annotations: schema = property_annotations[property_name] elif additional_properties is not NotAnyTypeSchema: @@ -1598,49 +1893,53 @@ def __validate_args(cls, arg, validation_metadata: ValidationMetadata): continue schema = additional_properties else: - raise ApiTypeError('Unable to find schema for value={} in class={} at path_to_item={}'.format( - value, cls, validation_metadata.path_to_item+(property_name,) - )) + raise ApiTypeError( + "Unable to find schema for value={} in class={} at path_to_item={}".format( + value, cls, validation_metadata.path_to_item + (property_name,) + ) + ) schema = cls._get_class_oapg(schema) arg_validation_metadata = ValidationMetadata( from_server=validation_metadata.from_server, configuration=validation_metadata.configuration, path_to_item=path_to_item, - validated_path_to_schemas=validation_metadata.validated_path_to_schemas + validated_path_to_schemas=validation_metadata.validated_path_to_schemas, ) if arg_validation_metadata.validation_ran_earlier(schema): add_deeper_validated_schemas(arg_validation_metadata, path_to_schemas) continue - other_path_to_schemas = schema._validate_oapg(value, validation_metadata=arg_validation_metadata) + other_path_to_schemas = schema._validate_oapg( + value, validation_metadata=arg_validation_metadata + ) update(path_to_schemas, other_path_to_schemas) return path_to_schemas @classmethod - def __check_dict_validations( - cls, - arg, - validation_metadata: ValidationMetadata - ): - if not hasattr(cls, 'MetaOapg'): + def __check_dict_validations(cls, arg, validation_metadata: ValidationMetadata): + if not hasattr(cls, "MetaOapg"): return - if (cls._is_json_validation_enabled_oapg('maxProperties', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'max_properties') and - len(arg) > cls.MetaOapg.max_properties): + if ( + cls._is_json_validation_enabled_oapg("maxProperties", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "max_properties") + and len(arg) > cls.MetaOapg.max_properties + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of properties must be less than or equal to", constraint_value=cls.MetaOapg.max_properties, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) - if (cls._is_json_validation_enabled_oapg('minProperties', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'min_properties') and - len(arg) < cls.MetaOapg.min_properties): + if ( + cls._is_json_validation_enabled_oapg("minProperties", validation_metadata.configuration) + and hasattr(cls.MetaOapg, "min_properties") + and len(arg) < cls.MetaOapg.min_properties + ): cls._raise_validation_error_message_oapg( value=arg, constraint_msg="number of properties must be greater than or equal to", constraint_value=cls.MetaOapg.min_properties, - path_to_item=validation_metadata.path_to_item + path_to_item=validation_metadata.path_to_item, ) @classmethod @@ -1680,14 +1979,15 @@ def _validate_oapg( disc_prop_name = list(discriminator.keys())[0] cls._ensure_discriminator_value_present_oapg(disc_prop_name, validation_metadata, arg) discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_prop_name, disc_payload_value=arg[disc_prop_name]) + disc_property_name=disc_prop_name, disc_payload_value=arg[disc_prop_name] + ) if discriminated_cls is None: raise ApiValueError( "Invalid discriminator value was passed in to {}.{} Only the values {} are allowed at {}".format( cls.__name__, disc_prop_name, list(discriminator[disc_prop_name].keys()), - validation_metadata.path_to_item + (disc_prop_name,) + validation_metadata.path_to_item + (disc_prop_name,), ) ) updated_vm = ValidationMetadata( @@ -1695,12 +1995,14 @@ def _validate_oapg( from_server=validation_metadata.from_server, path_to_item=validation_metadata.path_to_item, seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas + validated_path_to_schemas=validation_metadata.validated_path_to_schemas, ) if updated_vm.validation_ran_earlier(discriminated_cls): add_deeper_validated_schemas(updated_vm, _path_to_schemas) return _path_to_schemas - other_path_to_schemas = discriminated_cls._validate_oapg(arg, validation_metadata=updated_vm) + other_path_to_schemas = discriminated_cls._validate_oapg( + arg, validation_metadata=updated_vm + ) update(_path_to_schemas, other_path_to_schemas) return _path_to_schemas @@ -1709,7 +2011,9 @@ def _get_properties_oapg( cls, arg: typing.Dict[str, typing.Any], path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] + path_to_schemas: typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"] + ], ): """ DictBase _get_properties_oapg, this is how properties are set @@ -1721,9 +2025,7 @@ def _get_properties_oapg( property_path_to_item = path_to_item + (property_name_js,) property_cls = path_to_schemas[property_path_to_item] new_value = property_cls._get_new_instance_without_conversion_oapg( - value, - property_path_to_item, - path_to_schemas + value, property_path_to_item, path_to_schemas ) dict_items[property_name_js] = new_value @@ -1731,7 +2033,7 @@ def _get_properties_oapg( def __setattr__(self, name: str, value: typing.Any): if not isinstance(self, FileIO): - raise AttributeError('property setting not supported on immutable instances') + raise AttributeError("property setting not supported on immutable instances") def __getattr__(self, name: str): """ @@ -1758,7 +2060,7 @@ def __getitem__(self, name: str): return super().__getattr__(name) return super().__getitem__(name) - def get_item_oapg(self, name: str) -> typing.Union['AnyTypeSchema', Unset]: + def get_item_oapg(self, name: str) -> typing.Union["AnyTypeSchema", Unset]: # dict_instance[name] accessor if not isinstance(self, frozendict.frozendict): raise NotImplementedError() @@ -1769,11 +2071,37 @@ def get_item_oapg(self, name: str) -> typing.Union['AnyTypeSchema', Unset]: def cast_to_allowed_types( - arg: typing.Union[str, date, datetime, uuid.UUID, decimal.Decimal, int, float, None, dict, frozendict.frozendict, list, tuple, bytes, Schema, io.FileIO, io.BufferedReader], + arg: typing.Union[ + str, + date, + datetime, + uuid.UUID, + decimal.Decimal, + int, + float, + None, + dict, + frozendict.frozendict, + list, + tuple, + bytes, + Schema, + io.FileIO, + io.BufferedReader, + ], from_server: bool, - validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]], - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']), -) -> typing.Union[frozendict.frozendict, tuple, decimal.Decimal, str, bytes, BoolClass, NoneClass, FileIO]: + validated_path_to_schemas: typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], + typing.Set[ + typing.Union[ + "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple + ] + ], + ], + path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(["args[0]"]), +) -> typing.Union[ + frozendict.frozendict, tuple, decimal.Decimal, str, bytes, BoolClass, NoneClass, FileIO +]: """ Casts the input payload arg into the allowed types The input validated_path_to_schemas is mutated by running this function @@ -1804,11 +2132,20 @@ def cast_to_allowed_types( schema_classes.add(cls) validated_path_to_schemas[path_to_item] = schema_classes - type_error = ApiTypeError(f"Invalid type. Required value type is str and passed type was {type(arg)} at {path_to_item}") + type_error = ApiTypeError( + f"Invalid type. Required value type is str and passed type was {type(arg)} at {path_to_item}" + ) if isinstance(arg, str): return str(arg) elif isinstance(arg, (dict, frozendict.frozendict)): - return frozendict.frozendict({key: cast_to_allowed_types(val, from_server, validated_path_to_schemas, path_to_item + (key,)) for key, val in arg.items()}) + return frozendict.frozendict( + { + key: cast_to_allowed_types( + val, from_server, validated_path_to_schemas, path_to_item + (key,) + ) + for key, val in arg.items() + } + ) elif isinstance(arg, (bool, BoolClass)): """ this check must come before isinstance(arg, (int, float)) @@ -1824,10 +2161,17 @@ def cast_to_allowed_types( if decimal_from_float.as_integer_ratio()[1] == 1: # 9.0 -> Decimal('9.0') # 3.4028234663852886e+38 -> Decimal('340282346638528859811704183484516925440.0') - return decimal.Decimal(str(decimal_from_float)+'.0') + return decimal.Decimal(str(decimal_from_float) + ".0") return decimal_from_float elif isinstance(arg, (tuple, list)): - return tuple([cast_to_allowed_types(item, from_server, validated_path_to_schemas, path_to_item + (i,)) for i, item in enumerate(arg)]) + return tuple( + [ + cast_to_allowed_types( + item, from_server, validated_path_to_schemas, path_to_item + (i,) + ) + for i, item in enumerate(arg) + ] + ) elif isinstance(arg, (none_type, NoneClass)): return NoneClass.NONE elif isinstance(arg, (date, datetime)): @@ -1844,11 +2188,10 @@ def cast_to_allowed_types( return bytes(arg) elif isinstance(arg, (io.FileIO, io.BufferedReader)): return FileIO(arg) - raise ValueError('Invalid type passed in got input={} type={}'.format(arg, type(arg))) + raise ValueError("Invalid type passed in got input={} type={}".format(arg, type(arg))) class ComposedBase(Discriminable): - @classmethod def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata): path_to_schemas = defaultdict(set) @@ -1856,7 +2199,9 @@ def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata): if validation_metadata.validation_ran_earlier(allof_cls): add_deeper_validated_schemas(validation_metadata, path_to_schemas) continue - other_path_to_schemas = allof_cls._validate_oapg(arg, validation_metadata=validation_metadata) + other_path_to_schemas = allof_cls._validate_oapg( + arg, validation_metadata=validation_metadata + ) update(path_to_schemas, other_path_to_schemas) return path_to_schemas @@ -1878,7 +2223,9 @@ def __get_oneof_class( add_deeper_validated_schemas(validation_metadata, path_to_schemas) continue try: - path_to_schemas = oneof_cls._validate_oapg(arg, validation_metadata=validation_metadata) + path_to_schemas = oneof_cls._validate_oapg( + arg, validation_metadata=validation_metadata + ) except (ApiValueError, ApiTypeError) as ex: if discriminated_cls is not None and oneof_cls is discriminated_cls: raise ex @@ -1892,18 +2239,15 @@ def __get_oneof_class( elif len(oneof_classes) > 1: raise ApiValueError( "Invalid inputs given to generate an instance of {}. Multiple " - "oneOf schemas {} matched the inputs, but a max of one is allowed.".format(cls, oneof_classes) + "oneOf schemas {} matched the inputs, but a max of one is allowed.".format( + cls, oneof_classes + ) ) # exactly one class matches return path_to_schemas @classmethod - def __get_anyof_classes( - cls, - arg, - discriminated_cls, - validation_metadata: ValidationMetadata - ): + def __get_anyof_classes(cls, arg, discriminated_cls, validation_metadata: ValidationMetadata): anyof_classes = [] path_to_schemas = defaultdict(set) for anyof_cls in cls.MetaOapg.any_of(): @@ -1913,7 +2257,9 @@ def __get_anyof_classes( continue try: - other_path_to_schemas = anyof_cls._validate_oapg(arg, validation_metadata=validation_metadata) + other_path_to_schemas = anyof_cls._validate_oapg( + arg, validation_metadata=validation_metadata + ) except (ApiValueError, ApiTypeError) as ex: if discriminated_cls is not None and anyof_cls is discriminated_cls: raise ex @@ -1932,7 +2278,14 @@ def _validate_oapg( cls, arg, validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: + ) -> typing.Dict[ + typing.Tuple[typing.Union[str, int], ...], + typing.Set[ + typing.Union[ + "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple + ] + ], + ]: """ ComposedBase _validate_oapg We return dynamic classes of different bases depending upon the inputs @@ -1956,12 +2309,12 @@ def _validate_oapg( from_server=validation_metadata.from_server, path_to_item=validation_metadata.path_to_item, seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas + validated_path_to_schemas=validation_metadata.validated_path_to_schemas, ) # process composed schema discriminator = None - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'discriminator'): + if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "discriminator"): discriminator = cls.MetaOapg.discriminator() discriminated_cls = None if discriminator and arg and isinstance(arg, frozendict.frozendict): @@ -1969,7 +2322,8 @@ def _validate_oapg( cls._ensure_discriminator_value_present_oapg(disc_property_name, updated_vm, arg) # get discriminated_cls by looking at the dict in the current class discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=arg[disc_property_name]) + disc_property_name=disc_property_name, disc_payload_value=arg[disc_property_name] + ) if discriminated_cls is None: raise ApiValueError( "Invalid discriminator value '{}' was passed in to {}.{} Only the values {} are allowed at {}".format( @@ -1977,29 +2331,25 @@ def _validate_oapg( cls.__name__, disc_property_name, list(discriminator[disc_property_name].keys()), - updated_vm.path_to_item + (disc_property_name,) + updated_vm.path_to_item + (disc_property_name,), ) ) - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'all_of'): + if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "all_of"): other_path_to_schemas = cls.__get_allof_classes(arg, validation_metadata=updated_vm) update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'one_of'): + if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "one_of"): other_path_to_schemas = cls.__get_oneof_class( - arg, - discriminated_cls=discriminated_cls, - validation_metadata=updated_vm + arg, discriminated_cls=discriminated_cls, validation_metadata=updated_vm ) update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'any_of'): + if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "any_of"): other_path_to_schemas = cls.__get_anyof_classes( - arg, - discriminated_cls=discriminated_cls, - validation_metadata=updated_vm + arg, discriminated_cls=discriminated_cls, validation_metadata=updated_vm ) update(path_to_schemas, other_path_to_schemas) not_cls = None - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'not_schema'): + if hasattr(cls, "MetaOapg") and hasattr(cls.MetaOapg, "not_schema"): not_cls = cls.MetaOapg.not_schema not_cls = cls._get_class_oapg(not_cls) if not_cls: @@ -2021,7 +2371,9 @@ def _validate_oapg( if other_path_to_schemas: raise not_exception - if discriminated_cls is not None and not updated_vm.validation_ran_earlier(discriminated_cls): + if discriminated_cls is not None and not updated_vm.validation_ran_earlier( + discriminated_cls + ): # TODO use an exception from this package here add_deeper_validated_schemas(updated_vm, path_to_schemas) assert discriminated_cls in path_to_schemas[updated_vm.path_to_item] @@ -2038,57 +2390,57 @@ class ComposedSchema( BoolBase, NoneBase, Schema, - NoneFrozenDictTupleStrDecimalBoolMixin + NoneFrozenDictTupleStrDecimalBoolMixin, ): @classmethod - def from_openapi_data_oapg(cls, *args: typing.Any, _configuration: typing.Optional[Configuration] = None, **kwargs): + def from_openapi_data_oapg( + cls, *args: typing.Any, _configuration: typing.Optional[Configuration] = None, **kwargs + ): if not args: if not kwargs: - raise ApiTypeError('{} is missing required input data in args or kwargs'.format(cls.__name__)) - args = (kwargs, ) + raise ApiTypeError( + "{} is missing required input data in args or kwargs".format(cls.__name__) + ) + args = (kwargs,) return super().from_openapi_data_oapg(args[0], _configuration=_configuration) -class ListSchema( - ListBase, - Schema, - TupleMixin -): - +class ListSchema(ListBase, Schema, TupleMixin): @classmethod - def from_openapi_data_oapg(cls, arg: typing.List[typing.Any], _configuration: typing.Optional[Configuration] = None): + def from_openapi_data_oapg( + cls, arg: typing.List[typing.Any], _configuration: typing.Optional[Configuration] = None + ): return super().from_openapi_data_oapg(arg, _configuration=_configuration) - def __new__(cls, _arg: typing.Union[typing.List[typing.Any], typing.Tuple[typing.Any]], **kwargs: Configuration): + def __new__( + cls, + _arg: typing.Union[typing.List[typing.Any], typing.Tuple[typing.Any]], + **kwargs: Configuration, + ): return super().__new__(cls, _arg, **kwargs) -class NoneSchema( - NoneBase, - Schema, - NoneMixin -): - +class NoneSchema(NoneBase, Schema, NoneMixin): @classmethod - def from_openapi_data_oapg(cls, arg: None, _configuration: typing.Optional[Configuration] = None): + def from_openapi_data_oapg( + cls, arg: None, _configuration: typing.Optional[Configuration] = None + ): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: None, **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) -class NumberSchema( - NumberBase, - Schema, - DecimalMixin -): +class NumberSchema(NumberBase, Schema, DecimalMixin): """ This is used for type: number with no format Both integers AND floats are accepted """ @classmethod - def from_openapi_data_oapg(cls, arg: typing.Union[int, float], _configuration: typing.Optional[Configuration] = None): + def from_openapi_data_oapg( + cls, arg: typing.Union[int, float], _configuration: typing.Optional[Configuration] = None + ): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[decimal.Decimal, int, float], **kwargs: Configuration): @@ -2105,13 +2457,16 @@ def as_int_oapg(self) -> int: return self._as_int @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): + def __validate_format( + cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata + ): if isinstance(arg, decimal.Decimal): - denominator = arg.as_integer_ratio()[-1] if denominator != 1: raise ApiValueError( - "Invalid value '{}' for type integer at {}".format(arg, validation_metadata.path_to_item) + "Invalid value '{}' for type integer at {}".format( + arg, validation_metadata.path_to_item + ) ) @classmethod @@ -2129,9 +2484,10 @@ def _validate_oapg( class IntSchema(IntBase, NumberSchema): - @classmethod - def from_openapi_data_oapg(cls, arg: int, _configuration: typing.Optional[Configuration] = None): + def from_openapi_data_oapg( + cls, arg: int, _configuration: typing.Optional[Configuration] = None + ): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[decimal.Decimal, int], **kwargs: Configuration): @@ -2143,11 +2499,15 @@ class Int32Base: __inclusive_maximum = decimal.Decimal(2147483647) @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): + def __validate_format( + cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata + ): if isinstance(arg, decimal.Decimal) and arg.as_tuple().exponent == 0: if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: raise ApiValueError( - "Invalid value '{}' for type int32 at {}".format(arg, validation_metadata.path_to_item) + "Invalid value '{}' for type int32 at {}".format( + arg, validation_metadata.path_to_item + ) ) @classmethod @@ -2163,10 +2523,7 @@ def _validate_oapg( return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Int32Schema( - Int32Base, - IntSchema -): +class Int32Schema(Int32Base, IntSchema): pass @@ -2175,11 +2532,15 @@ class Int64Base: __inclusive_maximum = decimal.Decimal(9223372036854775807) @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): + def __validate_format( + cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata + ): if isinstance(arg, decimal.Decimal) and arg.as_tuple().exponent == 0: if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: raise ApiValueError( - "Invalid value '{}' for type int64 at {}".format(arg, validation_metadata.path_to_item) + "Invalid value '{}' for type int64 at {}".format( + arg, validation_metadata.path_to_item + ) ) @classmethod @@ -2195,23 +2556,24 @@ def _validate_oapg( return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Int64Schema( - Int64Base, - IntSchema -): +class Int64Schema(Int64Base, IntSchema): pass class Float32Base: - __inclusive_minimum = decimal.Decimal(-3.4028234663852886e+38) - __inclusive_maximum = decimal.Decimal(3.4028234663852886e+38) + __inclusive_minimum = decimal.Decimal(-3.4028234663852886e38) + __inclusive_maximum = decimal.Decimal(3.4028234663852886e38) @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): + def __validate_format( + cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata + ): if isinstance(arg, decimal.Decimal): if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: raise ApiValueError( - "Invalid value '{}' for type float at {}".format(arg, validation_metadata.path_to_item) + "Invalid value '{}' for type float at {}".format( + arg, validation_metadata.path_to_item + ) ) @classmethod @@ -2227,26 +2589,28 @@ def _validate_oapg( return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Float32Schema( - Float32Base, - NumberSchema -): - +class Float32Schema(Float32Base, NumberSchema): @classmethod - def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): + def from_openapi_data_oapg( + cls, arg: float, _configuration: typing.Optional[Configuration] = None + ): return super().from_openapi_data_oapg(arg, _configuration=_configuration) class Float64Base: - __inclusive_minimum = decimal.Decimal(-1.7976931348623157E+308) - __inclusive_maximum = decimal.Decimal(1.7976931348623157E+308) + __inclusive_minimum = decimal.Decimal(-1.7976931348623157e308) + __inclusive_maximum = decimal.Decimal(1.7976931348623157e308) @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): + def __validate_format( + cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata + ): if isinstance(arg, decimal.Decimal): if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: raise ApiValueError( - "Invalid value '{}' for type double at {}".format(arg, validation_metadata.path_to_item) + "Invalid value '{}' for type double at {}".format( + arg, validation_metadata.path_to_item + ) ) @classmethod @@ -2261,22 +2625,17 @@ def _validate_oapg( cls.__validate_format(arg, validation_metadata=validation_metadata) return super()._validate_oapg(arg, validation_metadata=validation_metadata) -class Float64Schema( - Float64Base, - NumberSchema -): +class Float64Schema(Float64Base, NumberSchema): @classmethod - def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): + def from_openapi_data_oapg( + cls, arg: float, _configuration: typing.Optional[Configuration] = None + ): # todo check format return super().from_openapi_data_oapg(arg, _configuration=_configuration) -class StrSchema( - StrBase, - Schema, - StrMixin -): +class StrSchema(StrBase, Schema, StrMixin): """ date + datetime string types must inherit from this class That is because one can validate a str payload as both: @@ -2285,7 +2644,9 @@ class StrSchema( """ @classmethod - def from_openapi_data_oapg(cls, arg: str, _configuration: typing.Optional[Configuration] = None) -> 'StrSchema': + def from_openapi_data_oapg( + cls, arg: str, _configuration: typing.Optional[Configuration] = None + ) -> "StrSchema": return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: Configuration): @@ -2293,25 +2654,21 @@ def __new__(cls, _arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: C class UUIDSchema(UUIDBase, StrSchema): - def __new__(cls, _arg: typing.Union[str, uuid.UUID], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) class DateSchema(DateBase, StrSchema): - def __new__(cls, _arg: typing.Union[str, date], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) class DateTimeSchema(DateTimeBase, StrSchema): - def __new__(cls, _arg: typing.Union[str, datetime], **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) class DecimalSchema(DecimalBase, StrSchema): - def __new__(cls, _arg: str, **kwargs: Configuration): """ Note: Decimals may not be passed in because cast_to_allowed_types is only invoked once for payloads @@ -2324,21 +2681,16 @@ def __new__(cls, _arg: str, **kwargs: Configuration): return super().__new__(cls, _arg, **kwargs) -class BytesSchema( - Schema, - BytesMixin -): +class BytesSchema(Schema, BytesMixin): """ this class will subclass bytes and is immutable """ + def __new__(cls, _arg: bytes, **kwargs: Configuration): return super(Schema, cls).__new__(cls, _arg) -class FileSchema( - Schema, - FileMixin -): +class FileSchema(Schema, FileMixin): """ This class is NOT immutable Dynamic classes are built using it for example when AnyType allows in binary data @@ -2364,12 +2716,7 @@ class BinaryBase: pass -class BinarySchema( - ComposedBase, - BinaryBase, - Schema, - BinaryMixin -): +class BinarySchema(ComposedBase, BinaryBase, Schema, BinaryMixin): class MetaOapg: @staticmethod def one_of(): @@ -2378,18 +2725,17 @@ def one_of(): FileSchema, ] - def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwargs: Configuration): + def __new__( + cls, _arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwargs: Configuration + ): return super().__new__(cls, _arg) -class BoolSchema( - BoolBase, - Schema, - BoolMixin -): - +class BoolSchema(BoolBase, Schema, BoolMixin): @classmethod - def from_openapi_data_oapg(cls, arg: bool, _configuration: typing.Optional[Configuration] = None): + def from_openapi_data_oapg( + cls, arg: bool, _configuration: typing.Optional[Configuration] = None + ): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: bool, **kwargs: ValidationMetadata): @@ -2404,7 +2750,7 @@ class AnyTypeSchema( BoolBase, NoneBase, Schema, - NoneFrozenDictTupleStrDecimalBoolFileBytesMixin + NoneFrozenDictTupleStrDecimalBoolFileBytesMixin, ): # Python representation of a schema defined as true or {} pass @@ -2431,7 +2777,7 @@ def __new__( cls, *_args, _configuration: typing.Optional[Configuration] = None, - ) -> 'NotAnyTypeSchema': + ) -> "NotAnyTypeSchema": return super().__new__( cls, *_args, @@ -2439,26 +2785,54 @@ def __new__( ) -class DictSchema( - DictBase, - Schema, - FrozenDictMixin -): +class DictSchema(DictBase, Schema, FrozenDictMixin): @classmethod - def from_openapi_data_oapg(cls, arg: typing.Dict[str, typing.Any], _configuration: typing.Optional[Configuration] = None): + def from_openapi_data_oapg( + cls, + arg: typing.Dict[str, typing.Any], + _configuration: typing.Optional[Configuration] = None, + ): return super().from_openapi_data_oapg(arg, _configuration=_configuration) - def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict], **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, bytes, Schema, Unset, ValidationMetadata]): + def __new__( + cls, + *_args: typing.Union[dict, frozendict.frozendict], + **kwargs: typing.Union[ + dict, + frozendict.frozendict, + list, + tuple, + decimal.Decimal, + float, + int, + str, + date, + datetime, + bool, + None, + bytes, + Schema, + Unset, + ValidationMetadata, + ], + ): return super().__new__(cls, *_args, **kwargs) -schema_type_classes = {NoneSchema, DictSchema, ListSchema, NumberSchema, StrSchema, BoolSchema, AnyTypeSchema} +schema_type_classes = { + NoneSchema, + DictSchema, + ListSchema, + NumberSchema, + StrSchema, + BoolSchema, + AnyTypeSchema, +} @functools.lru_cache() def get_new_class( - class_name: str, - bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...] + class_name: str, bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...] ) -> typing.Type[Schema]: """ Returns a new class that is made with the subclass bases @@ -2472,4 +2846,4 @@ def get_new_class( def log_cache_usage(cache_fn): if LOG_CACHE_USAGE: - print(cache_fn.__name__, cache_fn.cache_info()) \ No newline at end of file + print(cache_fn.__name__, cache_fn.cache_info()) From f2ba3b84a9379c4b50b4faac8da5de7f2eafebe0 Mon Sep 17 00:00:00 2001 From: Anirudh-Scale Date: Tue, 21 Mar 2023 20:17:23 +0000 Subject: [PATCH 06/11] formatting --- launch/api_client/api_client.py | 132 +++------ launch/api_client/apis/path_to_api.py | 25 +- .../v1_model_bundles_clone_with_changes.py | 4 +- .../paths/v1_model_bundles_model_bundle_id.py | 4 +- .../v1_model_endpoints_model_endpoint_id.py | 12 +- .../paths/v1_model_endpoints_schema_json.py | 4 +- launch/api_client/apis/tag_to_api.py | 1 + launch/api_client/apis/tags/default_api.py | 32 ++- launch/api_client/configuration.py | 5 +- .../model/batch_job_serialization_format.py | 1 + launch/api_client/model/batch_job_status.py | 1 + launch/api_client/model/callback_auth.py | 1 + .../api_client/model/callback_basic_auth.py | 17 +- .../api_client/model/callback_basic_auth.pyi | 24 +- launch/api_client/model/callbackm_tls_auth.py | 1 + .../api_client/model/callbackm_tls_auth.pyi | 12 +- .../model/clone_model_bundle_request.py | 5 +- .../model/clone_model_bundle_request.pyi | 8 +- .../model/clone_model_bundle_v1_request.py | 5 +- .../model/clone_model_bundle_v1_request.pyi | 8 +- .../model/create_async_task_response.py | 9 +- .../model/create_async_task_response.pyi | 12 +- .../model/create_async_task_v1_response.py | 9 +- .../model/create_async_task_v1_response.pyi | 12 +- .../model/create_batch_job_request.py | 45 ++-- .../model/create_batch_job_request.pyi | 36 +-- .../create_batch_job_resource_requests.py | 29 +- .../create_batch_job_resource_requests.pyi | 36 +-- .../model/create_batch_job_response.py | 5 +- .../model/create_batch_job_response.pyi | 12 +- .../model/create_batch_job_v1_request.py | 45 ++-- .../model/create_batch_job_v1_request.pyi | 36 +-- .../model/create_batch_job_v1_response.py | 5 +- .../model/create_batch_job_v1_response.pyi | 12 +- .../model/create_model_bundle_request.py | 53 ++-- .../model/create_model_bundle_request.pyi | 56 ++-- .../model/create_model_bundle_response.py | 9 +- .../model/create_model_bundle_response.pyi | 4 +- .../model/create_model_bundle_v1_request.py | 57 ++-- .../model/create_model_bundle_v1_request.pyi | 60 ++--- .../model/create_model_bundle_v1_response.py | 9 +- .../model/create_model_bundle_v1_response.pyi | 4 +- .../model/create_model_endpoint_request.py | 81 ++---- .../model/create_model_endpoint_request.pyi | 100 ++----- .../model/create_model_endpoint_response.py | 1 + .../model/create_model_endpoint_response.pyi | 4 +- .../model/create_model_endpoint_v1_request.py | 89 ++---- .../create_model_endpoint_v1_request.pyi | 108 ++------ .../create_model_endpoint_v1_response.py | 9 +- .../create_model_endpoint_v1_response.pyi | 12 +- .../model/delete_model_endpoint_response.py | 9 +- .../model/delete_model_endpoint_response.pyi | 12 +- .../delete_model_endpoint_v1_response.py | 9 +- .../delete_model_endpoint_v1_response.pyi | 12 +- .../model/endpoint_predict_request.py | 25 +- .../model/endpoint_predict_request.pyi | 28 +- .../model/endpoint_predict_v1_request.py | 25 +- .../model/endpoint_predict_v1_request.pyi | 28 +- .../model/get_async_task_response.py | 13 +- .../model/get_async_task_response.pyi | 20 +- .../model/get_async_task_v1_response.py | 13 +- .../model/get_async_task_v1_response.pyi | 20 +- .../model/get_batch_job_response.py | 9 +- .../model/get_batch_job_response.pyi | 16 +- .../model/get_batch_job_v1_response.py | 9 +- .../model/get_batch_job_v1_response.pyi | 16 +- .../model/get_model_endpoint_response.py | 97 ++----- .../model/get_model_endpoint_response.pyi | 96 ++----- .../model/get_model_endpoint_v1_response.py | 97 ++----- .../model/get_model_endpoint_v1_response.pyi | 96 ++----- launch/api_client/model/gpu_type.py | 1 + .../api_client/model/http_validation_error.py | 9 +- .../model/http_validation_error.pyi | 16 +- .../model/list_model_bundles_response.py | 13 +- .../model/list_model_bundles_response.pyi | 16 +- .../model/list_model_bundles_v1_response.py | 17 +- .../model/list_model_bundles_v1_response.pyi | 16 +- .../model/list_model_endpoints_response.py | 13 +- .../model/list_model_endpoints_response.pyi | 8 +- .../model/list_model_endpoints_v1_response.py | 13 +- .../list_model_endpoints_v1_response.pyi | 8 +- .../model/model_bundle_environment_params.py | 29 +- .../model/model_bundle_environment_params.pyi | 32 +-- .../model/model_bundle_framework.py | 1 + .../model/model_bundle_framework_type.py | 1 + .../api_client/model/model_bundle_order_by.py | 1 + .../model/model_bundle_packaging_type.py | 1 + .../api_client/model/model_bundle_response.py | 69 ++--- .../model/model_bundle_response.pyi | 72 ++--- .../model/model_bundle_v1_response.py | 69 ++--- .../model/model_bundle_v1_response.pyi | 72 ++--- .../model/model_endpoint_deployment_state.py | 25 +- .../model/model_endpoint_deployment_state.pyi | 28 +- .../model/model_endpoint_order_by.py | 1 + .../model/model_endpoint_resource_state.py | 21 +- .../model/model_endpoint_resource_state.pyi | 36 +-- .../api_client/model/model_endpoint_status.py | 1 + .../api_client/model/model_endpoint_type.py | 1 + launch/api_client/model/request_schema.py | 1 + launch/api_client/model/response_schema.py | 1 + .../model/sync_endpoint_predict_response.py | 5 +- .../model/sync_endpoint_predict_response.pyi | 12 +- .../sync_endpoint_predict_v1_response.py | 5 +- .../sync_endpoint_predict_v1_response.pyi | 12 +- launch/api_client/model/task_status.py | 1 + .../model/update_batch_job_request.py | 5 +- .../model/update_batch_job_request.pyi | 12 +- .../model/update_batch_job_response.py | 9 +- .../model/update_batch_job_response.pyi | 12 +- .../model/update_batch_job_v1_request.py | 5 +- .../model/update_batch_job_v1_request.pyi | 12 +- .../model/update_batch_job_v1_response.py | 9 +- .../model/update_batch_job_v1_response.pyi | 12 +- .../model/update_model_endpoint_request.py | 81 ++---- .../model/update_model_endpoint_request.pyi | 88 ++---- .../model/update_model_endpoint_response.py | 1 + .../model/update_model_endpoint_response.pyi | 4 +- .../model/update_model_endpoint_v1_request.py | 89 ++---- .../update_model_endpoint_v1_request.pyi | 96 ++----- .../update_model_endpoint_v1_response.py | 9 +- .../update_model_endpoint_v1_response.pyi | 12 +- launch/api_client/model/validation_error.py | 1 + launch/api_client/model/validation_error.pyi | 8 +- launch/api_client/models/__init__.py | 116 ++++++-- launch/api_client/paths/healthcheck/get.py | 11 +- launch/api_client/paths/healthcheck/get.pyi | 8 +- launch/api_client/paths/healthz/get.py | 11 +- launch/api_client/paths/healthz/get.pyi | 8 +- launch/api_client/paths/readyz/get.py | 11 +- launch/api_client/paths/readyz/get.pyi | 8 +- .../api_client/paths/v1_async_tasks/post.py | 23 +- .../api_client/paths/v1_async_tasks/post.pyi | 20 +- .../paths/v1_async_tasks_task_id/get.py | 19 +- .../paths/v1_async_tasks_task_id/get.pyi | 16 +- launch/api_client/paths/v1_batch_jobs/post.py | 19 +- .../api_client/paths/v1_batch_jobs/post.pyi | 16 +- .../paths/v1_batch_jobs_batch_job_id/get.py | 19 +- .../paths/v1_batch_jobs_batch_job_id/get.pyi | 12 +- .../paths/v1_batch_jobs_batch_job_id/put.py | 23 +- .../paths/v1_batch_jobs_batch_job_id/put.pyi | 20 +- .../api_client/paths/v1_model_bundles/get.py | 15 +- .../api_client/paths/v1_model_bundles/get.pyi | 12 +- .../api_client/paths/v1_model_bundles/post.py | 19 +- .../paths/v1_model_bundles/post.pyi | 16 +- .../post.py | 19 +- .../post.pyi | 16 +- .../paths/v1_model_bundles_latest/get.py | 19 +- .../paths/v1_model_bundles_latest/get.pyi | 12 +- .../v1_model_bundles_model_bundle_id/get.py | 19 +- .../v1_model_bundles_model_bundle_id/get.pyi | 12 +- .../paths/v1_model_endpoints/get.py | 19 +- .../paths/v1_model_endpoints/get.pyi | 12 +- .../paths/v1_model_endpoints/post.py | 23 +- .../paths/v1_model_endpoints/post.pyi | 20 +- .../paths/v1_model_endpoints_api/get.py | 11 +- .../paths/v1_model_endpoints_api/get.pyi | 8 +- .../delete.py | 19 +- .../delete.pyi | 16 +- .../get.py | 19 +- .../get.pyi | 16 +- .../put.py | 27 +- .../put.pyi | 24 +- .../v1_model_endpoints_schema_json/get.py | 11 +- .../v1_model_endpoints_schema_json/get.pyi | 8 +- launch/api_client/paths/v1_sync_tasks/post.py | 23 +- .../api_client/paths/v1_sync_tasks/post.pyi | 20 +- launch/api_client/rest.py | 59 ++-- launch/api_client/schemas.py | 253 +++++------------- 168 files changed, 1377 insertions(+), 2733 deletions(-) diff --git a/launch/api_client/api_client.py b/launch/api_client/api_client.py index 39eaa4f0..9f4dbbba 100644 --- a/launch/api_client/api_client.py +++ b/launch/api_client/api_client.py @@ -25,6 +25,9 @@ import frozendict import typing_extensions import urllib3 +from urllib3._collections import HTTPHeaderDict +from urllib3.fields import RequestField as RequestFieldBase + from launch.api_client import rest from launch.api_client.configuration import Configuration from launch.api_client.exceptions import ApiTypeError, ApiValueError @@ -40,8 +43,6 @@ none_type, unset, ) -from urllib3._collections import HTTPHeaderDict -from urllib3.fields import RequestField as RequestFieldBase class RequestField(RequestFieldBase): @@ -73,9 +74,7 @@ def default(self, obj): return {key: self.default(val) for key, val in obj.items()} elif isinstance(obj, (list, tuple)): return [self.default(item) for item in obj] - raise ApiValueError( - "Unable to prepare type {} for serialization".format(obj.__class__.__name__) - ) + raise ApiValueError("Unable to prepare type {} for serialization".format(obj.__class__.__name__)) class ParameterInType(enum.Enum): @@ -147,9 +146,7 @@ def __ref6570_item_value(in_data: typing.Any, percent_encode: bool): elif isinstance(in_data, dict) and not in_data: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return None - raise ApiValueError( - "Unable to generate a ref6570 item representation of {}".format(in_data) - ) + raise ApiValueError("Unable to generate a ref6570 item representation of {}".format(in_data)) @staticmethod def _to_dict(name: str, value: str): @@ -212,12 +209,8 @@ def __ref6570_dict_expansion( var_name_piece: str, named_parameter_expansion: bool, ) -> str: - in_data_transformed = { - key: cls.__ref6570_item_value(val, percent_encode) for key, val in in_data.items() - } - in_data_transformed = { - key: val for key, val in in_data_transformed.items() if val is not None - } + in_data_transformed = {key: cls.__ref6570_item_value(val, percent_encode) for key, val in in_data.items()} + in_data_transformed = {key: val for key, val in in_data_transformed.items() if val is not None} if not in_data_transformed: # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 return "" @@ -380,9 +373,7 @@ class ParameterBase(JSONDetector): _json_encoder = JSONEncoder() @classmethod - def __verify_style_to_in_type( - cls, style: typing.Optional[ParameterStyle], in_type: ParameterInType - ): + def __verify_style_to_in_type(cls, style: typing.Optional[ParameterStyle], in_type: ParameterInType): if style is None: return in_type_set = cls.__style_to_in_type[style] @@ -407,13 +398,9 @@ def __init__( if schema is None and content is None: raise ValueError("Value missing; Pass in either schema or content") if schema and content: - raise ValueError( - "Too many values provided. Both schema and content were provided. Only one may be input" - ) + raise ValueError("Too many values provided. Both schema and content were provided. Only one may be input") if name in self.__disallowed_header_names and in_type is ParameterInType.HEADER: - raise ValueError( - "Invalid name, name may not be one of {}".format(self.__disallowed_header_names) - ) + raise ValueError("Invalid name, name may not be one of {}".format(self.__disallowed_header_names)) self.__verify_style_to_in_type(style, in_type) if content is None and style is None: style = self.__in_type_to_default_style[in_type] @@ -490,9 +477,7 @@ def __serialize_simple( self, in_data: typing.Union[None, int, float, str, bool, dict, list], ) -> typing.Dict[str, str]: - value = self._serialize_simple( - in_data=in_data, name=self.name, explode=self.explode, percent_encode=True - ) + value = self._serialize_simple(in_data=in_data, name=self.name, explode=self.explode, percent_encode=True) return self._to_dict(self.name, value) def serialize( @@ -539,9 +524,7 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self._to_dict(self.name, value) - raise NotImplementedError( - "Serialization of {} has not yet been implemented".format(content_type) - ) + raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) class QueryParameter(ParameterBase, StyleFormSerializer): @@ -676,12 +659,8 @@ def serialize( cast_in_data = self._json_encoder.default(cast_in_data) if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data, eliminate_whitespace=True) - return self._to_dict( - self.name, next(prefix_separator_iterator) + self.name + "=" + quote(value) - ) - raise NotImplementedError( - "Serialization of {} has not yet been implemented".format(content_type) - ) + return self._to_dict(self.name, next(prefix_separator_iterator) + self.name + "=" + quote(value)) + raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) class CookieParameter(ParameterBase, StyleFormSerializer): @@ -754,9 +733,7 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self._to_dict(self.name, value) - raise NotImplementedError( - "Serialization of {} has not yet been implemented".format(content_type) - ) + raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) class HeaderParameter(ParameterBase, StyleSimpleSerializer): @@ -826,9 +803,7 @@ def serialize( if self._content_type_is_json(content_type): value = self._serialize_json(cast_in_data) return self.__to_headers(((self.name, value),)) - raise NotImplementedError( - "Serialization of {} has not yet been implemented".format(content_type) - ) + raise NotImplementedError("Serialization of {} has not yet been implemented".format(content_type)) class Encoding: @@ -923,9 +898,7 @@ def __file_name_from_response_url(response_url: typing.Optional[str]) -> typing. return None @classmethod - def __file_name_from_content_disposition( - cls, content_disposition: typing.Optional[str] - ) -> typing.Optional[str]: + def __file_name_from_content_disposition(cls, content_disposition: typing.Optional[str]) -> typing.Optional[str]: if content_disposition is None: return None match = cls.__filename_content_disposition_pattern.search(content_disposition) @@ -972,17 +945,15 @@ def __deserialize_multipart_form_data( ) -> 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(part.get_content_charset()) + part.get_param("name", header="Content-Disposition"): part.get_payload(decode=True).decode( + part.get_content_charset() + ) if part.get_content_charset() else part.get_payload() for part in msg.get_payload() } - def deserialize( - self, response: urllib3.HTTPResponse, configuration: Configuration - ) -> ApiResponse: + def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: content_type = response.getheader("content-type") deserialized_body = unset streamed = response.supports_chunked_reads() @@ -1001,9 +972,7 @@ def deserialize( body_schema = self.content[content_type].schema if body_schema is None: # some specs do not define response content media type schemas - return self.response_cls( - response=response, headers=deserialized_headers, body=unset - ) + return self.response_cls(response=response, headers=deserialized_headers, body=unset) if self._content_type_is_json(content_type): body_data = self.__deserialize_json(response) @@ -1013,18 +982,12 @@ def deserialize( body_data = self.__deserialize_multipart_form_data(response) content_type = "multipart/form-data" else: - raise NotImplementedError( - "Deserialization of {} has not yet been implemented".format(content_type) - ) - deserialized_body = body_schema.from_openapi_data_oapg( - body_data, _configuration=configuration - ) + raise NotImplementedError("Deserialization of {} has not yet been implemented".format(content_type)) + deserialized_body = body_schema.from_openapi_data_oapg(body_data, _configuration=configuration) elif streamed: response.release_conn() - return self.response_cls( - response=response, headers=deserialized_headers, body=deserialized_body - ) + return self.response_cls(response=response, headers=deserialized_headers, body=deserialized_body) class ApiClient: @@ -1247,26 +1210,17 @@ def request( url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body ) elif method == "POST": - return self.rest_client.POST( - url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body - ) + return self.rest_client.POST(url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body) elif method == "PUT": - return self.rest_client.PUT( - url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body - ) + return self.rest_client.PUT(url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body) elif method == "PATCH": return self.rest_client.PATCH( url, headers=headers, fields=fields, stream=stream, timeout=timeout, body=body ) elif method == "DELETE": - return self.rest_client.DELETE( - url, headers=headers, stream=stream, timeout=timeout, body=body - ) + return self.rest_client.DELETE(url, headers=headers, stream=stream, timeout=timeout, body=body) else: - raise ApiValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) + raise ApiValueError("http method must be `GET`, `HEAD`, `OPTIONS`," " `POST`, `PATCH`, `PUT` or `DELETE`.") def update_params_for_auth(self, headers, auth_settings, resource_path, method, body): """Updates header and query params based on authentication setting. @@ -1368,17 +1322,13 @@ def _get_host_oapg( configuration = self.api_client.configuration try: if host_index is None: - index = configuration.server_operation_index.get( - operation_id, configuration.server_index - ) + index = configuration.server_operation_index.get(operation_id, configuration.server_index) else: index = host_index server_variables = configuration.server_operation_variables.get( operation_id, configuration.server_variables ) - host = configuration.get_host_from_settings( - index, variables=server_variables, servers=servers - ) + host = configuration.get_host_from_settings(index, variables=server_variables, servers=servers) except IndexError: if servers: raise ApiValueError("Invalid host index. Must be 0 <= index < %s" % len(servers)) @@ -1441,21 +1391,15 @@ def __multipart_form_item(self, key: str, value: Schema) -> RequestField: request_field.make_multipart(content_type="application/octet-stream") elif isinstance(value, FileIO): # TODO use content.encoding to limit allowed content types if they are present - request_field = RequestField.from_tuples( - key, (os.path.basename(value.name), value.read()) - ) + request_field = RequestField.from_tuples(key, (os.path.basename(value.name), value.read())) value.close() else: request_field = self.__multipart_json_item(key=key, value=value) return request_field - def __serialize_multipart_form_data( - self, in_data: Schema - ) -> typing.Dict[str, typing.Tuple[RequestField, ...]]: + def __serialize_multipart_form_data(self, in_data: Schema) -> typing.Dict[str, typing.Tuple[RequestField, ...]]: if not isinstance(in_data, frozendict.frozendict): - raise ValueError( - f"Unable to serialize {in_data} to multipart/form-data because it is not a dict of data" - ) + raise ValueError(f"Unable to serialize {in_data} to multipart/form-data because it is not a dict of data") """ In a multipart/form-data request body, each schema property, or each element of a schema array property, takes a section in the payload with an internal header as defined by RFC7578. The serialization strategy @@ -1487,9 +1431,7 @@ def __serialize_multipart_form_data( return dict(fields=tuple(fields)) - def __serialize_application_octet_stream( - self, in_data: BinarySchema - ) -> typing.Dict[str, bytes]: + def __serialize_application_octet_stream(self, in_data: BinarySchema) -> typing.Dict[str, bytes]: if isinstance(in_data, bytes): return dict(body=in_data) # FileIO type @@ -1538,6 +1480,4 @@ def serialize(self, in_data: typing.Any, content_type: str) -> SerializedRequest return self.__serialize_application_x_www_form_data(cast_in_data) elif content_type == "application/octet-stream": return self.__serialize_application_octet_stream(cast_in_data) - raise NotImplementedError( - "Serialization has not yet been implemented for {}".format(content_type) - ) + raise NotImplementedError("Serialization has not yet been implemented for {}".format(content_type)) diff --git a/launch/api_client/apis/path_to_api.py b/launch/api_client/apis/path_to_api.py index 7c6507df..89fa65fe 100644 --- a/launch/api_client/apis/path_to_api.py +++ b/launch/api_client/apis/path_to_api.py @@ -1,23 +1,36 @@ import typing_extensions + from launch.api_client.apis.paths.healthcheck import Healthcheck from launch.api_client.apis.paths.healthz import Healthz from launch.api_client.apis.paths.readyz import Readyz from launch.api_client.apis.paths.v1_async_tasks import V1AsyncTasks -from launch.api_client.apis.paths.v1_async_tasks_task_id import V1AsyncTasksTaskId +from launch.api_client.apis.paths.v1_async_tasks_task_id import ( + V1AsyncTasksTaskId, +) from launch.api_client.apis.paths.v1_batch_jobs import V1BatchJobs -from launch.api_client.apis.paths.v1_batch_jobs_batch_job_id import V1BatchJobsBatchJobId +from launch.api_client.apis.paths.v1_batch_jobs_batch_job_id import ( + V1BatchJobsBatchJobId, +) 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, ) -from launch.api_client.apis.paths.v1_model_bundles_latest import V1ModelBundlesLatest -from launch.api_client.apis.paths.v1_model_bundles_model_bundle_id import V1ModelBundlesModelBundleId +from launch.api_client.apis.paths.v1_model_bundles_latest import ( + V1ModelBundlesLatest, +) +from launch.api_client.apis.paths.v1_model_bundles_model_bundle_id import ( + V1ModelBundlesModelBundleId, +) from launch.api_client.apis.paths.v1_model_endpoints import V1ModelEndpoints -from launch.api_client.apis.paths.v1_model_endpoints_api import V1ModelEndpointsApi +from launch.api_client.apis.paths.v1_model_endpoints_api import ( + V1ModelEndpointsApi, +) from launch.api_client.apis.paths.v1_model_endpoints_model_endpoint_id import ( V1ModelEndpointsModelEndpointId, ) -from launch.api_client.apis.paths.v1_model_endpoints_schema_json import V1ModelEndpointsSchemaJson +from launch.api_client.apis.paths.v1_model_endpoints_schema_json import ( + V1ModelEndpointsSchemaJson, +) from launch.api_client.apis.paths.v1_sync_tasks import V1SyncTasks from launch.api_client.paths import PathValues diff --git a/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py b/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py index caf9cf08..df0644e3 100644 --- a/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py +++ b/launch/api_client/apis/paths/v1_model_bundles_clone_with_changes.py @@ -1,4 +1,6 @@ -from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ApiForpost +from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ( + ApiForpost, +) class V1ModelBundlesCloneWithChanges( diff --git a/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py b/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py index c513ff35..0e646257 100644 --- a/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py +++ b/launch/api_client/apis/paths/v1_model_bundles_model_bundle_id.py @@ -1,4 +1,6 @@ -from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ApiForget +from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ( + ApiForget, +) class V1ModelBundlesModelBundleId( diff --git a/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py b/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py index b3f11069..7f4d3e3a 100644 --- a/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py +++ b/launch/api_client/apis/paths/v1_model_endpoints_model_endpoint_id.py @@ -1,6 +1,12 @@ -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ApiFordelete -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ApiForget -from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ApiForput +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.delete import ( + ApiFordelete, +) +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.get import ( + ApiForget, +) +from launch.api_client.paths.v1_model_endpoints_model_endpoint_id.put import ( + ApiForput, +) class V1ModelEndpointsModelEndpointId( diff --git a/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py b/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py index de361413..7c62f95b 100644 --- a/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py +++ b/launch/api_client/apis/paths/v1_model_endpoints_schema_json.py @@ -1,4 +1,6 @@ -from launch.api_client.paths.v1_model_endpoints_schema_json.get import ApiForget +from launch.api_client.paths.v1_model_endpoints_schema_json.get import ( + ApiForget, +) class V1ModelEndpointsSchemaJson( diff --git a/launch/api_client/apis/tag_to_api.py b/launch/api_client/apis/tag_to_api.py index 7c03da75..8b3c0d6d 100644 --- a/launch/api_client/apis/tag_to_api.py +++ b/launch/api_client/apis/tag_to_api.py @@ -1,4 +1,5 @@ import typing_extensions + from launch.api_client.apis.tags import TagValues from launch.api_client.apis.tags.default_api import DefaultApi diff --git a/launch/api_client/apis/tags/default_api.py b/launch/api_client/apis/tags/default_api.py index 4866826d..6a2bb4aa 100644 --- a/launch/api_client/apis/tags/default_api.py +++ b/launch/api_client/apis/tags/default_api.py @@ -12,17 +12,27 @@ from launch.api_client.paths.healthcheck.get import HealthcheckHealthcheckGet from launch.api_client.paths.healthz.get import HealthcheckHealthzGet from launch.api_client.paths.readyz.get import HealthcheckReadyzGet -from launch.api_client.paths.v1_async_tasks.post import CreateAsyncInferenceTaskV1AsyncTasksPost +from launch.api_client.paths.v1_async_tasks.post import ( + CreateAsyncInferenceTaskV1AsyncTasksPost, +) from launch.api_client.paths.v1_async_tasks_task_id.get import ( GetAsyncInferenceTaskV1AsyncTasksTaskIdGet, ) -from launch.api_client.paths.v1_batch_jobs.post import CreateBatchJobV1BatchJobsPost -from launch.api_client.paths.v1_batch_jobs_batch_job_id.get import GetBatchJobV1BatchJobsBatchJobIdGet +from launch.api_client.paths.v1_batch_jobs.post import ( + CreateBatchJobV1BatchJobsPost, +) +from launch.api_client.paths.v1_batch_jobs_batch_job_id.get import ( + GetBatchJobV1BatchJobsBatchJobIdGet, +) from launch.api_client.paths.v1_batch_jobs_batch_job_id.put import ( UpdateBatchJobV1BatchJobsBatchJobIdPut, ) -from launch.api_client.paths.v1_model_bundles.get import ListModelBundlesV1ModelBundlesGet -from launch.api_client.paths.v1_model_bundles.post import CreateModelBundleV1ModelBundlesPost +from launch.api_client.paths.v1_model_bundles.get import ( + ListModelBundlesV1ModelBundlesGet, +) +from launch.api_client.paths.v1_model_bundles.post import ( + CreateModelBundleV1ModelBundlesPost, +) from launch.api_client.paths.v1_model_bundles_clone_with_changes.post import ( CloneModelBundleWithChangesV1ModelBundlesCloneWithChangesPost, ) @@ -32,8 +42,12 @@ from launch.api_client.paths.v1_model_bundles_model_bundle_id.get import ( GetModelBundleV1ModelBundlesModelBundleIdGet, ) -from launch.api_client.paths.v1_model_endpoints.get import ListModelEndpointsV1ModelEndpointsGet -from launch.api_client.paths.v1_model_endpoints.post import CreateModelEndpointV1ModelEndpointsPost +from launch.api_client.paths.v1_model_endpoints.get import ( + ListModelEndpointsV1ModelEndpointsGet, +) +from launch.api_client.paths.v1_model_endpoints.post import ( + CreateModelEndpointV1ModelEndpointsPost, +) from launch.api_client.paths.v1_model_endpoints_api.get import ( GetModelEndpointsApiV1ModelEndpointsApiGet, ) @@ -49,7 +63,9 @@ from launch.api_client.paths.v1_model_endpoints_schema_json.get import ( GetModelEndpointsSchemaV1ModelEndpointsSchemaJsonGet, ) -from launch.api_client.paths.v1_sync_tasks.post import CreateSyncInferenceTaskV1SyncTasksPost +from launch.api_client.paths.v1_sync_tasks.post import ( + CreateSyncInferenceTaskV1SyncTasksPost, +) class DefaultApi( diff --git a/launch/api_client/configuration.py b/launch/api_client/configuration.py index 1a596048..bf4be79b 100644 --- a/launch/api_client/configuration.py +++ b/launch/api_client/configuration.py @@ -16,6 +16,7 @@ from http import client as http_client import urllib3 + from launch.api_client.exceptions import ApiValueError JSON_SCHEMA_VALIDATION_KEYWORDS = { @@ -440,9 +441,7 @@ def get_host_from_settings(self, index, variables=None, servers=None): if "enum_values" in variable and used_value not in variable["enum_values"]: raise ValueError( "The variable `{0}` in the host URL has invalid value " - "{1}. Must be {2}.".format( - variable_name, variables[variable_name], variable["enum_values"] - ) + "{1}. Must be {2}.".format(variable_name, variables[variable_name], variable["enum_values"]) ) url = url.replace("{" + variable_name + "}", used_value) diff --git a/launch/api_client/model/batch_job_serialization_format.py b/launch/api_client/model/batch_job_serialization_format.py index e87af9ac..7bfc3103 100644 --- a/launch/api_client/model/batch_job_serialization_format.py +++ b/launch/api_client/model/batch_job_serialization_format.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/batch_job_status.py b/launch/api_client/model/batch_job_status.py index 543bfbc3..e2e71a79 100644 --- a/launch/api_client/model/batch_job_status.py +++ b/launch/api_client/model/batch_job_status.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/callback_auth.py b/launch/api_client/model/callback_auth.py index 2ea49c41..493310d9 100644 --- a/launch/api_client/model/callback_auth.py +++ b/launch/api_client/model/callback_auth.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/callback_basic_auth.py b/launch/api_client/model/callback_basic_auth.py index 6ce83ae9..7e2027d6 100644 --- a/launch/api_client/model/callback_basic_auth.py +++ b/launch/api_client/model/callback_basic_auth.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -64,15 +65,11 @@ def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["password"] - ) -> MetaOapg.properties.password: + def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["username"] - ) -> MetaOapg.properties.username: + def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... @typing.overload @@ -98,15 +95,11 @@ def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["password"] - ) -> MetaOapg.properties.password: + def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["username"] - ) -> MetaOapg.properties.username: + def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... @typing.overload diff --git a/launch/api_client/model/callback_basic_auth.pyi b/launch/api_client/model/callback_basic_auth.pyi index 3ebc0a17..39f43b29 100644 --- a/launch/api_client/model/callback_basic_auth.pyi +++ b/launch/api_client/model/callback_basic_auth.pyi @@ -54,13 +54,9 @@ class CallbackBasicAuth(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["password"] - ) -> MetaOapg.properties.password: ... + def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["username"] - ) -> MetaOapg.properties.username: ... + def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -77,21 +73,13 @@ class CallbackBasicAuth(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["kind"] - ) -> MetaOapg.properties.kind: ... + def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["password"] - ) -> MetaOapg.properties.password: ... + def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["username"] - ) -> MetaOapg.properties.username: ... + def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/callbackm_tls_auth.py b/launch/api_client/model/callbackm_tls_auth.py index 863da381..c153d503 100644 --- a/launch/api_client/model/callbackm_tls_auth.py +++ b/launch/api_client/model/callbackm_tls_auth.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/callbackm_tls_auth.pyi b/launch/api_client/model/callbackm_tls_auth.pyi index c002b50c..ef8b7dc0 100644 --- a/launch/api_client/model/callbackm_tls_auth.pyi +++ b/launch/api_client/model/callbackm_tls_auth.pyi @@ -74,19 +74,13 @@ class CallbackmTLSAuth(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cert"] - ) -> MetaOapg.properties.cert: ... + def get_item_oapg(self, name: typing_extensions.Literal["cert"]) -> MetaOapg.properties.cert: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["kind"] - ) -> MetaOapg.properties.kind: ... + def get_item_oapg(self, name: typing_extensions.Literal["kind"]) -> MetaOapg.properties.kind: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/clone_model_bundle_request.py b/launch/api_client/model/clone_model_bundle_request.py index 97fdfdd2..02ca728c 100644 --- a/launch/api_client/model/clone_model_bundle_request.py +++ b/launch/api_client/model/clone_model_bundle_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -53,9 +54,7 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["new_app_config"] - ) -> MetaOapg.properties.new_app_config: + def __getitem__(self, name: typing_extensions.Literal["new_app_config"]) -> MetaOapg.properties.new_app_config: ... @typing.overload diff --git a/launch/api_client/model/clone_model_bundle_request.pyi b/launch/api_client/model/clone_model_bundle_request.pyi index dcd3da4f..0293a604 100644 --- a/launch/api_client/model/clone_model_bundle_request.pyi +++ b/launch/api_client/model/clone_model_bundle_request.pyi @@ -49,9 +49,7 @@ class CloneModelBundleRequest(schemas.DictSchema): 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: ... + 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__( @@ -75,9 +73,7 @@ class CloneModelBundleRequest(schemas.DictSchema): 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: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/clone_model_bundle_v1_request.py b/launch/api_client/model/clone_model_bundle_v1_request.py index ae09a3a7..dc711b84 100644 --- a/launch/api_client/model/clone_model_bundle_v1_request.py +++ b/launch/api_client/model/clone_model_bundle_v1_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -53,9 +54,7 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["new_app_config"] - ) -> MetaOapg.properties.new_app_config: + def __getitem__(self, name: typing_extensions.Literal["new_app_config"]) -> MetaOapg.properties.new_app_config: ... @typing.overload diff --git a/launch/api_client/model/clone_model_bundle_v1_request.pyi b/launch/api_client/model/clone_model_bundle_v1_request.pyi index f5122b2e..dc37a0dc 100644 --- a/launch/api_client/model/clone_model_bundle_v1_request.pyi +++ b/launch/api_client/model/clone_model_bundle_v1_request.pyi @@ -49,9 +49,7 @@ class CloneModelBundleV1Request(schemas.DictSchema): 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: ... + 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__( @@ -75,9 +73,7 @@ class CloneModelBundleV1Request(schemas.DictSchema): 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: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/create_async_task_response.py b/launch/api_client/model/create_async_task_response.py index 2de4d825..8944ed10 100644 --- a/launch/api_client/model/create_async_task_response.py +++ b/launch/api_client/model/create_async_task_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -43,9 +44,7 @@ class properties: task_id: MetaOapg.properties.task_id @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload @@ -63,9 +62,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload diff --git a/launch/api_client/model/create_async_task_response.pyi b/launch/api_client/model/create_async_task_response.pyi index 25574c28..ea463023 100644 --- a/launch/api_client/model/create_async_task_response.pyi +++ b/launch/api_client/model/create_async_task_response.pyi @@ -41,9 +41,7 @@ class CreateAsyncTaskResponse(schemas.DictSchema): task_id: MetaOapg.properties.task_id @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: ... + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -56,13 +54,9 @@ class CreateAsyncTaskResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/create_async_task_v1_response.py b/launch/api_client/model/create_async_task_v1_response.py index 444046a8..0acca935 100644 --- a/launch/api_client/model/create_async_task_v1_response.py +++ b/launch/api_client/model/create_async_task_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -43,9 +44,7 @@ class properties: task_id: MetaOapg.properties.task_id @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload @@ -57,9 +56,7 @@ def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id",], return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload diff --git a/launch/api_client/model/create_async_task_v1_response.pyi b/launch/api_client/model/create_async_task_v1_response.pyi index ecb438a5..519e6dcd 100644 --- a/launch/api_client/model/create_async_task_v1_response.pyi +++ b/launch/api_client/model/create_async_task_v1_response.pyi @@ -41,22 +41,16 @@ class CreateAsyncTaskV1Response(schemas.DictSchema): task_id: MetaOapg.properties.task_id @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: ... + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_batch_job_request.py b/launch/api_client/model/create_batch_job_request.py index 5913832c..52864d0c 100644 --- a/launch/api_client/model/create_batch_job_request.py +++ b/launch/api_client/model/create_batch_job_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -102,9 +103,7 @@ def serialization_format() -> typing.Type["BatchJobSerializationFormat"]: labels: MetaOapg.properties.labels @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["input_path"] - ) -> MetaOapg.properties.input_path: + def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... @typing.overload @@ -112,21 +111,15 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["resource_requests"] - ) -> "CreateBatchJobResourceRequests": + def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["serialization_format"] - ) -> "BatchJobSerializationFormat": + def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... @typing.overload @@ -150,33 +143,23 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["input_path"] - ) -> MetaOapg.properties.input_path: + def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["resource_requests"] - ) -> "CreateBatchJobResourceRequests": + def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["serialization_format"] - ) -> "BatchJobSerializationFormat": + def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... @typing.overload @@ -250,5 +233,9 @@ def __new__( ) -from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat -from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests +from launch.api_client.model.batch_job_serialization_format import ( + BatchJobSerializationFormat, +) +from launch.api_client.model.create_batch_job_resource_requests import ( + CreateBatchJobResourceRequests, +) diff --git a/launch/api_client/model/create_batch_job_request.pyi b/launch/api_client/model/create_batch_job_request.pyi index 8d7bb2ce..a732e42e 100644 --- a/launch/api_client/model/create_batch_job_request.pyi +++ b/launch/api_client/model/create_batch_job_request.pyi @@ -94,25 +94,17 @@ class CreateBatchJobRequest(schemas.DictSchema): labels: MetaOapg.properties.labels @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["input_path"] - ) -> MetaOapg.properties.input_path: ... + def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["resource_requests"] - ) -> "CreateBatchJobResourceRequests": ... + def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["serialization_format"] - ) -> "BatchJobSerializationFormat": ... + def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -131,13 +123,9 @@ class CreateBatchJobRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["input_path"] - ) -> MetaOapg.properties.input_path: ... + def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_bundle_id"] @@ -151,9 +139,7 @@ class CreateBatchJobRequest(schemas.DictSchema): self, name: typing_extensions.Literal["serialization_format"] ) -> "BatchJobSerializationFormat": ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -219,5 +205,9 @@ class CreateBatchJobRequest(schemas.DictSchema): **kwargs, ) -from launch_client.model.batch_job_serialization_format import BatchJobSerializationFormat -from launch_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests +from launch_client.model.batch_job_serialization_format import ( + BatchJobSerializationFormat, +) +from launch_client.model.create_batch_job_resource_requests import ( + CreateBatchJobResourceRequests, +) diff --git a/launch/api_client/model/create_batch_job_resource_requests.py b/launch/api_client/model/create_batch_job_resource_requests.py index 873734d0..48c4adb1 100644 --- a/launch/api_client/model/create_batch_job_resource_requests.py +++ b/launch/api_client/model/create_batch_job_resource_requests.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -270,9 +271,7 @@ def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload @@ -280,15 +279,11 @@ def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload @@ -320,9 +315,7 @@ def get_item_oapg( ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload @@ -403,12 +396,8 @@ def __new__( schemas.Unset, ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - gpus: typing.Union[ - MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - max_workers: typing.Union[ - MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, memory: typing.Union[ MetaOapg.properties.memory, dict, @@ -429,9 +418,7 @@ def __new__( io.BufferedReader, schemas.Unset, ] = schemas.unset, - per_worker: typing.Union[ - MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/create_batch_job_resource_requests.pyi b/launch/api_client/model/create_batch_job_resource_requests.pyi index a1330c2c..c3f466a3 100644 --- a/launch/api_client/model/create_batch_job_resource_requests.pyi +++ b/launch/api_client/model/create_batch_job_resource_requests.pyi @@ -255,21 +255,13 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: ... + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: ... + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: ... + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: ... + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -294,9 +286,7 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): self, name: typing_extensions.Literal["cpus"] ) -> typing.Union[MetaOapg.properties.cpus, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["gpus"] @@ -318,9 +308,7 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): self, name: typing_extensions.Literal["storage"] ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -364,12 +352,8 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): schemas.Unset, ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - gpus: typing.Union[ - MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - max_workers: typing.Union[ - MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, memory: typing.Union[ MetaOapg.properties.memory, dict, @@ -390,9 +374,7 @@ class CreateBatchJobResourceRequests(schemas.DictSchema): io.BufferedReader, schemas.Unset, ] = schemas.unset, - per_worker: typing.Union[ - MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/create_batch_job_response.py b/launch/api_client/model/create_batch_job_response.py index 3c9eff52..f140358a 100644 --- a/launch/api_client/model/create_batch_job_response.py +++ b/launch/api_client/model/create_batch_job_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -61,9 +62,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["job_id"] - ) -> MetaOapg.properties.job_id: + def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... @typing.overload diff --git a/launch/api_client/model/create_batch_job_response.pyi b/launch/api_client/model/create_batch_job_response.pyi index e9fbec87..2421b064 100644 --- a/launch/api_client/model/create_batch_job_response.pyi +++ b/launch/api_client/model/create_batch_job_response.pyi @@ -41,9 +41,7 @@ class CreateBatchJobResponse(schemas.DictSchema): job_id: MetaOapg.properties.job_id @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["job_id"] - ) -> MetaOapg.properties.job_id: ... + def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -56,13 +54,9 @@ class CreateBatchJobResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["job_id"] - ) -> MetaOapg.properties.job_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/create_batch_job_v1_request.py b/launch/api_client/model/create_batch_job_v1_request.py index 3cb2cd1a..0dfcde1b 100644 --- a/launch/api_client/model/create_batch_job_v1_request.py +++ b/launch/api_client/model/create_batch_job_v1_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -96,9 +97,7 @@ def serialization_format() -> typing.Type["BatchJobSerializationFormat"]: labels: MetaOapg.properties.labels @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["input_path"] - ) -> MetaOapg.properties.input_path: + def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... @typing.overload @@ -106,21 +105,15 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["resource_requests"] - ) -> "CreateBatchJobResourceRequests": + def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["serialization_format"] - ) -> "BatchJobSerializationFormat": + def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... @typing.overload @@ -144,33 +137,23 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["input_path"] - ) -> MetaOapg.properties.input_path: + def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["resource_requests"] - ) -> "CreateBatchJobResourceRequests": + def get_item_oapg(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["serialization_format"] - ) -> "BatchJobSerializationFormat": + def get_item_oapg(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... @typing.overload @@ -244,5 +227,9 @@ def __new__( ) -from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat -from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests +from launch.api_client.model.batch_job_serialization_format import ( + BatchJobSerializationFormat, +) +from launch.api_client.model.create_batch_job_resource_requests import ( + CreateBatchJobResourceRequests, +) diff --git a/launch/api_client/model/create_batch_job_v1_request.pyi b/launch/api_client/model/create_batch_job_v1_request.pyi index c775ad1c..bca2db17 100644 --- a/launch/api_client/model/create_batch_job_v1_request.pyi +++ b/launch/api_client/model/create_batch_job_v1_request.pyi @@ -88,25 +88,17 @@ class CreateBatchJobV1Request(schemas.DictSchema): labels: MetaOapg.properties.labels @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["input_path"] - ) -> MetaOapg.properties.input_path: ... + def __getitem__(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["resource_requests"] - ) -> "CreateBatchJobResourceRequests": ... + def __getitem__(self, name: typing_extensions.Literal["resource_requests"]) -> "CreateBatchJobResourceRequests": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["serialization_format"] - ) -> "BatchJobSerializationFormat": ... + def __getitem__(self, name: typing_extensions.Literal["serialization_format"]) -> "BatchJobSerializationFormat": ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -125,13 +117,9 @@ class CreateBatchJobV1Request(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["input_path"] - ) -> MetaOapg.properties.input_path: ... + def get_item_oapg(self, name: typing_extensions.Literal["input_path"]) -> MetaOapg.properties.input_path: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_bundle_id"] @@ -145,9 +133,7 @@ class CreateBatchJobV1Request(schemas.DictSchema): self, name: typing_extensions.Literal["serialization_format"] ) -> "BatchJobSerializationFormat": ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -213,5 +199,9 @@ class CreateBatchJobV1Request(schemas.DictSchema): **kwargs, ) -from launch_client.model.batch_job_serialization_format import BatchJobSerializationFormat -from launch_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests +from launch_client.model.batch_job_serialization_format import ( + BatchJobSerializationFormat, +) +from launch_client.model.create_batch_job_resource_requests import ( + CreateBatchJobResourceRequests, +) diff --git a/launch/api_client/model/create_batch_job_v1_response.py b/launch/api_client/model/create_batch_job_v1_response.py index 1e0e4f6e..5db054c8 100644 --- a/launch/api_client/model/create_batch_job_v1_response.py +++ b/launch/api_client/model/create_batch_job_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -55,9 +56,7 @@ def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id",], s return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["job_id"] - ) -> MetaOapg.properties.job_id: + def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... @typing.overload diff --git a/launch/api_client/model/create_batch_job_v1_response.pyi b/launch/api_client/model/create_batch_job_v1_response.pyi index 47201dd1..01665b22 100644 --- a/launch/api_client/model/create_batch_job_v1_response.pyi +++ b/launch/api_client/model/create_batch_job_v1_response.pyi @@ -41,22 +41,16 @@ class CreateBatchJobV1Response(schemas.DictSchema): job_id: MetaOapg.properties.job_id @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["job_id"] - ) -> MetaOapg.properties.job_id: ... + def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["job_id"] - ) -> MetaOapg.properties.job_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_model_bundle_request.py b/launch/api_client/model/create_model_bundle_request.py index 042b0883..c868221e 100644 --- a/launch/api_client/model/create_model_bundle_request.py +++ b/launch/api_client/model/create_model_bundle_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -103,15 +104,11 @@ def packaging_type() -> typing.Type["ModelBundlePackagingType"]: env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload @@ -119,33 +116,23 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["app_config"] - ) -> MetaOapg.properties.app_config: + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["schema_location"] - ) -> MetaOapg.properties.schema_location: + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... @typing.overload @@ -172,15 +159,11 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload @@ -188,9 +171,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload @@ -266,9 +247,7 @@ def __new__( MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, packaging_type: typing.Union["ModelBundlePackagingType", schemas.Unset] = schemas.unset, - schema_location: typing.Union[ - MetaOapg.properties.schema_location, str, schemas.Unset - ] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -303,5 +282,9 @@ def __new__( ) -from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch.api_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch.api_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/create_model_bundle_request.pyi b/launch/api_client/model/create_model_bundle_request.pyi index 746bb18e..5cbf17ef 100644 --- a/launch/api_client/model/create_model_bundle_request.pyi +++ b/launch/api_client/model/create_model_bundle_request.pyi @@ -96,31 +96,19 @@ class CreateModelBundleRequest(schemas.DictSchema): env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": ... + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: ... + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: ... + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["app_config"] - ) -> MetaOapg.properties.app_config: ... + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": ... + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["schema_location"] @@ -146,21 +134,13 @@ class CreateModelBundleRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": ... + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: ... + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["name"] - ) -> MetaOapg.properties.name: ... + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: ... + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["app_config"] @@ -178,9 +158,7 @@ class CreateModelBundleRequest(schemas.DictSchema): self, name: typing_extensions.Literal["schema_location"] ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -225,9 +203,7 @@ class CreateModelBundleRequest(schemas.DictSchema): MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, packaging_type: typing.Union["ModelBundlePackagingType", schemas.Unset] = schemas.unset, - schema_location: typing.Union[ - MetaOapg.properties.schema_location, str, schemas.Unset - ] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -261,5 +237,9 @@ class CreateModelBundleRequest(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/create_model_bundle_response.py b/launch/api_client/model/create_model_bundle_response.py index 835e260f..286e1a37 100644 --- a/launch/api_client/model/create_model_bundle_response.py +++ b/launch/api_client/model/create_model_bundle_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -45,9 +46,7 @@ class properties: model_bundle_id: MetaOapg.properties.model_bundle_id @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -65,9 +64,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload diff --git a/launch/api_client/model/create_model_bundle_response.pyi b/launch/api_client/model/create_model_bundle_response.pyi index f62f7bb0..30718f7d 100644 --- a/launch/api_client/model/create_model_bundle_response.pyi +++ b/launch/api_client/model/create_model_bundle_response.pyi @@ -62,9 +62,7 @@ class CreateModelBundleResponse(schemas.DictSchema): self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/create_model_bundle_v1_request.py b/launch/api_client/model/create_model_bundle_v1_request.py index a630ea56..c5170611 100644 --- a/launch/api_client/model/create_model_bundle_v1_request.py +++ b/launch/api_client/model/create_model_bundle_v1_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -104,15 +105,11 @@ def __getitem__(self, i: int) -> MetaOapg.items: env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload @@ -120,33 +117,23 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["app_config"] - ) -> MetaOapg.properties.app_config: + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["schema_location"] - ) -> MetaOapg.properties.schema_location: + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... @typing.overload @@ -173,15 +160,11 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload @@ -189,15 +172,11 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload @@ -267,9 +246,7 @@ def __new__( metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - schema_location: typing.Union[ - MetaOapg.properties.schema_location, str, schemas.Unset - ] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -304,5 +281,9 @@ def __new__( ) -from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch.api_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch.api_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/create_model_bundle_v1_request.pyi b/launch/api_client/model/create_model_bundle_v1_request.pyi index 820c2300..24f63ed8 100644 --- a/launch/api_client/model/create_model_bundle_v1_request.pyi +++ b/launch/api_client/model/create_model_bundle_v1_request.pyi @@ -98,31 +98,19 @@ class CreateModelBundleV1Request(schemas.DictSchema): env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": ... + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: ... + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": ... + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: ... + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["app_config"] - ) -> MetaOapg.properties.app_config: ... + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["schema_location"] @@ -148,25 +136,15 @@ class CreateModelBundleV1Request(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": ... + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: ... + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["name"] - ) -> MetaOapg.properties.name: ... + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": ... + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: ... + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["app_config"] @@ -180,9 +158,7 @@ class CreateModelBundleV1Request(schemas.DictSchema): self, name: typing_extensions.Literal["schema_location"] ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -227,9 +203,7 @@ class CreateModelBundleV1Request(schemas.DictSchema): metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - schema_location: typing.Union[ - MetaOapg.properties.schema_location, str, schemas.Unset - ] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -263,5 +237,9 @@ class CreateModelBundleV1Request(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/create_model_bundle_v1_response.py b/launch/api_client/model/create_model_bundle_v1_response.py index d0a658d8..726207b0 100644 --- a/launch/api_client/model/create_model_bundle_v1_response.py +++ b/launch/api_client/model/create_model_bundle_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -45,9 +46,7 @@ class properties: model_bundle_id: MetaOapg.properties.model_bundle_id @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -59,9 +58,7 @@ def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload diff --git a/launch/api_client/model/create_model_bundle_v1_response.pyi b/launch/api_client/model/create_model_bundle_v1_response.pyi index 51d3076d..6b03b26f 100644 --- a/launch/api_client/model/create_model_bundle_v1_response.pyi +++ b/launch/api_client/model/create_model_bundle_v1_response.pyi @@ -56,9 +56,7 @@ class CreateModelBundleV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_model_endpoint_request.py b/launch/api_client/model/create_model_endpoint_request.py index 70fd7e3a..c75f5328 100644 --- a/launch/api_client/model/create_model_endpoint_request.py +++ b/launch/api_client/model/create_model_endpoint_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -415,9 +416,7 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload @@ -425,21 +424,15 @@ def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -447,21 +440,15 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["billing_tags"] - ) -> MetaOapg.properties.billing_tags: + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload @@ -475,9 +462,7 @@ def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload @@ -487,15 +472,11 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["prewarm"] - ) -> MetaOapg.properties.prewarm: + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload @@ -537,9 +518,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload @@ -547,39 +526,27 @@ def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -587,9 +554,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload @@ -611,9 +576,7 @@ def get_item_oapg( ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload @@ -764,9 +727,7 @@ def __new__( MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, diff --git a/launch/api_client/model/create_model_endpoint_request.pyi b/launch/api_client/model/create_model_endpoint_request.pyi index 8258052a..3741c1c3 100644 --- a/launch/api_client/model/create_model_endpoint_request.pyi +++ b/launch/api_client/model/create_model_endpoint_request.pyi @@ -376,31 +376,19 @@ class CreateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": ... + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: ... + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: ... + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: ... + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] @@ -408,17 +396,11 @@ class CreateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: ... + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["billing_tags"] - ) -> MetaOapg.properties.billing_tags: ... + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -426,21 +408,15 @@ class CreateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: ... + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["prewarm"] - ) -> MetaOapg.properties.prewarm: ... + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: ... + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -473,49 +449,29 @@ class CreateModelEndpointRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cpus"] - ) -> MetaOapg.properties.cpus: ... + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": ... + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpus"] - ) -> MetaOapg.properties.gpus: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: ... + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: ... + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: ... + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["name"] - ) -> MetaOapg.properties.name: ... + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: ... + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["billing_tags"] @@ -529,9 +485,7 @@ class CreateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["default_callback_url"] ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["optimize_costs"] @@ -549,9 +503,7 @@ class CreateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["storage"] ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -671,9 +623,7 @@ class CreateModelEndpointRequest(schemas.DictSchema): MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, diff --git a/launch/api_client/model/create_model_endpoint_response.py b/launch/api_client/model/create_model_endpoint_response.py index 4f3144b3..e2cdf9c1 100644 --- a/launch/api_client/model/create_model_endpoint_response.py +++ b/launch/api_client/model/create_model_endpoint_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/create_model_endpoint_response.pyi b/launch/api_client/model/create_model_endpoint_response.pyi index 2c4ebedf..f11048d6 100644 --- a/launch/api_client/model/create_model_endpoint_response.pyi +++ b/launch/api_client/model/create_model_endpoint_response.pyi @@ -60,9 +60,7 @@ class CreateModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["endpoint_creation_task_id"] ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/create_model_endpoint_v1_request.py b/launch/api_client/model/create_model_endpoint_v1_request.py index ace2de91..2717f643 100644 --- a/launch/api_client/model/create_model_endpoint_v1_request.py +++ b/launch/api_client/model/create_model_endpoint_v1_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -411,9 +412,7 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload @@ -421,21 +420,15 @@ def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -443,21 +436,15 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["billing_tags"] - ) -> MetaOapg.properties.billing_tags: + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload @@ -471,15 +458,11 @@ def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["high_priority"] - ) -> MetaOapg.properties.high_priority: + def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload @@ -489,15 +472,11 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["prewarm"] - ) -> MetaOapg.properties.prewarm: + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload @@ -540,9 +519,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload @@ -550,39 +527,27 @@ def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload @@ -590,9 +555,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload @@ -614,9 +577,7 @@ def get_item_oapg( ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload @@ -774,12 +735,8 @@ def __new__( MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - high_priority: typing.Union[ - MetaOapg.properties.high_priority, bool, schemas.Unset - ] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, + high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, diff --git a/launch/api_client/model/create_model_endpoint_v1_request.pyi b/launch/api_client/model/create_model_endpoint_v1_request.pyi index 297d59e6..d4e30084 100644 --- a/launch/api_client/model/create_model_endpoint_v1_request.pyi +++ b/launch/api_client/model/create_model_endpoint_v1_request.pyi @@ -372,31 +372,19 @@ class CreateModelEndpointV1Request(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": ... + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: ... + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: ... + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: ... + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] @@ -404,17 +392,11 @@ class CreateModelEndpointV1Request(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: ... + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["billing_tags"] - ) -> MetaOapg.properties.billing_tags: ... + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -422,25 +404,17 @@ class CreateModelEndpointV1Request(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["high_priority"] - ) -> MetaOapg.properties.high_priority: ... + def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: ... + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["prewarm"] - ) -> MetaOapg.properties.prewarm: ... + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: ... + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -474,49 +448,29 @@ class CreateModelEndpointV1Request(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cpus"] - ) -> MetaOapg.properties.cpus: ... + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": ... + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpus"] - ) -> MetaOapg.properties.gpus: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def get_item_oapg(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: ... + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: ... + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: ... + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["name"] - ) -> MetaOapg.properties.name: ... + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: ... + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["billing_tags"] @@ -530,9 +484,7 @@ class CreateModelEndpointV1Request(schemas.DictSchema): self, name: typing_extensions.Literal["default_callback_url"] ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["high_priority"] @@ -554,9 +506,7 @@ class CreateModelEndpointV1Request(schemas.DictSchema): self, name: typing_extensions.Literal["storage"] ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -677,12 +627,8 @@ class CreateModelEndpointV1Request(schemas.DictSchema): MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - high_priority: typing.Union[ - MetaOapg.properties.high_priority, bool, schemas.Unset - ] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, + high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, diff --git a/launch/api_client/model/create_model_endpoint_v1_response.py b/launch/api_client/model/create_model_endpoint_v1_response.py index 33d4b0db..39cb7722 100644 --- a/launch/api_client/model/create_model_endpoint_v1_response.py +++ b/launch/api_client/model/create_model_endpoint_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -52,9 +53,7 @@ def __getitem__( def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] - ): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) @@ -68,9 +67,7 @@ def get_item_oapg( def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg( - self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] - ): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_model_endpoint_v1_response.pyi b/launch/api_client/model/create_model_endpoint_v1_response.pyi index 0272962c..ae27258e 100644 --- a/launch/api_client/model/create_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/create_model_endpoint_v1_response.pyi @@ -46,9 +46,7 @@ class CreateModelEndpointV1Response(schemas.DictSchema): ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] - ): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload @@ -56,12 +54,8 @@ class CreateModelEndpointV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["endpoint_creation_task_id"] ) -> MetaOapg.properties.endpoint_creation_task_id: ... @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["endpoint_creation_task_id",], str] - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/delete_model_endpoint_response.py b/launch/api_client/model/delete_model_endpoint_response.py index bd1f96ae..54d4bbaa 100644 --- a/launch/api_client/model/delete_model_endpoint_response.py +++ b/launch/api_client/model/delete_model_endpoint_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -43,9 +44,7 @@ class properties: deleted: MetaOapg.properties.deleted @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deleted"] - ) -> MetaOapg.properties.deleted: + def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload @@ -63,9 +62,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["deleted"] - ) -> MetaOapg.properties.deleted: + def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload diff --git a/launch/api_client/model/delete_model_endpoint_response.pyi b/launch/api_client/model/delete_model_endpoint_response.pyi index 0b6c6e3d..a5b0efdd 100644 --- a/launch/api_client/model/delete_model_endpoint_response.pyi +++ b/launch/api_client/model/delete_model_endpoint_response.pyi @@ -41,9 +41,7 @@ class DeleteModelEndpointResponse(schemas.DictSchema): deleted: MetaOapg.properties.deleted @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deleted"] - ) -> MetaOapg.properties.deleted: ... + def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -56,13 +54,9 @@ class DeleteModelEndpointResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["deleted"] - ) -> MetaOapg.properties.deleted: ... + def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.py b/launch/api_client/model/delete_model_endpoint_v1_response.py index e585c376..afd67204 100644 --- a/launch/api_client/model/delete_model_endpoint_v1_response.py +++ b/launch/api_client/model/delete_model_endpoint_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -43,9 +44,7 @@ class properties: deleted: MetaOapg.properties.deleted @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deleted"] - ) -> MetaOapg.properties.deleted: + def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload @@ -57,9 +56,7 @@ def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted",], return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["deleted"] - ) -> MetaOapg.properties.deleted: + def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.pyi b/launch/api_client/model/delete_model_endpoint_v1_response.pyi index 02ec015a..c254be0b 100644 --- a/launch/api_client/model/delete_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/delete_model_endpoint_v1_response.pyi @@ -41,22 +41,16 @@ class DeleteModelEndpointV1Response(schemas.DictSchema): deleted: MetaOapg.properties.deleted @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deleted"] - ) -> MetaOapg.properties.deleted: ... + def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["deleted"] - ) -> MetaOapg.properties.deleted: ... + def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/endpoint_predict_request.py b/launch/api_client/model/endpoint_predict_request.py index 571e046a..c8cfed1c 100644 --- a/launch/api_client/model/endpoint_predict_request.py +++ b/launch/api_client/model/endpoint_predict_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -59,21 +60,15 @@ def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "Call ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["callback_url"] - ) -> MetaOapg.properties.callback_url: + def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["cloudpickle"] - ) -> MetaOapg.properties.cloudpickle: + def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["return_pickled"] - ) -> MetaOapg.properties.return_pickled: + def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... @typing.overload @@ -184,15 +179,9 @@ def __new__( schemas.Unset, ] = schemas.unset, callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - callback_url: typing.Union[ - MetaOapg.properties.callback_url, str, schemas.Unset - ] = schemas.unset, - cloudpickle: typing.Union[ - MetaOapg.properties.cloudpickle, str, schemas.Unset - ] = schemas.unset, - return_pickled: typing.Union[ - MetaOapg.properties.return_pickled, bool, schemas.Unset - ] = schemas.unset, + callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, + cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, + return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ diff --git a/launch/api_client/model/endpoint_predict_request.pyi b/launch/api_client/model/endpoint_predict_request.pyi index 03516a99..656cb6f8 100644 --- a/launch/api_client/model/endpoint_predict_request.pyi +++ b/launch/api_client/model/endpoint_predict_request.pyi @@ -52,17 +52,11 @@ class EndpointPredictRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "CallbackAuth": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["callback_url"] - ) -> MetaOapg.properties.callback_url: ... + def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["cloudpickle"] - ) -> MetaOapg.properties.cloudpickle: ... + def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["return_pickled"] - ) -> MetaOapg.properties.return_pickled: ... + def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... @typing.overload @@ -108,9 +102,7 @@ class EndpointPredictRequest(schemas.DictSchema): self, name: typing_extensions.Literal["url"] ) -> typing.Union[MetaOapg.properties.url, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -153,15 +145,9 @@ class EndpointPredictRequest(schemas.DictSchema): schemas.Unset, ] = schemas.unset, callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - callback_url: typing.Union[ - MetaOapg.properties.callback_url, str, schemas.Unset - ] = schemas.unset, - cloudpickle: typing.Union[ - MetaOapg.properties.cloudpickle, str, schemas.Unset - ] = schemas.unset, - return_pickled: typing.Union[ - MetaOapg.properties.return_pickled, bool, schemas.Unset - ] = schemas.unset, + callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, + cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, + return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ diff --git a/launch/api_client/model/endpoint_predict_v1_request.py b/launch/api_client/model/endpoint_predict_v1_request.py index aeea7869..2fcfd632 100644 --- a/launch/api_client/model/endpoint_predict_v1_request.py +++ b/launch/api_client/model/endpoint_predict_v1_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -59,21 +60,15 @@ def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "Call ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["callback_url"] - ) -> MetaOapg.properties.callback_url: + def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["cloudpickle"] - ) -> MetaOapg.properties.cloudpickle: + def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["return_pickled"] - ) -> MetaOapg.properties.return_pickled: + def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... @typing.overload @@ -184,15 +179,9 @@ def __new__( schemas.Unset, ] = schemas.unset, callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - callback_url: typing.Union[ - MetaOapg.properties.callback_url, str, schemas.Unset - ] = schemas.unset, - cloudpickle: typing.Union[ - MetaOapg.properties.cloudpickle, str, schemas.Unset - ] = schemas.unset, - return_pickled: typing.Union[ - MetaOapg.properties.return_pickled, bool, schemas.Unset - ] = schemas.unset, + callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, + cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, + return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ diff --git a/launch/api_client/model/endpoint_predict_v1_request.pyi b/launch/api_client/model/endpoint_predict_v1_request.pyi index d3eef101..13dea9cf 100644 --- a/launch/api_client/model/endpoint_predict_v1_request.pyi +++ b/launch/api_client/model/endpoint_predict_v1_request.pyi @@ -52,17 +52,11 @@ class EndpointPredictV1Request(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["callback_auth"]) -> "CallbackAuth": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["callback_url"] - ) -> MetaOapg.properties.callback_url: ... + def __getitem__(self, name: typing_extensions.Literal["callback_url"]) -> MetaOapg.properties.callback_url: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["cloudpickle"] - ) -> MetaOapg.properties.cloudpickle: ... + def __getitem__(self, name: typing_extensions.Literal["cloudpickle"]) -> MetaOapg.properties.cloudpickle: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["return_pickled"] - ) -> MetaOapg.properties.return_pickled: ... + def __getitem__(self, name: typing_extensions.Literal["return_pickled"]) -> MetaOapg.properties.return_pickled: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["url"]) -> MetaOapg.properties.url: ... @typing.overload @@ -108,9 +102,7 @@ class EndpointPredictV1Request(schemas.DictSchema): self, name: typing_extensions.Literal["url"] ) -> typing.Union[MetaOapg.properties.url, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -153,15 +145,9 @@ class EndpointPredictV1Request(schemas.DictSchema): schemas.Unset, ] = schemas.unset, callback_auth: typing.Union["CallbackAuth", schemas.Unset] = schemas.unset, - callback_url: typing.Union[ - MetaOapg.properties.callback_url, str, schemas.Unset - ] = schemas.unset, - cloudpickle: typing.Union[ - MetaOapg.properties.cloudpickle, str, schemas.Unset - ] = schemas.unset, - return_pickled: typing.Union[ - MetaOapg.properties.return_pickled, bool, schemas.Unset - ] = schemas.unset, + callback_url: typing.Union[MetaOapg.properties.callback_url, str, schemas.Unset] = schemas.unset, + cloudpickle: typing.Union[MetaOapg.properties.cloudpickle, str, schemas.Unset] = schemas.unset, + return_pickled: typing.Union[MetaOapg.properties.return_pickled, bool, schemas.Unset] = schemas.unset, url: typing.Union[MetaOapg.properties.url, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ diff --git a/launch/api_client/model/get_async_task_response.py b/launch/api_client/model/get_async_task_response.py index f50a32ac..c21a3400 100644 --- a/launch/api_client/model/get_async_task_response.py +++ b/launch/api_client/model/get_async_task_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -58,9 +59,7 @@ def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus" ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload @@ -68,9 +67,7 @@ def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["traceback"] - ) -> MetaOapg.properties.traceback: + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... @typing.overload @@ -97,9 +94,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatu ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload diff --git a/launch/api_client/model/get_async_task_response.pyi b/launch/api_client/model/get_async_task_response.pyi index 9117c7a1..8dacef03 100644 --- a/launch/api_client/model/get_async_task_response.pyi +++ b/launch/api_client/model/get_async_task_response.pyi @@ -53,17 +53,11 @@ class GetAsyncTaskResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: ... + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["result"] - ) -> MetaOapg.properties.result: ... + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["traceback"] - ) -> MetaOapg.properties.traceback: ... + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -83,9 +77,7 @@ class GetAsyncTaskResponse(schemas.DictSchema): @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["result"] @@ -95,9 +87,7 @@ class GetAsyncTaskResponse(schemas.DictSchema): self, name: typing_extensions.Literal["traceback"] ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/get_async_task_v1_response.py b/launch/api_client/model/get_async_task_v1_response.py index 7db6383e..80939dab 100644 --- a/launch/api_client/model/get_async_task_v1_response.py +++ b/launch/api_client/model/get_async_task_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -58,9 +59,7 @@ def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus" ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload @@ -68,9 +67,7 @@ def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["traceback"] - ) -> MetaOapg.properties.traceback: + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... @typing.overload @@ -97,9 +94,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatu ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload diff --git a/launch/api_client/model/get_async_task_v1_response.pyi b/launch/api_client/model/get_async_task_v1_response.pyi index bd6c00e8..bf4524d5 100644 --- a/launch/api_client/model/get_async_task_v1_response.pyi +++ b/launch/api_client/model/get_async_task_v1_response.pyi @@ -53,17 +53,11 @@ class GetAsyncTaskV1Response(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: ... + def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["result"] - ) -> MetaOapg.properties.result: ... + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["traceback"] - ) -> MetaOapg.properties.traceback: ... + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -83,9 +77,7 @@ class GetAsyncTaskV1Response(schemas.DictSchema): @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["task_id"] - ) -> MetaOapg.properties.task_id: ... + def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["result"] @@ -95,9 +87,7 @@ class GetAsyncTaskV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["traceback"] ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/get_batch_job_response.py b/launch/api_client/model/get_batch_job_response.py index 28daa803..89a2f9d0 100644 --- a/launch/api_client/model/get_batch_job_response.py +++ b/launch/api_client/model/get_batch_job_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -57,9 +58,7 @@ def status() -> typing.Type["BatchJobStatus"]: status: "BatchJobStatus" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["duration"] - ) -> MetaOapg.properties.duration: + def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... @typing.overload @@ -103,9 +102,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["duration"] - ) -> MetaOapg.properties.duration: + def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... @typing.overload diff --git a/launch/api_client/model/get_batch_job_response.pyi b/launch/api_client/model/get_batch_job_response.pyi index c8b24ecf..ae4b676d 100644 --- a/launch/api_client/model/get_batch_job_response.pyi +++ b/launch/api_client/model/get_batch_job_response.pyi @@ -54,9 +54,7 @@ class GetBatchJobResponse(schemas.DictSchema): status: "BatchJobStatus" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["duration"] - ) -> MetaOapg.properties.duration: ... + def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload @@ -68,9 +66,7 @@ class GetBatchJobResponse(schemas.DictSchema): self, name: typing_extensions.Literal["num_tasks_pending"] ) -> MetaOapg.properties.num_tasks_pending: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["result"] - ) -> MetaOapg.properties.result: ... + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -89,9 +85,7 @@ class GetBatchJobResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["duration"] - ) -> MetaOapg.properties.duration: ... + def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload @@ -107,9 +101,7 @@ class GetBatchJobResponse(schemas.DictSchema): self, name: typing_extensions.Literal["result"] ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/get_batch_job_v1_response.py b/launch/api_client/model/get_batch_job_v1_response.py index e12f9c27..e5327ade 100644 --- a/launch/api_client/model/get_batch_job_v1_response.py +++ b/launch/api_client/model/get_batch_job_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -57,9 +58,7 @@ def status() -> typing.Type["BatchJobStatus"]: status: "BatchJobStatus" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["duration"] - ) -> MetaOapg.properties.duration: + def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... @typing.overload @@ -103,9 +102,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["duration"] - ) -> MetaOapg.properties.duration: + def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... @typing.overload diff --git a/launch/api_client/model/get_batch_job_v1_response.pyi b/launch/api_client/model/get_batch_job_v1_response.pyi index f78540ae..264bf1cb 100644 --- a/launch/api_client/model/get_batch_job_v1_response.pyi +++ b/launch/api_client/model/get_batch_job_v1_response.pyi @@ -54,9 +54,7 @@ class GetBatchJobV1Response(schemas.DictSchema): status: "BatchJobStatus" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["duration"] - ) -> MetaOapg.properties.duration: ... + def __getitem__(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload @@ -68,9 +66,7 @@ class GetBatchJobV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["num_tasks_pending"] ) -> MetaOapg.properties.num_tasks_pending: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["result"] - ) -> MetaOapg.properties.result: ... + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -89,9 +85,7 @@ class GetBatchJobV1Response(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["duration"] - ) -> MetaOapg.properties.duration: ... + def get_item_oapg(self, name: typing_extensions.Literal["duration"]) -> MetaOapg.properties.duration: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "BatchJobStatus": ... @typing.overload @@ -107,9 +101,7 @@ class GetBatchJobV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["result"] ) -> typing.Union[MetaOapg.properties.result, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/get_model_endpoint_response.py b/launch/api_client/model/get_model_endpoint_response.py index b4142208..d497f926 100644 --- a/launch/api_client/model/get_model_endpoint_response.py +++ b/launch/api_client/model/get_model_endpoint_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -187,27 +188,19 @@ def resource_state() -> typing.Type["ModelEndpointResourceState"]: status: "ModelEndpointStatus" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["bundle_name"] - ) -> MetaOapg.properties.bundle_name: + def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_by"] - ) -> MetaOapg.properties.created_by: + def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["destination"] - ) -> MetaOapg.properties.destination: + def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... @typing.overload @@ -219,9 +212,7 @@ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.propert ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["last_updated_at"] - ) -> MetaOapg.properties.last_updated_at: + def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... @typing.overload @@ -233,15 +224,11 @@ def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpoi ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["aws_role"] - ) -> MetaOapg.properties.aws_role: + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload @@ -251,15 +238,11 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deployment_name"] - ) -> MetaOapg.properties.deployment_name: + def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deployment_state"] - ) -> "ModelEndpointDeploymentState": + def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": ... @typing.overload @@ -267,15 +250,11 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["num_queued_items"] - ) -> MetaOapg.properties.num_queued_items: + def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: ... @typing.overload @@ -285,9 +264,7 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["resource_state"] - ) -> "ModelEndpointResourceState": + def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": ... @typing.overload @@ -332,33 +309,23 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["bundle_name"] - ) -> MetaOapg.properties.bundle_name: + def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_by"] - ) -> MetaOapg.properties.created_by: + def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["destination"] - ) -> MetaOapg.properties.destination: + def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload @@ -366,9 +333,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.prope ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["last_updated_at"] - ) -> MetaOapg.properties.last_updated_at: + def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... @typing.overload @@ -522,15 +487,9 @@ def __new__( default_callback_url: typing.Union[ MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, - deployment_name: typing.Union[ - MetaOapg.properties.deployment_name, str, schemas.Unset - ] = schemas.unset, - deployment_state: typing.Union[ - "ModelEndpointDeploymentState", schemas.Unset - ] = schemas.unset, - labels: typing.Union[ - MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, + deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, + deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, @@ -541,9 +500,7 @@ def __new__( MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[ - MetaOapg.properties.results_s3_bucket, str, schemas.Unset - ] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -591,7 +548,11 @@ def __new__( from launch.api_client.model.callback_auth import CallbackAuth -from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState -from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState +from launch.api_client.model.model_endpoint_deployment_state import ( + ModelEndpointDeploymentState, +) +from launch.api_client.model.model_endpoint_resource_state import ( + ModelEndpointResourceState, +) from launch.api_client.model.model_endpoint_status import ModelEndpointStatus from launch.api_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/get_model_endpoint_response.pyi b/launch/api_client/model/get_model_endpoint_response.pyi index e3e521b8..1d7670fa 100644 --- a/launch/api_client/model/get_model_endpoint_response.pyi +++ b/launch/api_client/model/get_model_endpoint_response.pyi @@ -171,25 +171,15 @@ class GetModelEndpointResponse(schemas.DictSchema): status: "ModelEndpointStatus" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["bundle_name"] - ) -> MetaOapg.properties.bundle_name: ... + def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: ... + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_by"] - ) -> MetaOapg.properties.created_by: ... + def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["destination"] - ) -> MetaOapg.properties.destination: ... + def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": ... + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload @@ -201,13 +191,9 @@ class GetModelEndpointResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["aws_role"] - ) -> MetaOapg.properties.aws_role: ... + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -217,17 +203,11 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["deployment_name"] ) -> MetaOapg.properties.deployment_name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deployment_state"] - ) -> "ModelEndpointDeploymentState": ... + def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["num_queued_items"] @@ -237,9 +217,7 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["resource_state"] - ) -> "ModelEndpointResourceState": ... + def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["results_s3_bucket"] @@ -277,25 +255,15 @@ class GetModelEndpointResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["bundle_name"] - ) -> MetaOapg.properties.bundle_name: ... + def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: ... + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_by"] - ) -> MetaOapg.properties.created_by: ... + def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["destination"] - ) -> MetaOapg.properties.destination: ... + def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": ... + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload @@ -303,9 +271,7 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["last_updated_at"] ) -> MetaOapg.properties.last_updated_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["name"] - ) -> MetaOapg.properties.name: ... + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload @@ -353,9 +319,7 @@ class GetModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["results_s3_bucket"] ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -428,15 +392,9 @@ class GetModelEndpointResponse(schemas.DictSchema): default_callback_url: typing.Union[ MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, - deployment_name: typing.Union[ - MetaOapg.properties.deployment_name, str, schemas.Unset - ] = schemas.unset, - deployment_state: typing.Union[ - "ModelEndpointDeploymentState", schemas.Unset - ] = schemas.unset, - labels: typing.Union[ - MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, + deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, + deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, @@ -447,9 +405,7 @@ class GetModelEndpointResponse(schemas.DictSchema): MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[ - MetaOapg.properties.results_s3_bucket, str, schemas.Unset - ] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -496,7 +452,11 @@ class GetModelEndpointResponse(schemas.DictSchema): ) from launch_client.model.callback_auth import CallbackAuth -from launch_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState -from launch_client.model.model_endpoint_resource_state import ModelEndpointResourceState +from launch_client.model.model_endpoint_deployment_state import ( + ModelEndpointDeploymentState, +) +from launch_client.model.model_endpoint_resource_state import ( + ModelEndpointResourceState, +) from launch_client.model.model_endpoint_status import ModelEndpointStatus from launch_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/get_model_endpoint_v1_response.py b/launch/api_client/model/get_model_endpoint_v1_response.py index c5882958..a14d8486 100644 --- a/launch/api_client/model/get_model_endpoint_v1_response.py +++ b/launch/api_client/model/get_model_endpoint_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -181,27 +182,19 @@ def resource_state() -> typing.Type["ModelEndpointResourceState"]: status: "ModelEndpointStatus" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["bundle_name"] - ) -> MetaOapg.properties.bundle_name: + def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_by"] - ) -> MetaOapg.properties.created_by: + def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["destination"] - ) -> MetaOapg.properties.destination: + def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... @typing.overload @@ -213,9 +206,7 @@ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.propert ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["last_updated_at"] - ) -> MetaOapg.properties.last_updated_at: + def __getitem__(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... @typing.overload @@ -227,15 +218,11 @@ def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpoi ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["aws_role"] - ) -> MetaOapg.properties.aws_role: + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload @@ -245,15 +232,11 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deployment_name"] - ) -> MetaOapg.properties.deployment_name: + def __getitem__(self, name: typing_extensions.Literal["deployment_name"]) -> MetaOapg.properties.deployment_name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deployment_state"] - ) -> "ModelEndpointDeploymentState": + def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": ... @typing.overload @@ -261,15 +244,11 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["num_queued_items"] - ) -> MetaOapg.properties.num_queued_items: + def __getitem__(self, name: typing_extensions.Literal["num_queued_items"]) -> MetaOapg.properties.num_queued_items: ... @typing.overload @@ -279,9 +258,7 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["resource_state"] - ) -> "ModelEndpointResourceState": + def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": ... @typing.overload @@ -326,33 +303,23 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["bundle_name"] - ) -> MetaOapg.properties.bundle_name: + def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_by"] - ) -> MetaOapg.properties.created_by: + def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["destination"] - ) -> MetaOapg.properties.destination: + def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload @@ -360,9 +327,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.prope ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["last_updated_at"] - ) -> MetaOapg.properties.last_updated_at: + def get_item_oapg(self, name: typing_extensions.Literal["last_updated_at"]) -> MetaOapg.properties.last_updated_at: ... @typing.overload @@ -516,15 +481,9 @@ def __new__( default_callback_url: typing.Union[ MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, - deployment_name: typing.Union[ - MetaOapg.properties.deployment_name, str, schemas.Unset - ] = schemas.unset, - deployment_state: typing.Union[ - "ModelEndpointDeploymentState", schemas.Unset - ] = schemas.unset, - labels: typing.Union[ - MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, + deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, + deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, @@ -535,9 +494,7 @@ def __new__( MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[ - MetaOapg.properties.results_s3_bucket, str, schemas.Unset - ] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -585,7 +542,11 @@ def __new__( from launch.api_client.model.callback_auth import CallbackAuth -from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState -from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState +from launch.api_client.model.model_endpoint_deployment_state import ( + ModelEndpointDeploymentState, +) +from launch.api_client.model.model_endpoint_resource_state import ( + ModelEndpointResourceState, +) from launch.api_client.model.model_endpoint_status import ModelEndpointStatus from launch.api_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/get_model_endpoint_v1_response.pyi b/launch/api_client/model/get_model_endpoint_v1_response.pyi index ade66ce5..299c0026 100644 --- a/launch/api_client/model/get_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/get_model_endpoint_v1_response.pyi @@ -165,25 +165,15 @@ class GetModelEndpointV1Response(schemas.DictSchema): status: "ModelEndpointStatus" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["bundle_name"] - ) -> MetaOapg.properties.bundle_name: ... + def __getitem__(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: ... + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_by"] - ) -> MetaOapg.properties.created_by: ... + def __getitem__(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["destination"] - ) -> MetaOapg.properties.destination: ... + def __getitem__(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": ... + def __getitem__(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload @@ -195,13 +185,9 @@ class GetModelEndpointV1Response(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["aws_role"] - ) -> MetaOapg.properties.aws_role: ... + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -211,17 +197,11 @@ class GetModelEndpointV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["deployment_name"] ) -> MetaOapg.properties.deployment_name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["deployment_state"] - ) -> "ModelEndpointDeploymentState": ... + def __getitem__(self, name: typing_extensions.Literal["deployment_state"]) -> "ModelEndpointDeploymentState": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["num_queued_items"] @@ -231,9 +211,7 @@ class GetModelEndpointV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["resource_state"] - ) -> "ModelEndpointResourceState": ... + def __getitem__(self, name: typing_extensions.Literal["resource_state"]) -> "ModelEndpointResourceState": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["results_s3_bucket"] @@ -271,25 +249,15 @@ class GetModelEndpointV1Response(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["bundle_name"] - ) -> MetaOapg.properties.bundle_name: ... + def get_item_oapg(self, name: typing_extensions.Literal["bundle_name"]) -> MetaOapg.properties.bundle_name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: ... + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_by"] - ) -> MetaOapg.properties.created_by: ... + def get_item_oapg(self, name: typing_extensions.Literal["created_by"]) -> MetaOapg.properties.created_by: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["destination"] - ) -> MetaOapg.properties.destination: ... + def get_item_oapg(self, name: typing_extensions.Literal["destination"]) -> MetaOapg.properties.destination: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["endpoint_type"] - ) -> "ModelEndpointType": ... + def get_item_oapg(self, name: typing_extensions.Literal["endpoint_type"]) -> "ModelEndpointType": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload @@ -297,9 +265,7 @@ class GetModelEndpointV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["last_updated_at"] ) -> MetaOapg.properties.last_updated_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["name"] - ) -> MetaOapg.properties.name: ... + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> "ModelEndpointStatus": ... @typing.overload @@ -347,9 +313,7 @@ class GetModelEndpointV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["results_s3_bucket"] ) -> typing.Union[MetaOapg.properties.results_s3_bucket, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -422,15 +386,9 @@ class GetModelEndpointV1Response(schemas.DictSchema): default_callback_url: typing.Union[ MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, - deployment_name: typing.Union[ - MetaOapg.properties.deployment_name, str, schemas.Unset - ] = schemas.unset, - deployment_state: typing.Union[ - "ModelEndpointDeploymentState", schemas.Unset - ] = schemas.unset, - labels: typing.Union[ - MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, + deployment_name: typing.Union[MetaOapg.properties.deployment_name, str, schemas.Unset] = schemas.unset, + deployment_state: typing.Union["ModelEndpointDeploymentState", schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, @@ -441,9 +399,7 @@ class GetModelEndpointV1Response(schemas.DictSchema): MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, resource_state: typing.Union["ModelEndpointResourceState", schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[ - MetaOapg.properties.results_s3_bucket, str, schemas.Unset - ] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -490,7 +446,11 @@ class GetModelEndpointV1Response(schemas.DictSchema): ) from launch_client.model.callback_auth import CallbackAuth -from launch_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState -from launch_client.model.model_endpoint_resource_state import ModelEndpointResourceState +from launch_client.model.model_endpoint_deployment_state import ( + ModelEndpointDeploymentState, +) +from launch_client.model.model_endpoint_resource_state import ( + ModelEndpointResourceState, +) from launch_client.model.model_endpoint_status import ModelEndpointStatus from launch_client.model.model_endpoint_type import ModelEndpointType diff --git a/launch/api_client/model/gpu_type.py b/launch/api_client/model/gpu_type.py index d97eee2f..3d1ee053 100644 --- a/launch/api_client/model/gpu_type.py +++ b/launch/api_client/model/gpu_type.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/http_validation_error.py b/launch/api_client/model/http_validation_error.py index 74b2e61b..51e9ef8b 100644 --- a/launch/api_client/model/http_validation_error.py +++ b/launch/api_client/model/http_validation_error.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -39,9 +40,7 @@ def items() -> typing.Type["ValidationError"]: def __new__( cls, - _arg: typing.Union[ - typing.Tuple["ValidationError"], typing.List["ValidationError"] - ], + _arg: typing.Union[typing.Tuple["ValidationError"], typing.List["ValidationError"]], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "detail": return super().__new__( @@ -88,9 +87,7 @@ def __new__( dict, frozendict.frozendict, ], - detail: typing.Union[ - MetaOapg.properties.detail, list, tuple, schemas.Unset - ] = schemas.unset, + detail: typing.Union[MetaOapg.properties.detail, list, tuple, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, diff --git a/launch/api_client/model/http_validation_error.pyi b/launch/api_client/model/http_validation_error.pyi index 0e97c80a..437f1853 100644 --- a/launch/api_client/model/http_validation_error.pyi +++ b/launch/api_client/model/http_validation_error.pyi @@ -37,9 +37,7 @@ class HTTPValidationError(schemas.DictSchema): return ValidationError def __new__( cls, - _arg: typing.Union[ - typing.Tuple["ValidationError"], typing.List["ValidationError"] - ], + _arg: typing.Union[typing.Tuple["ValidationError"], typing.List["ValidationError"]], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "detail": return super().__new__( @@ -53,9 +51,7 @@ class HTTPValidationError(schemas.DictSchema): "detail": detail, } @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["detail"] - ) -> MetaOapg.properties.detail: ... + def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail",], str]): @@ -66,9 +62,7 @@ class HTTPValidationError(schemas.DictSchema): self, name: typing_extensions.Literal["detail"] ) -> typing.Union[MetaOapg.properties.detail, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["detail",], str]): return super().get_item_oapg(name) def __new__( @@ -77,9 +71,7 @@ class HTTPValidationError(schemas.DictSchema): dict, frozendict.frozendict, ], - detail: typing.Union[ - MetaOapg.properties.detail, list, tuple, schemas.Unset - ] = schemas.unset, + detail: typing.Union[MetaOapg.properties.detail, list, tuple, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, diff --git a/launch/api_client/model/list_model_bundles_response.py b/launch/api_client/model/list_model_bundles_response.py index 4b860787..7244cc2a 100644 --- a/launch/api_client/model/list_model_bundles_response.py +++ b/launch/api_client/model/list_model_bundles_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -45,9 +46,7 @@ def items() -> typing.Type["ModelBundleResponse"]: def __new__( cls, - _arg: typing.Union[ - typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"] - ], + _arg: typing.Union[typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"]], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "model_bundles": return super().__new__( @@ -66,9 +65,7 @@ def __getitem__(self, i: int) -> "ModelBundleResponse": model_bundles: MetaOapg.properties.model_bundles @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundles"] - ) -> MetaOapg.properties.model_bundles: + def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload @@ -86,9 +83,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundles"] - ) -> MetaOapg.properties.model_bundles: + def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload diff --git a/launch/api_client/model/list_model_bundles_response.pyi b/launch/api_client/model/list_model_bundles_response.pyi index a99dcd6d..1b13ff50 100644 --- a/launch/api_client/model/list_model_bundles_response.pyi +++ b/launch/api_client/model/list_model_bundles_response.pyi @@ -43,9 +43,7 @@ class ListModelBundlesResponse(schemas.DictSchema): return ModelBundleResponse def __new__( cls, - _arg: typing.Union[ - typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"] - ], + _arg: typing.Union[typing.Tuple["ModelBundleResponse"], typing.List["ModelBundleResponse"]], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "model_bundles": return super().__new__( @@ -61,9 +59,7 @@ class ListModelBundlesResponse(schemas.DictSchema): model_bundles: MetaOapg.properties.model_bundles @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundles"] - ) -> MetaOapg.properties.model_bundles: ... + def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -76,13 +72,9 @@ class ListModelBundlesResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundles"] - ) -> MetaOapg.properties.model_bundles: ... + def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/list_model_bundles_v1_response.py b/launch/api_client/model/list_model_bundles_v1_response.py index 7e1caa41..7d844835 100644 --- a/launch/api_client/model/list_model_bundles_v1_response.py +++ b/launch/api_client/model/list_model_bundles_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -45,9 +46,7 @@ def items() -> typing.Type["ModelBundleV1Response"]: def __new__( cls, - _arg: typing.Union[ - typing.Tuple["ModelBundleV1Response"], typing.List["ModelBundleV1Response"] - ], + _arg: typing.Union[typing.Tuple["ModelBundleV1Response"], typing.List["ModelBundleV1Response"]], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "model_bundles": return super().__new__( @@ -66,9 +65,7 @@ def __getitem__(self, i: int) -> "ModelBundleV1Response": model_bundles: MetaOapg.properties.model_bundles @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundles"] - ) -> MetaOapg.properties.model_bundles: + def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload @@ -80,9 +77,7 @@ def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundles"] - ) -> MetaOapg.properties.model_bundles: + def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload @@ -130,4 +125,6 @@ def __new__( ) -from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response +from launch.api_client.model.model_bundle_v1_response import ( + ModelBundleV1Response, +) diff --git a/launch/api_client/model/list_model_bundles_v1_response.pyi b/launch/api_client/model/list_model_bundles_v1_response.pyi index 42dfda02..421b33c7 100644 --- a/launch/api_client/model/list_model_bundles_v1_response.pyi +++ b/launch/api_client/model/list_model_bundles_v1_response.pyi @@ -43,9 +43,7 @@ class ListModelBundlesV1Response(schemas.DictSchema): return ModelBundleV1Response def __new__( cls, - _arg: typing.Union[ - typing.Tuple["ModelBundleV1Response"], typing.List["ModelBundleV1Response"] - ], + _arg: typing.Union[typing.Tuple["ModelBundleV1Response"], typing.List["ModelBundleV1Response"]], _configuration: typing.Optional[schemas.Configuration] = None, ) -> "model_bundles": return super().__new__( @@ -61,22 +59,16 @@ class ListModelBundlesV1Response(schemas.DictSchema): model_bundles: MetaOapg.properties.model_bundles @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundles"] - ) -> MetaOapg.properties.model_bundles: ... + def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_bundles"] - ) -> MetaOapg.properties.model_bundles: ... + def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/list_model_endpoints_response.py b/launch/api_client/model/list_model_endpoints_response.py index 6cddb6f1..a61104ca 100644 --- a/launch/api_client/model/list_model_endpoints_response.py +++ b/launch/api_client/model/list_model_endpoints_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -65,9 +66,7 @@ def __getitem__(self, i: int) -> "GetModelEndpointResponse": model_endpoints: MetaOapg.properties.model_endpoints @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_endpoints"] - ) -> MetaOapg.properties.model_endpoints: + def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... @typing.overload @@ -85,9 +84,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_endpoints"] - ) -> MetaOapg.properties.model_endpoints: + def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... @typing.overload @@ -141,4 +138,6 @@ def __new__( ) -from launch.api_client.model.get_model_endpoint_response import GetModelEndpointResponse +from launch.api_client.model.get_model_endpoint_response import ( + GetModelEndpointResponse, +) diff --git a/launch/api_client/model/list_model_endpoints_response.pyi b/launch/api_client/model/list_model_endpoints_response.pyi index 1cd2cb5f..e3ea97b8 100644 --- a/launch/api_client/model/list_model_endpoints_response.pyi +++ b/launch/api_client/model/list_model_endpoints_response.pyi @@ -79,9 +79,7 @@ class ListModelEndpointsResponse(schemas.DictSchema): self, name: typing_extensions.Literal["model_endpoints"] ) -> MetaOapg.properties.model_endpoints: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -127,4 +125,6 @@ class ListModelEndpointsResponse(schemas.DictSchema): **kwargs, ) -from launch_client.model.get_model_endpoint_response import GetModelEndpointResponse +from launch_client.model.get_model_endpoint_response import ( + GetModelEndpointResponse, +) diff --git a/launch/api_client/model/list_model_endpoints_v1_response.py b/launch/api_client/model/list_model_endpoints_v1_response.py index e9083248..90e47d13 100644 --- a/launch/api_client/model/list_model_endpoints_v1_response.py +++ b/launch/api_client/model/list_model_endpoints_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -65,9 +66,7 @@ def __getitem__(self, i: int) -> "GetModelEndpointV1Response": model_endpoints: MetaOapg.properties.model_endpoints @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_endpoints"] - ) -> MetaOapg.properties.model_endpoints: + def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... @typing.overload @@ -79,9 +78,7 @@ def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoi return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["model_endpoints"] - ) -> MetaOapg.properties.model_endpoints: + def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> MetaOapg.properties.model_endpoints: ... @typing.overload @@ -129,4 +126,6 @@ def __new__( ) -from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response +from launch.api_client.model.get_model_endpoint_v1_response import ( + GetModelEndpointV1Response, +) diff --git a/launch/api_client/model/list_model_endpoints_v1_response.pyi b/launch/api_client/model/list_model_endpoints_v1_response.pyi index 14a20b66..4793ea8e 100644 --- a/launch/api_client/model/list_model_endpoints_v1_response.pyi +++ b/launch/api_client/model/list_model_endpoints_v1_response.pyi @@ -73,9 +73,7 @@ class ListModelEndpointsV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["model_endpoints"] ) -> MetaOapg.properties.model_endpoints: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): return super().get_item_oapg(name) def __new__( @@ -115,4 +113,6 @@ class ListModelEndpointsV1Response(schemas.DictSchema): **kwargs, ) -from launch_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response +from launch_client.model.get_model_endpoint_v1_response import ( + GetModelEndpointV1Response, +) diff --git a/launch/api_client/model/model_bundle_environment_params.py b/launch/api_client/model/model_bundle_environment_params.py index c49c89ad..52633215 100644 --- a/launch/api_client/model/model_bundle_environment_params.py +++ b/launch/api_client/model/model_bundle_environment_params.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -57,21 +58,15 @@ def framework_type() -> typing.Type["ModelBundleFrameworkType"]: framework_type: "ModelBundleFrameworkType" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["framework_type"] - ) -> "ModelBundleFrameworkType": + def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFrameworkType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["ecr_repo"] - ) -> MetaOapg.properties.ecr_repo: + def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["image_tag"] - ) -> MetaOapg.properties.image_tag: + def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: ... @typing.overload @@ -107,9 +102,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["framework_type"] - ) -> "ModelBundleFrameworkType": + def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFrameworkType": ... @typing.overload @@ -164,12 +157,8 @@ def __new__( framework_type: "ModelBundleFrameworkType", ecr_repo: typing.Union[MetaOapg.properties.ecr_repo, str, schemas.Unset] = schemas.unset, image_tag: typing.Union[MetaOapg.properties.image_tag, str, schemas.Unset] = schemas.unset, - pytorch_image_tag: typing.Union[ - MetaOapg.properties.pytorch_image_tag, str, schemas.Unset - ] = schemas.unset, - tensorflow_version: typing.Union[ - MetaOapg.properties.tensorflow_version, str, schemas.Unset - ] = schemas.unset, + pytorch_image_tag: typing.Union[MetaOapg.properties.pytorch_image_tag, str, schemas.Unset] = schemas.unset, + tensorflow_version: typing.Union[MetaOapg.properties.tensorflow_version, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -201,4 +190,6 @@ def __new__( ) -from launch.api_client.model.model_bundle_framework_type import ModelBundleFrameworkType +from launch.api_client.model.model_bundle_framework_type import ( + ModelBundleFrameworkType, +) diff --git a/launch/api_client/model/model_bundle_environment_params.pyi b/launch/api_client/model/model_bundle_environment_params.pyi index 7a02224e..54ace726 100644 --- a/launch/api_client/model/model_bundle_environment_params.pyi +++ b/launch/api_client/model/model_bundle_environment_params.pyi @@ -54,17 +54,11 @@ class ModelBundleEnvironmentParams(schemas.DictSchema): framework_type: "ModelBundleFrameworkType" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["framework_type"] - ) -> "ModelBundleFrameworkType": ... + def __getitem__(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFrameworkType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["ecr_repo"] - ) -> MetaOapg.properties.ecr_repo: ... + def __getitem__(self, name: typing_extensions.Literal["ecr_repo"]) -> MetaOapg.properties.ecr_repo: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["image_tag"] - ) -> MetaOapg.properties.image_tag: ... + def __getitem__(self, name: typing_extensions.Literal["image_tag"]) -> MetaOapg.properties.image_tag: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["pytorch_image_tag"] @@ -91,9 +85,7 @@ class ModelBundleEnvironmentParams(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["framework_type"] - ) -> "ModelBundleFrameworkType": ... + def get_item_oapg(self, name: typing_extensions.Literal["framework_type"]) -> "ModelBundleFrameworkType": ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["ecr_repo"] @@ -111,9 +103,7 @@ class ModelBundleEnvironmentParams(schemas.DictSchema): self, name: typing_extensions.Literal["tensorflow_version"] ) -> typing.Union[MetaOapg.properties.tensorflow_version, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -137,12 +127,8 @@ class ModelBundleEnvironmentParams(schemas.DictSchema): framework_type: "ModelBundleFrameworkType", ecr_repo: typing.Union[MetaOapg.properties.ecr_repo, str, schemas.Unset] = schemas.unset, image_tag: typing.Union[MetaOapg.properties.image_tag, str, schemas.Unset] = schemas.unset, - pytorch_image_tag: typing.Union[ - MetaOapg.properties.pytorch_image_tag, str, schemas.Unset - ] = schemas.unset, - tensorflow_version: typing.Union[ - MetaOapg.properties.tensorflow_version, str, schemas.Unset - ] = schemas.unset, + pytorch_image_tag: typing.Union[MetaOapg.properties.pytorch_image_tag, str, schemas.Unset] = schemas.unset, + tensorflow_version: typing.Union[MetaOapg.properties.tensorflow_version, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -173,4 +159,6 @@ class ModelBundleEnvironmentParams(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_framework_type import ModelBundleFrameworkType +from launch_client.model.model_bundle_framework_type import ( + ModelBundleFrameworkType, +) diff --git a/launch/api_client/model/model_bundle_framework.py b/launch/api_client/model/model_bundle_framework.py index 851f55f3..093cc562 100644 --- a/launch/api_client/model/model_bundle_framework.py +++ b/launch/api_client/model/model_bundle_framework.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/model_bundle_framework_type.py b/launch/api_client/model/model_bundle_framework_type.py index b0adc828..cbbdb61d 100644 --- a/launch/api_client/model/model_bundle_framework_type.py +++ b/launch/api_client/model/model_bundle_framework_type.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/model_bundle_order_by.py b/launch/api_client/model/model_bundle_order_by.py index 91aab2aa..987734ac 100644 --- a/launch/api_client/model/model_bundle_order_by.py +++ b/launch/api_client/model/model_bundle_order_by.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/model_bundle_packaging_type.py b/launch/api_client/model/model_bundle_packaging_type.py index 6b03a04b..e97563f6 100644 --- a/launch/api_client/model/model_bundle_packaging_type.py +++ b/launch/api_client/model/model_bundle_packaging_type.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/model_bundle_response.py b/launch/api_client/model/model_bundle_response.py index 26d0ebbe..6b25056a 100644 --- a/launch/api_client/model/model_bundle_response.py +++ b/launch/api_client/model/model_bundle_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -150,15 +151,11 @@ def __getitem__(self, i: int) -> MetaOapg.items: env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload @@ -166,15 +163,11 @@ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.propert ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload @@ -188,27 +181,19 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["app_config"] - ) -> MetaOapg.properties.app_config: + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["schema_location"] - ) -> MetaOapg.properties.schema_location: + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... @typing.overload @@ -238,15 +223,11 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload @@ -254,15 +235,11 @@ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.prope ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload @@ -276,15 +253,11 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload @@ -367,9 +340,7 @@ def __new__( app_config: typing.Union[ MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - schema_location: typing.Union[ - MetaOapg.properties.schema_location, str, schemas.Unset - ] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -407,5 +378,9 @@ def __new__( ) -from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch.api_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch.api_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/model_bundle_response.pyi b/launch/api_client/model/model_bundle_response.pyi index 5289789d..818f37cb 100644 --- a/launch/api_client/model/model_bundle_response.pyi +++ b/launch/api_client/model/model_bundle_response.pyi @@ -141,23 +141,15 @@ class ModelBundleResponse(schemas.DictSchema): env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: ... + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": ... + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: ... + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_artifact_ids"] @@ -165,17 +157,11 @@ class ModelBundleResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": ... + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: ... + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["app_config"] - ) -> MetaOapg.properties.app_config: ... + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["schema_location"] @@ -204,39 +190,25 @@ class ModelBundleResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: ... + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": ... + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: ... + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_artifact_ids"] ) -> MetaOapg.properties.model_artifact_ids: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["name"] - ) -> MetaOapg.properties.name: ... + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": ... + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: ... + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["app_config"] @@ -246,9 +218,7 @@ class ModelBundleResponse(schemas.DictSchema): self, name: typing_extensions.Literal["schema_location"] ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -312,9 +282,7 @@ class ModelBundleResponse(schemas.DictSchema): app_config: typing.Union[ MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - schema_location: typing.Union[ - MetaOapg.properties.schema_location, str, schemas.Unset - ] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -351,5 +319,9 @@ class ModelBundleResponse(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/model_bundle_v1_response.py b/launch/api_client/model/model_bundle_v1_response.py index e06a1f25..90bdef95 100644 --- a/launch/api_client/model/model_bundle_v1_response.py +++ b/launch/api_client/model/model_bundle_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -150,15 +151,11 @@ def __getitem__(self, i: int) -> MetaOapg.items: env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload @@ -166,15 +163,11 @@ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.propert ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload @@ -188,27 +181,19 @@ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["app_config"] - ) -> MetaOapg.properties.app_config: + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["schema_location"] - ) -> MetaOapg.properties.schema_location: + def __getitem__(self, name: typing_extensions.Literal["schema_location"]) -> MetaOapg.properties.schema_location: ... @typing.overload @@ -238,15 +223,11 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload @@ -254,15 +235,11 @@ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.prope ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload @@ -276,15 +253,11 @@ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload @@ -367,9 +340,7 @@ def __new__( app_config: typing.Union[ MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - schema_location: typing.Union[ - MetaOapg.properties.schema_location, str, schemas.Unset - ] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -407,5 +378,9 @@ def __new__( ) -from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch.api_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch.api_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/model_bundle_v1_response.pyi b/launch/api_client/model/model_bundle_v1_response.pyi index f8ca65c7..44b97398 100644 --- a/launch/api_client/model/model_bundle_v1_response.pyi +++ b/launch/api_client/model/model_bundle_v1_response.pyi @@ -141,23 +141,15 @@ class ModelBundleV1Response(schemas.DictSchema): env_params: "ModelBundleEnvironmentParams" @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: ... + def __getitem__(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": ... + def __getitem__(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: ... + def __getitem__(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_artifact_ids"] @@ -165,17 +157,11 @@ class ModelBundleV1Response(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": ... + def __getitem__(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: ... + def __getitem__(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["app_config"] - ) -> MetaOapg.properties.app_config: ... + def __getitem__(self, name: typing_extensions.Literal["app_config"]) -> MetaOapg.properties.app_config: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["schema_location"] @@ -204,39 +190,25 @@ class ModelBundleV1Response(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["created_at"] - ) -> MetaOapg.properties.created_at: ... + def get_item_oapg(self, name: typing_extensions.Literal["created_at"]) -> MetaOapg.properties.created_at: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["env_params"] - ) -> "ModelBundleEnvironmentParams": ... + def get_item_oapg(self, name: typing_extensions.Literal["env_params"]) -> "ModelBundleEnvironmentParams": ... @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["location"] - ) -> MetaOapg.properties.location: ... + def get_item_oapg(self, name: typing_extensions.Literal["location"]) -> MetaOapg.properties.location: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["model_artifact_ids"] ) -> MetaOapg.properties.model_artifact_ids: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["name"] - ) -> MetaOapg.properties.name: ... + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["packaging_type"] - ) -> "ModelBundlePackagingType": ... + def get_item_oapg(self, name: typing_extensions.Literal["packaging_type"]) -> "ModelBundlePackagingType": ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["requirements"] - ) -> MetaOapg.properties.requirements: ... + def get_item_oapg(self, name: typing_extensions.Literal["requirements"]) -> MetaOapg.properties.requirements: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["app_config"] @@ -246,9 +218,7 @@ class ModelBundleV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["schema_location"] ) -> typing.Union[MetaOapg.properties.schema_location, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -312,9 +282,7 @@ class ModelBundleV1Response(schemas.DictSchema): app_config: typing.Union[ MetaOapg.properties.app_config, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - schema_location: typing.Union[ - MetaOapg.properties.schema_location, str, schemas.Unset - ] = schemas.unset, + schema_location: typing.Union[MetaOapg.properties.schema_location, str, schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[ schemas.AnyTypeSchema, @@ -351,5 +319,9 @@ class ModelBundleV1Response(schemas.DictSchema): **kwargs, ) -from launch_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch_client.model.model_bundle_packaging_type import ModelBundlePackagingType +from launch_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) diff --git a/launch/api_client/model/model_endpoint_deployment_state.py b/launch/api_client/model/model_endpoint_deployment_state.py index 71a9b3bb..c0a13dff 100644 --- a/launch/api_client/model/model_endpoint_deployment_state.py +++ b/launch/api_client/model/model_endpoint_deployment_state.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -70,21 +71,15 @@ class MetaOapg: per_worker: MetaOapg.properties.per_worker @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload @@ -120,21 +115,15 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload diff --git a/launch/api_client/model/model_endpoint_deployment_state.pyi b/launch/api_client/model/model_endpoint_deployment_state.pyi index 85db137e..ff9c7ac0 100644 --- a/launch/api_client/model/model_endpoint_deployment_state.pyi +++ b/launch/api_client/model/model_endpoint_deployment_state.pyi @@ -62,17 +62,11 @@ class ModelEndpointDeploymentState(schemas.DictSchema): per_worker: MetaOapg.properties.per_worker @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: ... + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: ... + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: ... + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["available_workers"] @@ -99,17 +93,11 @@ class ModelEndpointDeploymentState(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: ... + def get_item_oapg(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: ... + def get_item_oapg(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: ... + def get_item_oapg(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["available_workers"] @@ -119,9 +107,7 @@ class ModelEndpointDeploymentState(schemas.DictSchema): self, name: typing_extensions.Literal["unavailable_workers"] ) -> typing.Union[MetaOapg.properties.unavailable_workers, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/model_endpoint_order_by.py b/launch/api_client/model/model_endpoint_order_by.py index cce85bd5..e2eb86a1 100644 --- a/launch/api_client/model/model_endpoint_order_by.py +++ b/launch/api_client/model/model_endpoint_order_by.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/model_endpoint_resource_state.py b/launch/api_client/model/model_endpoint_resource_state.py index 39617c55..f6ed43ff 100644 --- a/launch/api_client/model/model_endpoint_resource_state.py +++ b/launch/api_client/model/model_endpoint_resource_state.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -286,15 +287,11 @@ def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload @@ -327,15 +324,11 @@ def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.pro ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload @@ -420,9 +413,7 @@ def __new__( int, ], gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/model_endpoint_resource_state.pyi b/launch/api_client/model/model_endpoint_resource_state.pyi index 2739358a..01d11482 100644 --- a/launch/api_client/model/model_endpoint_resource_state.pyi +++ b/launch/api_client/model/model_endpoint_resource_state.pyi @@ -265,19 +265,13 @@ class ModelEndpointResourceState(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: ... + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpu_type"]) -> "GpuType": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: ... + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: ... + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -297,21 +291,13 @@ class ModelEndpointResourceState(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cpus"] - ) -> MetaOapg.properties.cpus: ... + def get_item_oapg(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpus"] - ) -> MetaOapg.properties.gpus: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: ... + def get_item_oapg(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["optimize_costs"] @@ -321,9 +307,7 @@ class ModelEndpointResourceState(schemas.DictSchema): self, name: typing_extensions.Literal["storage"] ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -389,9 +373,7 @@ class ModelEndpointResourceState(schemas.DictSchema): int, ], gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/model_endpoint_status.py b/launch/api_client/model/model_endpoint_status.py index 3976764e..8703e65a 100644 --- a/launch/api_client/model/model_endpoint_status.py +++ b/launch/api_client/model/model_endpoint_status.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/model_endpoint_type.py b/launch/api_client/model/model_endpoint_type.py index ce5046f0..57c909ed 100644 --- a/launch/api_client/model/model_endpoint_type.py +++ b/launch/api_client/model/model_endpoint_type.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/request_schema.py b/launch/api_client/model/request_schema.py index ecd8c713..48c12333 100644 --- a/launch/api_client/model/request_schema.py +++ b/launch/api_client/model/request_schema.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 RequestSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/response_schema.py b/launch/api_client/model/response_schema.py index a971b885..ac2a8608 100644 --- a/launch/api_client/model/response_schema.py +++ b/launch/api_client/model/response_schema.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 ResponseSchema = schemas.AnyTypeSchema diff --git a/launch/api_client/model/sync_endpoint_predict_response.py b/launch/api_client/model/sync_endpoint_predict_response.py index 2d0797a6..3c497782 100644 --- a/launch/api_client/model/sync_endpoint_predict_response.py +++ b/launch/api_client/model/sync_endpoint_predict_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -58,9 +59,7 @@ def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["traceback"] - ) -> MetaOapg.properties.traceback: + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... @typing.overload diff --git a/launch/api_client/model/sync_endpoint_predict_response.pyi b/launch/api_client/model/sync_endpoint_predict_response.pyi index 4342348b..b547fcea 100644 --- a/launch/api_client/model/sync_endpoint_predict_response.pyi +++ b/launch/api_client/model/sync_endpoint_predict_response.pyi @@ -49,13 +49,9 @@ class SyncEndpointPredictResponse(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["result"] - ) -> MetaOapg.properties.result: ... + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["traceback"] - ) -> MetaOapg.properties.traceback: ... + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -82,9 +78,7 @@ class SyncEndpointPredictResponse(schemas.DictSchema): self, name: typing_extensions.Literal["traceback"] ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/sync_endpoint_predict_v1_response.py b/launch/api_client/model/sync_endpoint_predict_v1_response.py index 5188b13c..e3753b5e 100644 --- a/launch/api_client/model/sync_endpoint_predict_v1_response.py +++ b/launch/api_client/model/sync_endpoint_predict_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -58,9 +59,7 @@ def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["traceback"] - ) -> MetaOapg.properties.traceback: + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... @typing.overload diff --git a/launch/api_client/model/sync_endpoint_predict_v1_response.pyi b/launch/api_client/model/sync_endpoint_predict_v1_response.pyi index 193fbfed..49ae96fa 100644 --- a/launch/api_client/model/sync_endpoint_predict_v1_response.pyi +++ b/launch/api_client/model/sync_endpoint_predict_v1_response.pyi @@ -49,13 +49,9 @@ class SyncEndpointPredictV1Response(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["status"]) -> "TaskStatus": ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["result"] - ) -> MetaOapg.properties.result: ... + def __getitem__(self, name: typing_extensions.Literal["result"]) -> MetaOapg.properties.result: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["traceback"] - ) -> MetaOapg.properties.traceback: ... + def __getitem__(self, name: typing_extensions.Literal["traceback"]) -> MetaOapg.properties.traceback: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -82,9 +78,7 @@ class SyncEndpointPredictV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["traceback"] ) -> typing.Union[MetaOapg.properties.traceback, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/task_status.py b/launch/api_client/model/task_status.py index d83c6cfb..9693fad1 100644 --- a/launch/api_client/model/task_status.py +++ b/launch/api_client/model/task_status.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/update_batch_job_request.py b/launch/api_client/model/update_batch_job_request.py index a71e0d4c..84a751d6 100644 --- a/launch/api_client/model/update_batch_job_request.py +++ b/launch/api_client/model/update_batch_job_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -61,9 +62,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cancel"] - ) -> MetaOapg.properties.cancel: + def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... @typing.overload diff --git a/launch/api_client/model/update_batch_job_request.pyi b/launch/api_client/model/update_batch_job_request.pyi index f72a2651..8c060506 100644 --- a/launch/api_client/model/update_batch_job_request.pyi +++ b/launch/api_client/model/update_batch_job_request.pyi @@ -41,9 +41,7 @@ class UpdateBatchJobRequest(schemas.DictSchema): cancel: MetaOapg.properties.cancel @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["cancel"] - ) -> MetaOapg.properties.cancel: ... + def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -56,13 +54,9 @@ class UpdateBatchJobRequest(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cancel"] - ) -> MetaOapg.properties.cancel: ... + def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/update_batch_job_response.py b/launch/api_client/model/update_batch_job_response.py index 0012740b..ffb4ad23 100644 --- a/launch/api_client/model/update_batch_job_response.py +++ b/launch/api_client/model/update_batch_job_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -43,9 +44,7 @@ class properties: success: MetaOapg.properties.success @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["success"] - ) -> MetaOapg.properties.success: + def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload @@ -63,9 +62,7 @@ def __getitem__( return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["success"] - ) -> MetaOapg.properties.success: + def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload diff --git a/launch/api_client/model/update_batch_job_response.pyi b/launch/api_client/model/update_batch_job_response.pyi index b662d0b3..b6ed2feb 100644 --- a/launch/api_client/model/update_batch_job_response.pyi +++ b/launch/api_client/model/update_batch_job_response.pyi @@ -41,9 +41,7 @@ class UpdateBatchJobResponse(schemas.DictSchema): success: MetaOapg.properties.success @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["success"] - ) -> MetaOapg.properties.success: ... + def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -56,13 +54,9 @@ class UpdateBatchJobResponse(schemas.DictSchema): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["success"] - ) -> MetaOapg.properties.success: ... + def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/update_batch_job_v1_request.py b/launch/api_client/model/update_batch_job_v1_request.py index f2ab0ca7..55cbfa11 100644 --- a/launch/api_client/model/update_batch_job_v1_request.py +++ b/launch/api_client/model/update_batch_job_v1_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -55,9 +56,7 @@ def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel",], s return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cancel"] - ) -> MetaOapg.properties.cancel: + def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... @typing.overload diff --git a/launch/api_client/model/update_batch_job_v1_request.pyi b/launch/api_client/model/update_batch_job_v1_request.pyi index 85960c5f..9f146df2 100644 --- a/launch/api_client/model/update_batch_job_v1_request.pyi +++ b/launch/api_client/model/update_batch_job_v1_request.pyi @@ -41,22 +41,16 @@ class UpdateBatchJobV1Request(schemas.DictSchema): cancel: MetaOapg.properties.cancel @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["cancel"] - ) -> MetaOapg.properties.cancel: ... + def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["cancel"] - ) -> MetaOapg.properties.cancel: ... + def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/update_batch_job_v1_response.py b/launch/api_client/model/update_batch_job_v1_response.py index 427fff33..cb9129f5 100644 --- a/launch/api_client/model/update_batch_job_v1_response.py +++ b/launch/api_client/model/update_batch_job_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -43,9 +44,7 @@ class properties: success: MetaOapg.properties.success @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["success"] - ) -> MetaOapg.properties.success: + def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload @@ -57,9 +56,7 @@ def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["success"] - ) -> MetaOapg.properties.success: + def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload diff --git a/launch/api_client/model/update_batch_job_v1_response.pyi b/launch/api_client/model/update_batch_job_v1_response.pyi index b1fd7380..5f33c30d 100644 --- a/launch/api_client/model/update_batch_job_v1_response.pyi +++ b/launch/api_client/model/update_batch_job_v1_response.pyi @@ -41,22 +41,16 @@ class UpdateBatchJobV1Response(schemas.DictSchema): success: MetaOapg.properties.success @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["success"] - ) -> MetaOapg.properties.success: ... + def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["success"] - ) -> MetaOapg.properties.success: ... + def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success",], str]): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/update_model_endpoint_request.py b/launch/api_client/model/update_model_endpoint_request.py index 7b083c0e..98a0fc06 100644 --- a/launch/api_client/model/update_model_endpoint_request.py +++ b/launch/api_client/model/update_model_endpoint_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -366,15 +367,11 @@ def __new__( } @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["aws_role"] - ) -> MetaOapg.properties.aws_role: + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["billing_tags"] - ) -> MetaOapg.properties.billing_tags: + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... @typing.overload @@ -382,9 +379,7 @@ def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload @@ -406,9 +401,7 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload @@ -416,33 +409,23 @@ def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload @@ -452,9 +435,7 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["prewarm"] - ) -> MetaOapg.properties.prewarm: + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... @typing.overload @@ -464,9 +445,7 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload @@ -534,9 +513,7 @@ def get_item_oapg( ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload @@ -685,15 +662,9 @@ def __new__( MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - gpus: typing.Union[ - MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - labels: typing.Union[ - MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - max_workers: typing.Union[ - MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, memory: typing.Union[ MetaOapg.properties.memory, dict, @@ -717,25 +688,15 @@ def __new__( metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - min_workers: typing.Union[ - MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - model_bundle_id: typing.Union[ - MetaOapg.properties.model_bundle_id, str, schemas.Unset - ] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, - per_worker: typing.Union[ - MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[ - MetaOapg.properties.results_s3_bucket, str, schemas.Unset - ] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/update_model_endpoint_request.pyi b/launch/api_client/model/update_model_endpoint_request.pyi index 1e2d99e3..9e376da4 100644 --- a/launch/api_client/model/update_model_endpoint_request.pyi +++ b/launch/api_client/model/update_model_endpoint_request.pyi @@ -344,19 +344,13 @@ class UpdateModelEndpointRequest(schemas.DictSchema): "storage": storage, } @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["aws_role"] - ) -> MetaOapg.properties.aws_role: ... + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["billing_tags"] - ) -> MetaOapg.properties.billing_tags: ... + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -366,53 +360,35 @@ class UpdateModelEndpointRequest(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: ... + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: ... + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: ... + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: ... + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: ... + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["prewarm"] - ) -> MetaOapg.properties.prewarm: ... + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["results_s3_bucket"] ) -> MetaOapg.properties.results_s3_bucket: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: ... + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -465,9 +441,7 @@ class UpdateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["default_callback_url"] ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["gpus"] @@ -521,9 +495,7 @@ class UpdateModelEndpointRequest(schemas.DictSchema): self, name: typing_extensions.Literal["storage"] ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -587,15 +559,9 @@ class UpdateModelEndpointRequest(schemas.DictSchema): MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - gpus: typing.Union[ - MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - labels: typing.Union[ - MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - max_workers: typing.Union[ - MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, memory: typing.Union[ MetaOapg.properties.memory, dict, @@ -619,25 +585,15 @@ class UpdateModelEndpointRequest(schemas.DictSchema): metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - min_workers: typing.Union[ - MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - model_bundle_id: typing.Union[ - MetaOapg.properties.model_bundle_id, str, schemas.Unset - ] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, - per_worker: typing.Union[ - MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[ - MetaOapg.properties.results_s3_bucket, str, schemas.Unset - ] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/update_model_endpoint_response.py b/launch/api_client/model/update_model_endpoint_response.py index 20d54a28..8e34377f 100644 --- a/launch/api_client/model/update_model_endpoint_response.py +++ b/launch/api_client/model/update_model_endpoint_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/update_model_endpoint_response.pyi b/launch/api_client/model/update_model_endpoint_response.pyi index 82108eb2..692169f5 100644 --- a/launch/api_client/model/update_model_endpoint_response.pyi +++ b/launch/api_client/model/update_model_endpoint_response.pyi @@ -60,9 +60,7 @@ class UpdateModelEndpointResponse(schemas.DictSchema): self, name: typing_extensions.Literal["endpoint_creation_task_id"] ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/model/update_model_endpoint_v1_request.py b/launch/api_client/model/update_model_endpoint_v1_request.py index 20b2a2d6..811edbcd 100644 --- a/launch/api_client/model/update_model_endpoint_v1_request.py +++ b/launch/api_client/model/update_model_endpoint_v1_request.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -363,15 +364,11 @@ def __new__( } @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["aws_role"] - ) -> MetaOapg.properties.aws_role: + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["billing_tags"] - ) -> MetaOapg.properties.billing_tags: + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... @typing.overload @@ -379,9 +376,7 @@ def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload @@ -399,9 +394,7 @@ def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.prope ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["high_priority"] - ) -> MetaOapg.properties.high_priority: + def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... @typing.overload @@ -409,9 +402,7 @@ def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload @@ -419,33 +410,23 @@ def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.pro ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["model_bundle_id"] - ) -> MetaOapg.properties.model_bundle_id: + def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload @@ -455,9 +436,7 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["prewarm"] - ) -> MetaOapg.properties.prewarm: + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... @typing.overload @@ -467,9 +446,7 @@ def __getitem__( ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload @@ -538,9 +515,7 @@ def get_item_oapg( ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload @@ -696,18 +671,10 @@ def __new__( MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - gpus: typing.Union[ - MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - high_priority: typing.Union[ - MetaOapg.properties.high_priority, bool, schemas.Unset - ] = schemas.unset, - labels: typing.Union[ - MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - max_workers: typing.Union[ - MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, + high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, memory: typing.Union[ MetaOapg.properties.memory, dict, @@ -731,25 +698,15 @@ def __new__( metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - min_workers: typing.Union[ - MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - model_bundle_id: typing.Union[ - MetaOapg.properties.model_bundle_id, str, schemas.Unset - ] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, - per_worker: typing.Union[ - MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[ - MetaOapg.properties.results_s3_bucket, str, schemas.Unset - ] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/update_model_endpoint_v1_request.pyi b/launch/api_client/model/update_model_endpoint_v1_request.pyi index e8db501d..50acf6cb 100644 --- a/launch/api_client/model/update_model_endpoint_v1_request.pyi +++ b/launch/api_client/model/update_model_endpoint_v1_request.pyi @@ -340,19 +340,13 @@ class UpdateModelEndpointV1Request(schemas.DictSchema): "storage": storage, } @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["aws_role"] - ) -> MetaOapg.properties.aws_role: ... + def __getitem__(self, name: typing_extensions.Literal["aws_role"]) -> MetaOapg.properties.aws_role: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["billing_tags"] - ) -> MetaOapg.properties.billing_tags: ... + def __getitem__(self, name: typing_extensions.Literal["billing_tags"]) -> MetaOapg.properties.billing_tags: ... @typing.overload def __getitem__(self, name: typing_extensions.Literal["cpus"]) -> MetaOapg.properties.cpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["default_callback_auth"] - ) -> "CallbackAuth": ... + def __getitem__(self, name: typing_extensions.Literal["default_callback_auth"]) -> "CallbackAuth": ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["default_callback_url"] @@ -362,57 +356,37 @@ class UpdateModelEndpointV1Request(schemas.DictSchema): @typing.overload def __getitem__(self, name: typing_extensions.Literal["gpus"]) -> MetaOapg.properties.gpus: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["high_priority"] - ) -> MetaOapg.properties.high_priority: ... + def __getitem__(self, name: typing_extensions.Literal["high_priority"]) -> MetaOapg.properties.high_priority: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["labels"] - ) -> MetaOapg.properties.labels: ... + def __getitem__(self, name: typing_extensions.Literal["labels"]) -> MetaOapg.properties.labels: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["max_workers"] - ) -> MetaOapg.properties.max_workers: ... + def __getitem__(self, name: typing_extensions.Literal["max_workers"]) -> MetaOapg.properties.max_workers: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["memory"] - ) -> MetaOapg.properties.memory: ... + def __getitem__(self, name: typing_extensions.Literal["memory"]) -> MetaOapg.properties.memory: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["metadata"] - ) -> MetaOapg.properties.metadata: ... + def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["min_workers"] - ) -> MetaOapg.properties.min_workers: ... + def __getitem__(self, name: typing_extensions.Literal["min_workers"]) -> MetaOapg.properties.min_workers: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["model_bundle_id"] ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["optimize_costs"] - ) -> MetaOapg.properties.optimize_costs: ... + def __getitem__(self, name: typing_extensions.Literal["optimize_costs"]) -> MetaOapg.properties.optimize_costs: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["per_worker"] - ) -> MetaOapg.properties.per_worker: ... + def __getitem__(self, name: typing_extensions.Literal["per_worker"]) -> MetaOapg.properties.per_worker: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["post_inference_hooks"] ) -> MetaOapg.properties.post_inference_hooks: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["prewarm"] - ) -> MetaOapg.properties.prewarm: ... + def __getitem__(self, name: typing_extensions.Literal["prewarm"]) -> MetaOapg.properties.prewarm: ... @typing.overload def __getitem__( self, name: typing_extensions.Literal["results_s3_bucket"] ) -> MetaOapg.properties.results_s3_bucket: ... @typing.overload - def __getitem__( - self, name: typing_extensions.Literal["storage"] - ) -> MetaOapg.properties.storage: ... + def __getitem__(self, name: typing_extensions.Literal["storage"]) -> MetaOapg.properties.storage: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... def __getitem__( @@ -466,9 +440,7 @@ class UpdateModelEndpointV1Request(schemas.DictSchema): self, name: typing_extensions.Literal["default_callback_url"] ) -> typing.Union[MetaOapg.properties.default_callback_url, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["gpu_type"] - ) -> typing.Union["GpuType", schemas.Unset]: ... + def get_item_oapg(self, name: typing_extensions.Literal["gpu_type"]) -> typing.Union["GpuType", schemas.Unset]: ... @typing.overload def get_item_oapg( self, name: typing_extensions.Literal["gpus"] @@ -526,9 +498,7 @@ class UpdateModelEndpointV1Request(schemas.DictSchema): self, name: typing_extensions.Literal["storage"] ) -> typing.Union[MetaOapg.properties.storage, schemas.Unset]: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ @@ -593,18 +563,10 @@ class UpdateModelEndpointV1Request(schemas.DictSchema): MetaOapg.properties.default_callback_url, str, schemas.Unset ] = schemas.unset, gpu_type: typing.Union["GpuType", schemas.Unset] = schemas.unset, - gpus: typing.Union[ - MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - high_priority: typing.Union[ - MetaOapg.properties.high_priority, bool, schemas.Unset - ] = schemas.unset, - labels: typing.Union[ - MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset - ] = schemas.unset, - max_workers: typing.Union[ - MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + gpus: typing.Union[MetaOapg.properties.gpus, decimal.Decimal, int, schemas.Unset] = schemas.unset, + high_priority: typing.Union[MetaOapg.properties.high_priority, bool, schemas.Unset] = schemas.unset, + labels: typing.Union[MetaOapg.properties.labels, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + max_workers: typing.Union[MetaOapg.properties.max_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, memory: typing.Union[ MetaOapg.properties.memory, dict, @@ -628,25 +590,15 @@ class UpdateModelEndpointV1Request(schemas.DictSchema): metadata: typing.Union[ MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset ] = schemas.unset, - min_workers: typing.Union[ - MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, - model_bundle_id: typing.Union[ - MetaOapg.properties.model_bundle_id, str, schemas.Unset - ] = schemas.unset, - optimize_costs: typing.Union[ - MetaOapg.properties.optimize_costs, bool, schemas.Unset - ] = schemas.unset, - per_worker: typing.Union[ - MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset - ] = schemas.unset, + min_workers: typing.Union[MetaOapg.properties.min_workers, decimal.Decimal, int, schemas.Unset] = schemas.unset, + model_bundle_id: typing.Union[MetaOapg.properties.model_bundle_id, str, schemas.Unset] = schemas.unset, + optimize_costs: typing.Union[MetaOapg.properties.optimize_costs, bool, schemas.Unset] = schemas.unset, + per_worker: typing.Union[MetaOapg.properties.per_worker, decimal.Decimal, int, schemas.Unset] = schemas.unset, post_inference_hooks: typing.Union[ MetaOapg.properties.post_inference_hooks, list, tuple, schemas.Unset ] = schemas.unset, prewarm: typing.Union[MetaOapg.properties.prewarm, bool, schemas.Unset] = schemas.unset, - results_s3_bucket: typing.Union[ - MetaOapg.properties.results_s3_bucket, str, schemas.Unset - ] = schemas.unset, + results_s3_bucket: typing.Union[MetaOapg.properties.results_s3_bucket, str, schemas.Unset] = schemas.unset, storage: typing.Union[ MetaOapg.properties.storage, dict, diff --git a/launch/api_client/model/update_model_endpoint_v1_response.py b/launch/api_client/model/update_model_endpoint_v1_response.py index 68de57e5..4369866b 100644 --- a/launch/api_client/model/update_model_endpoint_v1_response.py +++ b/launch/api_client/model/update_model_endpoint_v1_response.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 @@ -52,9 +53,7 @@ def __getitem__( def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] - ): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) @@ -68,9 +67,7 @@ def get_item_oapg( def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg( - self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] - ): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/update_model_endpoint_v1_response.pyi b/launch/api_client/model/update_model_endpoint_v1_response.pyi index 6da66a1a..2b330725 100644 --- a/launch/api_client/model/update_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/update_model_endpoint_v1_response.pyi @@ -46,9 +46,7 @@ class UpdateModelEndpointV1Response(schemas.DictSchema): ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__( - self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str] - ): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload @@ -56,12 +54,8 @@ class UpdateModelEndpointV1Response(schemas.DictSchema): self, name: typing_extensions.Literal["endpoint_creation_task_id"] ) -> MetaOapg.properties.endpoint_creation_task_id: ... @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["endpoint_creation_task_id",], str] - ): + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/validation_error.py b/launch/api_client/model/validation_error.py index 1cb90f8f..8cc3cf6a 100644 --- a/launch/api_client/model/validation_error.py +++ b/launch/api_client/model/validation_error.py @@ -19,6 +19,7 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 + from launch.api_client import schemas # noqa: F401 diff --git a/launch/api_client/model/validation_error.pyi b/launch/api_client/model/validation_error.pyi index f406533e..865e67c4 100644 --- a/launch/api_client/model/validation_error.pyi +++ b/launch/api_client/model/validation_error.pyi @@ -195,13 +195,9 @@ class ValidationError(schemas.DictSchema): @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["msg"]) -> MetaOapg.properties.msg: ... @typing.overload - def get_item_oapg( - self, name: typing_extensions.Literal["type"] - ) -> MetaOapg.properties.type: ... + def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... @typing.overload - def get_item_oapg( - self, name: str - ) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... def get_item_oapg( self, name: typing.Union[ diff --git a/launch/api_client/models/__init__.py b/launch/api_client/models/__init__.py index 913a6e4e..cf694480 100644 --- a/launch/api_client/models/__init__.py +++ b/launch/api_client/models/__init__.py @@ -11,45 +11,103 @@ # import sys # sys.setrecursionlimit(n) -from launch.api_client.model.batch_job_serialization_format import BatchJobSerializationFormat +from launch.api_client.model.batch_job_serialization_format import ( + BatchJobSerializationFormat, +) from launch.api_client.model.batch_job_status import BatchJobStatus from launch.api_client.model.callback_auth import CallbackAuth from launch.api_client.model.callback_basic_auth import CallbackBasicAuth from launch.api_client.model.callbackm_tls_auth import CallbackmTLSAuth -from launch.api_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request -from launch.api_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response -from launch.api_client.model.create_batch_job_resource_requests import CreateBatchJobResourceRequests -from launch.api_client.model.create_batch_job_v1_request import CreateBatchJobV1Request -from launch.api_client.model.create_batch_job_v1_response import CreateBatchJobV1Response -from launch.api_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request -from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response -from launch.api_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request -from launch.api_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response -from launch.api_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response -from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request -from launch.api_client.model.get_async_task_v1_response import GetAsyncTaskV1Response -from launch.api_client.model.get_batch_job_v1_response import GetBatchJobV1Response -from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response +from launch.api_client.model.clone_model_bundle_v1_request import ( + CloneModelBundleV1Request, +) +from launch.api_client.model.create_async_task_v1_response import ( + CreateAsyncTaskV1Response, +) +from launch.api_client.model.create_batch_job_resource_requests import ( + CreateBatchJobResourceRequests, +) +from launch.api_client.model.create_batch_job_v1_request import ( + CreateBatchJobV1Request, +) +from launch.api_client.model.create_batch_job_v1_response import ( + CreateBatchJobV1Response, +) +from launch.api_client.model.create_model_bundle_v1_request import ( + CreateModelBundleV1Request, +) +from launch.api_client.model.create_model_bundle_v1_response import ( + CreateModelBundleV1Response, +) +from launch.api_client.model.create_model_endpoint_v1_request import ( + CreateModelEndpointV1Request, +) +from launch.api_client.model.create_model_endpoint_v1_response import ( + CreateModelEndpointV1Response, +) +from launch.api_client.model.delete_model_endpoint_v1_response import ( + DeleteModelEndpointV1Response, +) +from launch.api_client.model.endpoint_predict_v1_request import ( + EndpointPredictV1Request, +) +from launch.api_client.model.get_async_task_v1_response import ( + GetAsyncTaskV1Response, +) +from launch.api_client.model.get_batch_job_v1_response import ( + GetBatchJobV1Response, +) +from launch.api_client.model.get_model_endpoint_v1_response import ( + GetModelEndpointV1Response, +) from launch.api_client.model.gpu_type import GpuType from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response -from launch.api_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response -from launch.api_client.model.model_bundle_environment_params import ModelBundleEnvironmentParams -from launch.api_client.model.model_bundle_framework_type import ModelBundleFrameworkType +from launch.api_client.model.list_model_bundles_v1_response import ( + ListModelBundlesV1Response, +) +from launch.api_client.model.list_model_endpoints_v1_response import ( + ListModelEndpointsV1Response, +) +from launch.api_client.model.model_bundle_environment_params import ( + ModelBundleEnvironmentParams, +) +from launch.api_client.model.model_bundle_framework_type import ( + ModelBundleFrameworkType, +) from launch.api_client.model.model_bundle_order_by import ModelBundleOrderBy -from launch.api_client.model.model_bundle_packaging_type import ModelBundlePackagingType -from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response -from launch.api_client.model.model_endpoint_deployment_state import ModelEndpointDeploymentState -from launch.api_client.model.model_endpoint_order_by import ModelEndpointOrderBy -from launch.api_client.model.model_endpoint_resource_state import ModelEndpointResourceState +from launch.api_client.model.model_bundle_packaging_type import ( + ModelBundlePackagingType, +) +from launch.api_client.model.model_bundle_v1_response import ( + ModelBundleV1Response, +) +from launch.api_client.model.model_endpoint_deployment_state import ( + ModelEndpointDeploymentState, +) +from launch.api_client.model.model_endpoint_order_by import ( + ModelEndpointOrderBy, +) +from launch.api_client.model.model_endpoint_resource_state import ( + ModelEndpointResourceState, +) from launch.api_client.model.model_endpoint_status import ModelEndpointStatus from launch.api_client.model.model_endpoint_type import ModelEndpointType from launch.api_client.model.request_schema import RequestSchema from launch.api_client.model.response_schema import ResponseSchema -from launch.api_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response +from launch.api_client.model.sync_endpoint_predict_v1_response import ( + SyncEndpointPredictV1Response, +) from launch.api_client.model.task_status import TaskStatus -from launch.api_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request -from launch.api_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response -from launch.api_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request -from launch.api_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response +from launch.api_client.model.update_batch_job_v1_request import ( + UpdateBatchJobV1Request, +) +from launch.api_client.model.update_batch_job_v1_response import ( + UpdateBatchJobV1Response, +) +from launch.api_client.model.update_model_endpoint_v1_request import ( + UpdateModelEndpointV1Request, +) +from launch.api_client.model.update_model_endpoint_v1_response import ( + UpdateModelEndpointV1Response, +) from launch.api_client.model.validation_error import ValidationError diff --git a/launch/api_client/paths/healthcheck/get.py b/launch/api_client/paths/healthcheck/get.py index 31cde267..4cbeec4b 100644 --- a/launch/api_client/paths/healthcheck/get.py +++ b/launch/api_client/paths/healthcheck/get.py @@ -18,9 +18,10 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict from . import path @@ -111,16 +112,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/healthcheck/get.pyi b/launch/api_client/paths/healthcheck/get.pyi index 08eb7fdb..519a05dc 100644 --- a/launch/api_client/paths/healthcheck/get.pyi +++ b/launch/api_client/paths/healthcheck/get.pyi @@ -97,16 +97,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/healthz/get.py b/launch/api_client/paths/healthz/get.py index 4e7dbe35..c71e242f 100644 --- a/launch/api_client/paths/healthz/get.py +++ b/launch/api_client/paths/healthz/get.py @@ -18,9 +18,10 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict from . import path @@ -111,16 +112,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/healthz/get.pyi b/launch/api_client/paths/healthz/get.pyi index 445e62de..e80889c1 100644 --- a/launch/api_client/paths/healthz/get.pyi +++ b/launch/api_client/paths/healthz/get.pyi @@ -97,16 +97,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/readyz/get.py b/launch/api_client/paths/readyz/get.py index a532808d..c016a017 100644 --- a/launch/api_client/paths/readyz/get.py +++ b/launch/api_client/paths/readyz/get.py @@ -18,9 +18,10 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict from . import path @@ -111,16 +112,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/readyz/get.pyi b/launch/api_client/paths/readyz/get.pyi index f67c6816..7ef0ef1c 100644 --- a/launch/api_client/paths/readyz/get.pyi +++ b/launch/api_client/paths/readyz/get.pyi @@ -97,16 +97,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_async_tasks/post.py b/launch/api_client/paths/v1_async_tasks/post.py index dcfdfcb0..19d68ae1 100644 --- a/launch/api_client/paths/v1_async_tasks/post.py +++ b/launch/api_client/paths/v1_async_tasks/post.py @@ -18,12 +18,17 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from launch.api_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response -from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request +from launch.api_client.model.create_async_task_v1_response import ( + CreateAsyncTaskV1Response, +) +from launch.api_client.model.endpoint_predict_v1_request import ( + EndpointPredictV1Request, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict from . import path @@ -38,9 +43,7 @@ ], }, ) -RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", {}, total=False -) +RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): @@ -223,16 +226,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_async_tasks/post.pyi b/launch/api_client/paths/v1_async_tasks/post.pyi index f98e88aa..3e863a0d 100644 --- a/launch/api_client/paths/v1_async_tasks/post.pyi +++ b/launch/api_client/paths/v1_async_tasks/post.pyi @@ -20,8 +20,12 @@ import typing_extensions # noqa: F401 import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions -from launch_client.model.create_async_task_v1_response import CreateAsyncTaskV1Response -from launch_client.model.endpoint_predict_v1_request import EndpointPredictV1Request +from launch_client.model.create_async_task_v1_response import ( + CreateAsyncTaskV1Response, +) +from launch_client.model.endpoint_predict_v1_request import ( + EndpointPredictV1Request, +) from launch_client.model.http_validation_error import HTTPValidationError from urllib3._collections import HTTPHeaderDict @@ -36,9 +40,7 @@ RequestRequiredQueryParams = typing_extensions.TypedDict( ], }, ) -RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", {}, total=False -) +RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass @@ -198,16 +200,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_async_tasks_task_id/get.py b/launch/api_client/paths/v1_async_tasks_task_id/get.py index 56cc00c7..7bb49fa2 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/get.py +++ b/launch/api_client/paths/v1_async_tasks_task_id/get.py @@ -18,11 +18,14 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from launch.api_client.model.get_async_task_v1_response import GetAsyncTaskV1Response +from launch.api_client.model.get_async_task_v1_response import ( + GetAsyncTaskV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict from . import path @@ -37,9 +40,7 @@ ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -176,16 +177,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_async_tasks_task_id/get.pyi b/launch/api_client/paths/v1_async_tasks_task_id/get.pyi index c71ca57a..c730023f 100644 --- a/launch/api_client/paths/v1_async_tasks_task_id/get.pyi +++ b/launch/api_client/paths/v1_async_tasks_task_id/get.pyi @@ -20,7 +20,9 @@ import typing_extensions # noqa: F401 import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions -from launch_client.model.get_async_task_v1_response import GetAsyncTaskV1Response +from launch_client.model.get_async_task_v1_response import ( + GetAsyncTaskV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError from urllib3._collections import HTTPHeaderDict @@ -35,9 +37,7 @@ RequestRequiredPathParams = typing_extensions.TypedDict( ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass @@ -154,16 +154,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_batch_jobs/post.py b/launch/api_client/paths/v1_batch_jobs/post.py index fea5907f..f8769488 100644 --- a/launch/api_client/paths/v1_batch_jobs/post.py +++ b/launch/api_client/paths/v1_batch_jobs/post.py @@ -18,12 +18,17 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from launch.api_client.model.create_batch_job_v1_request import CreateBatchJobV1Request -from launch.api_client.model.create_batch_job_v1_response import CreateBatchJobV1Response +from launch.api_client.model.create_batch_job_v1_request import ( + CreateBatchJobV1Request, +) +from launch.api_client.model.create_batch_job_v1_response import ( + CreateBatchJobV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict from . import path @@ -179,16 +184,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_batch_jobs/post.pyi b/launch/api_client/paths/v1_batch_jobs/post.pyi index ddd882a5..0f199580 100644 --- a/launch/api_client/paths/v1_batch_jobs/post.pyi +++ b/launch/api_client/paths/v1_batch_jobs/post.pyi @@ -20,8 +20,12 @@ import typing_extensions # noqa: F401 import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions -from launch_client.model.create_batch_job_v1_request import CreateBatchJobV1Request -from launch_client.model.create_batch_job_v1_response import CreateBatchJobV1Response +from launch_client.model.create_batch_job_v1_request import ( + CreateBatchJobV1Request, +) +from launch_client.model.create_batch_job_v1_response import ( + CreateBatchJobV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError from urllib3._collections import HTTPHeaderDict @@ -156,16 +160,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py index 71a0c3d4..f8a0cc74 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.py @@ -18,11 +18,14 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from launch.api_client.model.get_batch_job_v1_response import GetBatchJobV1Response +from launch.api_client.model.get_batch_job_v1_response import ( + GetBatchJobV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict from . import path @@ -37,9 +40,7 @@ ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -176,16 +177,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi index f21f3440..2c9aba69 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/get.pyi @@ -35,9 +35,7 @@ RequestRequiredPathParams = typing_extensions.TypedDict( ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass @@ -154,16 +152,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py index 49781059..fdd87da6 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.py @@ -18,12 +18,17 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request -from launch.api_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response -from urllib3._collections import HTTPHeaderDict +from launch.api_client.model.update_batch_job_v1_request import ( + UpdateBatchJobV1Request, +) +from launch.api_client.model.update_batch_job_v1_response import ( + UpdateBatchJobV1Response, +) from . import path @@ -38,9 +43,7 @@ ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -222,16 +225,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi index 396780ce..65a06365 100644 --- a/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi +++ b/launch/api_client/paths/v1_batch_jobs_batch_job_id/put.pyi @@ -21,8 +21,12 @@ import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.update_batch_job_v1_request import UpdateBatchJobV1Request -from launch_client.model.update_batch_job_v1_response import UpdateBatchJobV1Response +from launch_client.model.update_batch_job_v1_request import ( + UpdateBatchJobV1Request, +) +from launch_client.model.update_batch_job_v1_response import ( + UpdateBatchJobV1Response, +) from urllib3._collections import HTTPHeaderDict # Path params @@ -36,9 +40,7 @@ RequestRequiredPathParams = typing_extensions.TypedDict( ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass @@ -197,16 +199,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_bundles/get.py b/launch/api_client/paths/v1_model_bundles/get.py index b8b340ad..4ed7d60d 100644 --- a/launch/api_client/paths/v1_model_bundles/get.py +++ b/launch/api_client/paths/v1_model_bundles/get.py @@ -18,12 +18,15 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch.api_client.model.list_model_bundles_v1_response import ( + ListModelBundlesV1Response, +) from launch.api_client.model.model_bundle_order_by import ModelBundleOrderBy -from urllib3._collections import HTTPHeaderDict from . import path @@ -187,16 +190,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_bundles/get.pyi b/launch/api_client/paths/v1_model_bundles/get.pyi index 3008f70b..2d2cf510 100644 --- a/launch/api_client/paths/v1_model_bundles/get.pyi +++ b/launch/api_client/paths/v1_model_bundles/get.pyi @@ -21,7 +21,9 @@ import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.list_model_bundles_v1_response import ListModelBundlesV1Response +from launch_client.model.list_model_bundles_v1_response import ( + ListModelBundlesV1Response, +) from launch_client.model.model_bundle_order_by import ModelBundleOrderBy from urllib3._collections import HTTPHeaderDict @@ -165,16 +167,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_bundles/post.py b/launch/api_client/paths/v1_model_bundles/post.py index b860335f..c850d079 100644 --- a/launch/api_client/paths/v1_model_bundles/post.py +++ b/launch/api_client/paths/v1_model_bundles/post.py @@ -18,12 +18,17 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from launch.api_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request -from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch.api_client.model.create_model_bundle_v1_request import ( + CreateModelBundleV1Request, +) +from launch.api_client.model.create_model_bundle_v1_response import ( + CreateModelBundleV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict from . import path @@ -179,16 +184,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_bundles/post.pyi b/launch/api_client/paths/v1_model_bundles/post.pyi index f902270e..780b6144 100644 --- a/launch/api_client/paths/v1_model_bundles/post.pyi +++ b/launch/api_client/paths/v1_model_bundles/post.pyi @@ -20,8 +20,12 @@ import typing_extensions # noqa: F401 import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions -from launch_client.model.create_model_bundle_v1_request import CreateModelBundleV1Request -from launch_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch_client.model.create_model_bundle_v1_request import ( + CreateModelBundleV1Request, +) +from launch_client.model.create_model_bundle_v1_response import ( + CreateModelBundleV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError from urllib3._collections import HTTPHeaderDict @@ -156,16 +160,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py index 0c994182..d6665999 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.py @@ -18,12 +18,17 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from launch.api_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request -from launch.api_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch.api_client.model.clone_model_bundle_v1_request import ( + CloneModelBundleV1Request, +) +from launch.api_client.model.create_model_bundle_v1_response import ( + CreateModelBundleV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict from . import path @@ -179,16 +184,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi index 107543d9..550e5780 100644 --- a/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi +++ b/launch/api_client/paths/v1_model_bundles_clone_with_changes/post.pyi @@ -20,8 +20,12 @@ import typing_extensions # noqa: F401 import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions -from launch_client.model.clone_model_bundle_v1_request import CloneModelBundleV1Request -from launch_client.model.create_model_bundle_v1_response import CreateModelBundleV1Response +from launch_client.model.clone_model_bundle_v1_request import ( + CloneModelBundleV1Request, +) +from launch_client.model.create_model_bundle_v1_response import ( + CreateModelBundleV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError from urllib3._collections import HTTPHeaderDict @@ -156,16 +160,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_bundles_latest/get.py b/launch/api_client/paths/v1_model_bundles_latest/get.py index 5788a2ae..e4397a5a 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/get.py +++ b/launch/api_client/paths/v1_model_bundles_latest/get.py @@ -18,11 +18,14 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response -from urllib3._collections import HTTPHeaderDict +from launch.api_client.model.model_bundle_v1_response import ( + ModelBundleV1Response, +) from . import path @@ -37,9 +40,7 @@ ], }, ) -RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", {}, total=False -) +RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): @@ -177,16 +178,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_bundles_latest/get.pyi b/launch/api_client/paths/v1_model_bundles_latest/get.pyi index 28d050cc..bacb33b7 100644 --- a/launch/api_client/paths/v1_model_bundles_latest/get.pyi +++ b/launch/api_client/paths/v1_model_bundles_latest/get.pyi @@ -35,9 +35,7 @@ RequestRequiredQueryParams = typing_extensions.TypedDict( ], }, ) -RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", {}, total=False -) +RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass @@ -155,16 +153,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py index f6b7a6e6..f79165c8 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.py @@ -18,11 +18,14 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.model_bundle_v1_response import ModelBundleV1Response -from urllib3._collections import HTTPHeaderDict +from launch.api_client.model.model_bundle_v1_response import ( + ModelBundleV1Response, +) from . import path @@ -37,9 +40,7 @@ ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -176,16 +177,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi index 9efb6e16..4af810ea 100644 --- a/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi +++ b/launch/api_client/paths/v1_model_bundles_model_bundle_id/get.pyi @@ -35,9 +35,7 @@ RequestRequiredPathParams = typing_extensions.TypedDict( ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass @@ -154,16 +152,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints/get.py b/launch/api_client/paths/v1_model_endpoints/get.py index 122ac815..e572a293 100644 --- a/launch/api_client/paths/v1_model_endpoints/get.py +++ b/launch/api_client/paths/v1_model_endpoints/get.py @@ -18,12 +18,17 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response -from launch.api_client.model.model_endpoint_order_by import ModelEndpointOrderBy -from urllib3._collections import HTTPHeaderDict +from launch.api_client.model.list_model_endpoints_v1_response import ( + ListModelEndpointsV1Response, +) +from launch.api_client.model.model_endpoint_order_by import ( + ModelEndpointOrderBy, +) from . import path @@ -187,16 +192,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints/get.pyi b/launch/api_client/paths/v1_model_endpoints/get.pyi index a0583a51..fea7a870 100644 --- a/launch/api_client/paths/v1_model_endpoints/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints/get.pyi @@ -21,7 +21,9 @@ import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.list_model_endpoints_v1_response import ListModelEndpointsV1Response +from launch_client.model.list_model_endpoints_v1_response import ( + ListModelEndpointsV1Response, +) from launch_client.model.model_endpoint_order_by import ModelEndpointOrderBy from urllib3._collections import HTTPHeaderDict @@ -165,16 +167,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints/post.py b/launch/api_client/paths/v1_model_endpoints/post.py index 89072771..99b4a96e 100644 --- a/launch/api_client/paths/v1_model_endpoints/post.py +++ b/launch/api_client/paths/v1_model_endpoints/post.py @@ -18,12 +18,17 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from launch.api_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request -from launch.api_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response +from launch.api_client.model.create_model_endpoint_v1_request import ( + CreateModelEndpointV1Request, +) +from launch.api_client.model.create_model_endpoint_v1_response import ( + CreateModelEndpointV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict from . import path @@ -157,9 +162,7 @@ class instances ) _fields = None _body = None - serialized_data = request_body_create_model_endpoint_v1_request.serialize( - body, content_type - ) + serialized_data = request_body_create_model_endpoint_v1_request.serialize(body, content_type) _headers.add("Content-Type", content_type) if "fields" in serialized_data: _fields = serialized_data["fields"] @@ -181,16 +184,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints/post.pyi b/launch/api_client/paths/v1_model_endpoints/post.pyi index 1d8bf671..2af825d6 100644 --- a/launch/api_client/paths/v1_model_endpoints/post.pyi +++ b/launch/api_client/paths/v1_model_endpoints/post.pyi @@ -20,8 +20,12 @@ import typing_extensions # noqa: F401 import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions -from launch_client.model.create_model_endpoint_v1_request import CreateModelEndpointV1Request -from launch_client.model.create_model_endpoint_v1_response import CreateModelEndpointV1Response +from launch_client.model.create_model_endpoint_v1_request import ( + CreateModelEndpointV1Request, +) +from launch_client.model.create_model_endpoint_v1_response import ( + CreateModelEndpointV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError from urllib3._collections import HTTPHeaderDict @@ -134,9 +138,7 @@ class BaseApi(api_client.Api): ) _fields = None _body = None - serialized_data = request_body_create_model_endpoint_v1_request.serialize( - body, content_type - ) + serialized_data = request_body_create_model_endpoint_v1_request.serialize(body, content_type) _headers.add("Content-Type", content_type) if "fields" in serialized_data: _fields = serialized_data["fields"] @@ -158,16 +160,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints_api/get.py b/launch/api_client/paths/v1_model_endpoints_api/get.py index c597cb28..d46a8f06 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/get.py +++ b/launch/api_client/paths/v1_model_endpoints_api/get.py @@ -18,9 +18,10 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict from . import path @@ -115,16 +116,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints_api/get.pyi b/launch/api_client/paths/v1_model_endpoints_api/get.pyi index 02af8d5a..a95a6348 100644 --- a/launch/api_client/paths/v1_model_endpoints_api/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_api/get.pyi @@ -98,16 +98,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py index 2f37b146..3add1108 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.py @@ -18,11 +18,14 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from launch.api_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response +from launch.api_client.model.delete_model_endpoint_v1_response import ( + DeleteModelEndpointV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict from . import path @@ -37,9 +40,7 @@ ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -176,16 +177,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi index a4c4e68b..07bbc190 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/delete.pyi @@ -20,7 +20,9 @@ import typing_extensions # noqa: F401 import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions -from launch_client.model.delete_model_endpoint_v1_response import DeleteModelEndpointV1Response +from launch_client.model.delete_model_endpoint_v1_response import ( + DeleteModelEndpointV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError from urllib3._collections import HTTPHeaderDict @@ -35,9 +37,7 @@ RequestRequiredPathParams = typing_extensions.TypedDict( ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass @@ -154,16 +154,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py index 95c24286..daa30f01 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.py @@ -18,11 +18,14 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from launch.api_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response +from launch.api_client.model.get_model_endpoint_v1_response import ( + GetModelEndpointV1Response, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from urllib3._collections import HTTPHeaderDict from . import path @@ -37,9 +40,7 @@ ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -176,16 +177,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi index 6e876c82..1c74f794 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/get.pyi @@ -20,7 +20,9 @@ import typing_extensions # noqa: F401 import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions -from launch_client.model.get_model_endpoint_v1_response import GetModelEndpointV1Response +from launch_client.model.get_model_endpoint_v1_response import ( + GetModelEndpointV1Response, +) from launch_client.model.http_validation_error import HTTPValidationError from urllib3._collections import HTTPHeaderDict @@ -35,9 +37,7 @@ RequestRequiredPathParams = typing_extensions.TypedDict( ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass @@ -154,16 +154,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py index 76576081..6c1e4cf4 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.py @@ -18,12 +18,17 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request -from launch.api_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response -from urllib3._collections import HTTPHeaderDict +from launch.api_client.model.update_model_endpoint_v1_request import ( + UpdateModelEndpointV1Request, +) +from launch.api_client.model.update_model_endpoint_v1_response import ( + UpdateModelEndpointV1Response, +) from . import path @@ -38,9 +43,7 @@ ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): @@ -200,9 +203,7 @@ class instances ) _fields = None _body = None - serialized_data = request_body_update_model_endpoint_v1_request.serialize( - body, content_type - ) + serialized_data = request_body_update_model_endpoint_v1_request.serialize(body, content_type) _headers.add("Content-Type", content_type) if "fields" in serialized_data: _fields = serialized_data["fields"] @@ -224,16 +225,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi index 22eb8cab..60495b21 100644 --- a/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi +++ b/launch/api_client/paths/v1_model_endpoints_model_endpoint_id/put.pyi @@ -21,8 +21,12 @@ import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.update_model_endpoint_v1_request import UpdateModelEndpointV1Request -from launch_client.model.update_model_endpoint_v1_response import UpdateModelEndpointV1Response +from launch_client.model.update_model_endpoint_v1_request import ( + UpdateModelEndpointV1Request, +) +from launch_client.model.update_model_endpoint_v1_response import ( + UpdateModelEndpointV1Response, +) from urllib3._collections import HTTPHeaderDict # Path params @@ -36,9 +40,7 @@ RequestRequiredPathParams = typing_extensions.TypedDict( ], }, ) -RequestOptionalPathParams = typing_extensions.TypedDict( - "RequestOptionalPathParams", {}, total=False -) +RequestOptionalPathParams = typing_extensions.TypedDict("RequestOptionalPathParams", {}, total=False) class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): pass @@ -175,9 +177,7 @@ class BaseApi(api_client.Api): ) _fields = None _body = None - serialized_data = request_body_update_model_endpoint_v1_request.serialize( - body, content_type - ) + serialized_data = request_body_update_model_endpoint_v1_request.serialize(body, content_type) _headers.add("Content-Type", content_type) if "fields" in serialized_data: _fields = serialized_data["fields"] @@ -199,16 +199,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/get.py b/launch/api_client/paths/v1_model_endpoints_schema_json/get.py index 3cfa0287..2cba49a7 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/get.py +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/get.py @@ -18,9 +18,10 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from urllib3._collections import HTTPHeaderDict from . import path @@ -115,16 +116,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi b/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi index aac7e01b..25adcc5f 100644 --- a/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi +++ b/launch/api_client/paths/v1_model_endpoints_schema_json/get.pyi @@ -98,16 +98,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_sync_tasks/post.py b/launch/api_client/paths/v1_sync_tasks/post.py index 09d960a2..50fbe602 100644 --- a/launch/api_client/paths/v1_sync_tasks/post.py +++ b/launch/api_client/paths/v1_sync_tasks/post.py @@ -18,12 +18,17 @@ import frozendict # noqa: F401 import typing_extensions # noqa: F401 import urllib3 +from urllib3._collections import HTTPHeaderDict + from launch.api_client import schemas # noqa: F401 from launch.api_client import api_client, exceptions -from launch.api_client.model.endpoint_predict_v1_request import EndpointPredictV1Request +from launch.api_client.model.endpoint_predict_v1_request import ( + EndpointPredictV1Request, +) from launch.api_client.model.http_validation_error import HTTPValidationError -from launch.api_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response -from urllib3._collections import HTTPHeaderDict +from launch.api_client.model.sync_endpoint_predict_v1_response import ( + SyncEndpointPredictV1Response, +) from . import path @@ -38,9 +43,7 @@ ], }, ) -RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", {}, total=False -) +RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): @@ -223,16 +226,12 @@ class instances else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/paths/v1_sync_tasks/post.pyi b/launch/api_client/paths/v1_sync_tasks/post.pyi index 6e9ab54f..b1e97f28 100644 --- a/launch/api_client/paths/v1_sync_tasks/post.pyi +++ b/launch/api_client/paths/v1_sync_tasks/post.pyi @@ -20,9 +20,13 @@ import typing_extensions # noqa: F401 import urllib3 from launch_client import schemas # noqa: F401 from launch_client import api_client, exceptions -from launch_client.model.endpoint_predict_v1_request import EndpointPredictV1Request +from launch_client.model.endpoint_predict_v1_request import ( + EndpointPredictV1Request, +) from launch_client.model.http_validation_error import HTTPValidationError -from launch_client.model.sync_endpoint_predict_v1_response import SyncEndpointPredictV1Response +from launch_client.model.sync_endpoint_predict_v1_response import ( + SyncEndpointPredictV1Response, +) from urllib3._collections import HTTPHeaderDict # Query params @@ -36,9 +40,7 @@ RequestRequiredQueryParams = typing_extensions.TypedDict( ], }, ) -RequestOptionalQueryParams = typing_extensions.TypedDict( - "RequestOptionalQueryParams", {}, total=False -) +RequestOptionalQueryParams = typing_extensions.TypedDict("RequestOptionalQueryParams", {}, total=False) class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): pass @@ -198,16 +200,12 @@ class BaseApi(api_client.Api): else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: - api_response = response_for_status.deserialize( - response, self.api_client.configuration - ) + api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, reason=response.reason, api_response=api_response - ) + raise exceptions.ApiException(status=response.status, reason=response.reason, api_response=api_response) return api_response diff --git a/launch/api_client/rest.py b/launch/api_client/rest.py index 8d3d9e67..58896e8a 100644 --- a/launch/api_client/rest.py +++ b/launch/api_client/rest.py @@ -16,9 +16,10 @@ import certifi import urllib3 -from launch.api_client.exceptions import ApiException, ApiValueError from urllib3._collections import HTTPHeaderDict +from launch.api_client.exceptions import ApiException, ApiValueError + logger = logging.getLogger(__name__) @@ -178,9 +179,7 @@ def request( raise ApiException(status=0, reason=msg) # For `GET`, `HEAD` else: - r = self.pool_manager.request( - method, url, preload_content=not stream, timeout=timeout, headers=headers - ) + r = self.pool_manager.request(method, url, preload_content=not stream, timeout=timeout, headers=headers) except urllib3.exceptions.SSLError as e: msg = "{0}\n{1}".format(type(e).__name__, str(e)) raise ApiException(status=0, reason=msg) @@ -191,23 +190,13 @@ def request( return r - def GET( - self, url, headers=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "GET", url, headers=headers, stream=stream, timeout=timeout, fields=fields - ) + def GET(self, url, headers=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("GET", url, headers=headers, stream=stream, timeout=timeout, fields=fields) - def HEAD( - self, url, headers=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "HEAD", url, headers=headers, stream=stream, timeout=timeout, fields=fields - ) + def HEAD(self, url, headers=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("HEAD", url, headers=headers, stream=stream, timeout=timeout, fields=fields) - def OPTIONS( - self, url, headers=None, body=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: + def OPTIONS(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: return self.request( "OPTIONS", url, @@ -218,30 +207,14 @@ def OPTIONS( fields=fields, ) - def DELETE( - self, url, headers=None, body=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "DELETE", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields - ) + def DELETE(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("DELETE", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) - def POST( - self, url, headers=None, body=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "POST", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields - ) + def POST(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("POST", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) - def PUT( - self, url, headers=None, body=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "PUT", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields - ) + def PUT(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("PUT", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) - def PATCH( - self, url, headers=None, body=None, stream=False, timeout=None, fields=None - ) -> urllib3.HTTPResponse: - return self.request( - "PATCH", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields - ) + def PATCH(self, url, headers=None, body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: + return self.request("PATCH", url, headers=headers, stream=stream, timeout=timeout, body=body, fields=fields) diff --git a/launch/api_client/schemas.py b/launch/api_client/schemas.py index 8223412e..d9910ede 100644 --- a/launch/api_client/schemas.py +++ b/launch/api_client/schemas.py @@ -21,6 +21,7 @@ import frozendict from dateutil.parser.isoparser import _takes_ascii, isoparser + from launch.api_client.configuration import Configuration from launch.api_client.exceptions import ApiTypeError, ApiValueError @@ -156,9 +157,7 @@ def add_deeper_validated_schemas(validation_metadata: ValidationMetadata, path_t for path_to_item, schemas in validation_metadata.validated_path_to_schemas.items(): if len(path_to_item) < len(current_path_to_item): continue - path_begins_with_current_path = ( - path_to_item[: len(current_path_to_item)] == current_path_to_item - ) + path_begins_with_current_path = path_to_item[: len(current_path_to_item)] == current_path_to_item if path_begins_with_current_path: other_path_to_schemas[path_to_item] = schemas update(path_to_schemas, other_path_to_schemas) @@ -346,11 +345,7 @@ def _validate_oapg( validation_metadata: ValidationMetadata, ) -> typing.Dict[ typing.Tuple[typing.Union[str, int], ...], - typing.Set[ - typing.Union[ - "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple - ] - ], + typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], ]: """ Schema _validate_oapg @@ -381,9 +376,7 @@ def _validate_oapg( @staticmethod def _process_schema_classes_oapg( schema_classes: typing.Set[ - typing.Union[ - "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple - ] + typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple] ] ): """ @@ -445,17 +438,13 @@ def __get_new_cls( """ cls._process_schema_classes_oapg(schema_classes) enum_schema = any(issubclass(this_cls, EnumBase) for this_cls in schema_classes) - inheritable_primitive_type = schema_classes.intersection( - cls.__inheritable_primitive_types_set - ) + inheritable_primitive_type = schema_classes.intersection(cls.__inheritable_primitive_types_set) chosen_schema_classes = schema_classes - inheritable_primitive_type suffix = tuple(inheritable_primitive_type) if enum_schema and suffix[0] not in {NoneClass, BoolClass}: suffix = (Singleton,) + suffix - used_classes = ( - tuple(sorted(chosen_schema_classes, key=lambda a_cls: a_cls.__name__)) + suffix - ) + used_classes = tuple(sorted(chosen_schema_classes, key=lambda a_cls: a_cls.__name__)) + suffix mfg_cls = get_new_class(class_name="DynamicSchema", bases=used_classes) path_to_schemas[path] = mfg_cls @@ -466,9 +455,7 @@ def _get_new_instance_without_conversion_oapg( cls, arg: typing.Any, path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"] - ], + path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]], ): # We have a Dynamic class and we are making an instance of it if issubclass(cls, frozendict.frozendict) and issubclass(cls, DictBase): @@ -807,9 +794,7 @@ class NoneFrozenDictStrDecimalMixin(NoneClass, frozendict.frozendict, str, decim class NoneFrozenDictStrBoolMixin(NoneClass, frozendict.frozendict, str, BoolClass): pass - class NoneFrozenDictDecimalBoolMixin( - NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass - ): + class NoneFrozenDictDecimalBoolMixin(NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass): pass class NoneTupleStrDecimalMixin(NoneClass, tuple, str, decimal.Decimal): @@ -840,30 +825,22 @@ class TupleStrDecimalBoolMixin(tuple, str, decimal.Decimal, BoolClass): pass # qty 5 - class NoneFrozenDictTupleStrDecimalMixin( - NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal - ): + class NoneFrozenDictTupleStrDecimalMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal): pass class NoneFrozenDictTupleStrBoolMixin(NoneClass, frozendict.frozendict, tuple, str, BoolClass): pass - class NoneFrozenDictTupleDecimalBoolMixin( - NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass - ): + class NoneFrozenDictTupleDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass): pass - class NoneFrozenDictStrDecimalBoolMixin( - NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass - ): + class NoneFrozenDictStrDecimalBoolMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass): pass class NoneTupleStrDecimalBoolMixin(NoneClass, tuple, str, decimal.Decimal, BoolClass): pass - class FrozenDictTupleStrDecimalBoolMixin( - frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass - ): + class FrozenDictTupleStrDecimalBoolMixin(frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): pass # qty 6 @@ -1118,9 +1095,7 @@ def _is_json_validation_enabled_oapg(schema_keyword, configuration=None): ) @staticmethod - def _raise_validation_error_message_oapg( - value, constraint_msg, constraint_value, path_to_item, additional_txt="" - ): + def _raise_validation_error_message_oapg(value, constraint_msg, constraint_value, path_to_item, additional_txt=""): raise ApiValueError( "Invalid value `{value}`, {constraint_msg} `{constraint_value}`{additional_txt} at {path_to_item}".format( value=value, @@ -1140,11 +1115,7 @@ def _validate_oapg( validation_metadata: ValidationMetadata, ) -> typing.Dict[ typing.Tuple[typing.Union[str, int], ...], - typing.Set[ - typing.Union[ - "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple - ] - ], + typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], ]: """ EnumBase _validate_oapg @@ -1243,9 +1214,9 @@ def __check_str_validations(cls, arg: str, validation_metadata: ValidationMetada path_to_item=validation_metadata.path_to_item, ) - if cls._is_json_validation_enabled_oapg( - "pattern", validation_metadata.configuration - ) and hasattr(cls.MetaOapg, "regex"): + if cls._is_json_validation_enabled_oapg("pattern", validation_metadata.configuration) and hasattr( + cls.MetaOapg, "regex" + ): for regex_dict in cls.MetaOapg.regex: flags = regex_dict.get("flags", 0) if not re.search(regex_dict["pattern"], arg, flags=flags): @@ -1273,11 +1244,7 @@ def _validate_oapg( validation_metadata: ValidationMetadata, ) -> typing.Dict[ typing.Tuple[typing.Union[str, int], ...], - typing.Set[ - typing.Union[ - "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple - ] - ], + typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], ]: """ StrBase _validate_oapg @@ -1302,9 +1269,7 @@ def __validate_format(cls, arg: typing.Optional[str], validation_metadata: Valid return True except ValueError: raise ApiValueError( - "Invalid value '{}' for type UUID at {}".format( - arg, validation_metadata.path_to_item - ) + "Invalid value '{}' for type UUID at {}".format(arg, validation_metadata.path_to_item) ) @classmethod @@ -1370,9 +1335,7 @@ def __validate_format(cls, arg: typing.Optional[str], validation_metadata: Valid except ValueError: raise ApiValueError( "Value does not conform to the required ISO-8601 date format. " - "Invalid value '{}' for type date at {}".format( - arg, validation_metadata.path_to_item - ) + "Invalid value '{}' for type date at {}".format(arg, validation_metadata.path_to_item) ) @classmethod @@ -1403,9 +1366,7 @@ def __validate_format(cls, arg: typing.Optional[str], validation_metadata: Valid except ValueError: raise ApiValueError( "Value does not conform to the required ISO-8601 datetime format. " - "Invalid value '{}' for type datetime at {}".format( - arg, validation_metadata.path_to_item - ) + "Invalid value '{}' for type datetime at {}".format(arg, validation_metadata.path_to_item) ) @classmethod @@ -1442,9 +1403,7 @@ def __validate_format(cls, arg: typing.Optional[str], validation_metadata: Valid except decimal.InvalidOperation: raise ApiValueError( "Value cannot be converted to a decimal. " - "Invalid value '{}' for type decimal at {}".format( - arg, validation_metadata.path_to_item - ) + "Invalid value '{}' for type decimal at {}".format(arg, validation_metadata.path_to_item) ) @classmethod @@ -1497,9 +1456,9 @@ def as_float_oapg(self) -> float: def __check_numeric_validations(cls, arg, validation_metadata: ValidationMetadata): if not hasattr(cls, "MetaOapg"): return - if cls._is_json_validation_enabled_oapg( - "multipleOf", validation_metadata.configuration - ) and hasattr(cls.MetaOapg, "multiple_of"): + if cls._is_json_validation_enabled_oapg("multipleOf", validation_metadata.configuration) and hasattr( + cls.MetaOapg, "multiple_of" + ): multiple_of_value = cls.MetaOapg.multiple_of if not (float(arg) / multiple_of_value).is_integer(): # Note 'multipleOf' will be as good as the floating point arithmetic. @@ -1523,9 +1482,7 @@ def __check_numeric_validations(cls, arg, validation_metadata: ValidationMetadat return if ( - cls._is_json_validation_enabled_oapg( - "exclusiveMaximum", validation_metadata.configuration - ) + cls._is_json_validation_enabled_oapg("exclusiveMaximum", validation_metadata.configuration) and hasattr(cls.MetaOapg, "exclusive_maximum") and arg >= cls.MetaOapg.exclusive_maximum ): @@ -1549,9 +1506,7 @@ def __check_numeric_validations(cls, arg, validation_metadata: ValidationMetadat ) if ( - cls._is_json_validation_enabled_oapg( - "exclusiveMinimum", validation_metadata.configuration - ) + cls._is_json_validation_enabled_oapg("exclusiveMinimum", validation_metadata.configuration) and hasattr(cls.MetaOapg, "exclusive_minimum") and arg <= cls.MetaOapg.exclusive_minimum ): @@ -1581,11 +1536,7 @@ def _validate_oapg( validation_metadata: ValidationMetadata, ) -> typing.Dict[ typing.Tuple[typing.Union[str, int], ...], - typing.Set[ - typing.Union[ - "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple - ] - ], + typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], ]: """ NumberBase _validate_oapg @@ -1629,9 +1580,7 @@ def __validate_items(cls, list_items, validation_metadata: ValidationMetadata): if item_validation_metadata.validation_ran_earlier(item_cls): add_deeper_validated_schemas(item_validation_metadata, path_to_schemas) continue - other_path_to_schemas = item_cls._validate_oapg( - value, validation_metadata=item_validation_metadata - ) + other_path_to_schemas = item_cls._validate_oapg(value, validation_metadata=item_validation_metadata) update(path_to_schemas, other_path_to_schemas) return path_to_schemas @@ -1720,9 +1669,7 @@ def _get_items_oapg( cls: "Schema", arg: typing.List[typing.Any], path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"] - ], + path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]], ): """ ListBase _get_items_oapg @@ -1732,9 +1679,7 @@ def _get_items_oapg( for i, value in enumerate(arg): item_path_to_item = path_to_item + (i,) item_cls = path_to_schemas[item_path_to_item] - new_value = item_cls._get_new_instance_without_conversion_oapg( - value, item_path_to_item, path_to_schemas - ) + new_value = item_cls._get_new_instance_without_conversion_oapg(value, item_path_to_item, path_to_schemas) cast_items.append(new_value) return cast_items @@ -1772,9 +1717,7 @@ def get_discriminated_class_oapg(cls, disc_property_name: str, disc_payload_valu if not hasattr(cls, "MetaOapg"): return None elif not ( - hasattr(cls.MetaOapg, "all_of") - or hasattr(cls.MetaOapg, "one_of") - or hasattr(cls.MetaOapg, "any_of") + hasattr(cls.MetaOapg, "all_of") or hasattr(cls.MetaOapg, "one_of") or hasattr(cls.MetaOapg, "any_of") ): return None # TODO stop traveling if a cycle is hit @@ -1908,9 +1851,7 @@ def __validate_args(cls, arg, validation_metadata: ValidationMetadata): if arg_validation_metadata.validation_ran_earlier(schema): add_deeper_validated_schemas(arg_validation_metadata, path_to_schemas) continue - other_path_to_schemas = schema._validate_oapg( - value, validation_metadata=arg_validation_metadata - ) + other_path_to_schemas = schema._validate_oapg(value, validation_metadata=arg_validation_metadata) update(path_to_schemas, other_path_to_schemas) return path_to_schemas @@ -2000,9 +1941,7 @@ def _validate_oapg( if updated_vm.validation_ran_earlier(discriminated_cls): add_deeper_validated_schemas(updated_vm, _path_to_schemas) return _path_to_schemas - other_path_to_schemas = discriminated_cls._validate_oapg( - arg, validation_metadata=updated_vm - ) + other_path_to_schemas = discriminated_cls._validate_oapg(arg, validation_metadata=updated_vm) update(_path_to_schemas, other_path_to_schemas) return _path_to_schemas @@ -2011,9 +1950,7 @@ def _get_properties_oapg( cls, arg: typing.Dict[str, typing.Any], path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[ - typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"] - ], + path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type["Schema"]], ): """ DictBase _get_properties_oapg, this is how properties are set @@ -2092,16 +2029,10 @@ def cast_to_allowed_types( from_server: bool, validated_path_to_schemas: typing.Dict[ typing.Tuple[typing.Union[str, int], ...], - typing.Set[ - typing.Union[ - "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple - ] - ], + typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], ], path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(["args[0]"]), -) -> typing.Union[ - frozendict.frozendict, tuple, decimal.Decimal, str, bytes, BoolClass, NoneClass, FileIO -]: +) -> typing.Union[frozendict.frozendict, tuple, decimal.Decimal, str, bytes, BoolClass, NoneClass, FileIO]: """ Casts the input payload arg into the allowed types The input validated_path_to_schemas is mutated by running this function @@ -2140,9 +2071,7 @@ def cast_to_allowed_types( elif isinstance(arg, (dict, frozendict.frozendict)): return frozendict.frozendict( { - key: cast_to_allowed_types( - val, from_server, validated_path_to_schemas, path_to_item + (key,) - ) + key: cast_to_allowed_types(val, from_server, validated_path_to_schemas, path_to_item + (key,)) for key, val in arg.items() } ) @@ -2166,9 +2095,7 @@ def cast_to_allowed_types( elif isinstance(arg, (tuple, list)): return tuple( [ - cast_to_allowed_types( - item, from_server, validated_path_to_schemas, path_to_item + (i,) - ) + cast_to_allowed_types(item, from_server, validated_path_to_schemas, path_to_item + (i,)) for i, item in enumerate(arg) ] ) @@ -2199,9 +2126,7 @@ def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata): if validation_metadata.validation_ran_earlier(allof_cls): add_deeper_validated_schemas(validation_metadata, path_to_schemas) continue - other_path_to_schemas = allof_cls._validate_oapg( - arg, validation_metadata=validation_metadata - ) + other_path_to_schemas = allof_cls._validate_oapg(arg, validation_metadata=validation_metadata) update(path_to_schemas, other_path_to_schemas) return path_to_schemas @@ -2223,9 +2148,7 @@ def __get_oneof_class( add_deeper_validated_schemas(validation_metadata, path_to_schemas) continue try: - path_to_schemas = oneof_cls._validate_oapg( - arg, validation_metadata=validation_metadata - ) + path_to_schemas = oneof_cls._validate_oapg(arg, validation_metadata=validation_metadata) except (ApiValueError, ApiTypeError) as ex: if discriminated_cls is not None and oneof_cls is discriminated_cls: raise ex @@ -2239,9 +2162,7 @@ def __get_oneof_class( elif len(oneof_classes) > 1: raise ApiValueError( "Invalid inputs given to generate an instance of {}. Multiple " - "oneOf schemas {} matched the inputs, but a max of one is allowed.".format( - cls, oneof_classes - ) + "oneOf schemas {} matched the inputs, but a max of one is allowed.".format(cls, oneof_classes) ) # exactly one class matches return path_to_schemas @@ -2257,9 +2178,7 @@ def __get_anyof_classes(cls, arg, discriminated_cls, validation_metadata: Valida continue try: - other_path_to_schemas = anyof_cls._validate_oapg( - arg, validation_metadata=validation_metadata - ) + other_path_to_schemas = anyof_cls._validate_oapg(arg, validation_metadata=validation_metadata) except (ApiValueError, ApiTypeError) as ex: if discriminated_cls is not None and anyof_cls is discriminated_cls: raise ex @@ -2280,11 +2199,7 @@ def _validate_oapg( validation_metadata: ValidationMetadata, ) -> typing.Dict[ typing.Tuple[typing.Union[str, int], ...], - typing.Set[ - typing.Union[ - "Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple - ] - ], + typing.Set[typing.Union["Schema", str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]], ]: """ ComposedBase _validate_oapg @@ -2371,9 +2286,7 @@ def _validate_oapg( if other_path_to_schemas: raise not_exception - if discriminated_cls is not None and not updated_vm.validation_ran_earlier( - discriminated_cls - ): + if discriminated_cls is not None and not updated_vm.validation_ran_earlier(discriminated_cls): # TODO use an exception from this package here add_deeper_validated_schemas(updated_vm, path_to_schemas) assert discriminated_cls in path_to_schemas[updated_vm.path_to_item] @@ -2393,14 +2306,10 @@ class ComposedSchema( NoneFrozenDictTupleStrDecimalBoolMixin, ): @classmethod - def from_openapi_data_oapg( - cls, *args: typing.Any, _configuration: typing.Optional[Configuration] = None, **kwargs - ): + def from_openapi_data_oapg(cls, *args: typing.Any, _configuration: typing.Optional[Configuration] = None, **kwargs): if not args: if not kwargs: - raise ApiTypeError( - "{} is missing required input data in args or kwargs".format(cls.__name__) - ) + raise ApiTypeError("{} is missing required input data in args or kwargs".format(cls.__name__)) args = (kwargs,) return super().from_openapi_data_oapg(args[0], _configuration=_configuration) @@ -2422,9 +2331,7 @@ def __new__( class NoneSchema(NoneBase, Schema, NoneMixin): @classmethod - def from_openapi_data_oapg( - cls, arg: None, _configuration: typing.Optional[Configuration] = None - ): + def from_openapi_data_oapg(cls, arg: None, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: None, **kwargs: Configuration): @@ -2457,16 +2364,12 @@ def as_int_oapg(self) -> int: return self._as_int @classmethod - def __validate_format( - cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata - ): + def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): if isinstance(arg, decimal.Decimal): denominator = arg.as_integer_ratio()[-1] if denominator != 1: raise ApiValueError( - "Invalid value '{}' for type integer at {}".format( - arg, validation_metadata.path_to_item - ) + "Invalid value '{}' for type integer at {}".format(arg, validation_metadata.path_to_item) ) @classmethod @@ -2485,9 +2388,7 @@ def _validate_oapg( class IntSchema(IntBase, NumberSchema): @classmethod - def from_openapi_data_oapg( - cls, arg: int, _configuration: typing.Optional[Configuration] = None - ): + def from_openapi_data_oapg(cls, arg: int, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[decimal.Decimal, int], **kwargs: Configuration): @@ -2499,15 +2400,11 @@ class Int32Base: __inclusive_maximum = decimal.Decimal(2147483647) @classmethod - def __validate_format( - cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata - ): + def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): if isinstance(arg, decimal.Decimal) and arg.as_tuple().exponent == 0: if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: raise ApiValueError( - "Invalid value '{}' for type int32 at {}".format( - arg, validation_metadata.path_to_item - ) + "Invalid value '{}' for type int32 at {}".format(arg, validation_metadata.path_to_item) ) @classmethod @@ -2532,15 +2429,11 @@ class Int64Base: __inclusive_maximum = decimal.Decimal(9223372036854775807) @classmethod - def __validate_format( - cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata - ): + def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): if isinstance(arg, decimal.Decimal) and arg.as_tuple().exponent == 0: if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: raise ApiValueError( - "Invalid value '{}' for type int64 at {}".format( - arg, validation_metadata.path_to_item - ) + "Invalid value '{}' for type int64 at {}".format(arg, validation_metadata.path_to_item) ) @classmethod @@ -2565,15 +2458,11 @@ class Float32Base: __inclusive_maximum = decimal.Decimal(3.4028234663852886e38) @classmethod - def __validate_format( - cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata - ): + def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): if isinstance(arg, decimal.Decimal): if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: raise ApiValueError( - "Invalid value '{}' for type float at {}".format( - arg, validation_metadata.path_to_item - ) + "Invalid value '{}' for type float at {}".format(arg, validation_metadata.path_to_item) ) @classmethod @@ -2591,9 +2480,7 @@ def _validate_oapg( class Float32Schema(Float32Base, NumberSchema): @classmethod - def from_openapi_data_oapg( - cls, arg: float, _configuration: typing.Optional[Configuration] = None - ): + def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) @@ -2602,15 +2489,11 @@ class Float64Base: __inclusive_maximum = decimal.Decimal(1.7976931348623157e308) @classmethod - def __validate_format( - cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata - ): + def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): if isinstance(arg, decimal.Decimal): if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: raise ApiValueError( - "Invalid value '{}' for type double at {}".format( - arg, validation_metadata.path_to_item - ) + "Invalid value '{}' for type double at {}".format(arg, validation_metadata.path_to_item) ) @classmethod @@ -2628,9 +2511,7 @@ def _validate_oapg( class Float64Schema(Float64Base, NumberSchema): @classmethod - def from_openapi_data_oapg( - cls, arg: float, _configuration: typing.Optional[Configuration] = None - ): + def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): # todo check format return super().from_openapi_data_oapg(arg, _configuration=_configuration) @@ -2644,9 +2525,7 @@ class StrSchema(StrBase, Schema, StrMixin): """ @classmethod - def from_openapi_data_oapg( - cls, arg: str, _configuration: typing.Optional[Configuration] = None - ) -> "StrSchema": + def from_openapi_data_oapg(cls, arg: str, _configuration: typing.Optional[Configuration] = None) -> "StrSchema": return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: Configuration): @@ -2725,17 +2604,13 @@ def one_of(): FileSchema, ] - def __new__( - cls, _arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwargs: Configuration - ): + def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwargs: Configuration): return super().__new__(cls, _arg) class BoolSchema(BoolBase, Schema, BoolMixin): @classmethod - def from_openapi_data_oapg( - cls, arg: bool, _configuration: typing.Optional[Configuration] = None - ): + def from_openapi_data_oapg(cls, arg: bool, _configuration: typing.Optional[Configuration] = None): return super().from_openapi_data_oapg(arg, _configuration=_configuration) def __new__(cls, _arg: bool, **kwargs: ValidationMetadata): From e04f9dd7f24716d0123e917ff7391119b764dd3a Mon Sep 17 00:00:00 2001 From: Anirudh-Scale Date: Tue, 21 Mar 2023 21:41:57 +0000 Subject: [PATCH 07/11] updated client --- launch/client.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/launch/client.py b/launch/client.py index 22fb34b9..1bd289f6 100644 --- a/launch/client.py +++ b/launch/client.py @@ -622,6 +622,7 @@ def create_model_endpoint( per_worker: int = 10, gpu_type: Optional[str] = None, endpoint_type: str = "sync", + high_priority: Optional[bool] = False, post_inference_hooks: Optional[List[PostInferenceHooks]] = None, default_callback_url: Optional[str] = None, default_callback_auth_kind: Optional[Literal["basic", "mtls"]] = None, @@ -690,6 +691,9 @@ def create_model_endpoint( endpoint_type: Either ``"sync"`` or ``"async"``. + high_priority: Either ``"True"`` or ``"False"``. Enabling this will allow the created + endpoint to leverage the shared pool of prewarmed nodes for faster spinup time. + post_inference_hooks: List of hooks to trigger after inference tasks are served. default_callback_url: The default callback url to use for async endpoints. @@ -740,6 +744,7 @@ def create_model_endpoint( max_workers=max_workers, per_worker=per_worker, gpu_type=gpu_type, + high_priority=high_priority, default_callback_url=default_callback_url, default_callback_auth_kind=default_callback_auth_kind, default_callback_auth_username=default_callback_auth_username, @@ -791,6 +796,7 @@ def create_model_endpoint( model_bundle_id=model_bundle.id, name=endpoint_name, per_worker=per_worker, + high_priority=high_priority, post_inference_hooks=post_inference_hooks_strs, default_callback_url=default_callback_url, default_callback_auth=default_callback_auth, @@ -825,6 +831,7 @@ def edit_model_endpoint( max_workers: Optional[int] = None, per_worker: Optional[int] = None, gpu_type: Optional[str] = None, + high_priority: Optional[bool] = None, post_inference_hooks: Optional[List[PostInferenceHooks]] = None, default_callback_url: Optional[str] = None, default_callback_auth_kind: Optional[Literal["basic", "mtls"]] = None, @@ -878,6 +885,9 @@ def edit_model_endpoint( - ``nvidia-tesla-t4`` - ``nvidia-ampere-a10`` + high_priority: Either ``"True"`` or ``"False"``. Enabling this will allow the created + endpoint to leverage the shared pool of prewarmed nodes for faster spinup time. + post_inference_hooks: List of hooks to trigger after inference tasks are served. default_callback_url: The default callback url to use for async endpoints. @@ -956,6 +966,7 @@ def edit_model_endpoint( min_workers=min_workers, model_bundle_id=model_bundle_id, per_worker=per_worker, + high_priority=high_priority, post_inference_hooks=post_inference_hooks_strs, default_callback_url=default_callback_url, default_callback_auth=default_callback_auth, From e28cc72e33565d26ee5084d3f4f170b684feae3f Mon Sep 17 00:00:00 2001 From: Anirudh Jain Date: Tue, 21 Mar 2023 15:18:15 -0700 Subject: [PATCH 08/11] changing from str to bool --- launch/client.py | 4 +- site/404.html | 548 ++ site/_images/model_bundle.png | Bin 0 -> 41350 bytes site/_images/model_endpoint.png | Bin 0 -> 65535 bytes site/_images/request_lifecycle.png | Bin 0 -> 111799 bytes site/_static/favicon-32x32.png | Bin 0 -> 1717 bytes site/_static/favicon.ico | Bin 0 -> 1150 bytes site/_static/file.png | Bin 0 -> 286 bytes site/_static/launch-logo.svg | 19 + site/_static/minus.png | Bin 0 -> 90 bytes site/_static/plus.png | Bin 0 -> 90 bytes site/api/client/index.html | 2873 +++++++ site/api/endpoint_predictions/index.html | 1116 +++ site/api/hooks/index.html | 679 ++ site/api/model_bundles/index.html | 980 +++ site/api/model_endpoints/index.html | 1047 +++ site/assets/_mkdocstrings.css | 36 + site/assets/images/favicon.png | Bin 0 -> 1870 bytes .../assets/javascripts/bundle.2a6f1dda.min.js | 29 + .../javascripts/bundle.2a6f1dda.min.js.map | 8 + .../javascripts/lunr/min/lunr.ar.min.js | 1 + .../javascripts/lunr/min/lunr.da.min.js | 18 + .../javascripts/lunr/min/lunr.de.min.js | 18 + .../javascripts/lunr/min/lunr.du.min.js | 18 + .../javascripts/lunr/min/lunr.es.min.js | 18 + .../javascripts/lunr/min/lunr.fi.min.js | 18 + .../javascripts/lunr/min/lunr.fr.min.js | 18 + .../javascripts/lunr/min/lunr.hi.min.js | 1 + .../javascripts/lunr/min/lunr.hu.min.js | 18 + .../javascripts/lunr/min/lunr.it.min.js | 18 + .../javascripts/lunr/min/lunr.ja.min.js | 1 + .../javascripts/lunr/min/lunr.jp.min.js | 1 + .../javascripts/lunr/min/lunr.ko.min.js | 1 + .../javascripts/lunr/min/lunr.multi.min.js | 1 + .../javascripts/lunr/min/lunr.nl.min.js | 18 + .../javascripts/lunr/min/lunr.no.min.js | 18 + .../javascripts/lunr/min/lunr.pt.min.js | 18 + .../javascripts/lunr/min/lunr.ro.min.js | 18 + .../javascripts/lunr/min/lunr.ru.min.js | 18 + .../lunr/min/lunr.stemmer.support.min.js | 1 + .../javascripts/lunr/min/lunr.sv.min.js | 18 + .../javascripts/lunr/min/lunr.ta.min.js | 1 + .../javascripts/lunr/min/lunr.th.min.js | 1 + .../javascripts/lunr/min/lunr.tr.min.js | 18 + .../javascripts/lunr/min/lunr.vi.min.js | 1 + .../javascripts/lunr/min/lunr.zh.min.js | 1 + site/assets/javascripts/lunr/tinyseg.js | 206 + site/assets/javascripts/lunr/wordcut.js | 6708 +++++++++++++++++ .../workers/search.208ed371.min.js | 42 + .../workers/search.208ed371.min.js.map | 8 + site/assets/stylesheets/main.113286f1.min.css | 1 + .../stylesheets/main.113286f1.min.css.map | 1 + .../stylesheets/palette.a0c5b2b5.min.css | 1 + .../stylesheets/palette.a0c5b2b5.min.css.map | 1 + site/cli/index.html | 646 ++ site/concepts/batch_jobs/index.html | 616 ++ site/concepts/callbacks/index.html | 781 ++ site/concepts/endpoint_predictions/index.html | 1143 +++ site/concepts/model_bundles/index.html | 903 +++ site/concepts/model_endpoints/index.html | 691 ++ site/concepts/overview/index.html | 598 ++ site/index.html | 751 ++ site/objects.inv | Bin 0 -> 533 bytes site/search/search_index.json | 1 + site/sitemap.xml | 68 + site/sitemap.xml.gz | Bin 0 -> 320 bytes 66 files changed, 20784 insertions(+), 2 deletions(-) create mode 100644 site/404.html create mode 100644 site/_images/model_bundle.png create mode 100644 site/_images/model_endpoint.png create mode 100644 site/_images/request_lifecycle.png create mode 100644 site/_static/favicon-32x32.png create mode 100644 site/_static/favicon.ico create mode 100644 site/_static/file.png create mode 100644 site/_static/launch-logo.svg create mode 100644 site/_static/minus.png create mode 100644 site/_static/plus.png create mode 100644 site/api/client/index.html create mode 100644 site/api/endpoint_predictions/index.html create mode 100644 site/api/hooks/index.html create mode 100644 site/api/model_bundles/index.html create mode 100644 site/api/model_endpoints/index.html create mode 100644 site/assets/_mkdocstrings.css create mode 100644 site/assets/images/favicon.png create mode 100644 site/assets/javascripts/bundle.2a6f1dda.min.js create mode 100644 site/assets/javascripts/bundle.2a6f1dda.min.js.map create mode 100644 site/assets/javascripts/lunr/min/lunr.ar.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.da.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.de.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.du.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.es.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.fi.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.fr.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.hi.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.hu.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.it.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.ja.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.jp.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.ko.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.multi.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.nl.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.no.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.pt.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.ro.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.ru.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.stemmer.support.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.sv.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.ta.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.th.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.tr.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.vi.min.js create mode 100644 site/assets/javascripts/lunr/min/lunr.zh.min.js create mode 100644 site/assets/javascripts/lunr/tinyseg.js create mode 100644 site/assets/javascripts/lunr/wordcut.js create mode 100644 site/assets/javascripts/workers/search.208ed371.min.js create mode 100644 site/assets/javascripts/workers/search.208ed371.min.js.map create mode 100644 site/assets/stylesheets/main.113286f1.min.css create mode 100644 site/assets/stylesheets/main.113286f1.min.css.map create mode 100644 site/assets/stylesheets/palette.a0c5b2b5.min.css create mode 100644 site/assets/stylesheets/palette.a0c5b2b5.min.css.map create mode 100644 site/cli/index.html create mode 100644 site/concepts/batch_jobs/index.html create mode 100644 site/concepts/callbacks/index.html create mode 100644 site/concepts/endpoint_predictions/index.html create mode 100644 site/concepts/model_bundles/index.html create mode 100644 site/concepts/model_endpoints/index.html create mode 100644 site/concepts/overview/index.html create mode 100644 site/index.html create mode 100644 site/objects.inv create mode 100644 site/search/search_index.json create mode 100644 site/sitemap.xml create mode 100644 site/sitemap.xml.gz diff --git a/launch/client.py b/launch/client.py index 1bd289f6..9130270c 100644 --- a/launch/client.py +++ b/launch/client.py @@ -691,7 +691,7 @@ def create_model_endpoint( endpoint_type: Either ``"sync"`` or ``"async"``. - high_priority: Either ``"True"`` or ``"False"``. Enabling this will allow the created + high_priority: Either ``True`` or ``False``. Enabling this will allow the created endpoint to leverage the shared pool of prewarmed nodes for faster spinup time. post_inference_hooks: List of hooks to trigger after inference tasks are served. @@ -885,7 +885,7 @@ def edit_model_endpoint( - ``nvidia-tesla-t4`` - ``nvidia-ampere-a10`` - high_priority: Either ``"True"`` or ``"False"``. Enabling this will allow the created + high_priority: Either ``True`` or ``False``. Enabling this will allow the created endpoint to leverage the shared pool of prewarmed nodes for faster spinup time. post_inference_hooks: List of hooks to trigger after inference tasks are served. diff --git a/site/404.html b/site/404.html new file mode 100644 index 00000000..0a7b4ad9 --- /dev/null +++ b/site/404.html @@ -0,0 +1,548 @@ + + + + + + + + + + + + + + + + + + + + Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ +

404 - Not found

+ +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/_images/model_bundle.png b/site/_images/model_bundle.png new file mode 100644 index 0000000000000000000000000000000000000000..75667ae057bff39ef6679fad8d15d194aeb086d8 GIT binary patch literal 41350 zcmeFYby!s08aGS}B2og#9awVJb2f0+ zpLUlnaGc?4z1NH!XvLvR-7Q^>(1pLQxJ)DQ$y{^vQ8_0D_*ke$djY*URAjh zRXlE?+j_8!xWgltI(|NSgY3bsC+{Fs!G)-4^gZje5)KH5ub`}~;+B=#f&wP1 zn8p1cEA*Lfyh_|!OTSG@da2+kw%^GxF6N!Th>$RQ_3+1&km83@-7j$L#dcVG4 zKd?TjFh_IDI`Wjh*1_q-{DJ#S!M}(~lZ2wQf}=YQYc1T7AdLS7v+r}$PfzoUuwN&4 zl7~>Py)niO(U%VrMw*`5Xfry0GxXeYZweF2&m`VH%F>M;syoom6g$fwF9Lqn6`{7l zMs*rZK%2L=)P3RX!hCV4B=2wZl~bkZd5RFT3NbbeNeY=49aV|yJsYwT+O*i%Pwh$6 z{f{)i0x`3wFwq0!6u9_lEMH1JD#iGWbBz&$&=tJ)?$L*bVu)h_#3Rh5DpZh{RWD!4 zJoZF$p$I{$KQIA3R}@}hBNl!~GA!BzFp0CB$psdlHx(3`Sst@$^hi8g{hup_mz6=dgG`5JPAIK8GpnBzy4h zn7>W~PL-{F$YAs*i2SBKaf+B91&v&uwbs6+pS2BceWHgX^eKw;0O^+M>078e6(Q{# zt>?Hp`skDOPn1x(+Jw~}DYQK-BXmG8Y<*oux`X^coZJS5p-tZz!w8YDRiw^auvKvg zYd#2sA})uH^@S!lg!okiKQ%Z68!zPTvtc>m*sv@b{g9_IG+Z$ka!eHurvn`%3!+V< zGrQzhkVb-M#VMYpb&;;%hken~BH|Hu9Ky}R?vcnGl5#^zey1XiIgGl&Sw&VXb@sJ- zL;eKM8`)9T^sC6z*0C38R*?c`pr@qa?IUGMN@4vS3T2!{c!g~wix60FwYl+>Y--4; z3;iC7t}|`=+v5YKa|d507~(?27Bx7+z%L$D56O3pC?31e^Owi|A_k< zFA`^f@?J zyZvF<=NpOlS>~DeIo~JsKUW&Be;mLUl&Q_C+!Vg_y?lI0?ERiyeNrbeGo{$Dpi#9} zyVg)uc2JT--znMT-TaH@*JvGOX3kIRKdgQT`jGNL^^*RQ)em}$cSCYhcuDyvm>7i= z{gJ|>Q_|Vz=N4VukGT3?7}@GspSPm(xjrW`=N`AI945{zF>CmK{r)gG{*e&>PRR?q zotI=z!rwg`UBX?WLi6R{hW@ZMmcn<%> zYQXkh02zH>bW#?P4nzx&`HnWehP`4;wSc1~Ek92a5x<*)5TGqxVjoTC^>5S`m z6n9U6CM34qC)SHZr>1^pO|e$wS9+P*zw9k%t17N(c9N~ctVnsKYwIzWZnJNmVcybx z8-~2KxJl)f=UlfFBIqp;M#d*lgT?UZjGUdqMBq9Be>`+mYf)?Wq$}wc*{;!w(fYOB z+wqVpTo&0>(!=rgQMyUX_q`&z(&TK#7yH``rEV6XQ93L`*hQE-Eqlr zJaL^2x^w|@7|QzbBcRtmru5A@vPrVTG`2_OY`blRM!h@UMHmW|m^ZDTFCFqROsRb0 z{q;>MGqfH*N_iypN17XBT6B6WjNyihFTt>Tw|mjTp>JcY+-uvD zmzCIBK_8JmqJCke;5+eeoMwq3Y(J^I)5w#W>8>PI90p2KZ)ZQw-gw!0ZFyDi@fdmL)-{vRM7anKA zJx!@zEd=#XikZFnL@oWlBgLUYh=lc@mX|f?W$GFD+Q-~|WeY!S|Jq)xIGb2xdQ|<^ z)U|vpyQ=8qSYv)9T(tgH>sIrwqR+Cpw>iPdMBM0^i3`MXsAsOQN|&I-yTbcq>nBei z51svdaaz@>M3U@ug8N7JBlq3a;Z^u{@kFWKomY_a_lU6Qup80{KKAKzGyH(j@&2|H z`+ERM{*HTbne4gobZUY+$Be*PstZL2EX))S4FjCUKCJu*s; zN(z3OH(7h}7_gP@%?kPN$NPP`+OkiztJ$^Q;SfQ1+=YF8sCdc2hb=?y09t|Mt(C!l zMaXW*D%i#R+^n8+|JHDNId)l-nHkB;cg{z4F@7;=9I+Nb(0LNcCaNL;TlBmO{e~~1 z9Gg=Tr_YeVt!fAJu-nPs&h1PEi{QJjT~8lW<_?q(r14Wa!w%mpyvro=W1lcSYS5Zl zns!~`8(fI2@~)mRIfWSow4W(R&UDo*>jssiHxYX8?zj)Y75QF)tLBs%ysjqB4R>oV zYE5Umn~yKSZF4Xm$UgpFqVSNn+Ud}_+3Nmj%f8c@o#-j!iF)ty+s?D}gY+g}W}nM? z^ER%Zl@;q&gM}t_%{Dua_M476>qG@j6iiOt3GVW5);n}xmp;BDxYkuXo7#(<9GSdv zN`UeBHg2bNHm;@DrN7@logw@}Nve?g#V3Ut9^s7FCQ^kvr3`fe#pImHF)NIwuMXU)S51O{bmp+Hm zia6!4Cb9Pt;YrIuXd8mN2c;czjAcV3Q+?h6t<=Wuet6k^zzjU2BcLFXAfN(Ih`m5`3?d@}@?YEET1L7$QT{fuY;{D&Z}DJd@x+%?TzEiJ(i8z;91pXVXK3k+vD zec(<=cYh(uYtSA5?N8Wh>AC4CD+!uAIkKBsIK8rD_jGi=ZwEoxQxJG`v~)A0@^o|n zLj*lVsQ)S<2t41v=AfqftB9Mu2(_NF8kMAzt0fgL`*Zf^)S!n{R8+#Q7FL29QZoOl z4*U|KwsCWF7UbaY@bF;w;9_@jwdQysARxf;oRfo-lMN`r2Jr&BnR&8-AvAwC^6z$} zEFtEuw$5(0PGGA0cFkTnxx0x_Q{Q*=pU>ZPT6)_4(-Ro-uVDcL=bs*btEu--O@6NDzt{ZjpZ~6@4Y72U zbaDi`bOZe}UH_{5`=9@+D9mv`^4~b|H=F-@3-B5AP?+OCa|U{7NDe6grjg86N>vNE z148!Krx^HV1g`r#aPi_9SaMY%An?q~ONncFBJRv#G%2m#wH|WFPqSRXf}`0gKBi?! zFdHh+#_n9f_AQ7iv?Sh|zOLX{%}r@8l22eI(1;0OyjxH5Uw0cw;(`FV@Ln_5*>RIe ztylUwD`ep6!h5dWu`7y`76 zi0T02O0f@vIuHQ~o$6m-Q0$C5P+EzzYHK-#Yxt9L?)!AfLpUeUZp+EXZV3SGLlhqI#?JtLrJAWg`!H-W9f>)0wZBqZ9f7ThjC``|aK#Og3Dx}wDkwDPI73w7Yv ztG$UF7AgX?NEzWo96cl1ik8zAmK83`9no#8Vz~c|65Sfwm&DZz85CiFZ;i(pRNJ+0 zYev*U2j5{5S!8j&#k|1Y0J%}{m^=f!kou8Ri1jLj7F|X+UMGq8PXq(t?MV7qnr*?&yxfoR$}Yv z^3q9k3h}W>QNq+0n1pHpQF3h(?`Yk(#tCG(wBiD)~7g+Mv^2T|~q?sdU^eCL10XmqknVTgYPMH2HFOB+a zA)tlZcHT&^Q1%tKIb=&s=AU+`ZZV6Dt2H_vld_xoU1U$T<;cZIpgnp@l_uno;ImiX zX@4q~8ZAq4;txd3>bV?}32( zQPw0hQT+xks@=bQ5yE?qlv|ilg`=qCM|L zh+M?k&B>^0FSh9QOCdLr{ef8R!l&8&ITDEf3=euh`0055k?Jwu4Q*F)GPf-?rT_Ua zV;?G4UE~bMnHu@spViWXw|2^KQ-A%OJPd_6Iz_8u`l#P*1`>wYVk^vVq)dfeAYdkw3w64VDzvBU$p6D{l{vg1vu8OZ+o$2++4I z2fgtuBP;Dhs}OkEkL0kze20m`P<8jaj894)bO-tkZuw)Srlxzd_2v}zfH|<}PUg|r z3uWjNt)?_0KBX;_>00PS3?k_ideg^~~T6 z_1O;}L6T_tFtea1UMK3AVYNo+w4p&FMNw?#e)1XAw=%@0>-i!%%uEBy;JpZ)TX)IK*mDB?nMpQHWiG zLjxVGwx7(Bi=lSCJh45#anDG{V%}iVsw>l%Mf+!dfu{q8p+X*s7W5!nD_^6g-aEP4fho?a?|Ed@pS-8CK@_RC_2S7LjPFhCcPs?VKk0a@?Ing< z8B-5*&@|wN?w$5snt5kr(!RbPmTof-wZvZIKBzMC(LW9ic)}rolF!uiK(q^|*B+#C z+s0PePqJ^!Nedhh3%xFK+n(t6{r-_jvnO%E_uhOy-|qUiH~hPqVce%YZXu7hMO$az zQAq6qQXLEUv`Y49rH_AkAO#8@DLCLE`p!H(1{}Py^&yo?f6hQiNh@G{vMQ2!trzy@ z)=EsgRtYXPGNbxjsgf8`L0BZ*(SU-aTybOyQaGM3Vg65jCa4qa)`0mVD^o*bL=5Qe z`uMYq7pCCBbgfgyM=dA2EL!>4E_QdS3(P0a3p}NNQz}H1S6ZKCb5%GUm!u#Wg7nko z#PEKjMH+m!Ma^2Uv3~ihclC_}&EDOuX5afbiT@COsvK1RyBiOte2SXuyoR}_wl|k> zjZ7J=%#Aaiyw>%DU*9#dL%L(>j<4uhrT*yuE6c%c-&xl8l;Zw5 zts*`38pj!{gd58@4}DYpe7v#9sG3=6SkHZE5}y5G-iC4S&82Vwntr46ZBu;;$Cw^6 z;Q0A^VVsB$KnyCW(bpHpDXKmv2jlMtQ)3>CX;R|-IqjrKnhYw@CTW5xPT469oAgdG z*@4IzfCl$SDO!JxoNMe|jG>{K5$*lmSt3B6;ty$VJsF5sWWTwttRK9Od5%_ltrO-r z5m7ZT1-paAwvkd((aN0!490`$ zCa+4ZLY@BETa58go85_GtEB%DRYN4%vCsCFz$G&Rj7^g=fa!BdxpdRh9DuV$ZN{uZVJ?r;hx zPp_eBXQ8t5Sm)lIU*BHs#{xcVvNn?Yz;?E-oYkmqXx6jT8|mZzulN1`Et>2o-mmvq z_f`8QTWE`Q_< zHp3dZ@dE9BxDPf7qsSGUuh-(wF6*9jW$+XlH95CI(7n}aXk;VnC?XeHI|a(xb}o*y zVOz(Nf4YmMpw`iN=I#MsF~gCb{LyEC=M*u74Rqd){j%m+@b|1}YU&ZJ-PQJ?-# zU-2VbEQOHGV*YAB<^92&$AWyiuvcG2%pvLd2Cr+OPBG_1{Bg?-JrGiH|1XuE)+^}5 zV^<5Iij&2L3_SJ|CxWysP*oF+8uSkb^&`GDH=L-~9*Z>D z=?><7ISRyml@1oyXdu*wPokGQqkJaVt~WA|7LXr&*!?fdv}CjxzB`kxv)Z%fqLePI z|Fg!?J|W`6LMuZd$+KU8dZ)W9CbF@lyx!xkStj_yr-eYEeg*FgvPZJ}m!E=s>rS@D zds#_|0gAWA@>cE&GqalR zI>++8cdbPXgJbzLn2Bs$|HC7~^ItpqOdq*&y`BO=QJj1neUc^3GS@-9%W^QSYWl3+ zAXh+CdguGMe=>*&TG(<;EijV9gPrSjyvAugKn5_#7Y)=9ngZUkq7`vrf<}F5WBFYv ze>^}WueDH)>k$6f!3@?fdkNL&-x99JY1&@+#2{+GX-ZFHT$RtCKn6SBWq zVQ4fyknPngb|BLHW@N?6fckA=<)GiYew&H_RqZn7eEjrxhQA>I>g#-f|86R&R#4D= zCH7)nT7Ty+P7zSQ>{Zbp5#loju|<5>#1F{7#pwvpm#FBzZwSo&{-9m}5h)|O(Sq#x z??j=n0QHNWZvR1j7Y5Gx+gZBhz(0u61M0tQ*Q5NMdI=SPB`fU24?g@pHEj=Z&QVx8 zF8`qZ{|ifT=8?81iV{dC?+ygJt2RgF+k3Q|wt|YMj>mOf*T$Gi`(v}^*i}W3i*)^b zOZj~_q8+B|+JyU31t8s!K~bj!a~24EOMANF*TS+~Du21KVQmTE&}o0ZFB77c7)S?^ zpZM?9uTywE-<3RCl*E?b6ZWE$4tpZLPxH*_IS_LU^I^z%=bO=Ve`1PLKWUop-v;~8 zJOsui_6SJ)e;`md0tWXJzFaZ*lV5iDWQqLIO1B@|<2;x}+Z)%VbC*eXj=Yp6wMGGd zj}fWO>GC))PV=+7PyUS|(Uh6_#Sxe0s zUe)mex`-6scp@Ng8Lcf?Qw>UNdNiTc8~^4&t;q4@#0@bs%pIb3<;`wpqsaYuiBN0iusC`5%YFV z(i(HUMH(q%sQxt>6B2qICeC?Xqgpruk_+u(({u$zhhhYY7g(>@y=~<^HVG}wct)wz z;<6(B(PiUBZ-A1>VR^bV?E1oTuEsI;nYoNTk5_o$@d7n83iUlJkn3jw(ko}e`K!45FDt(V zt{4?9psEr_6)r>QZ%YG@t$KHr25*nTft0tyF~)xGKDbpINOj$NPid4$8V?vMse{r( zk%M7tZo3T};)#I3-IZi+d-~C}zVdPPbJ@QLey@rK@Vf!vcb=(uBqj7YKEUsBt(Fm? z_nhe>0kAQrS^h~ab zl7q@pgq}vvOawImMpjgnN$cRWH3&N_J*6Z0)z_#&Cp&JTIij^1JJ9Rx31z_7H?B7q z?c?i%o*-rH8rF8*X9p_MQ3o~tosSKTeVL6kCF}0;E}4yCZt}5(^*JZjtj3ooCK*9_ zWXIZYuf6c_5+IQVDmw zj|nn>nE~1A0ruDB86c^4liA@rQx(#u`*ZdbDr`KZy+-+Ybi*hzz$kHN~x za^-k*AM7$pzu=swo}U^rZEg%^B5${|=z6CmrptMpR&81}!!Rb5S^co`UY6u>YSMp5 zbWGt*(OzZIiB_3wNU@|D%~vM9032lIhVAP!o8edK2q()?Ydznh*198$4f|JRWCHw2 zVMk$An?uj?p4H!-FJoW09WtcffM>4v4>xbNwvEf}w7oL>4b$trPrL;0*gD)6E9Lt! zt8C_d^_v}%bn&J9ln9u06LgdLG$p4dkI6DhXzp`{VO*+%&`63I>Oip%n1D_h)H-oY zyILf|j2oxtxBFIm5k=yi?bjyqWwGVs1>+y>jZW4Kb|Gc(u;|J)CKNZl!JSbddxtTa zD__ZHfadnycew+L_)G9i`g89pbB?|C`V3#{^}!5GJ0#8B7d{e37gLb6Sis8m6%;QShl;y6xH(wtP*8(aFdD z&{@~7O;lRQzHJ2HBiL% z__5st(X`JKb_1=)9ZADkVW~s-E9!&cIP^(vX!5aq&TfS7lX;ztIo$oGWpk$Sd-t~j=v)kG zIbdjhd=2C}u+2#}R8D>&$(+b!-iSNu=ax`pLcSS;wK1;PVdy_Rn9P)1M2ei5+L6^gHzNSQdsHH)-#KhQjrH5{Pd=X>9^fJQzWV^7mg8&DEa!(Z3$_hhBK602-@jK;HA{0TJ%w9G<)|ebFp8i~(dcTO$nt=d~5+w&xYOx|req>6Tm!CkE z6>d%oZLftF3Lg*Kj%HVm>thBKM$TYccfZ1X+HkVRhCEg_0sd~-hze@3)$0!BNl>;eX|oIE=V zj{TdI^i?ZCB13IoN?Q_O1zrh;3)s!grLD4j9LzcN&hGScozg9`D&s$T2G}jt7pzhAWV`q_2oK*MN*X`v(v#BUkG14s% zX?R`UkcqhJ{VcGG8(?^GSr?#{(P+^ftFPJ?=Tzv=|4GQFM%S-%Z!X(qG$)+f#4uKF z)%9suUzr#PC_}UW@2x?tbDzFGIUqRSfZ;T#zU5I)6X_l8UNErkZxqR&hWXTPm?k`c z@3QPaq68byxjP4GGuL@tyd!ehCScW)(?m>5y;|yKN!5@g(c7;3+XY~xX zBbxlZv#$#E;$Z3``A90u^y7MjGr;8g_$kGRkcaP7;wM6*D261@gj`AGevJ%@DvrCZ zHl-sJ|7?q^muTa7;aG+qKMBQ5QnfGm>IJbXR+&JvBND0jRG&}08yE_Zo2Nx za$ByQg|un^$%#!6M}F(rglED@PvADQ?5+O4V+!>e4sUl`|8=eDL=wX|Y%PEeksPtXi7=`>8DeZ&zT7-_dpa99=xn2~*)b$5!(ddp+UU;Lv5h@7!sPrcEVaS5> zi4%l$sX2uN?%1)?U2{AZ}0iz{>>nD230VY*&*n#kcQ8 zUy~!M_7ESFH{&IKXH-h~2{tzFg0K1CD>Bggl!Ce48!)&mNViCoA|(2`wLhmKmuHUG z>CAJKY6Ojk$S;nq`|Yk)O+6^~i*MZ?(jK@pCQTwUZ$Jr<j>z<5e5882n`o{>WMJ=9DO{Vcw6}OIV%U^W z#+4N5XFv1M+4Ixw?P?eaY*rvKuGAg5cv88$qww?Cr1P>1!MSe^(v_d6U*6@_i*a|3D%r6%4;ymoIb?whp+E9?65Ca|;aCYR}YgP7E@JK=%^iKwf7C zq~f$i+x^qjIQyv7n7*@XqXOQiMHc1UH^XUnaE>1nf!{8|J*l8km7#i{Te=Km=7OVP zp1aAwx{1-r+iYUZtg;dcEqtoxFBAzrS*yX5#J~>8Yb6DdqmW&ZS6|DHTM^+WJL(W! zV7UAl{7Da%Xflz%q^Ak_!0Sf}&q(;iyam90%Ro4Qzx|lx#kWr4slqgU0uR73>kQ`xUu2 zKvan#6Yh>HwpfBGMR;xmBm%BNGMW(HUl*^gUgvAqSM2I}Il9jz7*?JD>Zi!ZWsh)}#SB{MJjc2dESGBFx2KOA*CIslT{P=x|+-+=Y5vHF80r zj^)c-kn{HHY|lMiqN)e_cmTJU&&(VJ2VDqQ04ZzCO2t9?!iJ;2m^r9|?b2w16=YAl z-VcLtv(&18zNfYmFMf?D^F3DlmjoEm0@_bPrPKd>Bbx40}k@iMY)vZ3u% z^SGLF3&=G85T(?%;1|$*cq_5d(lWjE&#IbR>>KTa;c8u{ZFVG*@qVx6 zGl?LyBj{Ehxsq#2W@jCud&&&$RMKW=1O*+k&nYK%H}QF0zhu@`wU)CmE|&++%bZ#} z9ZPa$4lN`~KktE7sYwA@jBu63W#4bOM9{&)0;Z{>Y(;o}(k2m)aAS+V`dS$CGH;-S z7IH>s_>-8-_t=IW9Q}sX74boA!l$0LwwK=FFZu4*vg8);t>86s>n07(0t&$Dl7h%# z0WD{9Wf}YzwYiLqQDldGYEH(Y(F~vg(v`fELzl4GSyYQgVwK%fH}^DM zm#aNjDQU#0xG~w@qQP<{@1?B!DEZcL-Yw1LU7U<7h{rW@i_if-y({^~xW(U?vv7E$ zD8HH{-TUM%#zcY5x+D|e`EWfVJ=X}&uZz$!>-J$+*9JFP$uHJ=Q>SZGfK=dkoVM7B zCt&V1*}z(8&AZ5Nx^{ZIcB?(pc7R)|!#Z%0=$HNotm4evGTm>8co+t@u7fcv0{}Hp zpc-oJbOc9-NWRZ9n69W1`>s1$E{2prteGoU`+C>0bN}_RwPBlvGpXKZNT~^@^VD+) z+xo$*ciR`uTwj$UTW}ud`e0hzn@D-NG*#b|%Ynrn-RCxQwLGH!eKz{=P0mVY-E?8j znHLJWc_<(-zRwnZUkQ4%bpnIH*Li5^L&|4v$3irl!~5xOsTt)T z{)+1pfw-Q7_+C#`P>`^E{WVpsD?|T|f6@%iCJ8aE**Pl_jyb zVYslg$A{A2rVw)lZK_5b2h|!P-fUa;U4Ps0Bmy$|de`FgWV6ABew|F!8wwdhH|CS& zdGDF8PLl>tnnjwvmr44o@dtiuN0wfTZ4dk?T1=cb*E8s%dPkqu4k}SiioBX+&j%Bu zOSZh9S=X9uq_c*oG)Ed9Yu7sd1qvwwlt>5b2neLsk)UXxOR>3RR(;i0n_H`5t|P#s z)@oTFaN3n5 zAuqC0UAjUTz2QCwW}HhG-lTE?_TXY(zxGgxE?6)RC855`&$ZtyNpKYTBQut{6iG{^9}VvH~gojwi{C~Mqm)4$@crO>AQQOt~|10u7|nxz`%h_ zv;SN*Bv*J9@9C!4a%dPqaiRASSk=$%pi-vTv`7l06b`p>cDEO{O!+*n*A2u-y(AOG zEcUu3+&afiTe-Si;}M6*kqp+}Uv6DD^1-p9$y}W^$~rtRcA)qSw6-HzHJ4M5ePL5A z93uj@Zknw$1ztagCEr`#B=eM*2=dR9;64k*XQ)XVOd8G2mfM>JB3x(ErxG5}8!5PB z^tAApTX4F>wc}&N(7r z?rLzHDbltw;bUXYN#EnI9cI~3pH~pp(RfJ6%qn{0sm`-H!?Y|L!CC8W<%%FV2jN!7icf>vIi$epjUqJ|C5F_X^y-Xb*Z+KZVB3yv=ljY~7m zMc_(oOke1Ul;fGJlV7?;v6@zl!67A+lT1KTHb3uZ<6*o|C5;IW5<~UMa>h0OXl}Q$ zO}@3zGdo==V!0jQRtA&9vRitjRlFU2?*M#(0PQ^X3lO|6NdbJ5rTlCtN@7f@5Bc;G zDWepdBAOx0N7QS0A75^SZ;EtG^RvV|%qt_m(+`^?o5j4K#4CenlL(UB6c^%dAhAnS z^|dZK*`Aow(no1y{MCyvX}?w4=^ z0}zoY??9~52v9vjblwB~M!RfoH(O>d*KeM-qp+aCOl{*B?<(k#V{d4=WVv+;#?cS~&n|DTOtuY%oceNUG-4~9GQGZZ#+69!;* zumSPOfI6EP)=xsZAj9ULMr;kh{KTXO6^0*~?r=H_l6&_2+3sLd>m1sjUAf-@do= z+oSfdq$_t)G2o+9GniPX|L795_N~@zBJ8%X)N)!f(!w`k~0KYB#%@X@ea3IdXz> zUFlr8TUT+0=>dmyg97!A8ADs(1sEId-A(DvLanZGRL06=p)Q@`1nZIWEz;2e4Qlqm z-DU0%4kM)J!ug{`?lu)EBXJp^v{m^|C5maKiaXp&S?UqE;ZnvjHZ6X&(;Uh<1yC9uXmF(*!1t=9<#(4Qx&>N=?9$;xEsain^OI>g%jgdXied0^9RZ$zkL4~*eUHg64p*yzFudlKNJT0@oHH#eM zQ-2EqIv^djLGn6Ujk}e6uh4u6r&Iqbg|U0G+Q0DfXRLQ6+}QHYY26|2FsU02PgVd zR^o|FV;9Csvj@fsv{^Psvcp#fGZy}}F}9EDcEDvbL^a(K&@x%BQ>-qz#%{t2fXz=0 zWTa0}&%vRvXFdQ8=S(<{7uYa350YNEhn;MV>ATU|)6TgS+m7aNzHCM4j-h$4-hU6` z!Kpw3z+z|DqPwk7@n0RIohreqg%%5vKr?NxzGF~(iqQ8Ha3`PND; zM2i61TpQ?bw}5$j=nGn?QMLon*8w;1#EWib!5?6C-UAs}roPVr&?Z-bXT%$TGIcR?d?0nkgsNSE<)1?b%QI!O?UFdZs!qvq+yfdi zL>Cy3!T@;(jzq-J$Y#B24|Cldp*t3~pDbiJPGsllwRnTS*ht6EF(HEhJ-|oL-cLZm zJvY*pYzE~gm!}E1_gq&2h+~zSdNOa$y`RYGGsXV>cW2-&!il=*XEZCs)&wn>1$A}a@ zo(J~M^S8fzbqDgQvUy=oa3O~ROe0E2J33YLXB3HFjdVKzhF~FpqkX(=Os0iGL7>ZP|fZDfy zi=#{Nx)z6TP}g$7062OC*6gRn2YGgnqNReOU*DW9XnYn!6fjF_^*Syw*4R4i#19cW zQHk46*tjU?0oa%;=6eUm*lt}vFE>B({PpcC#~YO-PRm#T;GhV=7Hj|HHGpDh1|>r=0f-?3C$_1kG^ zmFjEWR=zIQr#B~BY;4~Xzh8`U#y>Z~VozXDrGTjWUVt%XTCFEeY)9(*XXwv?J@+j4 z?TLTkXIn*)8tP}hNWK?-ceU53>aV8S31{gx4BRJl!neD}UhqNB&*$)JpsH7V3m>tq z2DnRuZne1}YkmJT(CiJ51!OvzY-T+Au3a$!z)0Q_EH0YV>EUI<c3mX(xIc+&eYXCr(Q@x* z-YfkoHAz5oAxVg9KPhRUR9}U-{L{Un00)@}nm5NAYd<{YVRqH+9kDNMUioshk6mHv zKCZpG93@(!qyC8lmkLR$)gGlIf|TI_h38AH4wthzmd0I}>`G2HBH{oWmfnyIN(cgO zmqcr4J!(_7-}Z!hxev=cr}xQ57r8<5ILYC(*>S(+-tpjrRRC=dx4gZ+Ff%@gQY!xoq;$gjq6oM) zV!#F@D3;gprxb;sD!+KJv4`y^dfwffW&2&7s-yhfT1kAE!JEJ8 zi{Z;4nCC=!@c7x|4Y0wg(R(FPLIMZT&-rWXBA0pGJ3Fg2Kpun%5%ibe!B#4yjgp)3*KXON!-(BF|vzGa7U{svuy8;t6-V%H(@lej^ zxKsc+DgZfP7xGSd->oXm3WIxc5GffLC=J`)znzrtu;Tw!YUE#IrUk|CvGqlvdwyuG zUGQfax;Z)?6zvVTyE4_cjMuhkC(!*!muNJytWjxW3se!vj;~I>1-j$u?P>}|0GfhP z{d=V6BjE~ak=E&6GK3r^sdD-Hl~xtN+HVh@B5RDNZpecX84BJ?K#_Z0d)cggR*M%B zP5qfXW?f{na6AARNmz~)DjDV{(EP=a;j1wZVA~n()(6ro??q>JwW8_vavO@bh=EVv z#ZuZt{gmHft+wT+c&BbTvSQN2r<=WThuWFQPAn@&DG4vSKw_C%xJwr}e`pCG*G=S^ z(3A8(PFZ*orxX{qe9v9v|0{R1KV0nAucx~LLSzW}#ABb}(70PO;Zc$fkX2!n_!WNh zlumtyfdsiADv(q^m;~}!YqqZ;Kp4P$0sB>Wu#6`FWeHYFYZrk zG3BOG4}z{7)NS_xM!Qa1Cdzk4lBX@3GvosY^#*<&qh8!3GWzifY_z*79N zfktdeley^sC~TF zA6{@s0~~~$YxGc!P+W?87%>{IfJ6D{A%975T8Tz-x`628r^vZN_{!xeu1Iho6N!+P%msemZgog7w zcXs0ch3BcAhelx+g8{d3nqo4d?o!le8NjkZLCe|g&3>LRqoI>FeKH!#>6CfYQ;_#n zoBxPB0}l#&>nUKk*T$re`l<*HnW&^i-+<0$A)$i#LLhCXS<1WfPCfmx^5WQp<-E+u zu6Hx0EYSUMMK9k0^5VEBznF-a8!5F8mse=p}j(y|*A*)EGT_PZ&Lj z8bq&yAbO(L=$!;X5G6zzT|%^|38QzT6OyyXoA>>Fr+nv}%YV3L_OthX?!E4{)_w1# zE+T1lxT0SemEwY1ob+!W2k}XxXO&rr$_C1bo^+GFuAgQOBYA_q@_Js0K3M@X$tmzR zu6V=7@v6<#+vpgSJ1#B{hlM^5%vPsMc)s0k-l}RaNMP`WF>^-OCcF0n164i|imIV{N_d;IgKk(DWp&|J7`I zwuVrpk@v5&$6uAyvpd5EblVqN2 zZcSDetEKUE%#*HluHfRZW#tB(7`klGUzn@+TNM-AzRt#;lavj}!?w$?PEGLInZZ1H z&>hpt_dRwvUBF6#4)^s6W^beGQV}Q(#0@eax_^R+_{KzGEIOqqmpgWEJYr9+X^E`F zceA{7;Qn_LGKtVN@wF_LP^??g=l35+#F?)Eo^b767=$9{?}E1vAy& z>9zjKl!T}bt7t}1#|Dt}rUfe6WaVq8Em|Qbg6@{`#dBPmc)|9=0+;&|nsz?^gpe?7 zAWDmdF;7L4HEGraH_=j-o97lfLfy;!({0WaW;n83#{I8E?`tJPr9>w029(5ly!~h|CjH(aT|1YTpE|wm8v}(XShw_m-+0y$h89%ib#b8oPc+);uIdmQ^E0i5sdm;LOS+kH}pLqbv2 z=Pzjhj-U~*UrLFjEO`czZ5XFZ{p6AsdRF#JWYUd7joT^ZMwH;zr)~=4sgTtHSy(b_ zlfv({9RI5Oe@fOjmc*P{=qFB==0?f?&{YV5fYc3+~u`bj!e164^;mh6u-p7Xe> zED#3RzN`&3qfWz;r=R#}?2CLlFdmtPqe~0vU)vuJ@B7Q{xx&5;p*yol@h51OM-7AO zoaf!Nh^p)L?(cv2;O)+ugvGzheIu^MK_-%T3%Xf@NpkV;ec~sfSah8ulrZ!NRXhTIrH0J1Jp{MvG zqDP3ZDv7!Tb%u6>Z90J>{SNMHUp0yh9T4bO@)pJ~wURNNG!F4^vO=7j*Tg>VGXQ*e zgT&=8=v#}8^Oy8z5PW@>x4La26v?dB6&3DN zk85{Ec%apcB*R`=_?`jCZb~u>`M8$d=DRvoE{l#VV5d{G5#>&W$%&5*eNL%0r9t8d z2rp$=sO7hhJGv)d)qgh=`ruqQ>ott3u8#6hlZ90uV!IJ6l2{n84+AK~df+rb500ye zAM-UU040d5w85LnP~cGRKa@~?dut&>5ms$gaF5vHBkzGcl?&5P0*2k3M$%kJzy<4Q zd%;9Er@&BD<5ckIYf=NJi6ulqZqI|?l#>(TQ5u5O7%a;|R8;D85>pA)8E(W3G`^1z ztxnUT1H<9PuNS5xiCnOw`cJ!@t=fJ)wr>e}{nq5Q(uu2EElHfiuO`j(`# z85ID4|3RjzqnMYXzk{KJt(VusmRl3m)2-q}v!FC3j2_}+(> zZ5rbZ@5*e7{Wbo z3nL2C-a}hPHM&`xQy(4z;4RXBJw-;0CD(W+ub=7P_j+8%`wKIqtfc9eOFJ4i^jVxK zkvp2-yytgC3)4sfx=?gibC+#m3=o?ztEPM`q0leTqfUw(8=+W4< zHl>HYcNODaF7nL%A{wZhN-B$O^%QUwwMvfC@D3 z+5Ei3W7nvEWSN)|sgo9USHRWPZQ%Fw6&8p{L7wnDJ83HjPo(&UJPYzmaxh2IMYF*3 z6@J{((jC69#?M=Cci;CU2!29tnRnXD%Epe|`1v`AnSgcTw&hUvU1Eu`;(eepqx!%`a~X07;I30r?y3wbYW6;U@tA*4q*M10H;Y9+~h` zlRo5)EJh*2&!Yp}EDv8t&rMY4se|&0*xKF70bx{LIX}(|dN7pE1^u}qA=uP>2|N0x zl<;f9z&r)C0a0>>qO#RZALtNK<6B9QgrEPWiF10TnklB<^Y`7l3i{%=YX|ufa%Y$l zle8e>;5U4iy%&$Ri@OD!W`uQ4pIJU%07Z-++W}TtTnH9WyZP!enHWb0gU2nc^X8}E7U!X6&P6P@rPrdHvUm;eTTf;RF!+CTxf&P}1^4s3>G z+uVRj3Uzw_ZGmZv2)c^BHwC3}OO0_m?M>ai`W6`=V(ec757g<5ocMb>ugxN5uQW`B z&WzsEOt_Mo@43EG7Uh$KluX%eL&zQS8XsM4SV;$Pbj*F50+~PF03e~vqKaRC8lq#! zOw{|J9@gx%!qXcYm%%<@-(W5Kq8OuL;!km!nd-}iowKQGWraE)nS?6dpP@vMDbnT* zzjLuz%4Qn9sQoH)yi8{;%P-gY+O5CmMY(OLLzC_;jj=jMKKL4#c{LuY<3eL%Y)3xM z{7-tKd~l_Jow(xAUy5PW$H$OVtbs5qAO6O7mZ={`6ouhBnfB@MURDE}Gt0SnQd{bz zqGY+O`!D&^SGoeSbl-pt%a?$CFurFQcAk=W#;B25)G1ur8WEMyTU+1Vv|D_))u_fv8^`W@*&*irMd?^Piz z7R|2Wo0A`(o8J+zR3O(N!O;my?%T2KaFwKO8GD^r%bw}nY`+jzm_9W_a4YubB31G` z--CV*MUq&k%VC)@XkVj%>kt_xzM5`jxhqF!?A%n$sq?eOZbfWU#A_QWzMdCqdA@K~ zNUFxiYg89`PPrv^(8sa@Hg23^FH+%%WNa$7nX8st)uZ{&c)ycmb5x{iaJlfa$sw-S zeniVlt{4mg-Vo+Rt3^Zh>);o5otD%0I;j%|)(@?YZa&)k4OYMXhJ?;|5bH&lB%4hp z%TVRVA8%fKvF^3)i)YfgurPb8$38l6P)%oxLhgl}Hd1)=k9AKSNv(ywVU7dhg*TH& zbYtmqK?4=G&4`A^^VLi>UAJwFaHn_Dp13dk9v1&V>R|M~oy9H~N1e-;TJKuk+$K@b zTaQ(%?`jF;diwdAULX#hS;cv%O4DqCHoRu zcy9yCDJWJiy`A5G{!2{!vA=h3>gTPO)5{XXchylSp!zSn#Cs)KPot!@x!K=Lo+^)uiUe)lkTcuY&0ch>QP22a*A`bdm~AH+MA zG;A80lg7`b=GBHyIK#xAJ-s0?(l~}GFjA5s<=?Q-rjx%~nj4rn?=`DI5ArI7N5!@( z5+3XE`w>dzd*CIUOS$;<^AF*(r!H}opua{!3zsqMLBx)gzgX_A?|5;)-+K+PdsB5icFwgIm~&}Z>yAd%@O!%1QlSN|xI$ivBrl?)A{YY22Hd~g|DGIh zGR@)E6(Wx5E#)dLBrLg8msC+Zz@7i0UwWeVq0R+~^Fgt+-qJ!r*&>z42NrmUo62d_aFbX0a*+29v~cJizANm74GK-C+d3Q zN>fm_;5Q$M7a>7K{ECa?AdffaIWI2*yo>PF9U^DDTKQM}G`YtSj`wkcuL_+Tyo`Q5g z2TB&UMX8La3`brA9^dgwYN--+UkW*x3oYm6(o~M}-7f%s0j*^CO)ub(a=W@cGCL4c z4S8p?KY!cc=X{9z`7mJj)1l@wAD%g1k#0x9lLUX{uZyU&`M*<2c+`^|jLs2&kXL-H=uA)`zhg5h6m{o=#$0j{Jkq z%V$`xw|DvJ-C42X&!w%dIPqt~gwp1g-${`flHSgQy+>WSPEy+TCgwhiVQ|{gVP96r zty3}6f0!qP;Hm)*QdS_jY;#=t5w)w#0|P{8wLRs+L_+-B@ptoFz1~qbd>BKjo7KD=A zHlGETf|Y@I`Q6V;-(Ng(7^Jgg(9#68XZf3RN$^q&-8zz-kzvoy@s=1To^LA*2@6|jDJDY-xuS!bk;=U4K$aJsTWk=dmE&cPfM{{^97JS+@OYzp#GUI<_nx$Ub zF}BJ@5>d=GV20!vK>Q)Wm<_ms=5KtS-!-5{0?I(EqIc8eK$fZwb5vPqg&opINxJ9Q zdBbGu34VmzyI&^u6Vc}&DJ5WlJopv?NYGwro5r*(VvL_FoVEAFBb)!Y?J14)(P^D1 zA=+$XjtE4QkE4f=10*J|OO5FTe7f1?tT?pdKH38yy?-2 z%dz~!cP%?4CgRs)KRSzES9ni)U5i7|Sr-F!lH)x5_caZ{nc=C41L_OCcK&jZX`ip{c+MAn+pVTu&c!|S4`5+N8Z~?dHpn+0F z!;C|)k9DM~CRx@UbR|{RD-(b&IgcSkT)Cb{SdSqFYD77yoYn6^rX^Q z$>m62>@~fVgxf3+F&WXfjbns7UFiXwrQKpZe4ALk*skhIP*81#~4*@7Y-Ys zPViB<+_-R!;s)=K83=X%xT*k7HbT>rgA z8%l);76hWm@}pI5%9KxAFUvX1coBsdMUgYNh&&1w(T8-^cyF(7c4BAi1}1AO`77>h z;~hm*)Qzf+mT1tR$T_uC>`gQ&WzHbL>XR`F!;TvV*>-!DJR}3rcK5`cwN!1P|+jR_X_&c#i@(oIJ<%hLSCv0yn%&P~P1%{B!cNtVs3 zqOwAjj@YK0Dra-RRx6rTrOFdY2}Aie_70|N8XqOz3!N9)ctj-=k*8f_YZ00WW~HhWMAUlSB2NU zq7~O2uh~;Df21U%SgwT=DAvCy2OF;`ml1EOYCi&C1(ns=Qrs%qD#>&vePVsWAypue z!#l;*(N8p=chx!1$vO1cf$r%0%`6GeP4cr~s#kQ9B8;0gGHhOXt@&kAb5i;@VV2@~ zt@{i_UsO1GM{=L?tQTUZuJ+aEM{PcJy^qzAG zU9(&?iA*T|Mio|w!;oZ(y{C4}c$P+xQR@Dk?{4JOUrUq}Ng8Q)J4;f29u4af1s^Op zm)}uJNR!EZ<=czCNRF)0M|Z#+mxCmvW;E>Tvwk&HzP0;KZs#Sv^dKbg@+@nRF4vMg z{VmIkxT1R2V2E46=S>NW{7vR}m#dPL^|vO&x!Mn3i~is&Q*Rb~rk8>>gXjGWpJV{z zHVNO~km7=#MqxvBoif})34#AIe&a1NAS4&DzlpiyE|9vSZysueFV%XPA8@ig{q-e0 zl@gI? zL7_I3u(|xqv<=9gK*8j^2`DHLgpQN+cU-+atQ1Db8Fg+$r2KE_R2J-@KVy_vhoic$_AsZrrW-cidWzS6X=I{7p$I}_=| z8>JN|osyoHg6fkOM}KLm3Jq0MS`sO)ZPY8ETJ1>}F7kQPN@^A<7O@Q8%?6jnPLsCo z`sZ-$DFjY#Gk=x$YuZ?g;H-2prca5E)cE)j_{iW*+y#Q}C7WMGbS?5ep5AN&L_5KS z{@O3>Q*Z5pMn#Gip7pt^6ArDMEOfN-FQ0r5 z-A4S$!trz2T@`3)7GLBvI?yELmHm2Jt~kI9VGI%TE8CNJ>mS+#Bv`&+A{X7$Y~8~S z{J)Ab#|QiK#B1rX1*HH_M=I4{nQ*ALa!gSiUHs~q$sfFHQWmB~Ov7XL;gyp`WHwV~ z&4zv`q>d-_{g0_zc!MuFyh0s&8W^#iH<_DxeHPM+IlhP@Lj9HPv7Yvna149h6s$|vL=O6^2s?tY-red#4yNH;RVw(Z_T`5qh2ui z8_87r7?7#kLxTUJJpI7~I+P@v7mjis{L8cY8E|qSb($qe@k!Wnpu>={Dg_1(gjR+i z8wqwNk#^j^cQ2hcYv=uG5>kh&=Gwdl> zT6Ix-ILA*{mUuNGr)}bu+1mt%4G9uSBN?oe=lMZRRJ8p!G`>)w0}=r6Em z)Z^kH6`6i)5MmyL<&dOKBS*^r=lsiwN5yGeR*dT8+veJTVQ-(-%DIiy%HsV??Q-jvcSNKaLiY#yn?%5U0iub7Fpo zsxzf*wwPHBp}a}$5$d-763r?5Ii+eG08P$7K8j00x7NMzJ*p7gnYyDZky4O5>P?3K z{MYb!S8UuUKKVP_H&#F(j$O?3g57_$_czwPtnA~sp7F0J566EqehOw>ASz5(q0DyY zX~Z&nK!+dTJte!x&=*G~D1L+V?m1!FTi1JVbxPkUz$A-qop+f<29MkjY6H_9a>wLW zEd85fe$Qg?M~~`dA+aj!l594M;Z*vI)EunHc;}IZi(hsAGJdr4vA?YSE-k%b+V`aB zrZf%;){M(q>7$5#zpKKM)AN8i?G%-+To1N1R-xX6tJT%+IyMVG#(>fGzSD4XJa5rV z_mk$PM0U*M2cX@QB=@6msCM}_7A&^JgRYBK8~ovl(QNe_qZIF$GYh2T?CIPo7aRp@ z^#hkT@R2BC60clUt~Ogm&I#VTV#neoFw|gIL9;_o4c@nn;7bZizUK7;D0Ks7y@nlH zQQZa>e3l1)w=-p6oCVqOXKErHL+q!|;@=rKPY@Q=%D51&bLF}akDshZ^?VkTa+K}P0y&rZCy{2sJ!AMTU9F01YMLf z?EG|d-uU4w>f254EMzlgK04D`&l{)MAFY2&$o$V6g%VoxJ$_F`XBbbK`8(;v975T2 zOU9t-FhVvXeF?8^Dtr;xnTt3;lvaV~v^MACojUBASyYO8qtyzgCX}A%kb^Pa&A=Cq z^%MG|z%85i0M%akwaAPzfXj+^Bs|K>=EFG~nIQ+?lo%A9q1Ayms`7POXb%=biNe2r z8b(=n#$7X^Vv4XL(EVHBvzuh{SEgy7rPo%|JZ7JulTfSI>E@|ja5>!f@j5epsw9er zUenfADrIyGIx*kUb2qe`-4sX?(my6sSbx3n#R z6YkeZ&AMu1@b-sch`?u6Nqu9d`#QRWg^m*m(&B)LVEO30G5hiTD=Goz16{aMiB>Ls z(+3`?R@@ySc09{xrR&AD0QQT;ElGrq?Ent<$ZtgR8i2mN2B2OhK=HgN*4|TEnL&1Z z6RNL@yvqAtLTuH-fze&kd`H~vDNh`~mU3ICvs!A$$|e7U93ZSCoNKx%YWP=+&nu3Q zge@k1^wqy=mqJa&4GJl&qWrSl2Dob0yLZo~0K{V!zo(BA(?u&if<+u`7Afn~O6Mer z+b}P67)w+%v9ZyfQ`}e=FUZW}4MWKBIqno$Ih@?87f*bb;+o|RJ4!9ezCOm4P{;UV zf491oJu;;1sgNRpJVKXgb=o#pgNO7vkk6r{BG&QWP24qj)Zd^lE1SQZi5v!0EbVM_65@n`$7aa*6G76HY|cr%At25~4|`aZsm zgkd%yT#nC8p1igV8b*hw=xN1g=d`Ry^nUhBcLnb*P(I#ph7N`WEQhwxG_)wS5i>+? zdfgX6!`OsA=JBh6uK}Q~{DeSv)8U1X^8G$#@O6~wez1|WaUJPWo*x0H^9twDY>@nTMQgO(AIsoroUoS%zr3%P zkgxK}MfgkiRNL3t$l;f`WTc+eynar;Gae0jpTKw)HslmgYB>g$2oo82<7aD>7mfgP zJ@Z84Y}!j_oGt;{h|;=rBJlYd87bJmSg-^%K%Q*rt?G!n^Wgv5qcn#lqy{V#m4{iJ z?c1xavLKnjPtmaaQMp!>{v(r9+^Ka!@!hQlixRAF+VAqhv=A zQt<-``cvVu8#cC|sruCesPYV;t`0@4OE)`x3V52a5f-kre=&e{h|dZP>-6o>L238h z)HBAQ+1(s`fsPva4@7w|#%IlFviw^&5NTQwgkE7oJ}#7MFm3kr4}xPu-hXZ(7B#+Y zigf3QAkZzLPF8{N7mz|>;Caraf+TNF&f?wPJA+!}|8tO@kT4?4w_}N7lWza&3cxgd z@ZRa$D@^0bFy}~W5z27r(R5q%-G0lcYC~_Bivio~c*ZzwjN0GtYj!U3V8pJDLQoI+ z(@4XJksYvwGh7yb*aQM27mBO4t?UIvX;S1U6(ThIfxGLgT3J_4uRo4hMctFBAfdFH zJ(kTZ#q~u^PKC8x6SX|7deA13s>t{E`PyuBc9)K%aZoLnMK|A_(b1qVTADhFJd7Nh z*~GJ=xQ!}?>Ngc)TWMx~D&uJc6TLwKU*6m&^W5NN(iMaa+b-hBR4~Kw!?6m)XY1_A zB+ieh(9CBv1I|-}uC~lcbOFM3V+;{JC`-h&>V0)b=qVt@JH!gupBg$ht=x3&AU@rS zLFz1*-J4opaiIu(t0>s5`0Raj!`raWC?-S}c2o|`K|&(oh%lqG{_@fsZq?ja8F-!1 z*#PJ|`4m`A3fiBMkidDF+A z-t*PKN%MvLxUyi&O(=k#l|1R)MCG9@{MIHK{ zT)0?X#`F8s_ar&i>f|bN^>Qid}k&0rdi1 ze@z^qLZ_F|>X<-$of1Jq-w++_&k)M%K(?*;}6v#2=d_=&`0a)b_MiczmIY z>DfNZb7>#&niG6Sa3QJuKwap3^a{M^V+E;Se!}A6mk5-gw;#x>{}Y{Fk&hl zs7py%+)+n_N|eo)g&cHP4(p2m#)%(iYwO^pOlU=e9YFg%#2);1BY7bMVYN%^Qy_vy zupUq=!`#cCQ(-9}03>+bZO?<0Wpe#QbZXEEGs!8lg_MU7W9Fn#L}|%WB9Vn}P|nW6 z9aWd!(tN$NP8&i-R!Ff-y`cT|Xc;miP3i8E=9b9A4vsNf%^PQ!yuRDy1YX#0WfK@T zLl+j`@l$m2tpeB0R}0b3)YRS5*vn-=c2csH$9^~5GY067S@wziq^3?frGoEWjbm9z znc8|B2aa6vtw~J3J5PG&Ddr}0l=?{bj;bw;7rttxcI;--6P>{17)M9DV#A$24yiLZ z&usvr*n2dw_9C>ev4{u_zw8w32C8>7aI4H7cIX0d01Jk8&ozD)259OTgYXvKhTE#M z15b@P-IVwTF4bFO@34>pm@m_HPmlc42P~PqeoWB1!byB*RkYrvMrkFrE` zxQBK$X=Q~KbKSbxC|XPdV3YspZZqXh4)cQA>|$UDvowjSL+9<{7G^ht(GY(eAVw=c zEpMwGcu3cb^qUDiq=QE)2PYDxiY7(}GKog&es zImB~1+N_d|KgXIqpP@SZdu&hXxRhD}JH>~SF_>ZyB8o$SP7QzeXhAyML(*fNQFX@H zMGM0>9m`vqoGZz|Jm7Jvp-sku8S(DX%hTkceV3)!D5G)g^RmIUj(M>;j!vm)P#h!O z$nrGCfLFTSB@LXwVyRM_FIrgn8;!%7G*kr0>R+Ti);ClXnRAgh1jPrTzakBxa8llU zbZ-+EA`)vQLsx8d-p$YxjLF8hqCRI2%6B6b3BQ4@ZUtDvZ}lw2K`xZ_f!(U(D#NK^ z`XRaRmu>X0)wJ7YBzX&FBo|D(REs%}!F2}3z*^GL%6fD+xstfBh%%bFp#Xy(!`pA) z{Dw`#9~q{NNj>Oaf%%Ae_>Bo^TV1vm92=j;MCAMH(T~iV`1!jl zDf7Mk{dZpk^1j-7xnVVJSaQG|A9t24>RqCVajEccRlv6k@~Akhhqx7OJUMFGDeP%4 z?>ViJAv+A5V8>&(icIO;`k0#247`9N|NV`Ndj2Z1k~r(<(bgdzqOkdUr5&2LScMbM zlF3$PR9h0SzIs3Xhw{7{%5i?ba_H|THM&ji93QT}aXG;t>SdGc4O5M9YSKF>-hlz_ z^oom}Z-jsE1JafDR535ujPSc!4dkPz9``It3HzgX_<0)Y{obtgrt;YCnK0WY!|&$A zWlujJ(z*XL6~HFzL7-9W1^eN*#j8W9in(S9O#0_Cfsn80A04L!c~lE?N6_;5c(H6B zAy@D&++DubCkw8p=zdz5Y0T_6H+Un%AkaHXhP? zMm=VH&al=(W0icfYr#>Z&4&4^IMs+-tdwA$>U=;?xoyQ+^1dCmZKW&r4Xjf$m)|ta z&UgZCduI=T`Qr8H-Isw84f<(K=&$nB(68)3(EuMt$#^v+Fhz~m@wT~G5LboeoeWR( zn+|B)Vm3yag^_WuXhdTrAuAY7J)>2q2c`aR%}rNWA$G*Yw~Zgh(%#{e8n1m_(Wnp| zQ?9yHTT#ibO4Y=>6JFY0XQ!Y4 zNUd`;Hab!-jD39mQ)ZezQX8V@gg{>@7ySuy*H$-S&wb$QR?(+w@{DonMh;_%_8euy z>*>9`cFI4J=^&xQOTLfz^Hc~2yEsz&Iu9EY)CHRkA8$^{ef$ev4DXB2k4BK5$|)W;t7@0_scq>_0WL~)v`yWU+3ON zq(3}9Hoxcgmd+S?4tJP22#r)SI0SlucvQ6lgxC--8`CCdLSl0gU_z)NW9s88*(`;| z0>b?5ph#{nlHO=BZ2}yU>~n${D9L;1x%!;Cs6rHXl*D;r><@#29mdrU=AQ#GC(tdQ zA4bhpp6G}k=NIHjY#=JW1fnEnOy`UF$#B;)7g zkOW&{K8DRCn^9*nT5nMRp3j(ie}FMTY|iCBmUHqP4g1~96=p4Zxnqv<=neODg0|a>cP<}go-L0pJ2m81WzVOK7yPuoir6O{xQG@2G{3~+ zem5xBpcun?r8kQjz1OdrqZQ!r{--F4iwudzRl|EWP8X4-%aghub+#D*N?i;oJI@@R z3o(+ecH+kr3BT?I)iO5KeZosmcP@%}f4Dd*&96mLJl*^JCooTOTHVqw4gO1 zoc94~nZoQM)sx7m-wL^-^&_EEPtfvr(+s<`-UxH)*!rY9p)o(^wMyDdtyjwmmv-qC z;|Jo6%m-g6gXi#FTgi|ZP~p~11!A;$Un~fsfE*Hek~ITr$0&aXU1)I$Rqd$O94X`_ zfJFMAniy+lh^mmMWpIQk6+kx$!B0xySJle*Z zewFA(flt|^Ls{$8fi7LlCXv?Qj-WwyIKN4J3vTB`_A)%Ll#Il}Df;r_GUF*0bc(?1 zLheBqN2JEgSEY0;ul>&bMKVeG60mw)*;td=cx-2#Jetcr*l4q+jBLuxc!kEB34l{C z*2Fu$u(a)MK(BcDV7()2=YN(^0)6LQQpoxYYY)r#O*laaJ z1k~=R8>gatR;99lLc>dfr9@#GD->Lo0lz)PXVS>8AFEn7{{ju2^tfFU3PFD`)D|N# z^_$^X8Ia!Va&wMFwOTxJ6WOR;H>#}uY zGdV-I3LrdXY7Fm15r@DHB3Ti*N=Ay-)zB@pBj#YkyjcuJdhe;yy@;)s8AQ+j5%+{K z|1**c5;Ls#exu|S)3>Jg9ysl7FZPjoUDv{FxUs-V*;errBs1bXeXbunz5et7b>TwI zC8&2|D%Sm60d}xsvZ$O9E4|%dDoREKq&-rt;;B(}_V=@nN~V!=Y%|W_7AagVF4%}m=qK1lbX0X>4UB9pZEL(N2RbodXE!1c5F zE{zWSp=tB&yP+qz-Vg-(O-Fwo6X5a$F{Dtd#Y%;0~WyF(nJB4JQ7r7~wCW=YvC+^C1v z8QT5n&W{NvmYWgues;{Qa^98d2P^nU*K!Gj*#t++v**>PtuP^p1yVmf+XC}fwW zHQ-pJLSZ(e<&B>qwUy|Wp%%O}e#wCq@@H@ZUNq+g%22m+J+6xY-Y^5d(B@sQCJy!@ z^MU^Ul6!@ZI&TeyF}x%ucW^9tEB*Uy2`bpQWs$URz52cdIWf(ua#0{Y)LybL3|qSp zjd7!EQI5XmxU3fT6{9dX=-e%;(uxJVl1#pnAze4TEok1H zHOC+GSN%Q$W*WGOjvak*ma)gB{Xar6%fGI2;Yg!0)>qAryp=}v(U<rXd-Bd>Cm2vW*kv%3fuP}UfC{2Hs8I+ z`okhMTp>`H9!Od8y2fcJT_9hN9GOs>mOU*=5-qxM0j@(#!`!xcHFlO!RZ zU!lz*x%SF$e!mySwl$?5dCfX^;fxC^EzmL4?-NiK6iaM+4RDnz*fa0Q6*mWfHNaiO zh(9Qz$-LPIEN2gi5*@I`@wQ%-zCK&{5l@eG0vM^{68kokl23+Ifd$I;e?qrusEjJ! z2t1j#C7b#IBnF*o)jGPF(QO8Y2!3w)avoL)@aNDQ-(`OgrB(jBMm+*}kV;d=0Q(3Xx{OB+^rW}4tp2X z3xJ21(Ax2398K&VAeU?UlP z7J@nb*k%a*;*Wk~x5PB=RmW?;!0U|2ezh-(Ql>nQSOKTY72Zcq9RcUK82l!OTDZO# zFwQ8giliqb4t#j{Ix-GP1J>L!_s6`YG$X8BY)okEJ8MLQXy^FwJ#Z|lyV;QE#hEYQ zZ_d{7l&!M+UCR9RaTm#_bjEL6=>z1fF;am(mm7Fdu4CEaetCujxQt$(nIH8P`K%@B z`>c>C&@kgVs+I#(7k>tqh-jwD6^awG&?&Rii{S$q+$(`%Z+N=uj2|5W|93! zcoe*jeDaZm0bWm63V`a^&{HyJPoxxZ{xc!ZG2em+CKXIH1GFKC@)LVM6F|8}HKJn? z@P|Gw+HsWB8j(&JUf?X94*Dhy0W`V7BT@#^T+2xHd{<={X^@oP^;xNlVv5NS?w}MM zLn&Ma5`B)Uq|)JN0`e*u{v)1UcC8%RFah31`B47VJ@B##g{~4p&K49JDtkIe1^S){sz=s3aKV5?2+j#BuOaGyxnI{@I&|&*r`>Dd95V;1&p6 zr_$3FepRq;E$WPpHc~*_WPbKXW;!nhPib~YY<*Zn9wCp=fW-wRE_2BwWxXNIW7);OD5SB$lx!Amal{eZ zA1u=f?%Qnwbicr9T+k(pt!m_0SA-Ym57=skEveG&P=%j|G)QgD{Sw^xa! zE88p{kmiQ(2G8Fz_V3yQ1p>od-^QEH57&UDpJR=#;x;h~A3-9gY z)mxFgQY`$ka3GbOK=FpXGZWEpEF4a7hjft8{Me~C@kq?x%iTf?K^7|FJ;?i!d?JwP zN8|Uf4vsJ20A)0q4TDBlH%NUb!b}7^j9k?+8dnREBoaN6iwY3&3NPRh@LpBe$m41n zOVS&&h~XpoEO3)BWO`PZVH+nMdC*iNefy297-~%MrKpHIX-PT@>^+f`_ET zm7aYvuM`OoV+uFas>_YZivr;QgN}e&xNj!6cJl><5I5W~9DGM96|^&4!>_iEx`U3o zy+a--AOSUNUm3jjSr~ALBfd{tPDw4_O3PBXR1mMY-%oLnT&HxKr-NtHU*0>olcb#= z^mq`s2|2$t7<$)6gF|*6<;H@ViJ);Zzevcl-Z9NCe5i&yWrb1);JF8s7y?*9DOEDKg-;dGY1SaQiU%cDgVA@Zpe~P- z8=v`tG6n@)0pemSMWee}pv-{Lq4Xh$#kq_`Lf=q~{&<10S-|mQz!+LT1x*+zJxi7K zjqKTk?3VQv)Y#S2866VtIxKQKoN`8fJeheG!~CRnLf;rPF#J-mU)RX=;&Z+PHJ55x zc$vR>0qdtIW*%9|f*=%UIo^6_8uVB|T^sBiMV-(6%_};-KLitBVg4Rjy%ksVlNbp? z$|J?2_rRryeN~hWaefq`iH$Ns&_$af8S6opSz3M@W#H>d`Y-jdA2m%&0VpLe2j!_b zAbI}3@8^^j0d5_ws_^AUZZhY^hDJ*~gigxk5#`^Tc#A}RjN1SH zW2CR^k)pcz?vifuy($wbv;GnqWk4B>s@@oHZLXz|!_AEcyir?)Z?cdp14pUbRZ0Z=-~g(|8N|G@cd2BeYJl`aWUAgNJgAGW*BBb!kT zXRceLl)tO$8@LYM)F{7<1826h2$+am(hscH|GD{h;NQuS=iqABr}ZnTF-8~d=tRi^ zRy_*NM%U+%LLM4gq=Gppq+yN=C6rWmZd;1Ib}zd)TWB$&jE9Y=CM&vWaBPj*=uy!_ zFjrWWW0l6D86r+^{M7_lNx*;Q;WF(5u|y5r=3PLY>v6FmxPLIn@_%bU13(h!VBWhMr)(VzoO+qFwY*bpOcib^#~ek^F6c;hrpNS-5?`ev4~FuxreYA8=p zwL!Wc;kLGHSiUEET9{vIKt3_h%Mg_HO&E3!#q64K)YJK8{f;+pqrI?l7TbN8r0~LB zjg;)-dZrvvT*5dnQrzcfz)G7+Qizuwpg-~m$h4?Yi+zJ6lI4c$94eeFi`#F?kJkVC z3L11^fxb7wPh@FOkIIM-YUom%*&v}8=FFjdZLAJ)(;sXHfiiWc$({){O5$L1Vlkji zS%V$`B(yQ(gy#eADo8=0j|>6RNKgw`@_i?%@F)Q&6Q*81a_JJy^sJy)EoffrRTg8%8bu7*caxPX*~8M5cp*`YHAXUiGJ$ekO>7Dw*KW}l zk;CqT0Q&ImfaK=Q#*=R2hxQD$os?h3PXhTo)`$Q6KK)!fuB)bK=6}4+Rk+(G>1Hr? zQ}@KbczBIWBl#Hgi&zHlLWNCDx+rRn+VL^+TCn{nUoPF(o#MJKeWGcKq{Qmj(W4`(d5!@J*xvII;|wr6(ES1#_OYtia~EJSXc#pC3aRLgnM*X;_xxU<;Sw+>9t!JNLG~ zX$Rg$@rT`s^kTt|%h*meM~c>K3(B6vi4K9OljYG9eVDpnc{ zXCAmaBTE1j2m65gg-qpF-iYH(wxs*@lG<7?#vDq(15dF_EWAK35NlJzzR(T0dVmVZ zQN8pr0|bM9Ta_FDq`PWU(xT;GhtzTIn+$hNF;UkJgTqmUzdE7>bsOy2+q*02WSRu6 zXFMbzkf~y@CV_u%H^y)XaGrjs;z#JcX7Jd7R+}Lcd?BjhXPGGIOrHGxuxoFBis&41 zQ$YQZ8^HbD?mO<8XPC18=jlS)Q7xDBO4M<^sy#bH4?db%VBWcpbe^{8 z&2}i3xNoTWmG}O%BablHOm}d`yXHc~YqFbv#`&x8qbf=fI6gSC>`2+00KYgUk6f5G zV-)Cg^+BYcw<58`ui!<(5!FNBe&RIXP`LxW$^ zUmt`rt&G)1nIdkRhPJA?R&n?c?FqG3hkW`hV~6|{=tHoq(Xx3IYpH|Sw~~JcNlCwT zPSqU#1YZN`Q5t9;B+M$}o45^13R%2)q5LYh+LlQ(#GGkywRwf922qfZ`{rj;r~Bf^ zLqf&xB}QZDeBW#`wKo;}O$ph8&sL3*;T`7v^?$T=?eR>nVH}a6q*QXyCSu4Xom@(D zi4@1Ak`mIXxg-=(ZikT$=?J-m)|N0*BxMm(=cE|9S0b0>lFPzaGfU31rCOb{|MuBu z@8|bEzxRE9-{<>&pYKn@)OauQEJ~;!D%%9Tk$0r${p&Gby$mjdT-Y-b2r)~1n7V;@ zvr8R;IqNicZTD=fOS8GAoYk^(Qd^Cp$`ng-3xtpSb9(V{9z^>{B0;F28G5kaxb8d4TroycopoCVL^!7u-+3HidnKlg1Cxv)oiP~ywK`Gztvl)Cckk;qRyf}-ZTSoBT@P*|nbc$XL~N1Bhl zC`kKlx9qvWhRJuh@wtx@giu}&7w_7+`HOoo>XDDGb(PoF54YZ^$kpJ)XJCl$quoxa zU@oiJB!R8j4m*7=_8Cie|AvbeX3re~@28~0Vh`a&t1Zl?9`?*(!9a^%L2kYp+sHN7 z!^b?Rj+6N_sHXou#W%#=A<@6Md9@HiI-*m*>V0NInO}U(!Cs^U*j&m4g=)x zjay}d8A5;MT~F7gA9-EuMQN)2pFuVtGo(eya2@|{{>g;7Jmsm08ot``(h z9cP)NGC5^~j$XC?R)QX>?;oIb7H}eeJl08FF+5s6mhb(*HBI#4wsz*JjUv)SI3qIE zYj<4~1ZeEWwD#IxcVmq?R~Nv*k8|0FfNbqHTBPmkDSvFD_pu+;np@rNbS6z{my8%O zr^mZdZ6wef>pBo9Uah6K{huy@{mfmBU+*YE=g*eoqbA7PS`3xd7>hc|;(xQ38dS{VR(?aK}> zLDdIIrYr3Z{sQya&3y?vP{ei_^pwFivP)=j-rwf2O+0pyFD6g}yG|>dsW}CE@<@bD zYWgO38rPMsrbx>AM(nauV)^Oeb-tC%{mJ8co!&BNJ!fE!l#Ksp(`zA&SYstE?`*@9 z;2;+x-dzQmyEjr|-I?pDJEW1v49-lqI-3^C8@@}5kPs@; zbV55*x*b2y4W!wf9Ag;4)8(%f+51=YMXi9IRmYRfJN4&ZkuNy`&jf0zpF=Dqs3C-` zn5T~A^^5e%W=JY*sp0A)Q|$MPRbB{Ay*PtnRn5_T{oY0|W!!&z2Jl9m$nirL&VSkY z{CE8PBX{B->Rrh($DJcP!CO(e#Jy26dl$LdpQ)`jX_^ZL70GYljI{XECBtFmvayi@ zx%-<}StoFDCf_(F!Xu0EtnM&}z#dQ4gVRst>fdHnn(=)e6U;% zmy6E!`RI`K-e;}ho(z58!jM*;#+)xaU}Ea}7GC7D_QG^1fWGD8AVIzSaGZJwDs)-) z=9hc?`l5v9hK%PE;XH%}0umXGp2COYT1w9@rQycfbp= zZOvKsfSCn3=QuW(=iT)^aGxxCQ$!@PSr|@@Tv6p}jbq^HH^B8j2OXKp;9)Dv*Ri$- z+B1Erh6ZG^FYc`~nfdav7l69Y08EbT#_(E0_*Pn;lJFzJ^O9>&ubcu8j(N!4e2`c! zz6m^(hYt)E=&Vx0gZ}6~Rh!~&4|m28y``E><(@LR#14V^n`#JJOp3F% z$vSX^x+#UEB9-;ivd)ti^3`_Pu=hhcnsre@wXxwEA$<~b0g7`RmW-2ke(Gf842jXc zIx~A^rlhQ{x!aJSWE!!w>yMD(@=>i8?=)xJ_Vr?sKPLq|LvaH1r?mRvOEjgu$W%)p zt^L zEM5l*UuwgPD+wGC;o7~7m3I2v1wR#g=I40p7hdOQ-lwp^PX`Aq7Brln4l=71Ief)*NjG~@gXWsKedD%1%P0-F2! zrn*C?Y}i2Di2N}-4m4A#MGo@EeCE-D=xu<04s9goHh3@y-7Wc0KDxNdQ8dpd#`d

mgdwbss$l=}3<7Ek5r!?m6yG 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�Hp{wH`g#(67E`#6F8U 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 literal 0 HcmV?d00001 diff --git a/site/_static/favicon-32x32.png b/site/_static/favicon-32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..52c5a60587922b9433191bbcd20024cc55532fff GIT binary patch literal 1717 zcmV;m21@yfP)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91AfN*P1ONa40RR91AOHXW0IY^$^8f$_A4x<(R9Fd>SIcf3MHH>-?wRq- z*v5&mP>9R~P^176vMg(4MHb>K<_p-u!doJ-=$`CwK7lp)kZe#^k=SMz%O=J|!T2#< zU7T}oS3f)sHZ4zg^{x9j_uQ)LYx~=;FMo2*JvMm}7p^cxUKpP{<7Uo!=gh1y=FG(A z6hA)COk~b&;_+_JZR`shS=)_G)QwEiOT6twHg3GfNo2c;G2O(QUdQ@QY;3m^`5tAl zG0~QNm|1T#Z;UgzJY0J3Eyvbi##)a7|KyT)nKLkfob&RGV5WBPLQ(6Y6OSA9=_}|) zc4FPQ^L17@H-!)&LMXcN0){|>OUi1`I?s0k56*)R4WgFdDY&SDLtrBs6U3w8R*Hxj zyytX8dAN!yGnEANumnRubV;9D)#EyoZDnxF$`S2GX*P9_ugZuD(B0~4^! z$+!T)oeY$@i8>h|I0BI^38`kS;S{)frXAl2>b(r8sxsk5J1Le+hL|oaJTibo5D#TV z!Dxx9U=#vo2o`+mHdMQ70nmu$ui{ICJkpUaUL+WSDp-A|iyH%=GMQK%ZKb*F4&9&>J%$8V$ZGESH{chR^5rbTJ5ybjvBQ2aVL1(m)%n%fzg=X27GSl|h)Td4I zeD8U`JM7M>?$b_gwS(8?@c8!^=G^3aW@)*P@VgMlTIq^vh>>amED4sOri~b34d@2q zd69JPE`Oirvmbr#V~>8op%?Jz36}6Q9~AxqPP89L%mVs>b5xDJLErY!8~Agy3wua^ z7v2+Q#BIocjK-`eL)O(!&@n-2Hs}Yw`q>xeDFj{MA3{9DcmO8@v?hyuhxGvZkeNZy zDfN1P9{)8(SZvYqD_SiyE00@XMCD=rT z3-kW)Ugitfmz`C?#YvzIKve>qzy%NWNk|YoOJgu$X-RqO91sw<#?m7qgd8@l3|I#IH2a!?0D~Ytx1ZoETF6&41QEC; zh)O2!Xla9ScoGEr0rrTH;n>ye!&Azj3x$5?E`s>feVj%S7ABY=SV9f@Ca|`$%{fj3>eb=%g{@OM&OYtAHS$J@eWA>Kg`s3>!4zO1ZM9 zdQyTngOeZf#dv?V5FMU%%;BkZhyS?Q;lM1tjw16Ng72{$RR$~of&4cHIkxW{eV8E# zn9yvN@BW@v{eS|;T~?NITgm1JWMb`Lg^L>f1k0fp zf$%2`$QHyo0H1ZuI4N9N>`9!BWj{bB)CJLB-WkDt`$-VDc5Y)$u;o_}QbH_3hG?Aw z@QM?STL_bgCKzz16ZQj+pJHEbF>%li_P)1?wXQc_$p`{5WnpUqjh2i|@c#n*e<=SU zUCxjohNCe)#Rl^r=7tOePy}H&SCC*K$y^CF0oFUbVX88A5qfc_Zd z;Lc8F3;*PF`BYDgMj+1LUw@by%)ec}n452?UO6O)w-0WoSYz40pB2%rh8S~F00000 LNkvXXu0mjfm literal 0 HcmV?d00001 diff --git a/site/_static/favicon.ico b/site/_static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..2aca5b035dd69fa9d7313ccbe0fa35d32e9e93ef GIT binary patch literal 1150 zcmbV~Jxjx25XVoDwlqsYa5L@F;#Uys3$$?)RK(d$!KI5JA~hY{ln&L!Ql#I*!NIMF zR4eqIRKI{jZK}16|4Z{o8Y5^EemU-PzvP}LA)3G$2oSCz+MOhtCZbt@5-P(w0uk;_ zNkh!sx@_e71SF6E^8QJi9+id!5?}_{+sTNYGZHwqTpwZzl-I5XK_gQ1z)68J2-H(#=)c%uW)0GjaK zT+5eN^8m6~~N53DapzCl=zaG1f7|~49&9!{~Misz&#p@NcN=mJuFXprGJKXCA`ehITK|xW` zs`hMrGg#P~ix$^RISR_I47Y|r1 z_CyJOe}D1){SET-^Amu_i71Lt6eYfZjRyw@I6OQAIXXHDfiX^GbOlHe=Ae4>0m)d(f|Me07*qoM6N<$f}vM^LjV8( literal 0 HcmV?d00001 diff --git a/site/_static/launch-logo.svg b/site/_static/launch-logo.svg new file mode 100644 index 00000000..1e9a4431 --- /dev/null +++ b/site/_static/launch-logo.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/site/_static/minus.png b/site/_static/minus.png new file mode 100644 index 0000000000000000000000000000000000000000..d96755fdaf8bb2214971e0db9c1fd3077d7c419d GIT binary patch literal 90 zcmeAS@N?(olHy`uVBq!ia0vp^+#t*WBp7;*Yy1LIik>cxAr*|t7R?Mi>2?kWtu=nj kDsEF_5m^0CR;1wuP-*O&G^0G}KYk!hp00i_>zopr08q^qX#fBK literal 0 HcmV?d00001 diff --git a/site/_static/plus.png b/site/_static/plus.png new file mode 100644 index 0000000000000000000000000000000000000000..7107cec93a979b9a5f64843235a16651d563ce2d GIT binary patch literal 90 zcmeAS@N?(olHy`uVBq!ia0vp^+#t*WBp7;*Yy1LIik>cxAr*|t7R?Mi>2?kWtu>-2 m3q%Vub%g%s<8sJhVPMczOq}xhg9DJoz~JfX=d#Wzp$Pyb1r*Kz literal 0 HcmV?d00001 diff --git a/site/api/client/index.html b/site/api/client/index.html new file mode 100644 index 00000000..a7c6a91e --- /dev/null +++ b/site/api/client/index.html @@ -0,0 +1,2873 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Launch Client - Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + + + + +
+
+ + + + +

Launch Client

+ + +
+ + + +

+ LaunchClient + + +

+
LaunchClient(
+    api_key: str,
+    endpoint: Optional[str] = None,
+    self_hosted: bool = False,
+)
+
+ +
+ + +

Scale Launch Python Client.

+ + +

Initializes a Scale Launch Client.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
api_key + str +

Your Scale API key

+ required +
endpoint + Optional[str] +

The Scale Launch Endpoint (this should not need to be changed)

+ None +
self_hosted + bool +

True iff you are connecting to a self-hosted Scale Launch

+ False +
+ + + + +
+ + + + + + + + + +
+ + + +

+ batch_async_request + + +

+
batch_async_request(
+    *,
+    model_bundle: Union[ModelBundle, str],
+    urls: List[str] = None,
+    inputs: Optional[List[Dict[str, Any]]] = None,
+    batch_url_file_location: Optional[str] = None,
+    serialization_format: str = "JSON",
+    labels: Optional[Dict[str, str]] = None,
+    cpus: Optional[int] = None,
+    memory: Optional[str] = None,
+    gpus: Optional[int] = None,
+    gpu_type: Optional[str] = None,
+    storage: Optional[str] = None,
+    max_workers: Optional[int] = None,
+    per_worker: Optional[int] = None
+) -> Dict[str, Any]
+
+ +
+ +

Sends a batch inference request using a given bundle. Returns a key that can be used to +retrieve the results of inference at a later time.

+

Must have exactly one of urls or inputs passed in.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
model_bundle + Union[ModelBundle, str] +

The bundle or the name of a the bundle to use for inference.

+ required +
urls + List[str] +

A list of urls, each pointing to a file containing model input. Must be +accessible by Scale Launch, hence urls need to either be public or signedURLs.

+ None +
inputs + Optional[List[Dict[str, Any]]] +

A list of model inputs, if exists, we will upload the inputs and pass it in +to Launch.

+ None +
batch_url_file_location + Optional[str] +

In self-hosted mode, the input to the batch job will be +uploaded to this location if provided. Otherwise, one will be determined from +bundle_location_fn()

+ None +
serialization_format + str +

Serialization format of output, either 'PICKLE' or 'JSON'. +'pickle' corresponds to pickling results + returning

+ 'JSON' +
labels + Optional[Dict[str, str]] +

An optional dictionary of key/value pairs to associate with this endpoint.

+ None +
cpus + Optional[int] +

Number of cpus each worker should get, e.g. 1, 2, etc. This must be greater than +or equal to 1.

+ None +
memory + Optional[str] +

Amount of memory each worker should get, e.g. "4Gi", "512Mi", etc. This must be +a positive amount of memory.

+ None +
storage + Optional[str] +

Amount of local ephemeral storage each worker should get, e.g. "4Gi", "512Mi", +etc. This must be a positive amount of storage.

+ None +
gpus + Optional[int] +

Number of gpus each worker should get, e.g. 0, 1, etc.

+ None +
max_workers + Optional[int] +

The maximum number of workers. Must be greater than or equal to 0, and as +well as greater than or equal to min_workers.

+ None +
per_worker + Optional[int] +

The maximum number of concurrent requests that an individual worker can +service. Launch automatically scales the number of workers for the endpoint so that +each worker is processing per_worker requests:

+
    +
  • If the average number of concurrent requests per worker is lower than + per_worker, then the number of workers will be reduced.
  • +
  • Otherwise, if the average number of concurrent requests per worker is higher + than per_worker, then the number of workers will be increased to meet the + elevated traffic.
  • +
+ None +
gpu_type + Optional[str] +

If specifying a non-zero number of gpus, this controls the type of gpu +requested. Here are the supported values:

+
    +
  • nvidia-tesla-t4
  • +
  • nvidia-ampere-a10
  • +
+ None +
+ +

Returns:

+ + + + + + + + + + + + + +
TypeDescription
+ Dict[str, Any] +

A dictionary that contains job_id as a key, and the ID as the value.

+ +
+ +
+ +
+ + + +

+ clone_model_bundle_with_changes + + +

+
clone_model_bundle_with_changes(
+    model_bundle: Union[ModelBundle, str],
+    app_config: Optional[Dict] = None,
+) -> ModelBundle
+
+ +
+ +

Clones an existing model bundle with changes to its app config. (More fields coming soon)

+ +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
model_bundle + Union[ModelBundle, str] +

The existing bundle or its ID.

+ required +
app_config + Optional[Dict] +

The new bundle's app config, if not passed in, the new +bundle's app_config will be set to None

+ None +
+ +

Returns:

+ + + + + + + + + + + + + +
TypeDescription
+ ModelBundle +

A ModelBundle object

+ +
+ +
+ +
+ + + +

+ create_model_bundle + + +

+
create_model_bundle(
+    model_bundle_name: str,
+    env_params: Dict[str, str],
+    *,
+    load_predict_fn: Optional[
+        Callable[[LaunchModel_T], Callable[[Any], Any]]
+    ] = None,
+    predict_fn_or_cls: Optional[
+        Callable[[Any], Any]
+    ] = None,
+    requirements: Optional[List[str]] = None,
+    model: Optional[LaunchModel_T] = None,
+    load_model_fn: Optional[
+        Callable[[], LaunchModel_T]
+    ] = None,
+    app_config: Optional[Union[Dict[str, Any], str]] = None,
+    globals_copy: Optional[Dict[str, Any]] = None,
+    request_schema: Optional[Type[BaseModel]] = None,
+    response_schema: Optional[Type[BaseModel]] = None
+) -> ModelBundle
+
+ +
+ +

Uploads and registers a model bundle to Scale Launch.

+

A model bundle consists of exactly one of the following:

+
    +
  • predict_fn_or_cls
  • +
  • load_predict_fn + model
  • +
  • load_predict_fn + load_model_fn
  • +
+

Pre/post-processing code can be included inside load_predict_fn/model or in +predict_fn_or_cls call.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
model_bundle_name + str +

The name of the model bundle you want to create. The name +must be unique across all bundles that you own.

+ required +
predict_fn_or_cls + Optional[Callable[[Any], Any]] +

Function or a Callable class that runs end-to-end +(pre/post processing and model inference) on the call. i.e. +predict_fn_or_cls(REQUEST) -> RESPONSE.

+ None +
model + Optional[LaunchModel_T] +

Typically a trained Neural Network, e.g. a Pytorch module.

+

Exactly one of model and load_model_fn must be provided.

+ None +
load_model_fn + Optional[Callable[[], LaunchModel_T]] +

A function that, when run, loads a model. This function is essentially +a deferred wrapper around the model argument.

+

Exactly one of model and load_model_fn must be provided.

+ None +
load_predict_fn + Optional[Callable[[LaunchModel_T], Callable[[Any], Any]]] +

Function that, when called with a model, returns a function that +carries out inference.

+

If model is specified, then this is equivalent +to: + load_predict_fn(model, app_config=optional_app_config]) -> predict_fn

+

Otherwise, if load_model_fn is specified, then this is equivalent to: +load_predict_fn(load_model_fn(), app_config=optional_app_config]) -> predict_fn

+

In both cases, predict_fn is then the inference function, i.e.: + predict_fn(REQUEST) -> RESPONSE

+ None +
requirements + Optional[List[str]] +

A list of python package requirements, where each list element is of +the form <package_name>==<package_version>, e.g.

+

["tensorflow==2.3.0", "tensorflow-hub==0.11.0"]

+

If you do not pass in a value for requirements, then you must pass in +globals() for the globals_copy argument.

+ None +
app_config + Optional[Union[Dict[str, Any], str]] +

Either a Dictionary that represents a YAML file contents or a local path +to a YAML file.

+ None +
env_params + Dict[str, str] +

A dictionary that dictates environment information e.g. +the use of pytorch or tensorflow, which base image tag to use, etc. +Specifically, the dictionary should contain the following keys:

+
    +
  • +

    framework_type: either tensorflow or pytorch. - PyTorch fields: - +pytorch_image_tag: An image tag for the pytorch docker base image. The +list of tags can be found from https://hub.docker.com/r/pytorch/pytorch/tags. - +Example:

    +

    .. code-block:: python

    +

    { + "framework_type": "pytorch", + "pytorch_image_tag": "1.10.0-cuda11.3-cudnn8-runtime" + }

    +
  • +
  • +

    Tensorflow fields:

    +
      +
    • tensorflow_version: Version of tensorflow, e.g. "2.3.0".
    • +
    +
  • +
+ required +
globals_copy + Optional[Dict[str, Any]] +

Dictionary of the global symbol table. Normally provided by +globals() built-in function.

+ None +
request_schema + Optional[Type[BaseModel]] +

A pydantic model that represents the request schema for the model +bundle. This is used to validate the request body for the model bundle's endpoint.

+ None +
response_schema + Optional[Type[BaseModel]] +

A pydantic model that represents the request schema for the model +bundle. This is used to validate the response for the model bundle's endpoint. +Note: If request_schema is specified, then response_schema must also be specified.

+ None +
+ +
+ +
+ +
+ + + +

+ create_model_bundle_from_dirs + + +

+
create_model_bundle_from_dirs(
+    *,
+    model_bundle_name: str,
+    base_paths: List[str],
+    requirements_path: str,
+    env_params: Dict[str, str],
+    load_predict_fn_module_path: str,
+    load_model_fn_module_path: str,
+    app_config: Optional[Union[Dict[str, Any], str]] = None,
+    request_schema: Optional[Type[BaseModel]] = None,
+    response_schema: Optional[Type[BaseModel]] = None
+) -> ModelBundle
+
+ +
+ +

Packages up code from one or more local filesystem folders and uploads them as a bundle +to Scale Launch. In this mode, a bundle is just local code instead of a serialized object.

+

For example, if you have a directory structure like so, and your current working +directory is also my_root:

+

.. code-block:: text

+

my_root/ + my_module1/ + init.py + ...files and directories + my_inference_file.py + my_module2/ + init.py + ...files and directories

+

then calling create_model_bundle_from_dirs with base_paths=["my_module1", +"my_module2"] essentially creates a zip file without the root directory, e.g.:

+

.. code-block:: text

+

my_module1/ + init.py + ...files and directories + my_inference_file.py + my_module2/ + init.py + ...files and directories

+

and these contents will be unzipped relative to the server side application root. Bear +these points in mind when referencing Python module paths for this bundle. For instance, +if my_inference_file.py has def f(...) as the desired inference loading function, +then the load_predict_fn_module_path argument should be my_module1.my_inference_file.f.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
model_bundle_name + str +

The name of the model bundle you want to create. The name +must be unique across all bundles that you own.

+ required +
base_paths + List[str] +

The paths on the local filesystem where the bundle code lives.

+ required +
requirements_path + str +

A path on the local filesystem where a requirements.txt file +lives.

+ required +
env_params + Dict[str, str] +

A dictionary that dictates environment information e.g. +the use of pytorch or tensorflow, which base image tag to use, etc. +Specifically, the dictionary should contain the following keys:

+
    +
  • +

    framework_type: either tensorflow or pytorch. - PyTorch fields: - +pytorch_image_tag: An image tag for the pytorch docker base image. The +list of tags can be found from https://hub.docker.com/r/pytorch/pytorch/tags. - +Example:

    +

    .. code-block:: python

    +

    { + "framework_type": "pytorch", + "pytorch_image_tag": "1.10.0-cuda11.3-cudnn8-runtime" + }

    +
  • +
+ required +
load_predict_fn_module_path + str +

A python module path for a function that, when called +with the output of load_model_fn_module_path, returns a function that carries out +inference.

+ required +
load_model_fn_module_path + str +

A python module path for a function that returns a model. +The output feeds into the function located at load_predict_fn_module_path.

+ required +
app_config + Optional[Union[Dict[str, Any], str]] +

Either a Dictionary that represents a YAML file contents or a local path +to a YAML file.

+ None +
request_schema + Optional[Type[BaseModel]] +

A pydantic model that represents the request schema for the model +bundle. This is used to validate the request body for the model bundle's endpoint.

+ None +
response_schema + Optional[Type[BaseModel]] +

A pydantic model that represents the request schema for the model +bundle. This is used to validate the response for the model bundle's endpoint. +Note: If request_schema is specified, then response_schema must also be specified.

+ None +
+ +
+ +
+ +
+ + + +

+ create_model_endpoint + + +

+
create_model_endpoint(
+    *,
+    endpoint_name: str,
+    model_bundle: Union[ModelBundle, str],
+    cpus: int = 3,
+    memory: str = "8Gi",
+    storage: Optional[str] = None,
+    gpus: int = 0,
+    min_workers: int = 1,
+    max_workers: int = 1,
+    per_worker: int = 10,
+    gpu_type: Optional[str] = None,
+    endpoint_type: str = "sync",
+    high_priority: Optional[bool] = False,
+    post_inference_hooks: Optional[
+        List[PostInferenceHooks]
+    ] = None,
+    default_callback_url: Optional[str] = None,
+    default_callback_auth_kind: Optional[
+        Literal[basic, mtls]
+    ] = None,
+    default_callback_auth_username: Optional[str] = None,
+    default_callback_auth_password: Optional[str] = None,
+    default_callback_auth_cert: Optional[str] = None,
+    default_callback_auth_key: Optional[str] = None,
+    update_if_exists: bool = False,
+    labels: Optional[Dict[str, str]] = None
+) -> Optional[Endpoint]
+
+ +
+ +

Creates and registers a model endpoint in Scale Launch. The returned object is an +instance of type Endpoint, which is a base class of either SyncEndpoint or +AsyncEndpoint. This is the object to which you sent inference requests.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
endpoint_name + str +

The name of the model endpoint you want to create. The name +must be unique across all endpoints that you own.

+ required +
model_bundle + Union[ModelBundle, str] +

The ModelBundle that the endpoint should serve.

+ required +
cpus + int +

Number of cpus each worker should get, e.g. 1, 2, etc. This must be greater +than or equal to 1.

+ 3 +
memory + str +

Amount of memory each worker should get, e.g. "4Gi", "512Mi", etc. This must +be a positive amount of memory.

+ '8Gi' +
storage + Optional[str] +

Amount of local ephemeral storage each worker should get, e.g. "4Gi", +"512Mi", etc. This must be a positive amount of storage.

+ None +
gpus + int +

Number of gpus each worker should get, e.g. 0, 1, etc.

+ 0 +
min_workers + int +

The minimum number of workers. Must be greater than or equal to 0. This +should be determined by computing the minimum throughput of your workload and +dividing it by the throughput of a single worker. This field must be at least 1 +for synchronous endpoints.

+ 1 +
max_workers + int +

The maximum number of workers. Must be greater than or equal to 0, +and as well as greater than or equal to min_workers. This should be determined by +computing the maximum throughput of your workload and dividing it by the throughput +of a single worker.

+ 1 +
per_worker + int +

The maximum number of concurrent requests that an individual worker can +service. Launch automatically scales the number of workers for the endpoint so that +each worker is processing per_worker requests, subject to the limits defined by +min_workers and max_workers.

+
    +
  • If the average number of concurrent requests per worker is lower than +per_worker, then the number of workers will be reduced. - Otherwise, +if the average number of concurrent requests per worker is higher than +per_worker, then the number of workers will be increased to meet the elevated +traffic.
  • +
+

Here is our recommendation for computing per_worker:

+
    +
  1. Compute min_workers and max_workers per your minimum and maximum +throughput requirements. 2. Determine a value for the maximum number of +concurrent requests in the workload. Divide this number by max_workers. Doing +this ensures that the number of workers will "climb" to max_workers.
  2. +
+ 10 +
gpu_type + Optional[str] +

If specifying a non-zero number of gpus, this controls the type of gpu +requested. Here are the supported values:

+
    +
  • nvidia-tesla-t4
  • +
  • nvidia-ampere-a10
  • +
+ None +
endpoint_type + str +

Either "sync" or "async".

+ 'sync' +
high_priority + Optional[bool] +

Either True or False. Enabling this will allow the created +endpoint to leverage the shared pool of prewarmed nodes for faster spinup time.

+ False +
post_inference_hooks + Optional[List[PostInferenceHooks]] +

List of hooks to trigger after inference tasks are served.

+ None +
default_callback_url + Optional[str] +

The default callback url to use for async endpoints. +This can be overridden in the task parameters for each individual task. +post_inference_hooks must contain "callback" for the callback to be triggered.

+ None +
default_callback_auth_kind + Optional[Literal[basic, mtls]] +

The default callback auth kind to use for async endpoints. +Either "basic" or "mtls". This can be overridden in the task parameters for each +individual task.

+ None +
default_callback_auth_username + Optional[str] +

The default callback auth username to use. This only +applies if default_callback_auth_kind is "basic". This can be overridden in the task +parameters for each individual task.

+ None +
default_callback_auth_password + Optional[str] +

The default callback auth password to use. This only +applies if default_callback_auth_kind is "basic". This can be overridden in the task +parameters for each individual task.

+ None +
default_callback_auth_cert + Optional[str] +

The default callback auth cert to use. This only applies +if default_callback_auth_kind is "mtls". This can be overridden in the task +parameters for each individual task.

+ None +
default_callback_auth_key + Optional[str] +

The default callback auth key to use. This only applies +if default_callback_auth_kind is "mtls". This can be overridden in the task +parameters for each individual task.

+ None +
update_if_exists + bool +

If True, will attempt to update the endpoint if it exists. +Otherwise, will unconditionally try to create a new endpoint. Note that endpoint +names for a given user must be unique, so attempting to call this function with +update_if_exists=False for an existing endpoint will raise an error.

+ False +
labels + Optional[Dict[str, str]] +

An optional dictionary of key/value pairs to associate with this endpoint.

+ None +
+ +

Returns:

+ + + + + + + + + + + + + +
TypeDescription
+ Optional[Endpoint] +

A Endpoint object that can be used to make requests to the endpoint.

+ +
+ +
+ +
+ + + +

+ delete_model_endpoint + + +

+
delete_model_endpoint(
+    model_endpoint: Union[ModelEndpoint, str]
+)
+
+ +
+ +

Deletes a model endpoint.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
model_endpoint + Union[ModelEndpoint, str] +

A ModelEndpoint object.

+ required +
+ +
+ +
+ +
+ + + +

+ edit_model_endpoint + + +

+
edit_model_endpoint(
+    *,
+    model_endpoint: Union[ModelEndpoint, str],
+    model_bundle: Optional[Union[ModelBundle, str]] = None,
+    cpus: Optional[float] = None,
+    memory: Optional[str] = None,
+    storage: Optional[str] = None,
+    gpus: Optional[int] = None,
+    min_workers: Optional[int] = None,
+    max_workers: Optional[int] = None,
+    per_worker: Optional[int] = None,
+    gpu_type: Optional[str] = None,
+    high_priority: Optional[bool] = None,
+    post_inference_hooks: Optional[
+        List[PostInferenceHooks]
+    ] = None,
+    default_callback_url: Optional[str] = None,
+    default_callback_auth_kind: Optional[
+        Literal[basic, mtls]
+    ] = None,
+    default_callback_auth_username: Optional[str] = None,
+    default_callback_auth_password: Optional[str] = None,
+    default_callback_auth_cert: Optional[str] = None,
+    default_callback_auth_key: Optional[str] = None
+) -> None
+
+ +
+ +

Edits an existing model endpoint. Here are the fields that cannot be edited on an +existing endpoint:

+
    +
  • The endpoint's name. - The endpoint's type (i.e. you cannot go from a SyncEnpdoint +to an AsyncEndpoint or vice versa.
  • +
+ +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
model_endpoint + Union[ModelEndpoint, str] +

The model endpoint (or its name) you want to edit. The name +must be unique across all endpoints that you own.

+ required +
model_bundle + Optional[Union[ModelBundle, str]] +

The ModelBundle that the endpoint should serve.

+ None +
cpus + Optional[float] +

Number of cpus each worker should get, e.g. 1, 2, etc. This must be greater +than or equal to 1.

+ None +
memory + Optional[str] +

Amount of memory each worker should get, e.g. "4Gi", "512Mi", etc. This must +be a positive amount of memory.

+ None +
storage + Optional[str] +

Amount of local ephemeral storage each worker should get, e.g. "4Gi", +"512Mi", etc. This must be a positive amount of storage.

+ None +
gpus + Optional[int] +

Number of gpus each worker should get, e.g. 0, 1, etc.

+ None +
min_workers + Optional[int] +

The minimum number of workers. Must be greater than or equal to 0.

+ None +
max_workers + Optional[int] +

The maximum number of workers. Must be greater than or equal to 0, +and as well as greater than or equal to min_workers.

+ None +
per_worker + Optional[int] +

The maximum number of concurrent requests that an individual worker can +service. Launch automatically scales the number of workers for the endpoint so that +each worker is processing per_worker requests:

+
    +
  • If the average number of concurrent requests per worker is lower than +per_worker, then the number of workers will be reduced. - Otherwise, +if the average number of concurrent requests per worker is higher than +per_worker, then the number of workers will be increased to meet the elevated +traffic.
  • +
+ None +
gpu_type + Optional[str] +

If specifying a non-zero number of gpus, this controls the type of gpu +requested. Here are the supported values:

+
    +
  • nvidia-tesla-t4
  • +
  • nvidia-ampere-a10
  • +
+ None +
high_priority + Optional[bool] +

Either True or False. Enabling this will allow the created +endpoint to leverage the shared pool of prewarmed nodes for faster spinup time.

+ None +
post_inference_hooks + Optional[List[PostInferenceHooks]] +

List of hooks to trigger after inference tasks are served.

+ None +
default_callback_url + Optional[str] +

The default callback url to use for async endpoints. +This can be overridden in the task parameters for each individual task. +post_inference_hooks must contain "callback" for the callback to be triggered.

+ None +
default_callback_auth_kind + Optional[Literal[basic, mtls]] +

The default callback auth kind to use for async endpoints. +Either "basic" or "mtls". This can be overridden in the task parameters for each +individual task.

+ None +
default_callback_auth_username + Optional[str] +

The default callback auth username to use. This only +applies if default_callback_auth_kind is "basic". This can be overridden in the task +parameters for each individual task.

+ None +
default_callback_auth_password + Optional[str] +

The default callback auth password to use. This only +applies if default_callback_auth_kind is "basic". This can be overridden in the task +parameters for each individual task.

+ None +
default_callback_auth_cert + Optional[str] +

The default callback auth cert to use. This only applies +if default_callback_auth_kind is "mtls". This can be overridden in the task +parameters for each individual task.

+ None +
default_callback_auth_key + Optional[str] +

The default callback auth key to use. This only applies +if default_callback_auth_kind is "mtls". This can be overridden in the task +parameters for each individual task.

+ None +
+ +
+ +
+ +
+ + + +

+ get_batch_async_response + + +

+
get_batch_async_response(
+    batch_job_id: str,
+) -> Dict[str, Any]
+
+ +
+ +

Gets inference results from a previously created batch job.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
batch_job_id + str +

An id representing the batch task job. This id is the in the response from +calling batch_async_request.

+ required +
+ +

Returns:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ Dict[str, Any] +

A dictionary that contains the following fields:

+ Dict[str, Any] +
    +
  • status: The status of the job.
  • +
+ Dict[str, Any] +
    +
  • result: The url where the result is stored.
  • +
+ Dict[str, Any] +
    +
  • duration: A string representation of how long the job took to finish + or how long it has been running, for a job current in progress.
  • +
+ Dict[str, Any] +
    +
  • num_tasks_pending: The number of tasks that are still pending.
  • +
+ Dict[str, Any] +
    +
  • num_tasks_completed: The number of tasks that have completed.
  • +
+ +
+ +
+ +
+ + + +

+ get_model_bundle + + +

+
get_model_bundle(
+    model_bundle: Union[ModelBundle, str]
+) -> ModelBundle
+
+ +
+ +

Returns a model bundle specified by bundle_name that the user owns.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
model_bundle + Union[ModelBundle, str] +

The bundle or its name.

+ required +
+ +

Returns:

+ + + + + + + + + + + + + +
TypeDescription
+ ModelBundle +

A ModelBundle object

+ +
+ +
+ +
+ + + +

+ get_model_endpoint + + +

+
get_model_endpoint(
+    endpoint_name: str,
+) -> Optional[Union[AsyncEndpoint, SyncEndpoint]]
+
+ +
+ +

Gets a model endpoint associated with a name.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
endpoint_name + str +

The name of the endpoint to retrieve.

+ required +
+ +
+ +
+ +
+ + + +

+ list_model_bundles + + +

+
list_model_bundles() -> List[ModelBundle]
+
+ +
+ +

Returns a list of model bundles that the user owns.

+ +

Returns:

+ + + + + + + + + + + + + +
TypeDescription
+ List[ModelBundle] +

A list of ModelBundle objects

+ +
+ +
+ +
+ + + +

+ list_model_endpoints + + +

+
list_model_endpoints() -> List[Endpoint]
+
+ +
+ +

Lists all model endpoints that the user owns.

+ +

Returns:

+ + + + + + + + + + + + + +
TypeDescription
+ List[Endpoint] +

A list of ModelEndpoint objects.

+ +
+ +
+ +
+ + + +

+ read_endpoint_creation_logs + + +

+
read_endpoint_creation_logs(
+    model_endpoint: Union[ModelEndpoint, str]
+)
+
+ +
+ +

Retrieves the logs for the creation of the endpoint.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
model_endpoint + Union[ModelEndpoint, str] +

The endpoint or its name.

+ required +
+ +
+ +
+ +
+ + + +

+ register_batch_csv_location_fn + + +

+
register_batch_csv_location_fn(
+    batch_csv_location_fn: Callable[[], str]
+)
+
+ +
+ +

For self-hosted mode only. Registers a function that gives a location for batch CSV +inputs. Should give different locations each time. This function is called as +batch_csv_location_fn(), and should return a batch_csv_url that upload_batch_csv_fn can +take.

+

Strictly, batch_csv_location_fn() does not need to return a str. The only requirement is +that if batch_csv_location_fn returns a value of type T, then upload_batch_csv_fn() takes +in an object of type T as its second argument (i.e. batch_csv_url).

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
batch_csv_location_fn + Callable[[], str] +

Function that generates batch_csv_urls for upload_batch_csv_fn.

+ required +
+ +
+ +
+ +
+ + + +

+ register_bundle_location_fn + + +

+
register_bundle_location_fn(
+    bundle_location_fn: Callable[[], str]
+)
+
+ +
+ +

For self-hosted mode only. Registers a function that gives a location for a model bundle. +Should give different locations each time. This function is called as +bundle_location_fn(), and should return a bundle_url that +register_upload_bundle_fn can take.

+

Strictly, bundle_location_fn() does not need to return a str. The only +requirement is that if bundle_location_fn returns a value of type T, +then upload_bundle_fn() takes in an object of type T as its second argument (i.e. +bundle_url).

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
bundle_location_fn + Callable[[], str] +

Function that generates bundle_urls for upload_bundle_fn.

+ required +
+ +
+ +
+ +
+ + + +

+ register_upload_batch_csv_fn + + +

+
register_upload_batch_csv_fn(
+    upload_batch_csv_fn: Callable[[str, str], None]
+)
+
+ +
+ +

For self-hosted mode only. Registers a function that handles batch text upload. This +function is called as

+
upload_batch_csv_fn(csv_text, csv_url)
+
+

This function should directly write the contents of csv_text as a text string into +csv_url.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
upload_batch_csv_fn + Callable[[str, str], None] +

Function that takes in a csv text (string type), +and uploads that bundle to an appropriate location. Only needed for self-hosted mode.

+ required +
+ +
+ +
+ +
+ + + +

+ register_upload_bundle_fn + + +

+
register_upload_bundle_fn(
+    upload_bundle_fn: Callable[[str, str], None]
+)
+
+ +
+ +

For self-hosted mode only. Registers a function that handles model bundle upload. This +function is called as

+
upload_bundle_fn(serialized_bundle, bundle_url)
+
+

This function should directly write the contents of serialized_bundle as a +binary string into bundle_url.

+

See register_bundle_location_fn for more notes on the signature of upload_bundle_fn

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
upload_bundle_fn + Callable[[str, str], None] +

Function that takes in a serialized bundle (bytes type), +and uploads that bundle to an appropriate location. Only needed for self-hosted mode.

+ required +
+ +
+ +
+ + + +
+ +
+ +
+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/api/endpoint_predictions/index.html b/site/api/endpoint_predictions/index.html new file mode 100644 index 00000000..7b6df3fd --- /dev/null +++ b/site/api/endpoint_predictions/index.html @@ -0,0 +1,1116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Endpoint Predictions - Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + +

Endpoint Predictions

+ + +
+ + + +

+ EndpointRequest + + +

+
EndpointRequest(
+    url: Optional[str] = None,
+    args: Optional[Dict] = None,
+    callback_url: Optional[str] = None,
+    callback_auth_kind: Optional[
+        Literal[basic, mtls]
+    ] = None,
+    callback_auth_username: Optional[str] = None,
+    callback_auth_password: Optional[str] = None,
+    callback_auth_cert: Optional[str] = None,
+    callback_auth_key: Optional[str] = None,
+    return_pickled: Optional[bool] = False,
+    request_id: Optional[str] = None,
+)
+
+ +
+ + +

Represents a single request to either a SyncEndpoint or AsyncEndpoint.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
url + Optional[str] +

A url to some file that can be read in to a ModelBundle's predict function. Can be an image, raw text, etc. +Note: the contents of the file located at url are opened as a sequence of bytes and passed +to the predict function. If you instead want to pass the url itself as an input to the predict function, +see args.

+

Exactly one of url and args must be specified.

+ None +
args + Optional[Dict] +

A Dictionary with arguments to a ModelBundle's predict function. If the predict function has signature +predict_fn(foo, bar), then the keys in the dictionary should be "foo" and "bar". +Values must be native Python objects.

+

Exactly one of url and args must be specified.

+ None +
return_pickled + Optional[bool] +

Whether the output should be a pickled python object, or directly returned serialized json.

+ False +
callback_url + Optional[str] +

The callback url to use for this task. If None, then the +default_callback_url of the endpoint is used. The endpoint must specify +"callback" as a post-inference hook for the callback to be triggered.

+ None +
callback_auth_kind + Optional[Literal[basic, mtls]] +

The default callback auth kind to use for async endpoints. +Either "basic" or "mtls". This can be overridden in the task parameters for each +individual task.

+ None +
callback_auth_username + Optional[str] +

The default callback auth username to use. This only +applies if callback_auth_kind is "basic". This can be overridden in the task +parameters for each individual task.

+ None +
callback_auth_password + Optional[str] +

The default callback auth password to use. This only +applies if callback_auth_kind is "basic". This can be overridden in the task +parameters for each individual task.

+ None +
callback_auth_cert + Optional[str] +

The default callback auth cert to use. This only applies +if callback_auth_kind is "mtls". This can be overridden in the task +parameters for each individual task.

+ None +
callback_auth_key + Optional[str] +

The default callback auth key to use. This only applies +if callback_auth_kind is "mtls". This can be overridden in the task +parameters for each individual task.

+ None +
request_id + Optional[str] +

(deprecated) A user-specifiable id for requests. +Should be unique among EndpointRequests made in the same batch call. +If one isn't provided the client will generate its own.

+ None +
+ + + + + +
+ + + + + + + + + + + +
+ +
+ +
+ +
+ + + +

+ EndpointResponse + + +

+
EndpointResponse(
+    client,
+    status: str,
+    result_url: Optional[str] = None,
+    result: Optional[str] = None,
+    traceback: Optional[str] = None,
+)
+
+ +
+ + +

Represents a response received from a Endpoint.

+ + + +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
client +

An instance of LaunchClient.

+ required +
status + str +

A string representing the status of the request, i.e. SUCCESS, FAILURE, or PENDING

+ required +
result_url + Optional[str] +

A string that is a url containing the pickled python object from the +Endpoint's predict function.

+

Exactly one of result_url or result will be populated, +depending on the value of return_pickled in the request.

+ None +
result + Optional[str] +

A string that is the serialized return value (in json form) of the Endpoint's predict function. +Specifically, one can json.loads() the value of result to get the original python object back.

+

Exactly one of result_url or result will be populated, +depending on the value of return_pickled in the request.

+ None +
traceback + Optional[str] +

The stack trace if the inference endpoint raised an error. Can be used for debugging

+ None +
+ + + + +
+ + + + + + + + + + + +
+ +
+ +
+ +
+ + + +

+ EndpointResponseFuture + + +

+
EndpointResponseFuture(
+    client, endpoint_name: str, async_task_id: str
+)
+
+ +
+ + +

Represents a future response from an Endpoint. Specifically, when the EndpointResponseFuture is ready, +then its get method will return an actual instance of EndpointResponse.

+

This object should not be directly instantiated by the user.

+ + + +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
client +

An instance of LaunchClient.

+ required +
endpoint_name + str +

The name of the endpoint.

+ required +
async_task_id + str +

An async task id.

+ required +
+ + + + +
+ + + + + + + + + +
+ + + +

+ get + + +

+
get(timeout: Optional[float] = None) -> EndpointResponse
+
+ +
+ +

Retrieves the EndpointResponse for the prediction request after it completes. This method blocks.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
timeout + Optional[float] +

The maximum number of seconds to wait for the response. If None, then +the method will block indefinitely until the response is ready.

+ None +
+ +
+ +
+ + + +
+ +
+ +
+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/api/hooks/index.html b/site/api/hooks/index.html new file mode 100644 index 00000000..7566017a --- /dev/null +++ b/site/api/hooks/index.html @@ -0,0 +1,679 @@ + + + + + + + + + + + + + + + + + + + + + + + + Hooks - Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + +

Hooks

+ +
+ + + +

+ PostInferenceHooks + + +

+ + +
+

+ Bases: str, Enum

+ + +

Post-inference hooks are functions that are called after inference is complete.

+ +

Attributes:

+ + + + + + + + + + + + + + + +
NameTypeDescription
CALLBACK + str +

The callback hook is called with the inference response and the task ID.

+ + + + + +
+ + + + + + + + + + + +
+ +
+ +
+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/api/model_bundles/index.html b/site/api/model_bundles/index.html new file mode 100644 index 00000000..da2f184a --- /dev/null +++ b/site/api/model_bundles/index.html @@ -0,0 +1,980 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Model Bundles - Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + +

Model Bundles

+ + +
+ + + +

+ ModelBundle + + + + dataclass + + +

+ + +
+ + +

Represents a ModelBundle.

+ + + + + +
+ + + + + + + +
+ + + +

+ app_config + + + + class-attribute + + +

+
app_config: Optional[Dict[Any, Any]] = None
+
+ +
+ +

An optional user-specified configuration mapping for the bundle.

+
+ +
+ +
+ + + +

+ env_params + + + + class-attribute + + +

+
env_params: Optional[Dict[str, str]] = None
+
+ +
+ +

A dictionary that dictates environment information. See LaunchClient.create_model_bundle +for more information.

+
+ +
+ +
+ + + +

+ id + + + + class-attribute + + +

+
id: Optional[str] = None
+
+ +
+ +

A globally unique identifier for the bundle.

+
+ +
+ +
+ + + +

+ location + + + + class-attribute + + +

+
location: Optional[str] = None
+
+ +
+ +

An opaque location for the bundle.

+
+ +
+ +
+ + + +

+ metadata + + + + class-attribute + + +

+
metadata: Optional[Dict[Any, Any]] = None
+
+ +
+ +

Arbitrary metadata for the bundle.

+
+ +
+ +
+ + + +

+ name + + + + class-attribute + + +

+
name: str
+
+ +
+ +

The name of the bundle. Must be unique across all bundles that the user owns.

+
+ +
+ +
+ + + +

+ packaging_type + + + + class-attribute + + +

+
packaging_type: Optional[str] = None
+
+ +
+ +

The packaging type for the bundle. Can be cloudpickle or zip.

+
+ +
+ +
+ + + +

+ requirements + + + + class-attribute + + +

+
requirements: Optional[List[str]] = None
+
+ +
+ +

A list of Python package requirements for the bundle. See LaunchClient.create_model_bundle +for more information.

+
+ +
+ + + + + +
+ +
+ +
+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/api/model_endpoints/index.html b/site/api/model_endpoints/index.html new file mode 100644 index 00000000..9f235bf9 --- /dev/null +++ b/site/api/model_endpoints/index.html @@ -0,0 +1,1047 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Model Endpoints - Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + +

Model Endpoints

+

All classes here are returned by the +get_model_endpoint +method and provide a predict function.

+ + +
+ + + +

+ AsyncEndpoint + + +

+
AsyncEndpoint(model_endpoint: ModelEndpoint, client)
+
+ +
+

+ Bases: Endpoint

+ + +

An asynchronous model endpoint.

+ + + +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
model_endpoint + ModelEndpoint +

ModelEndpoint object.

+ required +
client +

A LaunchClient object

+ required +
+ + + + +
+ + + + + + + + + +
+ + + +

+ predict + + +

+
predict(request: EndpointRequest) -> EndpointResponseFuture
+
+ +
+ +

Runs an asynchronous prediction request.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
request + EndpointRequest +

The EndpointRequest object that contains the payload.

+ required +
+ +

Returns:

+ + + + + + + + + + + + + + + + + + + + + +
Name TypeDescription
+ EndpointResponseFuture +

An EndpointResponseFuture such the user can use to query the status of the request.

Example + EndpointResponseFuture +
+ EndpointResponseFuture +

.. code-block:: python

+

my_endpoint = AsyncEndpoint(...) +f: EndpointResponseFuture = my_endpoint.predict(EndpointRequest(...)) +result = f.get() # blocks on completion

+ +
+ +
+ +
+ + + +

+ predict_batch + + +

+
predict_batch(
+    requests: Sequence[EndpointRequest],
+) -> AsyncEndpointBatchResponse
+
+ +
+ +

(deprecated) +Runs inference on the data items specified by urls. Returns a AsyncEndpointResponse.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
requests + Sequence[EndpointRequest] +

List of EndpointRequests. Request_ids must all be distinct.

+ required +
+ +

Returns:

+ + + + + + + + + + + + + +
TypeDescription
+ AsyncEndpointBatchResponse +

an AsyncEndpointResponse keeping track of the inference requests made

+ +
+ +
+ + + +
+ +
+ +
+ +
+ + + +

+ SyncEndpoint + + +

+
SyncEndpoint(model_endpoint: ModelEndpoint, client)
+
+ +
+

+ Bases: Endpoint

+ + +

A synchronous model endpoint.

+ + + +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
model_endpoint + ModelEndpoint +

ModelEndpoint object.

+ required +
client +

A LaunchClient object

+ required +
+ + + + +
+ + + + + + + + + +
+ + + +

+ predict + + +

+
predict(request: EndpointRequest) -> EndpointResponse
+
+ +
+ +

Runs a synchronous prediction request.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
request + EndpointRequest +

The EndpointRequest object that contains the payload.

+ required +
+ +
+ +
+ + + +
+ +
+ +
+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/assets/_mkdocstrings.css b/site/assets/_mkdocstrings.css new file mode 100644 index 00000000..a65078d0 --- /dev/null +++ b/site/assets/_mkdocstrings.css @@ -0,0 +1,36 @@ + +/* Don't capitalize names. */ +h5.doc-heading { + text-transform: none !important; +} + +/* Avoid breaking parameters name, etc. in table cells. */ +.doc-contents td code { + word-break: normal !important; +} + +/* For pieces of Markdown rendered in table cells. */ +.doc-contents td p { + margin-top: 0 !important; + margin-bottom: 0 !important; +} + +/* Max width for docstring sections tables. */ +.doc .md-typeset__table, +.doc .md-typeset__table table { + display: table !important; + width: 100%; +} +.doc .md-typeset__table tr { + display: table-row; +} + +/* Avoid line breaks in rendered fields. */ +.field-body p { + display: inline; +} + +/* Defaults in Spacy table style. */ +.doc-param-default { + float: right; +} diff --git a/site/assets/images/favicon.png b/site/assets/images/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..1cf13b9f9d978896599290a74f77d5dbe7d1655c GIT binary patch literal 1870 zcmV-U2eJ5xP)Gc)JR9QMau)O=X#!i9;T z37kk-upj^(fsR36MHs_+1RCI)NNu9}lD0S{B^g8PN?Ww(5|~L#Ng*g{WsqleV}|#l zz8@ri&cTzw_h33bHI+12+kK6WN$h#n5cD8OQt`5kw6p~9H3()bUQ8OS4Q4HTQ=1Ol z_JAocz`fLbT2^{`8n~UAo=#AUOf=SOq4pYkt;XbC&f#7lb$*7=$na!mWCQ`dBQsO0 zLFBSPj*N?#u5&pf2t4XjEGH|=pPQ8xh7tpx;US5Cx_Ju;!O`ya-yF`)b%TEt5>eP1ZX~}sjjA%FJF?h7cX8=b!DZl<6%Cv z*G0uvvU+vmnpLZ2paivG-(cd*y3$hCIcsZcYOGh{$&)A6*XX&kXZd3G8m)G$Zz-LV z^GF3VAW^Mdv!)4OM8EgqRiz~*Cji;uzl2uC9^=8I84vNp;ltJ|q-*uQwGp2ma6cY7 z;`%`!9UXO@fr&Ebapfs34OmS9^u6$)bJxrucutf>`dKPKT%%*d3XlFVKunp9 zasduxjrjs>f8V=D|J=XNZp;_Zy^WgQ$9WDjgY=z@stwiEBm9u5*|34&1Na8BMjjgf3+SHcr`5~>oz1Y?SW^=K z^bTyO6>Gar#P_W2gEMwq)ot3; zREHn~U&Dp0l6YT0&k-wLwYjb?5zGK`W6S2v+K>AM(95m2C20L|3m~rN8dprPr@t)5lsk9Hu*W z?pS990s;Ez=+Rj{x7p``4>+c0G5^pYnB1^!TL=(?HLHZ+HicG{~4F1d^5Awl_2!1jICM-!9eoLhbbT^;yHcefyTAaqRcY zmuctDopPT!%k+}x%lZRKnzykr2}}XfG_ne?nRQO~?%hkzo;@RN{P6o`&mMUWBYMTe z6i8ChtjX&gXl`nvrU>jah)2iNM%JdjqoaeaU%yVn!^70x-flljp6Q5tK}5}&X8&&G zX3fpb3E(!rH=zVI_9Gjl45w@{(ITqngWFe7@9{mX;tO25Z_8 zQHEpI+FkTU#4xu>RkN>b3Tnc3UpWzPXWm#o55GKF09j^Mh~)K7{QqbO_~(@CVq! zS<8954|P8mXN2MRs86xZ&Q4EfM@JB94b=(YGuk)s&^jiSF=t3*oNK3`rD{H`yQ?d; ztE=laAUoZx5?RC8*WKOj`%LXEkgDd>&^Q4M^z`%u0rg-It=hLCVsq!Z%^6eB-OvOT zFZ28TN&cRmgU}Elrnk43)!>Z1FCPL2K$7}gwzIc48NX}#!A1BpJP?#v5wkNprhV** z?Cpalt1oH&{r!o3eSKc&ap)iz2BTn_VV`4>9M^b3;(YY}4>#ML6{~(4mH+?%07*qo IM6N<$f(jP3KmY&$ literal 0 HcmV?d00001 diff --git a/site/assets/javascripts/bundle.2a6f1dda.min.js b/site/assets/javascripts/bundle.2a6f1dda.min.js new file mode 100644 index 00000000..2f912a0b --- /dev/null +++ b/site/assets/javascripts/bundle.2a6f1dda.min.js @@ -0,0 +1,29 @@ +"use strict";(()=>{var Hi=Object.create;var xr=Object.defineProperty;var Pi=Object.getOwnPropertyDescriptor;var $i=Object.getOwnPropertyNames,Ht=Object.getOwnPropertySymbols,Ii=Object.getPrototypeOf,Er=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable;var on=(e,t,r)=>t in e?xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))Er.call(t,r)&&on(e,r,t[r]);if(Ht)for(var r of Ht(t))an.call(t,r)&&on(e,r,t[r]);return e};var sn=(e,t)=>{var r={};for(var n in e)Er.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ht)for(var n of Ht(e))t.indexOf(n)<0&&an.call(e,n)&&(r[n]=e[n]);return r};var Pt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Fi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $i(t))!Er.call(e,o)&&o!==r&&xr(e,o,{get:()=>t[o],enumerable:!(n=Pi(t,o))||n.enumerable});return e};var yt=(e,t,r)=>(r=e!=null?Hi(Ii(e)):{},Fi(t||!e||!e.__esModule?xr(r,"default",{value:e,enumerable:!0}):r,e));var fn=Pt((wr,cn)=>{(function(e,t){typeof wr=="object"&&typeof cn!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(wr,function(){"use strict";function e(r){var n=!0,o=!1,i=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function a(O){return!!(O&&O!==document&&O.nodeName!=="HTML"&&O.nodeName!=="BODY"&&"classList"in O&&"contains"in O.classList)}function f(O){var Ke=O.type,De=O.tagName;return!!(De==="INPUT"&&s[Ke]&&!O.readOnly||De==="TEXTAREA"&&!O.readOnly||O.isContentEditable)}function c(O){O.classList.contains("focus-visible")||(O.classList.add("focus-visible"),O.setAttribute("data-focus-visible-added",""))}function u(O){O.hasAttribute("data-focus-visible-added")&&(O.classList.remove("focus-visible"),O.removeAttribute("data-focus-visible-added"))}function p(O){O.metaKey||O.altKey||O.ctrlKey||(a(r.activeElement)&&c(r.activeElement),n=!0)}function m(O){n=!1}function d(O){a(O.target)&&(n||f(O.target))&&c(O.target)}function h(O){a(O.target)&&(O.target.classList.contains("focus-visible")||O.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(O.target))}function v(O){document.visibilityState==="hidden"&&(o&&(n=!0),B())}function B(){document.addEventListener("mousemove",z),document.addEventListener("mousedown",z),document.addEventListener("mouseup",z),document.addEventListener("pointermove",z),document.addEventListener("pointerdown",z),document.addEventListener("pointerup",z),document.addEventListener("touchmove",z),document.addEventListener("touchstart",z),document.addEventListener("touchend",z)}function ne(){document.removeEventListener("mousemove",z),document.removeEventListener("mousedown",z),document.removeEventListener("mouseup",z),document.removeEventListener("pointermove",z),document.removeEventListener("pointerdown",z),document.removeEventListener("pointerup",z),document.removeEventListener("touchmove",z),document.removeEventListener("touchstart",z),document.removeEventListener("touchend",z)}function z(O){O.target.nodeName&&O.target.nodeName.toLowerCase()==="html"||(n=!1,ne())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",v,!0),B(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var un=Pt(Sr=>{(function(e){var t=function(){try{return!!Symbol.iterator}catch(c){return!1}},r=t(),n=function(c){var u={next:function(){var p=c.shift();return{done:p===void 0,value:p}}};return r&&(u[Symbol.iterator]=function(){return u}),u},o=function(c){return encodeURIComponent(c).replace(/%20/g,"+")},i=function(c){return decodeURIComponent(String(c).replace(/\+/g," "))},s=function(){var c=function(p){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var m=typeof p;if(m!=="undefined")if(m==="string")p!==""&&this._fromString(p);else if(p instanceof c){var d=this;p.forEach(function(ne,z){d.append(z,ne)})}else if(p!==null&&m==="object")if(Object.prototype.toString.call(p)==="[object Array]")for(var h=0;hd[0]?1:0}),c._entries&&(c._entries={});for(var p=0;p1?i(d[1]):"")}})})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Sr);(function(e){var t=function(){try{var o=new e.URL("b","http://a");return o.pathname="c d",o.href==="http://a/c%20d"&&o.searchParams}catch(i){return!1}},r=function(){var o=e.URL,i=function(f,c){typeof f!="string"&&(f=String(f)),c&&typeof c!="string"&&(c=String(c));var u=document,p;if(c&&(e.location===void 0||c!==e.location.href)){c=c.toLowerCase(),u=document.implementation.createHTMLDocument(""),p=u.createElement("base"),p.href=c,u.head.appendChild(p);try{if(p.href.indexOf(c)!==0)throw new Error(p.href)}catch(O){throw new Error("URL unable to set base "+c+" due to "+O)}}var m=u.createElement("a");m.href=f,p&&(u.body.appendChild(m),m.href=m.href);var d=u.createElement("input");if(d.type="url",d.value=f,m.protocol===":"||!/:/.test(m.href)||!d.checkValidity()&&!c)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:m});var h=new e.URLSearchParams(this.search),v=!0,B=!0,ne=this;["append","delete","set"].forEach(function(O){var Ke=h[O];h[O]=function(){Ke.apply(h,arguments),v&&(B=!1,ne.search=h.toString(),B=!0)}}),Object.defineProperty(this,"searchParams",{value:h,enumerable:!0});var z=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==z&&(z=this.search,B&&(v=!1,this.searchParams._fromString(this.search),v=!0))}})},s=i.prototype,a=function(f){Object.defineProperty(s,f,{get:function(){return this._anchorElement[f]},set:function(c){this._anchorElement[f]=c},enumerable:!0})};["hash","host","hostname","port","protocol"].forEach(function(f){a(f)}),Object.defineProperty(s,"search",{get:function(){return this._anchorElement.search},set:function(f){this._anchorElement.search=f,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(s,{toString:{get:function(){var f=this;return function(){return f.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(f){this._anchorElement.href=f,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(f){this._anchorElement.pathname=f},enumerable:!0},origin:{get:function(){var f={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],c=this._anchorElement.port!=f&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(c?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(f){},enumerable:!0},username:{get:function(){return""},set:function(f){},enumerable:!0}}),i.createObjectURL=function(f){return o.createObjectURL.apply(o,arguments)},i.revokeObjectURL=function(f){return o.revokeObjectURL.apply(o,arguments)},e.URL=i};if(t()||r(),e.location!==void 0&&!("origin"in e.location)){var n=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:n,enumerable:!0})}catch(o){setInterval(function(){e.location.origin=n()},100)}}})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Sr)});var Qr=Pt((Lt,Kr)=>{/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(t,r){typeof Lt=="object"&&typeof Kr=="object"?Kr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Lt=="object"?Lt.ClipboardJS=r():t.ClipboardJS=r()})(Lt,function(){return function(){var e={686:function(n,o,i){"use strict";i.d(o,{default:function(){return ki}});var s=i(279),a=i.n(s),f=i(370),c=i.n(f),u=i(817),p=i.n(u);function m(j){try{return document.execCommand(j)}catch(T){return!1}}var d=function(T){var w=p()(T);return m("cut"),w},h=d;function v(j){var T=document.documentElement.getAttribute("dir")==="rtl",w=document.createElement("textarea");w.style.fontSize="12pt",w.style.border="0",w.style.padding="0",w.style.margin="0",w.style.position="absolute",w.style[T?"right":"left"]="-9999px";var k=window.pageYOffset||document.documentElement.scrollTop;return w.style.top="".concat(k,"px"),w.setAttribute("readonly",""),w.value=j,w}var B=function(T,w){var k=v(T);w.container.appendChild(k);var F=p()(k);return m("copy"),k.remove(),F},ne=function(T){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},k="";return typeof T=="string"?k=B(T,w):T instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(T==null?void 0:T.type)?k=B(T.value,w):(k=p()(T),m("copy")),k},z=ne;function O(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(w){return typeof w}:O=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},O(j)}var Ke=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=T.action,k=w===void 0?"copy":w,F=T.container,q=T.target,Le=T.text;if(k!=="copy"&&k!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(q!==void 0)if(q&&O(q)==="object"&&q.nodeType===1){if(k==="copy"&&q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(k==="cut"&&(q.hasAttribute("readonly")||q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Le)return z(Le,{container:F});if(q)return k==="cut"?h(q):z(q,{container:F})},De=Ke;function Fe(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(w){return typeof w}:Fe=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},Fe(j)}function Oi(j,T){if(!(j instanceof T))throw new TypeError("Cannot call a class as a function")}function nn(j,T){for(var w=0;w0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof F.action=="function"?F.action:this.defaultAction,this.target=typeof F.target=="function"?F.target:this.defaultTarget,this.text=typeof F.text=="function"?F.text:this.defaultText,this.container=Fe(F.container)==="object"?F.container:document.body}},{key:"listenClick",value:function(F){var q=this;this.listener=c()(F,"click",function(Le){return q.onClick(Le)})}},{key:"onClick",value:function(F){var q=F.delegateTarget||F.currentTarget,Le=this.action(q)||"copy",kt=De({action:Le,container:this.container,target:this.target(q),text:this.text(q)});this.emit(kt?"success":"error",{action:Le,text:kt,trigger:q,clearSelection:function(){q&&q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(F){return yr("action",F)}},{key:"defaultTarget",value:function(F){var q=yr("target",F);if(q)return document.querySelector(q)}},{key:"defaultText",value:function(F){return yr("text",F)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(F){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return z(F,q)}},{key:"cut",value:function(F){return h(F)}},{key:"isSupported",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],q=typeof F=="string"?[F]:F,Le=!!document.queryCommandSupported;return q.forEach(function(kt){Le=Le&&!!document.queryCommandSupported(kt)}),Le}}]),w}(a()),ki=Ri},828:function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function s(a,f){for(;a&&a.nodeType!==o;){if(typeof a.matches=="function"&&a.matches(f))return a;a=a.parentNode}}n.exports=s},438:function(n,o,i){var s=i(828);function a(u,p,m,d,h){var v=c.apply(this,arguments);return u.addEventListener(m,v,h),{destroy:function(){u.removeEventListener(m,v,h)}}}function f(u,p,m,d,h){return typeof u.addEventListener=="function"?a.apply(null,arguments):typeof m=="function"?a.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return a(v,p,m,d,h)}))}function c(u,p,m,d){return function(h){h.delegateTarget=s(h.target,p),h.delegateTarget&&d.call(u,h)}}n.exports=f},879:function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var s=Object.prototype.toString.call(i);return i!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var s=Object.prototype.toString.call(i);return s==="[object Function]"}},370:function(n,o,i){var s=i(879),a=i(438);function f(m,d,h){if(!m&&!d&&!h)throw new Error("Missing required arguments");if(!s.string(d))throw new TypeError("Second argument must be a String");if(!s.fn(h))throw new TypeError("Third argument must be a Function");if(s.node(m))return c(m,d,h);if(s.nodeList(m))return u(m,d,h);if(s.string(m))return p(m,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(m,d,h){return m.addEventListener(d,h),{destroy:function(){m.removeEventListener(d,h)}}}function u(m,d,h){return Array.prototype.forEach.call(m,function(v){v.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(m,function(v){v.removeEventListener(d,h)})}}}function p(m,d,h){return a(document.body,m,d,h)}n.exports=f},817:function(n){function o(i){var s;if(i.nodeName==="SELECT")i.focus(),s=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var a=i.hasAttribute("readonly");a||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),a||i.removeAttribute("readonly"),s=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var f=window.getSelection(),c=document.createRange();c.selectNodeContents(i),f.removeAllRanges(),f.addRange(c),s=f.toString()}return s}n.exports=o},279:function(n){function o(){}o.prototype={on:function(i,s,a){var f=this.e||(this.e={});return(f[i]||(f[i]=[])).push({fn:s,ctx:a}),this},once:function(i,s,a){var f=this;function c(){f.off(i,c),s.apply(a,arguments)}return c._=s,this.on(i,c,a)},emit:function(i){var s=[].slice.call(arguments,1),a=((this.e||(this.e={}))[i]||[]).slice(),f=0,c=a.length;for(f;f{"use strict";/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var is=/["'&<>]/;Jo.exports=as;function as(e){var t=""+e,r=is.exec(t);if(!r)return t;var n,o="",i=0,s=0;for(i=r.index;i0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function D(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||a(m,d)})})}function a(m,d){try{f(n[m](d))}catch(h){p(i[0][3],h)}}function f(m){m.value instanceof Ze?Promise.resolve(m.value.v).then(c,u):p(i[0][2],m)}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,d){m(d),i.shift(),i.length&&a(i[0][0],i[0][1])}}function mn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof xe=="function"?xe(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,f){s=e[i](s),o(a,f,s.done,s.value)})}}function o(i,s,a,f){Promise.resolve(f).then(function(c){i({value:c,done:a})},s)}}function A(e){return typeof e=="function"}function at(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var It=at(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: +`+r.map(function(n,o){return o+1+") "+n.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=r}});function Ve(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var je=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=xe(s),f=a.next();!f.done;f=a.next()){var c=f.value;c.remove(this)}}catch(v){t={error:v}}finally{try{f&&!f.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(A(u))try{u()}catch(v){i=v instanceof It?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var m=xe(p),d=m.next();!d.done;d=m.next()){var h=d.value;try{dn(h)}catch(v){i=i!=null?i:[],v instanceof It?i=D(D([],W(i)),W(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}}if(i)throw new It(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)dn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Ve(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ve(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Tr=je.EMPTY;function Ft(e){return e instanceof je||e&&"closed"in e&&A(e.remove)&&A(e.add)&&A(e.unsubscribe)}function dn(e){A(e)?e():e.unsubscribe()}var Ae={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var st={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Tr:(this.currentObservers=null,a.push(r),new je(function(){n.currentObservers=null,Ve(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new U;return r.source=this,r},t.create=function(r,n){return new wn(r,n)},t}(U);var wn=function(e){ie(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Tr},t}(E);var Et={now:function(){return(Et.delegate||Date).now()},delegate:void 0};var wt=function(e){ie(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Et);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,f=n._windowTime;o||(i.push(r),!s&&i.push(a.now()+f)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),f=0;f0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=ut.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var s=r.actions;n!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==n&&(ut.cancelAnimationFrame(n),r._scheduled=void 0)},t}(Wt);var Tn=function(e){ie(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t}(Dt);var we=new Tn(On);var R=new U(function(e){return e.complete()});function Vt(e){return e&&A(e.schedule)}function kr(e){return e[e.length-1]}function Qe(e){return A(kr(e))?e.pop():void 0}function Se(e){return Vt(kr(e))?e.pop():void 0}function zt(e,t){return typeof kr(e)=="number"?e.pop():t}var pt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Nt(e){return A(e==null?void 0:e.then)}function qt(e){return A(e[ft])}function Kt(e){return Symbol.asyncIterator&&A(e==null?void 0:e[Symbol.asyncIterator])}function Qt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ki(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Yt=Ki();function Gt(e){return A(e==null?void 0:e[Yt])}function Bt(e){return ln(this,arguments,function(){var r,n,o,i;return $t(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Ze(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,Ze(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Ze(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Jt(e){return A(e==null?void 0:e.getReader)}function $(e){if(e instanceof U)return e;if(e!=null){if(qt(e))return Qi(e);if(pt(e))return Yi(e);if(Nt(e))return Gi(e);if(Kt(e))return _n(e);if(Gt(e))return Bi(e);if(Jt(e))return Ji(e)}throw Qt(e)}function Qi(e){return new U(function(t){var r=e[ft]();if(A(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Yi(e){return new U(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?_(function(o,i){return e(o,i,n)}):de,Te(1),r?Pe(t):zn(function(){return new Zt}))}}function Nn(){for(var e=[],t=0;t=2,!0))}function ue(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new E}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,s=i===void 0?!0:i,a=e.resetOnRefCountZero,f=a===void 0?!0:a;return function(c){var u,p,m,d=0,h=!1,v=!1,B=function(){p==null||p.unsubscribe(),p=void 0},ne=function(){B(),u=m=void 0,h=v=!1},z=function(){var O=u;ne(),O==null||O.unsubscribe()};return g(function(O,Ke){d++,!v&&!h&&B();var De=m=m!=null?m:r();Ke.add(function(){d--,d===0&&!v&&!h&&(p=jr(z,f))}),De.subscribe(Ke),!u&&d>0&&(u=new tt({next:function(Fe){return De.next(Fe)},error:function(Fe){v=!0,B(),p=jr(ne,o,Fe),De.error(Fe)},complete:function(){h=!0,B(),p=jr(ne,s),De.complete()}}),$(O).subscribe(u))})(c)}}function jr(e,t){for(var r=[],n=2;ne.next(document)),e}function K(e,t=document){return Array.from(t.querySelectorAll(e))}function V(e,t=document){let r=ce(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function ce(e,t=document){return t.querySelector(e)||void 0}function _e(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function rr(e){return L(b(document.body,"focusin"),b(document.body,"focusout")).pipe(He(1),l(()=>{let t=_e();return typeof t!="undefined"?e.contains(t):!1}),N(e===_e()),G())}function Je(e){return{x:e.offsetLeft,y:e.offsetTop}}function Yn(e){return L(b(window,"load"),b(window,"resize")).pipe(Re(0,we),l(()=>Je(e)),N(Je(e)))}function nr(e){return{x:e.scrollLeft,y:e.scrollTop}}function dt(e){return L(b(e,"scroll"),b(window,"resize")).pipe(Re(0,we),l(()=>nr(e)),N(nr(e)))}var Bn=function(){if(typeof Map!="undefined")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!zr||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),xa?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!zr||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=ya.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Jn=function(e,t){for(var r=0,n=Object.keys(t);r0},e}(),Zn=typeof WeakMap!="undefined"?new WeakMap:new Bn,eo=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Ea.getInstance(),n=new Ra(t,r,this);Zn.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){eo.prototype[e]=function(){var t;return(t=Zn.get(this))[e].apply(t,arguments)}});var ka=function(){return typeof or.ResizeObserver!="undefined"?or.ResizeObserver:eo}(),to=ka;var ro=new E,Ha=I(()=>H(new to(e=>{for(let t of e)ro.next(t)}))).pipe(x(e=>L(Oe,H(e)).pipe(C(()=>e.disconnect()))),J(1));function he(e){return{width:e.offsetWidth,height:e.offsetHeight}}function ge(e){return Ha.pipe(S(t=>t.observe(e)),x(t=>ro.pipe(_(({target:r})=>r===e),C(()=>t.unobserve(e)),l(()=>he(e)))),N(he(e)))}function bt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function sr(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}var no=new E,Pa=I(()=>H(new IntersectionObserver(e=>{for(let t of e)no.next(t)},{threshold:0}))).pipe(x(e=>L(Oe,H(e)).pipe(C(()=>e.disconnect()))),J(1));function cr(e){return Pa.pipe(S(t=>t.observe(e)),x(t=>no.pipe(_(({target:r})=>r===e),C(()=>t.unobserve(e)),l(({isIntersecting:r})=>r))))}function oo(e,t=16){return dt(e).pipe(l(({y:r})=>{let n=he(e),o=bt(e);return r>=o.height-n.height-t}),G())}var fr={drawer:V("[data-md-toggle=drawer]"),search:V("[data-md-toggle=search]")};function io(e){return fr[e].checked}function qe(e,t){fr[e].checked!==t&&fr[e].click()}function Ue(e){let t=fr[e];return b(t,"change").pipe(l(()=>t.checked),N(t.checked))}function $a(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function Ia(){return L(b(window,"compositionstart").pipe(l(()=>!0)),b(window,"compositionend").pipe(l(()=>!1))).pipe(N(!1))}function ao(){let e=b(window,"keydown").pipe(_(t=>!(t.metaKey||t.ctrlKey)),l(t=>({mode:io("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),_(({mode:t,type:r})=>{if(t==="global"){let n=_e();if(typeof n!="undefined")return!$a(n,r)}return!0}),ue());return Ia().pipe(x(t=>t?R:e))}function Me(){return new URL(location.href)}function ot(e){location.href=e.href}function so(){return new E}function co(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)co(e,r)}function M(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)co(n,o);return n}function ur(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function fo(){return location.hash.substring(1)}function uo(e){let t=M("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Fa(){return b(window,"hashchange").pipe(l(fo),N(fo()),_(e=>e.length>0),J(1))}function po(){return Fa().pipe(l(e=>ce(`[id="${e}"]`)),_(e=>typeof e!="undefined"))}function Nr(e){let t=matchMedia(e);return er(r=>t.addListener(()=>r(t.matches))).pipe(N(t.matches))}function lo(){let e=matchMedia("print");return L(b(window,"beforeprint").pipe(l(()=>!0)),b(window,"afterprint").pipe(l(()=>!1))).pipe(N(e.matches))}function qr(e,t){return e.pipe(x(r=>r?t():R))}function pr(e,t={credentials:"same-origin"}){return pe(fetch(`${e}`,t)).pipe(fe(()=>R),x(r=>r.status!==200?Ot(()=>new Error(r.statusText)):H(r)))}function We(e,t){return pr(e,t).pipe(x(r=>r.json()),J(1))}function mo(e,t){let r=new DOMParser;return pr(e,t).pipe(x(n=>n.text()),l(n=>r.parseFromString(n,"text/xml")),J(1))}function lr(e){let t=M("script",{src:e});return I(()=>(document.head.appendChild(t),L(b(t,"load"),b(t,"error").pipe(x(()=>Ot(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(l(()=>{}),C(()=>document.head.removeChild(t)),Te(1))))}function ho(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function bo(){return L(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(l(ho),N(ho()))}function vo(){return{width:innerWidth,height:innerHeight}}function go(){return b(window,"resize",{passive:!0}).pipe(l(vo),N(vo()))}function yo(){return Q([bo(),go()]).pipe(l(([e,t])=>({offset:e,size:t})),J(1))}function mr(e,{viewport$:t,header$:r}){let n=t.pipe(X("size")),o=Q([n,r]).pipe(l(()=>Je(e)));return Q([r,t,o]).pipe(l(([{height:i},{offset:s,size:a},{x:f,y:c}])=>({offset:{x:s.x-f,y:s.y-c+i},size:a})))}(()=>{function e(n,o){parent.postMessage(n,o||"*")}function t(...n){return n.reduce((o,i)=>o.then(()=>new Promise(s=>{let a=document.createElement("script");a.src=i,a.onload=s,document.body.appendChild(a)})),Promise.resolve())}var r=class extends EventTarget{constructor(n){super(),this.url=n,this.m=i=>{i.source===this.w&&(this.dispatchEvent(new MessageEvent("message",{data:i.data})),this.onmessage&&this.onmessage(i))},this.e=(i,s,a,f,c)=>{if(s===`${this.url}`){let u=new ErrorEvent("error",{message:i,filename:s,lineno:a,colno:f,error:c});this.dispatchEvent(u),this.onerror&&this.onerror(u)}};let o=document.createElement("iframe");o.hidden=!0,document.body.appendChild(this.iframe=o),this.w.document.open(),this.w.document.write(` + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + +

CLI

+ +

Launch comes with a CLI for listing bundles / endpoints, editing endpoints, +and sending tasks to endpoints.

+

The CLI can be used as scale-launch ....

+

Help

+

Run scale-launch --help for more options.

+
scale-launch --help
    This is the command line interface (CLI) package for Scale Launch.
+
+       ██╗      █████╗ ██╗   ██╗███╗   ██╗ ██████╗██╗  ██╗
+       ██║     ██╔══██╗██║   ██║████╗  ██║██╔════╝██║  ██║
+       ██║     ███████║██║   ██║██╔██╗ ██║██║     ███████║
+       ██║     ██╔══██║██║   ██║██║╚██╗██║██║     ██╔══██║
+       ███████╗██║  ██║╚██████╔╝██║ ╚████║╚██████╗██║  ██║
+       ╚══════╝╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═══╝ ╚═════╝╚═╝  ╚═╝
+
+Usage: scale-launch [OPTIONS] COMMAND [ARGS]...
+
+Options:
+  --help  Show this message and exit.
+
+Commands:
+  batch-jobs  Batch Jobs is a wrapper around batch jobs in Scale Launch
+  bundles     Bundles is a wrapper around model bundles in Scale Launch
+  config      Config is a wrapper around getting and setting your API key and other configuration options
+  endpoints   Endpoints is a wrapper around model endpoints in Scale Launch
+  tasks       Tasks is a wrapper around sending requests to endpoints
+
+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/concepts/batch_jobs/index.html b/site/concepts/batch_jobs/index.html new file mode 100644 index 00000000..f90b1ef1 --- /dev/null +++ b/site/concepts/batch_jobs/index.html @@ -0,0 +1,616 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Batch Jobs - Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + +

Batch Jobs

+

For predicting over a larger set of tasks (> 50) at once, it is recommended to +use batch jobs. Batch jobs are a way to send a large number of tasks to a model +bundle. The tasks are processed in parallel, and the results are returned as a +list of predictions.

+

Batch jobs are created using the +batch_async_request +method of the +LaunchClient.

+
Creating and Following a Batch Job
import os
+import time
+from launch import LaunchClient
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+batch_job = client.batch_async_request(
+    model_bundle="test-bundle",
+    inputs=[
+        {"x": 2, "y": "hello"},
+        {"x": 3, "y": "world"},
+    ],
+    labels={
+        "team": "MY_TEAM",
+        "product": "MY_PRODUCT",
+    }
+)
+
+status = "PENDING"
+res = None
+while status != "SUCCESS" and status != "FAILURE" and status != "CANCELLED":
+    time.sleep(30)
+    res = client.get_batch_async_response(batch_job["job_id"])
+    status = res["status"]
+    print(f"the batch job is {status}")
+
+print(res)
+
+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/concepts/callbacks/index.html b/site/concepts/callbacks/index.html new file mode 100644 index 00000000..0ee63def --- /dev/null +++ b/site/concepts/callbacks/index.html @@ -0,0 +1,781 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Callbacks - Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + +

Callbacks

+

Async model endpoints can be configured to send callbacks to a user-defined +callback URL. Callbacks are sent as HTTP POST requests with a JSON body. The +following code snippet shows how to create an async model endpoint with a +callback URL.

+

To configure an async endpoint to send callbacks, set the post_inference_hooks +field to include +launch.PostInferenceHooks.CALLBACK. +A callback URL also needs to be specified, and it can be configured as a default +using the default_callback_url argument to +launch.LaunchClient.create_model_endpoint +or as a per-task override using the callback_url field of +launch.EndpointRequest.

+
+

Note

+

Callbacks will not be sent if the endpoint does not have any post-inference +hooks specified, even if a default_callback_url is provided to the endpoint +creation method or if the prediction request has a callback_url override.

+
+
Creating an Async Model Endpoint with a Callback URL
import os
+import time
+from launch import EndpointRequest, LaunchClient, PostInferenceHooks
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+endpoint = client.create_model_endpoint(
+    endpoint_name="demo-endpoint-callback",
+    model_bundle="test-bundle",
+    cpus=1,
+    min_workers=1,
+    endpoint_type="async",
+    update_if_exists=True,
+    labels={
+        "team": "MY_TEAM",
+        "product": "MY_PRODUCT",
+    },
+    post_inference_hooks=[PostInferenceHooks.CALLBACK],
+    default_callback_url="https://example.com",
+)
+
+while endpoint.status() != "READY":
+    time.sleep(10)
+
+future_default = endpoint.predict(
+    request=EndpointRequest(args={"x": 2, "y": "hello"})
+)
+"""
+A callback is sent to https://example.com with the following JSON body:
+{
+    "task_id": "THE_TASK_ID",
+    "result": 7
+}
+"""
+
+future_custom_callback_url = endpoint.predict(
+    request=EndpointRequest(
+        args={"x": 3, "y": "hello"}, callback_url="https://example.com/custom"
+    ),
+)
+
+"""
+A callback is sent to https://example.com/custom with the following JSON body:
+{
+    "task_id": "THE_TASK_ID",
+    "result": 8
+}
+"""
+
+

Authentication for callbacks

+
+

Warning

+

This feature is currently in beta, and the API is likely to change.

+
+

Callbacks can be authenticated using shared authentication headers. To enable authentication, +set either default_callback_auth_kind when creating the endpoint or callback_auth_kind +when making a prediction request.

+

Currently, the supported authentication methods are basic and mtls. If basic is used, +then the default_callback_auth_username and default_callback_auth_password fields must be +specified when creating the endpoint, or the callback_auth_username and callback_auth_password +fields must be specified when making a prediction request. If mtls is used, then the +same is true for the default_callback_auth_cert and default_callback_auth_key fields, +or the callback_auth_cert and callback_auth_key fields.

+
Creating an Async Model Endpoint with custom Callback auth
import os
+import time
+from launch import EndpointRequest, LaunchClient, PostInferenceHooks
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+endpoint = client.create_model_endpoint(
+    endpoint_name="demo-endpoint-callback",
+    model_bundle="test-bundle",
+    cpus=1,
+    min_workers=1,
+    endpoint_type="async",
+    update_if_exists=True,
+    labels={
+        "team": "MY_TEAM",
+        "product": "MY_PRODUCT",
+    },
+    post_inference_hooks=[PostInferenceHooks.CALLBACK],
+    default_callback_url="https://example.com",
+    default_callback_auth_kind="basic",
+    default_callback_auth_username="user",
+    default_callback_auth_password="password",
+)
+
+while endpoint.status() != "READY":
+    time.sleep(10)
+
+future_default = endpoint.predict(
+    request=EndpointRequest(args={"x": 2, "y": "hello"})
+)
+"""
+A callback is sent to https://example.com with ("user", "password") as the basic auth.
+"""
+
+future_custom_callback_auth = endpoint.predict(
+    request=EndpointRequest(
+        args={"x": 3, "y": "hello"},
+        callback_auth_kind="mtls", 
+        callback_auth_cert="cert", 
+        callback_auth_key="key",
+    ),
+)
+"""
+A callback is sent with mTLS authentication.
+"""
+
+client.edit_model_endpoint(
+    model_endpoint=endpoint.model_endpoint,
+    default_callback_auth_kind="mtls",
+    default_callback_auth_cert="cert",
+    default_callback_auth_key="key",
+)
+
+while endpoint.status() != "READY":
+    time.sleep(10)
+
+future_default = endpoint.predict(
+    request=EndpointRequest(args={"x": 2, "y": "hello"})
+)
+"""
+A callback is sent with mTLS auth.
+"""
+
+future_custom_callback_auth = endpoint.predict(
+    request=EndpointRequest(
+        args={"x": 3, "y": "hello"},
+        callback_auth_kind="basic",
+        callback_auth_username="user",
+        callback_auth_password="pass",
+    ),
+)
+"""
+A callback is sent with ("user", "pass") as the basic auth.
+"""
+
+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/concepts/endpoint_predictions/index.html b/site/concepts/endpoint_predictions/index.html new file mode 100644 index 00000000..65e10247 --- /dev/null +++ b/site/concepts/endpoint_predictions/index.html @@ -0,0 +1,1143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Endpoint Predictions - Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + +

Endpoint Predictions

+

Once endpoints have been created, users can send tasks to them to make +predictions. The following code snippet shows how to send tasks to endpoints.

+
+
+
+
import os
+from launch import EndpointRequest, LaunchClient
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+endpoint = client.get_model_endpoint("demo-endpoint-async")
+future = endpoint.predict(request=EndpointRequest(args={"x": 2, "y": "hello"}))
+response = future.get()
+print(response)
+
+
+
+
import os
+from launch import EndpointRequest, LaunchClient
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+endpoint = client.get_model_endpoint("demo-endpoint-sync")
+response = endpoint.predict(request=EndpointRequest(args={"x": 2, "y": "hello"}))
+print(response)
+
+
+
+
+ + +
+ + + +

+ EndpointRequest + + +

+
EndpointRequest(
+    url: Optional[str] = None,
+    args: Optional[Dict] = None,
+    callback_url: Optional[str] = None,
+    callback_auth_kind: Optional[
+        Literal[basic, mtls]
+    ] = None,
+    callback_auth_username: Optional[str] = None,
+    callback_auth_password: Optional[str] = None,
+    callback_auth_cert: Optional[str] = None,
+    callback_auth_key: Optional[str] = None,
+    return_pickled: Optional[bool] = False,
+    request_id: Optional[str] = None,
+)
+
+ +
+ + +

Represents a single request to either a SyncEndpoint or AsyncEndpoint.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
url + Optional[str] +

A url to some file that can be read in to a ModelBundle's predict function. Can be an image, raw text, etc. +Note: the contents of the file located at url are opened as a sequence of bytes and passed +to the predict function. If you instead want to pass the url itself as an input to the predict function, +see args.

+

Exactly one of url and args must be specified.

+ None +
args + Optional[Dict] +

A Dictionary with arguments to a ModelBundle's predict function. If the predict function has signature +predict_fn(foo, bar), then the keys in the dictionary should be "foo" and "bar". +Values must be native Python objects.

+

Exactly one of url and args must be specified.

+ None +
return_pickled + Optional[bool] +

Whether the output should be a pickled python object, or directly returned serialized json.

+ False +
callback_url + Optional[str] +

The callback url to use for this task. If None, then the +default_callback_url of the endpoint is used. The endpoint must specify +"callback" as a post-inference hook for the callback to be triggered.

+ None +
callback_auth_kind + Optional[Literal[basic, mtls]] +

The default callback auth kind to use for async endpoints. +Either "basic" or "mtls". This can be overridden in the task parameters for each +individual task.

+ None +
callback_auth_username + Optional[str] +

The default callback auth username to use. This only +applies if callback_auth_kind is "basic". This can be overridden in the task +parameters for each individual task.

+ None +
callback_auth_password + Optional[str] +

The default callback auth password to use. This only +applies if callback_auth_kind is "basic". This can be overridden in the task +parameters for each individual task.

+ None +
callback_auth_cert + Optional[str] +

The default callback auth cert to use. This only applies +if callback_auth_kind is "mtls". This can be overridden in the task +parameters for each individual task.

+ None +
callback_auth_key + Optional[str] +

The default callback auth key to use. This only applies +if callback_auth_kind is "mtls". This can be overridden in the task +parameters for each individual task.

+ None +
request_id + Optional[str] +

(deprecated) A user-specifiable id for requests. +Should be unique among EndpointRequests made in the same batch call. +If one isn't provided the client will generate its own.

+ None +
+ + + + + +
+ + + + + + + + + + + +
+ +
+ +
+ +
+ + + +

+ EndpointResponseFuture + + +

+
EndpointResponseFuture(
+    client, endpoint_name: str, async_task_id: str
+)
+
+ +
+ + +

Represents a future response from an Endpoint. Specifically, when the EndpointResponseFuture is ready, +then its get method will return an actual instance of EndpointResponse.

+

This object should not be directly instantiated by the user.

+ + + +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
client +

An instance of LaunchClient.

+ required +
endpoint_name + str +

The name of the endpoint.

+ required +
async_task_id + str +

An async task id.

+ required +
+ + + + +
+ + + + + + + + + +
+ + + +

+ get + + +

+
get(timeout: Optional[float] = None) -> EndpointResponse
+
+ +
+ +

Retrieves the EndpointResponse for the prediction request after it completes. This method blocks.

+ +

Parameters:

+ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
timeout + Optional[float] +

The maximum number of seconds to wait for the response. If None, then +the method will block indefinitely until the response is ready.

+ None +
+ +
+ +
+ + + +
+ +
+ +
+ +
+ + + +

+ EndpointResponse + + +

+
EndpointResponse(
+    client,
+    status: str,
+    result_url: Optional[str] = None,
+    result: Optional[str] = None,
+    traceback: Optional[str] = None,
+)
+
+ +
+ + +

Represents a response received from a Endpoint.

+ + + +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
client +

An instance of LaunchClient.

+ required +
status + str +

A string representing the status of the request, i.e. SUCCESS, FAILURE, or PENDING

+ required +
result_url + Optional[str] +

A string that is a url containing the pickled python object from the +Endpoint's predict function.

+

Exactly one of result_url or result will be populated, +depending on the value of return_pickled in the request.

+ None +
result + Optional[str] +

A string that is the serialized return value (in json form) of the Endpoint's predict function. +Specifically, one can json.loads() the value of result to get the original python object back.

+

Exactly one of result_url or result will be populated, +depending on the value of return_pickled in the request.

+ None +
traceback + Optional[str] +

The stack trace if the inference endpoint raised an error. Can be used for debugging

+ None +
+ + + + +
+ + + + + + + + + + + +
+ +
+ +
+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/concepts/model_bundles/index.html b/site/concepts/model_bundles/index.html new file mode 100644 index 00000000..9c558fdd --- /dev/null +++ b/site/concepts/model_bundles/index.html @@ -0,0 +1,903 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Model Bundles - Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + +

Model Bundles

+

Model Bundles are deployable models that can be used to make predictions. They +are created by packaging a model up into a deployable format.

+

Creating Model Bundles

+

There are two methods for creating model bundles: +create_model_bundle +and +create_model_bundle_from_dirs. +The former directly pickles a user-specified load_predict_fn, a function which +loads the model and returns a predict_fn, a function which takes in a request. +The latter takes in directories containing a load_predict_fn and the +module path to the load_predict_fn.

+
+
+
+
import os
+from pydantic import BaseModel
+from launch import LaunchClient
+
+
+class MyRequestSchema(BaseModel):
+    x: int
+    y: str
+
+class MyResponseSchema(BaseModel):
+    __root__: int
+
+
+def my_load_predict_fn(model):
+    def returns_model_of_x_plus_len_of_y(x: int, y: str) -> int:
+        """MyRequestSchema -> MyResponseSchema"""
+        assert isinstance(x, int) and isinstance(y, str)
+        return model(x) + len(y)
+
+    return returns_model_of_x_plus_len_of_y
+
+
+def my_model(x):
+    return x * 2
+
+ENV_PARAMS = {
+    "framework_type": "pytorch",
+    "pytorch_image_tag": "1.7.1-cuda11.0-cudnn8-runtime",
+}
+
+BUNDLE_PARAMS = {
+    "model_bundle_name": "test-bundle",
+    "model": my_model,
+    "load_predict_fn": my_load_predict_fn,
+    "env_params": ENV_PARAMS,
+    "requirements": ["pytest==7.2.1", "numpy"],  # list your requirements here
+    "request_schema": MyRequestSchema,
+    "response_schema": MyResponseSchema,
+}
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+client.create_model_bundle(**BUNDLE_PARAMS)
+
+
+
+
import os
+import tempfile
+from pydantic import BaseModel
+from launch import LaunchClient
+
+directory = tempfile.mkdtemp()
+model_filename = os.path.join(directory, "model.py")
+with open(model_filename, "w") as f:
+    f.write("""
+def my_load_model_fn():
+    def my_model(x):
+        return x * 2
+
+    return my_model
+""")
+
+predict_filename = os.path.join(directory, "predict.py")
+with open(predict_filename, "w") as f:
+    f.write("""
+def my_load_predict_fn(model):
+    def returns_model_of_x_plus_len_of_y(x: int, y: str) -> int:
+        assert isinstance(x, int) and isinstance(y, str)
+        return model(x) + len(y)
+
+    return returns_model_of_x_plus_len_of_y
+""")
+
+requirements_filename = os.path.join(directory, "requirements.txt")
+with open(predict_filename, "w") as f:
+    f.write("""
+pytest==7.2.1
+numpy
+"""
+    )
+
+"""
+The directory structure should now look like
+
+directory/
+    model.py
+    predict.py
+    requirements.txt
+"""
+
+
+class MyRequestSchema(BaseModel):
+    x: int
+    y: str
+
+class MyResponseSchema(BaseModel):
+    __root__: int
+
+ENV_PARAMS = {
+    "framework_type": "pytorch",
+    "pytorch_image_tag": "1.7.1-cuda11.0-cudnn8-runtime",
+}
+
+BUNDLE_PARAMS = {
+    "model_bundle_name": "test-bundle",
+    "base_paths": [directory],
+    "requirements_path": "requirements.txt",
+    "env_params": ENV_PARAMS,
+    "load_predict_fn": "predict.my_load_predict_fn",
+    "load_model_fn_module_path": "model.my_load_model_fn",
+    "request_schema": MyRequestSchema,
+    "response_schema": MyResponseSchema,
+}
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+client.create_model_bundle_from_dirs(**BUNDLE_PARAMS)
+
+# Clean up files from demo
+os.remove(model_filename)
+os.remove(predict_filename)
+os.rmdir(directory)
+
+
+
+
+

Configuring Model Bundles

+

The app_config field of a model bundle is a dictionary that can be used to +configure the model bundle. If specified, the app_config is passed to the +load_predict_fn when the model bundle is deployed, alongside the model. This +can allow for more code reuse between multiple bundles that perform similar +tasks.

+
Creating Model Bundles with app_config
import os
+from launch import LaunchClient
+from pydantic import BaseModel
+from typing import List, Union
+from typing_extensions import Literal
+
+
+class MyRequestSchemaSingle(BaseModel):
+    kind: Literal['single']
+    x: int
+    y: str
+
+class MyRequestSchemaBatched(BaseModel):
+    kind: Literal['batched']
+    x: List[int]
+    y: List[str]
+
+class MyRequestSchema(BaseModel):
+    __root__: Union[MyRequestSchemaSingle, MyRequestSchemaBatched]
+
+class MyResponseSchema(BaseModel):
+    __root__: Union[int, List[int]]
+
+
+def my_load_predict_fn(app_config, model):
+    def returns_model_of_x_plus_len_of_y(x: Union[int, List[int]], y: Union[str, List[str]]) -> Union[int, List[int]]:
+        """MyRequestSchema -> MyResponseSchema"""
+        if app_config["mode"] == "single":
+            assert isinstance(x, int) and isinstance(y, str)
+            return model(x) + len(y)
+
+        result = []
+        for x_i, y_i in zip(x, y):
+            result.append(model(x_i) + len(y_i))
+        return result
+
+    return returns_model_of_x_plus_len_of_y
+
+
+def my_load_model_fn(app_config):
+    def my_model_single(x: int):
+        return x * 2
+
+    def my_model_batched(x: List[int]):
+        return [my_model_single(x_i) for x_i in x]
+
+    if app_config["mode"] == "single":
+        return my_model_single
+
+    return my_model_batched
+
+
+ENV_PARAMS = {
+    "framework_type": "pytorch",
+    "pytorch_image_tag": "1.7.1-cuda11.0-cudnn8-runtime",
+}
+
+BUNDLE_PARAMS_SINGLE = {
+    "model_bundle_name": "test-bundle-single",
+    "load_predict_fn": my_load_predict_fn,
+    "load_model_fn": my_load_model_fn,
+    "env_params": ENV_PARAMS,
+    "requirements": ["pytest==7.2.1", "numpy"],
+    "request_schema": MyRequestSchema,
+    "response_schema": MyResponseSchema,
+    "app_config": {"mode": "single"},
+}
+BUNDLE_PARAMS_BATCHED = {
+    "model_bundle_name": "test-bundle-batched",
+    "load_predict_fn": my_load_predict_fn,
+    "load_model_fn": my_load_model_fn,
+    "env_params": ENV_PARAMS,
+    "requirements": ["pytest==7.2.1", "numpy"],
+    "request_schema": MyRequestSchema,
+    "response_schema": MyResponseSchema,
+    "app_config": {"mode": "batched"},
+}
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+bundle_single = client.create_model_bundle(**BUNDLE_PARAMS_SINGLE)
+bundle_batch = client.create_model_bundle(**BUNDLE_PARAMS_BATCHED)
+
+

Updating Model Bundles

+

Model Bundles are immutable, meaning they cannot be edited once created. +However, it is possible to clone an existing model bundle with a new app_config +using +clone_model_bundle_with_changes.

+

Listing Model Bundles

+

To list all the model bundles you own, use +list_model_bundles.

+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/concepts/model_endpoints/index.html b/site/concepts/model_endpoints/index.html new file mode 100644 index 00000000..7f7d737f --- /dev/null +++ b/site/concepts/model_endpoints/index.html @@ -0,0 +1,691 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Model Endpoints - Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + +

Model Endpoints

+

Model Endpoints are deployments of models that can receive requests and return +predictions containing the results of the model's inference. Each model endpoint +is associated with a model bundle, which contains the model's code. An endpoint +specifies deployment parameters, such as the minimum and maximum number of +workers, as well as the requested resources for each worker, such as the number +of CPUs, amount of memory, GPU count, and type of GPU.

+

Endpoints can be asynchronous or synchronous. Asynchronous endpoints return +a future immediately after receiving a request, and the future can be used to +retrieve the prediction once it is ready. Synchronous endpoints return the +prediction directly after receiving a request.

+
+

Info

+

Choosing the right inference mode

+

Here are some tips for how to choose between SyncEndpoint, AsyncEndpoint, and BatchJob for deploying your ModelBundle:

+

A SyncEndpoint is good if:

+
    +
  • You have strict latency requirements (e.g. on the order of seconds or less).
  • +
  • You are willing to have resources continually allocated.
  • +
+

An AsyncEndpoint is good if:

+
    +
  • You want to save on compute costs.
  • +
  • Your inference code takes a long time to run.
  • +
  • Your latency requirements are on the order of minutes.
  • +
+

A BatchJob is good if:

+
    +
  • You know there is a large batch of inputs ahead of time.
  • +
  • You want to optimize for throughput instead of latency.
  • +
+
+

Creating Async Model Endpoints

+

Async model endpoints are the most cost-efficient way to perform inference on +tasks that are less latency-sensitive.

+
Creating an Async Model Endpoint
import os
+from launch import LaunchClient
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+endpoint = client.create_model_endpoint(
+    endpoint_name="demo-endpoint-async",
+    model_bundle="test-bundle",
+    cpus=1,
+    min_workers=0,
+    endpoint_type="async",
+    update_if_exists=True,
+    labels={
+        "team": "MY_TEAM",
+        "product": "MY_PRODUCT",
+    },
+)
+
+

Creating Sync Model Endpoints

+

Sync model endpoints are useful for latency-sensitive tasks, such as real-time +inference. Sync endpoints are more expensive than async endpoints.

+
+

Note

+

Sync model endpoints require at least 1 min_worker.

+
+
Creating a Sync Model Endpoint
import os
+from launch import LaunchClient
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+endpoint = client.create_model_endpoint(
+    endpoint_name="demo-endpoint-sync",
+    model_bundle="test-bundle",
+    cpus=1,
+    min_workers=1,
+    endpoint_type="sync",
+    update_if_exists=True,
+    labels={
+        "team": "MY_TEAM",
+        "product": "MY_PRODUCT",
+    },
+)
+
+

Managing Model Endpoints

+

Model endpoints can be listed, updated, and deleted using the Launch API.

+
Listing Model Endpoints
import os
+from launch import LaunchClient
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+endpoints = client.list_model_endpoints()
+
+
Updating a Model Endpoint
import os
+from launch import LaunchClient
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+client.edit_model_endpoint(
+    model_endpoint="demo-endpoint",
+    max_workers=2,
+)
+
+
Deleting a Model Endpoint
import os
+from launch import LaunchClient
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+endpoint = client.create_model_endpoint(
+    endpoint_name="demo-endpoint-tmp",
+    model_bundle="test-bundle",
+    cpus=1,
+    min_workers=0,
+    endpoint_type="async",
+    update_if_exists=True,
+    labels={
+        "team": "MY_TEAM",
+        "product": "MY_PRODUCT",
+    },
+)
+client.delete_model_endpoint(model_endpoint="demo-endpoint-tmp")
+
+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/concepts/overview/index.html b/site/concepts/overview/index.html new file mode 100644 index 00000000..ccf323e0 --- /dev/null +++ b/site/concepts/overview/index.html @@ -0,0 +1,598 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Overview - Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + +

Overview

+

Creating deployments on Launch generally involves three steps:

+
    +
  1. +

    Create and upload a ModelBundle. Pass your trained model + as well as pre-/post-processing code to the Scale Launch Python client, and + we’ll create a model bundle based on the code and store it in our Bundle Store.

    +
  2. +
  3. +

    Create a ModelEndpoint. Pass a ModelBundle as well as + infrastructure settings such as the desired number of GPUs to our client. + This provisions resources on Scale’s cluster dedicated to your ModelEndpoint.

    +
  4. +
  5. +

    Make requests to the ModelEndpoint. You can make requests through the Python + client, or make HTTP requests directly to Scale.

    +
  6. +
+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/index.html b/site/index.html new file mode 100644 index 00000000..c9ceff39 --- /dev/null +++ b/site/index.html @@ -0,0 +1,751 @@ + + + + + + + + + + + + + + + + + + + + + + + + Launch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + +

Scale Launch

+

CI +pypi

+

Simple, scalable, and high performance ML service deployment in python.

+

Example

+
Launch Usage
import os
+import time
+from launch import LaunchClient
+from launch import EndpointRequest
+from pydantic import BaseModel
+from rich import print
+
+
+class MyRequestSchema(BaseModel):
+    x: int
+    y: str
+
+class MyResponseSchema(BaseModel):
+    __root__: int
+
+
+def my_load_predict_fn(model):
+    def returns_model_of_x_plus_len_of_y(x: int, y: str) -> int:
+        """MyRequestSchema -> MyResponseSchema"""
+        assert isinstance(x, int) and isinstance(y, str)
+        return model(x) + len(y)
+
+    return returns_model_of_x_plus_len_of_y
+
+
+def my_model(x):
+    return x * 2
+
+ENV_PARAMS = {
+    "framework_type": "pytorch",
+    "pytorch_image_tag": "1.7.1-cuda11.0-cudnn8-runtime",
+}
+
+BUNDLE_PARAMS = {
+    "model_bundle_name": "test-bundle",
+    "model": my_model,
+    "load_predict_fn": my_load_predict_fn,
+    "env_params": ENV_PARAMS,
+    "requirements": ["pytest==7.2.1", "numpy"],  # list your requirements here
+    "request_schema": MyRequestSchema,
+    "response_schema": MyResponseSchema,
+}
+
+ENDPOINT_PARAMS = {
+    "endpoint_name": "demo-endpoint",
+    "model_bundle": "test-bundle",
+    "cpus": 1,
+    "min_workers": 0,
+    "endpoint_type": "async",
+    "update_if_exists": True,
+    "labels": {
+        "team": "MY_TEAM",
+        "product": "launch",
+    }
+}
+
+def predict_on_endpoint(request: MyRequestSchema) -> MyResponseSchema:
+    # Wait for the endpoint to be ready first before submitting a task
+    endpoint = client.get_model_endpoint(endpoint_name="demo-endpoint")
+    while endpoint.status() != "READY":
+        time.sleep(10)
+
+    endpoint_request = EndpointRequest(args=request.dict(), return_pickled=False)
+
+    future = endpoint.predict(request=endpoint_request)
+    raw_response = future.get()
+
+    response = MyResponseSchema.parse_raw(raw_response.result)
+    return response
+
+
+client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
+
+client.create_model_bundle(**BUNDLE_PARAMS)
+endpoint = client.create_model_endpoint(**ENDPOINT_PARAMS)
+
+request = MyRequestSchema(x=5, y="hello")
+response = predict_on_endpoint(request)
+print(response)
+"""
+MyResponseSchema(__root__=10)
+"""
+
+

What's going on here:

+
    +
  • First we use pydantic to define our request and response + schemas, MyRequestSchema and MyResponseSchema. These schemas are used to generate the API + documentation for our models.
  • +
  • Next we define the the model and the load_predict_fn, which tells Launch + how to load our model and how to make predictions with it. In this case, + we're just returning a function that adds the length of the string y to + model(x), where model doubles the integer x.
  • +
  • We then define the model bundle by specifying the load_predict_fn, the request_schema, and the + response_schema. We also specify the env_params, which tell Launch environment settings like + the base image to use. In this case, we're using a PyTorch image.
  • +
  • Next, we create the model endpoint, which is the API that we'll use to make predictions. We + specify the model_bundle that we created above, and we specify the endpoint_type, which tells + Launch whether to use a synchronous or asynchronous endpoint. In this case, we're using an + asynchronous endpoint, which means that we can make predictions and return immediately with a + future object. We can then use the future object to get the prediction result later.
  • +
  • Finally, we make a prediction by calling predict_on_endpoint with a MyRequestSchema object. + This function first waits for the endpoint to be ready, then it submits a prediction request to + the endpoint. It then waits for the prediction result and returns it.
  • +
+

Notice that we specified min_workers=0, meaning that the endpoint will scale down to 0 workers +when it's not being used.

+

Installation

+

To use Scale Launch, first install it using pip:

+
Installation
pip install -U scale-launch
+
+ + + + + + +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/site/objects.inv b/site/objects.inv new file mode 100644 index 0000000000000000000000000000000000000000..e43ed22faff7f5befaa9ffd329ff598edc3168bd GIT binary patch literal 533 zcmV+w0_y!EAX9K?X>NERX>N99Zgg*Qc_4OWa&u{KZXhxWBOp+6Z)#;@bUGkRVRdd} zXbK}BR%LQ?X>V>iATTa4E-(rsAXI2&AaZ4GVQFq;WpW^IW*~HEX>%ZEX>4U6X>%ZB zZ*6dLWpi_7WFU2OX>MmAdTeQ8E(&c>@V4PI0n+>Qjd_|c&2q#{i5Qq%7+p)?_{b&iU!8_E^(Pw6WzDxeZw1Z)xf zR8ETV!s?pm(x!?LDK}bD#90Of6LOeKpA0L}^XbKLMw7!hF->+4Qv5!Zbkne05^En= zgcj~vK03U+dcojImr-aLfy2Y?+WBWH&|+Bk z)P8mP1a|Yz#MUR3y|#nbS82AqirDcN&LbldkiPtn literal 0 HcmV?d00001 diff --git a/site/search/search_index.json b/site/search/search_index.json new file mode 100644 index 00000000..d169be02 --- /dev/null +++ b/site/search/search_index.json @@ -0,0 +1 @@ +{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"Scale Launch","text":"

Simple, scalable, and high performance ML service deployment in python.

"},{"location":"#example","title":"Example","text":"Launch Usage
import os\nimport time\nfrom launch import LaunchClient\nfrom launch import EndpointRequest\nfrom pydantic import BaseModel\nfrom rich import print\nclass MyRequestSchema(BaseModel):\nx: int\ny: str\nclass MyResponseSchema(BaseModel):\n__root__: int\ndef my_load_predict_fn(model):\ndef returns_model_of_x_plus_len_of_y(x: int, y: str) -> int:\n\"\"\"MyRequestSchema -> MyResponseSchema\"\"\"\nassert isinstance(x, int) and isinstance(y, str)\nreturn model(x) + len(y)\nreturn returns_model_of_x_plus_len_of_y\ndef my_model(x):\nreturn x * 2\nENV_PARAMS = {\n\"framework_type\": \"pytorch\",\n\"pytorch_image_tag\": \"1.7.1-cuda11.0-cudnn8-runtime\",\n}\nBUNDLE_PARAMS = {\n\"model_bundle_name\": \"test-bundle\",\n\"model\": my_model,\n\"load_predict_fn\": my_load_predict_fn,\n\"env_params\": ENV_PARAMS,\n\"requirements\": [\"pytest==7.2.1\", \"numpy\"],  # list your requirements here\n\"request_schema\": MyRequestSchema,\n\"response_schema\": MyResponseSchema,\n}\nENDPOINT_PARAMS = {\n\"endpoint_name\": \"demo-endpoint\",\n\"model_bundle\": \"test-bundle\",\n\"cpus\": 1,\n\"min_workers\": 0,\n\"endpoint_type\": \"async\",\n\"update_if_exists\": True,\n\"labels\": {\n\"team\": \"MY_TEAM\",\n\"product\": \"launch\",\n}\n}\ndef predict_on_endpoint(request: MyRequestSchema) -> MyResponseSchema:\n# Wait for the endpoint to be ready first before submitting a task\nendpoint = client.get_model_endpoint(endpoint_name=\"demo-endpoint\")\nwhile endpoint.status() != \"READY\":\ntime.sleep(10)\nendpoint_request = EndpointRequest(args=request.dict(), return_pickled=False)\nfuture = endpoint.predict(request=endpoint_request)\nraw_response = future.get()\nresponse = MyResponseSchema.parse_raw(raw_response.result)\nreturn response\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nclient.create_model_bundle(**BUNDLE_PARAMS)\nendpoint = client.create_model_endpoint(**ENDPOINT_PARAMS)\nrequest = MyRequestSchema(x=5, y=\"hello\")\nresponse = predict_on_endpoint(request)\nprint(response)\n\"\"\"\nMyResponseSchema(__root__=10)\n\"\"\"\n

What's going on here:

  • First we use pydantic to define our request and response schemas, MyRequestSchema and MyResponseSchema. These schemas are used to generate the API documentation for our models.
  • Next we define the the model and the load_predict_fn, which tells Launch how to load our model and how to make predictions with it. In this case, we're just returning a function that adds the length of the string y to model(x), where model doubles the integer x.
  • We then define the model bundle by specifying the load_predict_fn, the request_schema, and the response_schema. We also specify the env_params, which tell Launch environment settings like the base image to use. In this case, we're using a PyTorch image.
  • Next, we create the model endpoint, which is the API that we'll use to make predictions. We specify the model_bundle that we created above, and we specify the endpoint_type, which tells Launch whether to use a synchronous or asynchronous endpoint. In this case, we're using an asynchronous endpoint, which means that we can make predictions and return immediately with a future object. We can then use the future object to get the prediction result later.
  • Finally, we make a prediction by calling predict_on_endpoint with a MyRequestSchema object. This function first waits for the endpoint to be ready, then it submits a prediction request to the endpoint. It then waits for the prediction result and returns it.

Notice that we specified min_workers=0, meaning that the endpoint will scale down to 0 workers when it's not being used.

"},{"location":"#installation","title":"Installation","text":"

To use Scale Launch, first install it using pip:

Installation
pip install -U scale-launch\n
"},{"location":"cli/","title":"CLI","text":"

Launch comes with a CLI for listing bundles / endpoints, editing endpoints, and sending tasks to endpoints.

The CLI can be used as scale-launch ....

"},{"location":"cli/#help","title":"Help","text":"

Run scale-launch --help for more options.

scale-launch --help
    This is the command line interface (CLI) package for Scale Launch.\n\n       \u2588\u2588\u2557      \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557   \u2588\u2588\u2557\u2588\u2588\u2588\u2557   \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557  \u2588\u2588\u2557\n       \u2588\u2588\u2551     \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551   \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2557  \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d\u2588\u2588\u2551  \u2588\u2588\u2551\n       \u2588\u2588\u2551     \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551   \u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551     \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\n       \u2588\u2588\u2551     \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551   \u2588\u2588\u2551\u2588\u2588\u2551\u255a\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2551     \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\n       \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551  \u2588\u2588\u2551\u255a\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2551 \u255a\u2588\u2588\u2588\u2588\u2551\u255a\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551  \u2588\u2588\u2551\n       \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d\u255a\u2550\u255d  \u255a\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u255d \u255a\u2550\u255d  \u255a\u2550\u2550\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u255d\u255a\u2550\u255d  \u255a\u2550\u255d\n\nUsage: scale-launch [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --help  Show this message and exit.\n\nCommands:\n  batch-jobs  Batch Jobs is a wrapper around batch jobs in Scale Launch\n  bundles     Bundles is a wrapper around model bundles in Scale Launch\n  config      Config is a wrapper around getting and setting your API key and other configuration options\n  endpoints   Endpoints is a wrapper around model endpoints in Scale Launch\n  tasks       Tasks is a wrapper around sending requests to endpoints\n
"},{"location":"api/client/","title":"Launch Client","text":""},{"location":"api/client/#launch.client.LaunchClient","title":"LaunchClient","text":"
LaunchClient(\napi_key: str,\nendpoint: Optional[str] = None,\nself_hosted: bool = False,\n)\n

Scale Launch Python Client.

Initializes a Scale Launch Client.

Parameters:

Name Type Description Default api_key str

Your Scale API key

required endpoint Optional[str]

The Scale Launch Endpoint (this should not need to be changed)

None self_hosted bool

True iff you are connecting to a self-hosted Scale Launch

False"},{"location":"api/client/#launch.client.LaunchClient.batch_async_request","title":"batch_async_request","text":"
batch_async_request(\n*,\nmodel_bundle: Union[ModelBundle, str],\nurls: List[str] = None,\ninputs: Optional[List[Dict[str, Any]]] = None,\nbatch_url_file_location: Optional[str] = None,\nserialization_format: str = \"JSON\",\nlabels: Optional[Dict[str, str]] = None,\ncpus: Optional[int] = None,\nmemory: Optional[str] = None,\ngpus: Optional[int] = None,\ngpu_type: Optional[str] = None,\nstorage: Optional[str] = None,\nmax_workers: Optional[int] = None,\nper_worker: Optional[int] = None\n) -> Dict[str, Any]\n

Sends a batch inference request using a given bundle. Returns a key that can be used to retrieve the results of inference at a later time.

Must have exactly one of urls or inputs passed in.

Parameters:

Name Type Description Default model_bundle Union[ModelBundle, str]

The bundle or the name of a the bundle to use for inference.

required urls List[str]

A list of urls, each pointing to a file containing model input. Must be accessible by Scale Launch, hence urls need to either be public or signedURLs.

None inputs Optional[List[Dict[str, Any]]]

A list of model inputs, if exists, we will upload the inputs and pass it in to Launch.

None batch_url_file_location Optional[str]

In self-hosted mode, the input to the batch job will be uploaded to this location if provided. Otherwise, one will be determined from bundle_location_fn()

None serialization_format str

Serialization format of output, either 'PICKLE' or 'JSON'. 'pickle' corresponds to pickling results + returning

'JSON' labels Optional[Dict[str, str]]

An optional dictionary of key/value pairs to associate with this endpoint.

None cpus Optional[int]

Number of cpus each worker should get, e.g. 1, 2, etc. This must be greater than or equal to 1.

None memory Optional[str]

Amount of memory each worker should get, e.g. \"4Gi\", \"512Mi\", etc. This must be a positive amount of memory.

None storage Optional[str]

Amount of local ephemeral storage each worker should get, e.g. \"4Gi\", \"512Mi\", etc. This must be a positive amount of storage.

None gpus Optional[int]

Number of gpus each worker should get, e.g. 0, 1, etc.

None max_workers Optional[int]

The maximum number of workers. Must be greater than or equal to 0, and as well as greater than or equal to min_workers.

None per_worker Optional[int]

The maximum number of concurrent requests that an individual worker can service. Launch automatically scales the number of workers for the endpoint so that each worker is processing per_worker requests:

  • If the average number of concurrent requests per worker is lower than per_worker, then the number of workers will be reduced.
  • Otherwise, if the average number of concurrent requests per worker is higher than per_worker, then the number of workers will be increased to meet the elevated traffic.
None gpu_type Optional[str]

If specifying a non-zero number of gpus, this controls the type of gpu requested. Here are the supported values:

  • nvidia-tesla-t4
  • nvidia-ampere-a10
None

Returns:

Type Description Dict[str, Any]

A dictionary that contains job_id as a key, and the ID as the value.

"},{"location":"api/client/#launch.client.LaunchClient.clone_model_bundle_with_changes","title":"clone_model_bundle_with_changes","text":"
clone_model_bundle_with_changes(\nmodel_bundle: Union[ModelBundle, str],\napp_config: Optional[Dict] = None,\n) -> ModelBundle\n

Clones an existing model bundle with changes to its app config. (More fields coming soon)

Parameters:

Name Type Description Default model_bundle Union[ModelBundle, str]

The existing bundle or its ID.

required app_config Optional[Dict]

The new bundle's app config, if not passed in, the new bundle's app_config will be set to None

None

Returns:

Type Description ModelBundle

A ModelBundle object

"},{"location":"api/client/#launch.client.LaunchClient.create_model_bundle","title":"create_model_bundle","text":"
create_model_bundle(\nmodel_bundle_name: str,\nenv_params: Dict[str, str],\n*,\nload_predict_fn: Optional[\nCallable[[LaunchModel_T], Callable[[Any], Any]]\n] = None,\npredict_fn_or_cls: Optional[\nCallable[[Any], Any]\n] = None,\nrequirements: Optional[List[str]] = None,\nmodel: Optional[LaunchModel_T] = None,\nload_model_fn: Optional[\nCallable[[], LaunchModel_T]\n] = None,\napp_config: Optional[Union[Dict[str, Any], str]] = None,\nglobals_copy: Optional[Dict[str, Any]] = None,\nrequest_schema: Optional[Type[BaseModel]] = None,\nresponse_schema: Optional[Type[BaseModel]] = None\n) -> ModelBundle\n

Uploads and registers a model bundle to Scale Launch.

A model bundle consists of exactly one of the following:

  • predict_fn_or_cls
  • load_predict_fn + model
  • load_predict_fn + load_model_fn

Pre/post-processing code can be included inside load_predict_fn/model or in predict_fn_or_cls call.

Parameters:

Name Type Description Default model_bundle_name str

The name of the model bundle you want to create. The name must be unique across all bundles that you own.

required predict_fn_or_cls Optional[Callable[[Any], Any]]

Function or a Callable class that runs end-to-end (pre/post processing and model inference) on the call. i.e. predict_fn_or_cls(REQUEST) -> RESPONSE.

None model Optional[LaunchModel_T]

Typically a trained Neural Network, e.g. a Pytorch module.

Exactly one of model and load_model_fn must be provided.

None load_model_fn Optional[Callable[[], LaunchModel_T]]

A function that, when run, loads a model. This function is essentially a deferred wrapper around the model argument.

Exactly one of model and load_model_fn must be provided.

None load_predict_fn Optional[Callable[[LaunchModel_T], Callable[[Any], Any]]]

Function that, when called with a model, returns a function that carries out inference.

If model is specified, then this is equivalent to: load_predict_fn(model, app_config=optional_app_config]) -> predict_fn

Otherwise, if load_model_fn is specified, then this is equivalent to: load_predict_fn(load_model_fn(), app_config=optional_app_config]) -> predict_fn

In both cases, predict_fn is then the inference function, i.e.: predict_fn(REQUEST) -> RESPONSE

None requirements Optional[List[str]]

A list of python package requirements, where each list element is of the form <package_name>==<package_version>, e.g.

[\"tensorflow==2.3.0\", \"tensorflow-hub==0.11.0\"]

If you do not pass in a value for requirements, then you must pass in globals() for the globals_copy argument.

None app_config Optional[Union[Dict[str, Any], str]]

Either a Dictionary that represents a YAML file contents or a local path to a YAML file.

None env_params Dict[str, str]

A dictionary that dictates environment information e.g. the use of pytorch or tensorflow, which base image tag to use, etc. Specifically, the dictionary should contain the following keys:

  • framework_type: either tensorflow or pytorch. - PyTorch fields: - pytorch_image_tag: An image tag for the pytorch docker base image. The list of tags can be found from https://hub.docker.com/r/pytorch/pytorch/tags. - Example:

    .. code-block:: python

    { \"framework_type\": \"pytorch\", \"pytorch_image_tag\": \"1.10.0-cuda11.3-cudnn8-runtime\" }

  • Tensorflow fields:

    • tensorflow_version: Version of tensorflow, e.g. \"2.3.0\".
required globals_copy Optional[Dict[str, Any]]

Dictionary of the global symbol table. Normally provided by globals() built-in function.

None request_schema Optional[Type[BaseModel]]

A pydantic model that represents the request schema for the model bundle. This is used to validate the request body for the model bundle's endpoint.

None response_schema Optional[Type[BaseModel]]

A pydantic model that represents the request schema for the model bundle. This is used to validate the response for the model bundle's endpoint. Note: If request_schema is specified, then response_schema must also be specified.

None"},{"location":"api/client/#launch.client.LaunchClient.create_model_bundle_from_dirs","title":"create_model_bundle_from_dirs","text":"
create_model_bundle_from_dirs(\n*,\nmodel_bundle_name: str,\nbase_paths: List[str],\nrequirements_path: str,\nenv_params: Dict[str, str],\nload_predict_fn_module_path: str,\nload_model_fn_module_path: str,\napp_config: Optional[Union[Dict[str, Any], str]] = None,\nrequest_schema: Optional[Type[BaseModel]] = None,\nresponse_schema: Optional[Type[BaseModel]] = None\n) -> ModelBundle\n

Packages up code from one or more local filesystem folders and uploads them as a bundle to Scale Launch. In this mode, a bundle is just local code instead of a serialized object.

For example, if you have a directory structure like so, and your current working directory is also my_root:

.. code-block:: text

my_root/ my_module1/ init.py ...files and directories my_inference_file.py my_module2/ init.py ...files and directories

then calling create_model_bundle_from_dirs with base_paths=[\"my_module1\", \"my_module2\"] essentially creates a zip file without the root directory, e.g.:

.. code-block:: text

my_module1/ init.py ...files and directories my_inference_file.py my_module2/ init.py ...files and directories

and these contents will be unzipped relative to the server side application root. Bear these points in mind when referencing Python module paths for this bundle. For instance, if my_inference_file.py has def f(...) as the desired inference loading function, then the load_predict_fn_module_path argument should be my_module1.my_inference_file.f.

Parameters:

Name Type Description Default model_bundle_name str

The name of the model bundle you want to create. The name must be unique across all bundles that you own.

required base_paths List[str]

The paths on the local filesystem where the bundle code lives.

required requirements_path str

A path on the local filesystem where a requirements.txt file lives.

required env_params Dict[str, str]

A dictionary that dictates environment information e.g. the use of pytorch or tensorflow, which base image tag to use, etc. Specifically, the dictionary should contain the following keys:

  • framework_type: either tensorflow or pytorch. - PyTorch fields: - pytorch_image_tag: An image tag for the pytorch docker base image. The list of tags can be found from https://hub.docker.com/r/pytorch/pytorch/tags. - Example:

    .. code-block:: python

    { \"framework_type\": \"pytorch\", \"pytorch_image_tag\": \"1.10.0-cuda11.3-cudnn8-runtime\" }

required load_predict_fn_module_path str

A python module path for a function that, when called with the output of load_model_fn_module_path, returns a function that carries out inference.

required load_model_fn_module_path str

A python module path for a function that returns a model. The output feeds into the function located at load_predict_fn_module_path.

required app_config Optional[Union[Dict[str, Any], str]]

Either a Dictionary that represents a YAML file contents or a local path to a YAML file.

None request_schema Optional[Type[BaseModel]]

A pydantic model that represents the request schema for the model bundle. This is used to validate the request body for the model bundle's endpoint.

None response_schema Optional[Type[BaseModel]]

A pydantic model that represents the request schema for the model bundle. This is used to validate the response for the model bundle's endpoint. Note: If request_schema is specified, then response_schema must also be specified.

None"},{"location":"api/client/#launch.client.LaunchClient.create_model_endpoint","title":"create_model_endpoint","text":"
create_model_endpoint(\n*,\nendpoint_name: str,\nmodel_bundle: Union[ModelBundle, str],\ncpus: int = 3,\nmemory: str = \"8Gi\",\nstorage: Optional[str] = None,\ngpus: int = 0,\nmin_workers: int = 1,\nmax_workers: int = 1,\nper_worker: int = 10,\ngpu_type: Optional[str] = None,\nendpoint_type: str = \"sync\",\nhigh_priority: Optional[bool] = False,\npost_inference_hooks: Optional[\nList[PostInferenceHooks]\n] = None,\ndefault_callback_url: Optional[str] = None,\ndefault_callback_auth_kind: Optional[\nLiteral[basic, mtls]\n] = None,\ndefault_callback_auth_username: Optional[str] = None,\ndefault_callback_auth_password: Optional[str] = None,\ndefault_callback_auth_cert: Optional[str] = None,\ndefault_callback_auth_key: Optional[str] = None,\nupdate_if_exists: bool = False,\nlabels: Optional[Dict[str, str]] = None\n) -> Optional[Endpoint]\n

Creates and registers a model endpoint in Scale Launch. The returned object is an instance of type Endpoint, which is a base class of either SyncEndpoint or AsyncEndpoint. This is the object to which you sent inference requests.

Parameters:

Name Type Description Default endpoint_name str

The name of the model endpoint you want to create. The name must be unique across all endpoints that you own.

required model_bundle Union[ModelBundle, str]

The ModelBundle that the endpoint should serve.

required cpus int

Number of cpus each worker should get, e.g. 1, 2, etc. This must be greater than or equal to 1.

3 memory str

Amount of memory each worker should get, e.g. \"4Gi\", \"512Mi\", etc. This must be a positive amount of memory.

'8Gi' storage Optional[str]

Amount of local ephemeral storage each worker should get, e.g. \"4Gi\", \"512Mi\", etc. This must be a positive amount of storage.

None gpus int

Number of gpus each worker should get, e.g. 0, 1, etc.

0 min_workers int

The minimum number of workers. Must be greater than or equal to 0. This should be determined by computing the minimum throughput of your workload and dividing it by the throughput of a single worker. This field must be at least 1 for synchronous endpoints.

1 max_workers int

The maximum number of workers. Must be greater than or equal to 0, and as well as greater than or equal to min_workers. This should be determined by computing the maximum throughput of your workload and dividing it by the throughput of a single worker.

1 per_worker int

The maximum number of concurrent requests that an individual worker can service. Launch automatically scales the number of workers for the endpoint so that each worker is processing per_worker requests, subject to the limits defined by min_workers and max_workers.

  • If the average number of concurrent requests per worker is lower than per_worker, then the number of workers will be reduced. - Otherwise, if the average number of concurrent requests per worker is higher than per_worker, then the number of workers will be increased to meet the elevated traffic.

Here is our recommendation for computing per_worker:

  1. Compute min_workers and max_workers per your minimum and maximum throughput requirements. 2. Determine a value for the maximum number of concurrent requests in the workload. Divide this number by max_workers. Doing this ensures that the number of workers will \"climb\" to max_workers.
10 gpu_type Optional[str]

If specifying a non-zero number of gpus, this controls the type of gpu requested. Here are the supported values:

  • nvidia-tesla-t4
  • nvidia-ampere-a10
None endpoint_type str

Either \"sync\" or \"async\".

'sync' high_priority Optional[bool]

Either True or False. Enabling this will allow the created endpoint to leverage the shared pool of prewarmed nodes for faster spinup time.

False post_inference_hooks Optional[List[PostInferenceHooks]]

List of hooks to trigger after inference tasks are served.

None default_callback_url Optional[str]

The default callback url to use for async endpoints. This can be overridden in the task parameters for each individual task. post_inference_hooks must contain \"callback\" for the callback to be triggered.

None default_callback_auth_kind Optional[Literal[basic, mtls]]

The default callback auth kind to use for async endpoints. Either \"basic\" or \"mtls\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_username Optional[str]

The default callback auth username to use. This only applies if default_callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_password Optional[str]

The default callback auth password to use. This only applies if default_callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_cert Optional[str]

The default callback auth cert to use. This only applies if default_callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_key Optional[str]

The default callback auth key to use. This only applies if default_callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None update_if_exists bool

If True, will attempt to update the endpoint if it exists. Otherwise, will unconditionally try to create a new endpoint. Note that endpoint names for a given user must be unique, so attempting to call this function with update_if_exists=False for an existing endpoint will raise an error.

False labels Optional[Dict[str, str]]

An optional dictionary of key/value pairs to associate with this endpoint.

None

Returns:

Type Description Optional[Endpoint]

A Endpoint object that can be used to make requests to the endpoint.

"},{"location":"api/client/#launch.client.LaunchClient.delete_model_endpoint","title":"delete_model_endpoint","text":"
delete_model_endpoint(\nmodel_endpoint: Union[ModelEndpoint, str]\n)\n

Deletes a model endpoint.

Parameters:

Name Type Description Default model_endpoint Union[ModelEndpoint, str]

A ModelEndpoint object.

required"},{"location":"api/client/#launch.client.LaunchClient.edit_model_endpoint","title":"edit_model_endpoint","text":"
edit_model_endpoint(\n*,\nmodel_endpoint: Union[ModelEndpoint, str],\nmodel_bundle: Optional[Union[ModelBundle, str]] = None,\ncpus: Optional[float] = None,\nmemory: Optional[str] = None,\nstorage: Optional[str] = None,\ngpus: Optional[int] = None,\nmin_workers: Optional[int] = None,\nmax_workers: Optional[int] = None,\nper_worker: Optional[int] = None,\ngpu_type: Optional[str] = None,\nhigh_priority: Optional[bool] = None,\npost_inference_hooks: Optional[\nList[PostInferenceHooks]\n] = None,\ndefault_callback_url: Optional[str] = None,\ndefault_callback_auth_kind: Optional[\nLiteral[basic, mtls]\n] = None,\ndefault_callback_auth_username: Optional[str] = None,\ndefault_callback_auth_password: Optional[str] = None,\ndefault_callback_auth_cert: Optional[str] = None,\ndefault_callback_auth_key: Optional[str] = None\n) -> None\n

Edits an existing model endpoint. Here are the fields that cannot be edited on an existing endpoint:

  • The endpoint's name. - The endpoint's type (i.e. you cannot go from a SyncEnpdoint to an AsyncEndpoint or vice versa.

Parameters:

Name Type Description Default model_endpoint Union[ModelEndpoint, str]

The model endpoint (or its name) you want to edit. The name must be unique across all endpoints that you own.

required model_bundle Optional[Union[ModelBundle, str]]

The ModelBundle that the endpoint should serve.

None cpus Optional[float]

Number of cpus each worker should get, e.g. 1, 2, etc. This must be greater than or equal to 1.

None memory Optional[str]

Amount of memory each worker should get, e.g. \"4Gi\", \"512Mi\", etc. This must be a positive amount of memory.

None storage Optional[str]

Amount of local ephemeral storage each worker should get, e.g. \"4Gi\", \"512Mi\", etc. This must be a positive amount of storage.

None gpus Optional[int]

Number of gpus each worker should get, e.g. 0, 1, etc.

None min_workers Optional[int]

The minimum number of workers. Must be greater than or equal to 0.

None max_workers Optional[int]

The maximum number of workers. Must be greater than or equal to 0, and as well as greater than or equal to min_workers.

None per_worker Optional[int]

The maximum number of concurrent requests that an individual worker can service. Launch automatically scales the number of workers for the endpoint so that each worker is processing per_worker requests:

  • If the average number of concurrent requests per worker is lower than per_worker, then the number of workers will be reduced. - Otherwise, if the average number of concurrent requests per worker is higher than per_worker, then the number of workers will be increased to meet the elevated traffic.
None gpu_type Optional[str]

If specifying a non-zero number of gpus, this controls the type of gpu requested. Here are the supported values:

  • nvidia-tesla-t4
  • nvidia-ampere-a10
None high_priority Optional[bool]

Either True or False. Enabling this will allow the created endpoint to leverage the shared pool of prewarmed nodes for faster spinup time.

None post_inference_hooks Optional[List[PostInferenceHooks]]

List of hooks to trigger after inference tasks are served.

None default_callback_url Optional[str]

The default callback url to use for async endpoints. This can be overridden in the task parameters for each individual task. post_inference_hooks must contain \"callback\" for the callback to be triggered.

None default_callback_auth_kind Optional[Literal[basic, mtls]]

The default callback auth kind to use for async endpoints. Either \"basic\" or \"mtls\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_username Optional[str]

The default callback auth username to use. This only applies if default_callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_password Optional[str]

The default callback auth password to use. This only applies if default_callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_cert Optional[str]

The default callback auth cert to use. This only applies if default_callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_key Optional[str]

The default callback auth key to use. This only applies if default_callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None"},{"location":"api/client/#launch.client.LaunchClient.get_batch_async_response","title":"get_batch_async_response","text":"
get_batch_async_response(\nbatch_job_id: str,\n) -> Dict[str, Any]\n

Gets inference results from a previously created batch job.

Parameters:

Name Type Description Default batch_job_id str

An id representing the batch task job. This id is the in the response from calling batch_async_request.

required

Returns:

Type Description Dict[str, Any]

A dictionary that contains the following fields:

Dict[str, Any]
  • status: The status of the job.
Dict[str, Any]
  • result: The url where the result is stored.
Dict[str, Any]
  • duration: A string representation of how long the job took to finish or how long it has been running, for a job current in progress.
Dict[str, Any]
  • num_tasks_pending: The number of tasks that are still pending.
Dict[str, Any]
  • num_tasks_completed: The number of tasks that have completed.
"},{"location":"api/client/#launch.client.LaunchClient.get_model_bundle","title":"get_model_bundle","text":"
get_model_bundle(\nmodel_bundle: Union[ModelBundle, str]\n) -> ModelBundle\n

Returns a model bundle specified by bundle_name that the user owns.

Parameters:

Name Type Description Default model_bundle Union[ModelBundle, str]

The bundle or its name.

required

Returns:

Type Description ModelBundle

A ModelBundle object

"},{"location":"api/client/#launch.client.LaunchClient.get_model_endpoint","title":"get_model_endpoint","text":"
get_model_endpoint(\nendpoint_name: str,\n) -> Optional[Union[AsyncEndpoint, SyncEndpoint]]\n

Gets a model endpoint associated with a name.

Parameters:

Name Type Description Default endpoint_name str

The name of the endpoint to retrieve.

required"},{"location":"api/client/#launch.client.LaunchClient.list_model_bundles","title":"list_model_bundles","text":"
list_model_bundles() -> List[ModelBundle]\n

Returns a list of model bundles that the user owns.

Returns:

Type Description List[ModelBundle]

A list of ModelBundle objects

"},{"location":"api/client/#launch.client.LaunchClient.list_model_endpoints","title":"list_model_endpoints","text":"
list_model_endpoints() -> List[Endpoint]\n

Lists all model endpoints that the user owns.

Returns:

Type Description List[Endpoint]

A list of ModelEndpoint objects.

"},{"location":"api/client/#launch.client.LaunchClient.read_endpoint_creation_logs","title":"read_endpoint_creation_logs","text":"
read_endpoint_creation_logs(\nmodel_endpoint: Union[ModelEndpoint, str]\n)\n

Retrieves the logs for the creation of the endpoint.

Parameters:

Name Type Description Default model_endpoint Union[ModelEndpoint, str]

The endpoint or its name.

required"},{"location":"api/client/#launch.client.LaunchClient.register_batch_csv_location_fn","title":"register_batch_csv_location_fn","text":"
register_batch_csv_location_fn(\nbatch_csv_location_fn: Callable[[], str]\n)\n

For self-hosted mode only. Registers a function that gives a location for batch CSV inputs. Should give different locations each time. This function is called as batch_csv_location_fn(), and should return a batch_csv_url that upload_batch_csv_fn can take.

Strictly, batch_csv_location_fn() does not need to return a str. The only requirement is that if batch_csv_location_fn returns a value of type T, then upload_batch_csv_fn() takes in an object of type T as its second argument (i.e. batch_csv_url).

Parameters:

Name Type Description Default batch_csv_location_fn Callable[[], str]

Function that generates batch_csv_urls for upload_batch_csv_fn.

required"},{"location":"api/client/#launch.client.LaunchClient.register_bundle_location_fn","title":"register_bundle_location_fn","text":"
register_bundle_location_fn(\nbundle_location_fn: Callable[[], str]\n)\n

For self-hosted mode only. Registers a function that gives a location for a model bundle. Should give different locations each time. This function is called as bundle_location_fn(), and should return a bundle_url that register_upload_bundle_fn can take.

Strictly, bundle_location_fn() does not need to return a str. The only requirement is that if bundle_location_fn returns a value of type T, then upload_bundle_fn() takes in an object of type T as its second argument (i.e. bundle_url).

Parameters:

Name Type Description Default bundle_location_fn Callable[[], str]

Function that generates bundle_urls for upload_bundle_fn.

required"},{"location":"api/client/#launch.client.LaunchClient.register_upload_batch_csv_fn","title":"register_upload_batch_csv_fn","text":"
register_upload_batch_csv_fn(\nupload_batch_csv_fn: Callable[[str, str], None]\n)\n

For self-hosted mode only. Registers a function that handles batch text upload. This function is called as

upload_batch_csv_fn(csv_text, csv_url)\n

This function should directly write the contents of csv_text as a text string into csv_url.

Parameters:

Name Type Description Default upload_batch_csv_fn Callable[[str, str], None]

Function that takes in a csv text (string type), and uploads that bundle to an appropriate location. Only needed for self-hosted mode.

required"},{"location":"api/client/#launch.client.LaunchClient.register_upload_bundle_fn","title":"register_upload_bundle_fn","text":"
register_upload_bundle_fn(\nupload_bundle_fn: Callable[[str, str], None]\n)\n

For self-hosted mode only. Registers a function that handles model bundle upload. This function is called as

upload_bundle_fn(serialized_bundle, bundle_url)\n

This function should directly write the contents of serialized_bundle as a binary string into bundle_url.

See register_bundle_location_fn for more notes on the signature of upload_bundle_fn

Parameters:

Name Type Description Default upload_bundle_fn Callable[[str, str], None]

Function that takes in a serialized bundle (bytes type), and uploads that bundle to an appropriate location. Only needed for self-hosted mode.

required"},{"location":"api/endpoint_predictions/","title":"Endpoint Predictions","text":""},{"location":"api/endpoint_predictions/#launch.model_endpoint.EndpointRequest","title":"EndpointRequest","text":"
EndpointRequest(\nurl: Optional[str] = None,\nargs: Optional[Dict] = None,\ncallback_url: Optional[str] = None,\ncallback_auth_kind: Optional[\nLiteral[basic, mtls]\n] = None,\ncallback_auth_username: Optional[str] = None,\ncallback_auth_password: Optional[str] = None,\ncallback_auth_cert: Optional[str] = None,\ncallback_auth_key: Optional[str] = None,\nreturn_pickled: Optional[bool] = False,\nrequest_id: Optional[str] = None,\n)\n

Represents a single request to either a SyncEndpoint or AsyncEndpoint.

Parameters:

Name Type Description Default url Optional[str]

A url to some file that can be read in to a ModelBundle's predict function. Can be an image, raw text, etc. Note: the contents of the file located at url are opened as a sequence of bytes and passed to the predict function. If you instead want to pass the url itself as an input to the predict function, see args.

Exactly one of url and args must be specified.

None args Optional[Dict]

A Dictionary with arguments to a ModelBundle's predict function. If the predict function has signature predict_fn(foo, bar), then the keys in the dictionary should be \"foo\" and \"bar\". Values must be native Python objects.

Exactly one of url and args must be specified.

None return_pickled Optional[bool]

Whether the output should be a pickled python object, or directly returned serialized json.

False callback_url Optional[str]

The callback url to use for this task. If None, then the default_callback_url of the endpoint is used. The endpoint must specify \"callback\" as a post-inference hook for the callback to be triggered.

None callback_auth_kind Optional[Literal[basic, mtls]]

The default callback auth kind to use for async endpoints. Either \"basic\" or \"mtls\". This can be overridden in the task parameters for each individual task.

None callback_auth_username Optional[str]

The default callback auth username to use. This only applies if callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None callback_auth_password Optional[str]

The default callback auth password to use. This only applies if callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None callback_auth_cert Optional[str]

The default callback auth cert to use. This only applies if callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None callback_auth_key Optional[str]

The default callback auth key to use. This only applies if callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None request_id Optional[str]

(deprecated) A user-specifiable id for requests. Should be unique among EndpointRequests made in the same batch call. If one isn't provided the client will generate its own.

None"},{"location":"api/endpoint_predictions/#launch.model_endpoint.EndpointResponse","title":"EndpointResponse","text":"
EndpointResponse(\nclient,\nstatus: str,\nresult_url: Optional[str] = None,\nresult: Optional[str] = None,\ntraceback: Optional[str] = None,\n)\n

Represents a response received from a Endpoint.

Parameters:

Name Type Description Default client

An instance of LaunchClient.

required status str

A string representing the status of the request, i.e. SUCCESS, FAILURE, or PENDING

required result_url Optional[str]

A string that is a url containing the pickled python object from the Endpoint's predict function.

Exactly one of result_url or result will be populated, depending on the value of return_pickled in the request.

None result Optional[str]

A string that is the serialized return value (in json form) of the Endpoint's predict function. Specifically, one can json.loads() the value of result to get the original python object back.

Exactly one of result_url or result will be populated, depending on the value of return_pickled in the request.

None traceback Optional[str]

The stack trace if the inference endpoint raised an error. Can be used for debugging

None"},{"location":"api/endpoint_predictions/#launch.model_endpoint.EndpointResponseFuture","title":"EndpointResponseFuture","text":"
EndpointResponseFuture(\nclient, endpoint_name: str, async_task_id: str\n)\n

Represents a future response from an Endpoint. Specifically, when the EndpointResponseFuture is ready, then its get method will return an actual instance of EndpointResponse.

This object should not be directly instantiated by the user.

Parameters:

Name Type Description Default client

An instance of LaunchClient.

required endpoint_name str

The name of the endpoint.

required async_task_id str

An async task id.

required"},{"location":"api/endpoint_predictions/#launch.model_endpoint.EndpointResponseFuture.get","title":"get","text":"
get(timeout: Optional[float] = None) -> EndpointResponse\n

Retrieves the EndpointResponse for the prediction request after it completes. This method blocks.

Parameters:

Name Type Description Default timeout Optional[float]

The maximum number of seconds to wait for the response. If None, then the method will block indefinitely until the response is ready.

None"},{"location":"api/hooks/","title":"Hooks","text":""},{"location":"api/hooks/#launch.hooks.PostInferenceHooks","title":"PostInferenceHooks","text":"

Bases: str, Enum

Post-inference hooks are functions that are called after inference is complete.

Attributes:

Name Type Description CALLBACK str

The callback hook is called with the inference response and the task ID.

"},{"location":"api/model_bundles/","title":"Model Bundles","text":""},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle","title":"ModelBundle dataclass","text":"

Represents a ModelBundle.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.app_config","title":"app_config class-attribute","text":"
app_config: Optional[Dict[Any, Any]] = None\n

An optional user-specified configuration mapping for the bundle.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.env_params","title":"env_params class-attribute","text":"
env_params: Optional[Dict[str, str]] = None\n

A dictionary that dictates environment information. See LaunchClient.create_model_bundle for more information.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.id","title":"id class-attribute","text":"
id: Optional[str] = None\n

A globally unique identifier for the bundle.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.location","title":"location class-attribute","text":"
location: Optional[str] = None\n

An opaque location for the bundle.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.metadata","title":"metadata class-attribute","text":"
metadata: Optional[Dict[Any, Any]] = None\n

Arbitrary metadata for the bundle.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.name","title":"name class-attribute","text":"
name: str\n

The name of the bundle. Must be unique across all bundles that the user owns.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.packaging_type","title":"packaging_type class-attribute","text":"
packaging_type: Optional[str] = None\n

The packaging type for the bundle. Can be cloudpickle or zip.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.requirements","title":"requirements class-attribute","text":"
requirements: Optional[List[str]] = None\n

A list of Python package requirements for the bundle. See LaunchClient.create_model_bundle for more information.

"},{"location":"api/model_endpoints/","title":"Model Endpoints","text":"

All classes here are returned by the get_model_endpoint method and provide a predict function.

"},{"location":"api/model_endpoints/#launch.model_endpoint.AsyncEndpoint","title":"AsyncEndpoint","text":"
AsyncEndpoint(model_endpoint: ModelEndpoint, client)\n

Bases: Endpoint

An asynchronous model endpoint.

Parameters:

Name Type Description Default model_endpoint ModelEndpoint

ModelEndpoint object.

required client

A LaunchClient object

required"},{"location":"api/model_endpoints/#launch.model_endpoint.AsyncEndpoint.predict","title":"predict","text":"
predict(request: EndpointRequest) -> EndpointResponseFuture\n

Runs an asynchronous prediction request.

Parameters:

Name Type Description Default request EndpointRequest

The EndpointRequest object that contains the payload.

required

Returns:

Name Type Description EndpointResponseFuture

An EndpointResponseFuture such the user can use to query the status of the request.

Example EndpointResponseFuture EndpointResponseFuture

.. code-block:: python

my_endpoint = AsyncEndpoint(...) f: EndpointResponseFuture = my_endpoint.predict(EndpointRequest(...)) result = f.get() # blocks on completion

"},{"location":"api/model_endpoints/#launch.model_endpoint.AsyncEndpoint.predict_batch","title":"predict_batch","text":"
predict_batch(\nrequests: Sequence[EndpointRequest],\n) -> AsyncEndpointBatchResponse\n

(deprecated) Runs inference on the data items specified by urls. Returns a AsyncEndpointResponse.

Parameters:

Name Type Description Default requests Sequence[EndpointRequest]

List of EndpointRequests. Request_ids must all be distinct.

required

Returns:

Type Description AsyncEndpointBatchResponse

an AsyncEndpointResponse keeping track of the inference requests made

"},{"location":"api/model_endpoints/#launch.model_endpoint.SyncEndpoint","title":"SyncEndpoint","text":"
SyncEndpoint(model_endpoint: ModelEndpoint, client)\n

Bases: Endpoint

A synchronous model endpoint.

Parameters:

Name Type Description Default model_endpoint ModelEndpoint

ModelEndpoint object.

required client

A LaunchClient object

required"},{"location":"api/model_endpoints/#launch.model_endpoint.SyncEndpoint.predict","title":"predict","text":"
predict(request: EndpointRequest) -> EndpointResponse\n

Runs a synchronous prediction request.

Parameters:

Name Type Description Default request EndpointRequest

The EndpointRequest object that contains the payload.

required"},{"location":"concepts/batch_jobs/","title":"Batch Jobs","text":"

For predicting over a larger set of tasks (> 50) at once, it is recommended to use batch jobs. Batch jobs are a way to send a large number of tasks to a model bundle. The tasks are processed in parallel, and the results are returned as a list of predictions.

Batch jobs are created using the batch_async_request method of the LaunchClient.

Creating and Following a Batch Job
import os\nimport time\nfrom launch import LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nbatch_job = client.batch_async_request(\nmodel_bundle=\"test-bundle\",\ninputs=[\n{\"x\": 2, \"y\": \"hello\"},\n{\"x\": 3, \"y\": \"world\"},\n],\nlabels={\n\"team\": \"MY_TEAM\",\n\"product\": \"MY_PRODUCT\",\n}\n)\nstatus = \"PENDING\"\nres = None\nwhile status != \"SUCCESS\" and status != \"FAILURE\" and status != \"CANCELLED\":\ntime.sleep(30)\nres = client.get_batch_async_response(batch_job[\"job_id\"])\nstatus = res[\"status\"]\nprint(f\"the batch job is {status}\")\nprint(res)\n
"},{"location":"concepts/callbacks/","title":"Callbacks","text":"

Async model endpoints can be configured to send callbacks to a user-defined callback URL. Callbacks are sent as HTTP POST requests with a JSON body. The following code snippet shows how to create an async model endpoint with a callback URL.

To configure an async endpoint to send callbacks, set the post_inference_hooks field to include launch.PostInferenceHooks.CALLBACK. A callback URL also needs to be specified, and it can be configured as a default using the default_callback_url argument to launch.LaunchClient.create_model_endpoint or as a per-task override using the callback_url field of launch.EndpointRequest.

Note

Callbacks will not be sent if the endpoint does not have any post-inference hooks specified, even if a default_callback_url is provided to the endpoint creation method or if the prediction request has a callback_url override.

Creating an Async Model Endpoint with a Callback URL
import os\nimport time\nfrom launch import EndpointRequest, LaunchClient, PostInferenceHooks\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.create_model_endpoint(\nendpoint_name=\"demo-endpoint-callback\",\nmodel_bundle=\"test-bundle\",\ncpus=1,\nmin_workers=1,\nendpoint_type=\"async\",\nupdate_if_exists=True,\nlabels={\n\"team\": \"MY_TEAM\",\n\"product\": \"MY_PRODUCT\",\n},\npost_inference_hooks=[PostInferenceHooks.CALLBACK],\ndefault_callback_url=\"https://example.com\",\n)\nwhile endpoint.status() != \"READY\":\ntime.sleep(10)\nfuture_default = endpoint.predict(\nrequest=EndpointRequest(args={\"x\": 2, \"y\": \"hello\"})\n)\n\"\"\"\nA callback is sent to https://example.com with the following JSON body:\n{\n    \"task_id\": \"THE_TASK_ID\",\n    \"result\": 7\n}\n\"\"\"\nfuture_custom_callback_url = endpoint.predict(\nrequest=EndpointRequest(\nargs={\"x\": 3, \"y\": \"hello\"}, callback_url=\"https://example.com/custom\"\n),\n)\n\"\"\"\nA callback is sent to https://example.com/custom with the following JSON body:\n{\n    \"task_id\": \"THE_TASK_ID\",\n    \"result\": 8\n}\n\"\"\"\n
"},{"location":"concepts/callbacks/#authentication-for-callbacks","title":"Authentication for callbacks","text":"

Warning

This feature is currently in beta, and the API is likely to change.

Callbacks can be authenticated using shared authentication headers. To enable authentication, set either default_callback_auth_kind when creating the endpoint or callback_auth_kind when making a prediction request.

Currently, the supported authentication methods are basic and mtls. If basic is used, then the default_callback_auth_username and default_callback_auth_password fields must be specified when creating the endpoint, or the callback_auth_username and callback_auth_password fields must be specified when making a prediction request. If mtls is used, then the same is true for the default_callback_auth_cert and default_callback_auth_key fields, or the callback_auth_cert and callback_auth_key fields.

Creating an Async Model Endpoint with custom Callback auth
import os\nimport time\nfrom launch import EndpointRequest, LaunchClient, PostInferenceHooks\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.create_model_endpoint(\nendpoint_name=\"demo-endpoint-callback\",\nmodel_bundle=\"test-bundle\",\ncpus=1,\nmin_workers=1,\nendpoint_type=\"async\",\nupdate_if_exists=True,\nlabels={\n\"team\": \"MY_TEAM\",\n\"product\": \"MY_PRODUCT\",\n},\npost_inference_hooks=[PostInferenceHooks.CALLBACK],\ndefault_callback_url=\"https://example.com\",\ndefault_callback_auth_kind=\"basic\",\ndefault_callback_auth_username=\"user\",\ndefault_callback_auth_password=\"password\",\n)\nwhile endpoint.status() != \"READY\":\ntime.sleep(10)\nfuture_default = endpoint.predict(\nrequest=EndpointRequest(args={\"x\": 2, \"y\": \"hello\"})\n)\n\"\"\"\nA callback is sent to https://example.com with (\"user\", \"password\") as the basic auth.\n\"\"\"\nfuture_custom_callback_auth = endpoint.predict(\nrequest=EndpointRequest(\nargs={\"x\": 3, \"y\": \"hello\"},\ncallback_auth_kind=\"mtls\", \ncallback_auth_cert=\"cert\", \ncallback_auth_key=\"key\",\n),\n)\n\"\"\"\nA callback is sent with mTLS authentication.\n\"\"\"\nclient.edit_model_endpoint(\nmodel_endpoint=endpoint.model_endpoint,\ndefault_callback_auth_kind=\"mtls\",\ndefault_callback_auth_cert=\"cert\",\ndefault_callback_auth_key=\"key\",\n)\nwhile endpoint.status() != \"READY\":\ntime.sleep(10)\nfuture_default = endpoint.predict(\nrequest=EndpointRequest(args={\"x\": 2, \"y\": \"hello\"})\n)\n\"\"\"\nA callback is sent with mTLS auth.\n\"\"\"\nfuture_custom_callback_auth = endpoint.predict(\nrequest=EndpointRequest(\nargs={\"x\": 3, \"y\": \"hello\"},\ncallback_auth_kind=\"basic\",\ncallback_auth_username=\"user\",\ncallback_auth_password=\"pass\",\n),\n)\n\"\"\"\nA callback is sent with (\"user\", \"pass\") as the basic auth.\n\"\"\"\n
"},{"location":"concepts/endpoint_predictions/","title":"Endpoint Predictions","text":"

Once endpoints have been created, users can send tasks to them to make predictions. The following code snippet shows how to send tasks to endpoints.

Sending a Task to an Async EndpointSending a Task to a Sync Endpoint
import os\nfrom launch import EndpointRequest, LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.get_model_endpoint(\"demo-endpoint-async\")\nfuture = endpoint.predict(request=EndpointRequest(args={\"x\": 2, \"y\": \"hello\"}))\nresponse = future.get()\nprint(response)\n
import os\nfrom launch import EndpointRequest, LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.get_model_endpoint(\"demo-endpoint-sync\")\nresponse = endpoint.predict(request=EndpointRequest(args={\"x\": 2, \"y\": \"hello\"}))\nprint(response)\n
"},{"location":"concepts/endpoint_predictions/#launch.model_endpoint.EndpointRequest","title":"EndpointRequest","text":"
EndpointRequest(\nurl: Optional[str] = None,\nargs: Optional[Dict] = None,\ncallback_url: Optional[str] = None,\ncallback_auth_kind: Optional[\nLiteral[basic, mtls]\n] = None,\ncallback_auth_username: Optional[str] = None,\ncallback_auth_password: Optional[str] = None,\ncallback_auth_cert: Optional[str] = None,\ncallback_auth_key: Optional[str] = None,\nreturn_pickled: Optional[bool] = False,\nrequest_id: Optional[str] = None,\n)\n

Represents a single request to either a SyncEndpoint or AsyncEndpoint.

Parameters:

Name Type Description Default url Optional[str]

A url to some file that can be read in to a ModelBundle's predict function. Can be an image, raw text, etc. Note: the contents of the file located at url are opened as a sequence of bytes and passed to the predict function. If you instead want to pass the url itself as an input to the predict function, see args.

Exactly one of url and args must be specified.

None args Optional[Dict]

A Dictionary with arguments to a ModelBundle's predict function. If the predict function has signature predict_fn(foo, bar), then the keys in the dictionary should be \"foo\" and \"bar\". Values must be native Python objects.

Exactly one of url and args must be specified.

None return_pickled Optional[bool]

Whether the output should be a pickled python object, or directly returned serialized json.

False callback_url Optional[str]

The callback url to use for this task. If None, then the default_callback_url of the endpoint is used. The endpoint must specify \"callback\" as a post-inference hook for the callback to be triggered.

None callback_auth_kind Optional[Literal[basic, mtls]]

The default callback auth kind to use for async endpoints. Either \"basic\" or \"mtls\". This can be overridden in the task parameters for each individual task.

None callback_auth_username Optional[str]

The default callback auth username to use. This only applies if callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None callback_auth_password Optional[str]

The default callback auth password to use. This only applies if callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None callback_auth_cert Optional[str]

The default callback auth cert to use. This only applies if callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None callback_auth_key Optional[str]

The default callback auth key to use. This only applies if callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None request_id Optional[str]

(deprecated) A user-specifiable id for requests. Should be unique among EndpointRequests made in the same batch call. If one isn't provided the client will generate its own.

None"},{"location":"concepts/endpoint_predictions/#launch.model_endpoint.EndpointResponseFuture","title":"EndpointResponseFuture","text":"
EndpointResponseFuture(\nclient, endpoint_name: str, async_task_id: str\n)\n

Represents a future response from an Endpoint. Specifically, when the EndpointResponseFuture is ready, then its get method will return an actual instance of EndpointResponse.

This object should not be directly instantiated by the user.

Parameters:

Name Type Description Default client

An instance of LaunchClient.

required endpoint_name str

The name of the endpoint.

required async_task_id str

An async task id.

required"},{"location":"concepts/endpoint_predictions/#launch.model_endpoint.EndpointResponseFuture.get","title":"get","text":"
get(timeout: Optional[float] = None) -> EndpointResponse\n

Retrieves the EndpointResponse for the prediction request after it completes. This method blocks.

Parameters:

Name Type Description Default timeout Optional[float]

The maximum number of seconds to wait for the response. If None, then the method will block indefinitely until the response is ready.

None"},{"location":"concepts/endpoint_predictions/#launch.model_endpoint.EndpointResponse","title":"EndpointResponse","text":"
EndpointResponse(\nclient,\nstatus: str,\nresult_url: Optional[str] = None,\nresult: Optional[str] = None,\ntraceback: Optional[str] = None,\n)\n

Represents a response received from a Endpoint.

Parameters:

Name Type Description Default client

An instance of LaunchClient.

required status str

A string representing the status of the request, i.e. SUCCESS, FAILURE, or PENDING

required result_url Optional[str]

A string that is a url containing the pickled python object from the Endpoint's predict function.

Exactly one of result_url or result will be populated, depending on the value of return_pickled in the request.

None result Optional[str]

A string that is the serialized return value (in json form) of the Endpoint's predict function. Specifically, one can json.loads() the value of result to get the original python object back.

Exactly one of result_url or result will be populated, depending on the value of return_pickled in the request.

None traceback Optional[str]

The stack trace if the inference endpoint raised an error. Can be used for debugging

None"},{"location":"concepts/model_bundles/","title":"Model Bundles","text":"

Model Bundles are deployable models that can be used to make predictions. They are created by packaging a model up into a deployable format.

"},{"location":"concepts/model_bundles/#creating-model-bundles","title":"Creating Model Bundles","text":"

There are two methods for creating model bundles: create_model_bundle and create_model_bundle_from_dirs. The former directly pickles a user-specified load_predict_fn, a function which loads the model and returns a predict_fn, a function which takes in a request. The latter takes in directories containing a load_predict_fn and the module path to the load_predict_fn.

Creating a Model Bundle DirectlyCreating a Model Bundle from Directories
import os\nfrom pydantic import BaseModel\nfrom launch import LaunchClient\nclass MyRequestSchema(BaseModel):\nx: int\ny: str\nclass MyResponseSchema(BaseModel):\n__root__: int\ndef my_load_predict_fn(model):\ndef returns_model_of_x_plus_len_of_y(x: int, y: str) -> int:\n\"\"\"MyRequestSchema -> MyResponseSchema\"\"\"\nassert isinstance(x, int) and isinstance(y, str)\nreturn model(x) + len(y)\nreturn returns_model_of_x_plus_len_of_y\ndef my_model(x):\nreturn x * 2\nENV_PARAMS = {\n\"framework_type\": \"pytorch\",\n\"pytorch_image_tag\": \"1.7.1-cuda11.0-cudnn8-runtime\",\n}\nBUNDLE_PARAMS = {\n\"model_bundle_name\": \"test-bundle\",\n\"model\": my_model,\n\"load_predict_fn\": my_load_predict_fn,\n\"env_params\": ENV_PARAMS,\n\"requirements\": [\"pytest==7.2.1\", \"numpy\"],  # list your requirements here\n\"request_schema\": MyRequestSchema,\n\"response_schema\": MyResponseSchema,\n}\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nclient.create_model_bundle(**BUNDLE_PARAMS)\n
import os\nimport tempfile\nfrom pydantic import BaseModel\nfrom launch import LaunchClient\ndirectory = tempfile.mkdtemp()\nmodel_filename = os.path.join(directory, \"model.py\")\nwith open(model_filename, \"w\") as f:\nf.write(\"\"\"\ndef my_load_model_fn():\n    def my_model(x):\n        return x * 2\n    return my_model\n\"\"\")\npredict_filename = os.path.join(directory, \"predict.py\")\nwith open(predict_filename, \"w\") as f:\nf.write(\"\"\"\ndef my_load_predict_fn(model):\n    def returns_model_of_x_plus_len_of_y(x: int, y: str) -> int:\n        assert isinstance(x, int) and isinstance(y, str)\n        return model(x) + len(y)\n    return returns_model_of_x_plus_len_of_y\n\"\"\")\nrequirements_filename = os.path.join(directory, \"requirements.txt\")\nwith open(predict_filename, \"w\") as f:\nf.write(\"\"\"\npytest==7.2.1\nnumpy\n\"\"\"\n)\n\"\"\"\nThe directory structure should now look like\ndirectory/\n    model.py\n    predict.py\n    requirements.txt\n\"\"\"\nclass MyRequestSchema(BaseModel):\nx: int\ny: str\nclass MyResponseSchema(BaseModel):\n__root__: int\nENV_PARAMS = {\n\"framework_type\": \"pytorch\",\n\"pytorch_image_tag\": \"1.7.1-cuda11.0-cudnn8-runtime\",\n}\nBUNDLE_PARAMS = {\n\"model_bundle_name\": \"test-bundle\",\n\"base_paths\": [directory],\n\"requirements_path\": \"requirements.txt\",\n\"env_params\": ENV_PARAMS,\n\"load_predict_fn\": \"predict.my_load_predict_fn\",\n\"load_model_fn_module_path\": \"model.my_load_model_fn\",\n\"request_schema\": MyRequestSchema,\n\"response_schema\": MyResponseSchema,\n}\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nclient.create_model_bundle_from_dirs(**BUNDLE_PARAMS)\n# Clean up files from demo\nos.remove(model_filename)\nos.remove(predict_filename)\nos.rmdir(directory)\n
"},{"location":"concepts/model_bundles/#configuring-model-bundles","title":"Configuring Model Bundles","text":"

The app_config field of a model bundle is a dictionary that can be used to configure the model bundle. If specified, the app_config is passed to the load_predict_fn when the model bundle is deployed, alongside the model. This can allow for more code reuse between multiple bundles that perform similar tasks.

Creating Model Bundles with app_config
import os\nfrom launch import LaunchClient\nfrom pydantic import BaseModel\nfrom typing import List, Union\nfrom typing_extensions import Literal\nclass MyRequestSchemaSingle(BaseModel):\nkind: Literal['single']\nx: int\ny: str\nclass MyRequestSchemaBatched(BaseModel):\nkind: Literal['batched']\nx: List[int]\ny: List[str]\nclass MyRequestSchema(BaseModel):\n__root__: Union[MyRequestSchemaSingle, MyRequestSchemaBatched]\nclass MyResponseSchema(BaseModel):\n__root__: Union[int, List[int]]\ndef my_load_predict_fn(app_config, model):\ndef returns_model_of_x_plus_len_of_y(x: Union[int, List[int]], y: Union[str, List[str]]) -> Union[int, List[int]]:\n\"\"\"MyRequestSchema -> MyResponseSchema\"\"\"\nif app_config[\"mode\"] == \"single\":\nassert isinstance(x, int) and isinstance(y, str)\nreturn model(x) + len(y)\nresult = []\nfor x_i, y_i in zip(x, y):\nresult.append(model(x_i) + len(y_i))\nreturn result\nreturn returns_model_of_x_plus_len_of_y\ndef my_load_model_fn(app_config):\ndef my_model_single(x: int):\nreturn x * 2\ndef my_model_batched(x: List[int]):\nreturn [my_model_single(x_i) for x_i in x]\nif app_config[\"mode\"] == \"single\":\nreturn my_model_single\nreturn my_model_batched\nENV_PARAMS = {\n\"framework_type\": \"pytorch\",\n\"pytorch_image_tag\": \"1.7.1-cuda11.0-cudnn8-runtime\",\n}\nBUNDLE_PARAMS_SINGLE = {\n\"model_bundle_name\": \"test-bundle-single\",\n\"load_predict_fn\": my_load_predict_fn,\n\"load_model_fn\": my_load_model_fn,\n\"env_params\": ENV_PARAMS,\n\"requirements\": [\"pytest==7.2.1\", \"numpy\"],\n\"request_schema\": MyRequestSchema,\n\"response_schema\": MyResponseSchema,\n\"app_config\": {\"mode\": \"single\"},\n}\nBUNDLE_PARAMS_BATCHED = {\n\"model_bundle_name\": \"test-bundle-batched\",\n\"load_predict_fn\": my_load_predict_fn,\n\"load_model_fn\": my_load_model_fn,\n\"env_params\": ENV_PARAMS,\n\"requirements\": [\"pytest==7.2.1\", \"numpy\"],\n\"request_schema\": MyRequestSchema,\n\"response_schema\": MyResponseSchema,\n\"app_config\": {\"mode\": \"batched\"},\n}\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nbundle_single = client.create_model_bundle(**BUNDLE_PARAMS_SINGLE)\nbundle_batch = client.create_model_bundle(**BUNDLE_PARAMS_BATCHED)\n
"},{"location":"concepts/model_bundles/#updating-model-bundles","title":"Updating Model Bundles","text":"

Model Bundles are immutable, meaning they cannot be edited once created. However, it is possible to clone an existing model bundle with a new app_config using clone_model_bundle_with_changes.

"},{"location":"concepts/model_bundles/#listing-model-bundles","title":"Listing Model Bundles","text":"

To list all the model bundles you own, use list_model_bundles.

"},{"location":"concepts/model_endpoints/","title":"Model Endpoints","text":"

Model Endpoints are deployments of models that can receive requests and return predictions containing the results of the model's inference. Each model endpoint is associated with a model bundle, which contains the model's code. An endpoint specifies deployment parameters, such as the minimum and maximum number of workers, as well as the requested resources for each worker, such as the number of CPUs, amount of memory, GPU count, and type of GPU.

Endpoints can be asynchronous or synchronous. Asynchronous endpoints return a future immediately after receiving a request, and the future can be used to retrieve the prediction once it is ready. Synchronous endpoints return the prediction directly after receiving a request.

Info

"},{"location":"concepts/model_endpoints/#choosing-the-right-inference-mode","title":"Choosing the right inference mode","text":"

Here are some tips for how to choose between SyncEndpoint, AsyncEndpoint, and BatchJob for deploying your ModelBundle:

A SyncEndpoint is good if:

  • You have strict latency requirements (e.g. on the order of seconds or less).
  • You are willing to have resources continually allocated.

An AsyncEndpoint is good if:

  • You want to save on compute costs.
  • Your inference code takes a long time to run.
  • Your latency requirements are on the order of minutes.

A BatchJob is good if:

  • You know there is a large batch of inputs ahead of time.
  • You want to optimize for throughput instead of latency.
"},{"location":"concepts/model_endpoints/#creating-async-model-endpoints","title":"Creating Async Model Endpoints","text":"

Async model endpoints are the most cost-efficient way to perform inference on tasks that are less latency-sensitive.

Creating an Async Model Endpoint
import os\nfrom launch import LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.create_model_endpoint(\nendpoint_name=\"demo-endpoint-async\",\nmodel_bundle=\"test-bundle\",\ncpus=1,\nmin_workers=0,\nendpoint_type=\"async\",\nupdate_if_exists=True,\nlabels={\n\"team\": \"MY_TEAM\",\n\"product\": \"MY_PRODUCT\",\n},\n)\n
"},{"location":"concepts/model_endpoints/#creating-sync-model-endpoints","title":"Creating Sync Model Endpoints","text":"

Sync model endpoints are useful for latency-sensitive tasks, such as real-time inference. Sync endpoints are more expensive than async endpoints.

Note

Sync model endpoints require at least 1 min_worker.

Creating a Sync Model Endpoint
import os\nfrom launch import LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.create_model_endpoint(\nendpoint_name=\"demo-endpoint-sync\",\nmodel_bundle=\"test-bundle\",\ncpus=1,\nmin_workers=1,\nendpoint_type=\"sync\",\nupdate_if_exists=True,\nlabels={\n\"team\": \"MY_TEAM\",\n\"product\": \"MY_PRODUCT\",\n},\n)\n
"},{"location":"concepts/model_endpoints/#managing-model-endpoints","title":"Managing Model Endpoints","text":"

Model endpoints can be listed, updated, and deleted using the Launch API.

Listing Model Endpoints
import os\nfrom launch import LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoints = client.list_model_endpoints()\n
Updating a Model Endpoint
import os\nfrom launch import LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nclient.edit_model_endpoint(\nmodel_endpoint=\"demo-endpoint\",\nmax_workers=2,\n)\n
Deleting a Model Endpoint
import os\nfrom launch import LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.create_model_endpoint(\nendpoint_name=\"demo-endpoint-tmp\",\nmodel_bundle=\"test-bundle\",\ncpus=1,\nmin_workers=0,\nendpoint_type=\"async\",\nupdate_if_exists=True,\nlabels={\n\"team\": \"MY_TEAM\",\n\"product\": \"MY_PRODUCT\",\n},\n)\nclient.delete_model_endpoint(model_endpoint=\"demo-endpoint-tmp\")\n
"},{"location":"concepts/overview/","title":"Overview","text":"

Creating deployments on Launch generally involves three steps:

  1. Create and upload a ModelBundle. Pass your trained model as well as pre-/post-processing code to the Scale Launch Python client, and we\u2019ll create a model bundle based on the code and store it in our Bundle Store.

  2. Create a ModelEndpoint. Pass a ModelBundle as well as infrastructure settings such as the desired number of GPUs to our client. This provisions resources on Scale\u2019s cluster dedicated to your ModelEndpoint.

  3. Make requests to the ModelEndpoint. You can make requests through the Python client, or make HTTP requests directly to Scale.

"}]} \ No newline at end of file diff --git a/site/sitemap.xml b/site/sitemap.xml new file mode 100644 index 00000000..23730f01 --- /dev/null +++ b/site/sitemap.xml @@ -0,0 +1,68 @@ + + + + https://scaleapi.github.io/launch-python-client/ + 2023-03-21 + daily + + + https://scaleapi.github.io/launch-python-client/cli/ + 2023-03-21 + daily + + + https://scaleapi.github.io/launch-python-client/api/client/ + 2023-03-21 + daily + + + https://scaleapi.github.io/launch-python-client/api/endpoint_predictions/ + 2023-03-21 + daily + + + https://scaleapi.github.io/launch-python-client/api/hooks/ + 2023-03-21 + daily + + + https://scaleapi.github.io/launch-python-client/api/model_bundles/ + 2023-03-21 + daily + + + https://scaleapi.github.io/launch-python-client/api/model_endpoints/ + 2023-03-21 + daily + + + https://scaleapi.github.io/launch-python-client/concepts/batch_jobs/ + 2023-03-21 + daily + + + https://scaleapi.github.io/launch-python-client/concepts/callbacks/ + 2023-03-21 + daily + + + https://scaleapi.github.io/launch-python-client/concepts/endpoint_predictions/ + 2023-03-21 + daily + + + https://scaleapi.github.io/launch-python-client/concepts/model_bundles/ + 2023-03-21 + daily + + + https://scaleapi.github.io/launch-python-client/concepts/model_endpoints/ + 2023-03-21 + daily + + + https://scaleapi.github.io/launch-python-client/concepts/overview/ + 2023-03-21 + daily + + \ No newline at end of file diff --git a/site/sitemap.xml.gz b/site/sitemap.xml.gz new file mode 100644 index 0000000000000000000000000000000000000000..b3e137ef068f2bfab21f0f021512787268799a23 GIT binary patch literal 320 zcmV-G0l)qqiwFqtEE;42|8r?{Wo=<_E_iKh0M(YkZo?o9hVOlfh8W&qXf-*8v|Aw?G(1@qRkck0o z+f7bcND}?0YZ8K&=p=X|?nIQj{lG3oc+%TW$Ww~!X+JfOG7=r$U;HUgFw#fsY+(L> S^sA#ETk{Qe!ZDlS2><{tyOW*( literal 0 HcmV?d00001 From 74b5719558863e6dd047493037be42b0672d1590 Mon Sep 17 00:00:00 2001 From: Anirudh Jain Date: Tue, 21 Mar 2023 15:20:05 -0700 Subject: [PATCH 09/11] removing site --- site/404.html | 548 -- site/_images/model_bundle.png | Bin 41350 -> 0 bytes site/_images/model_endpoint.png | Bin 65535 -> 0 bytes site/_images/request_lifecycle.png | Bin 111799 -> 0 bytes site/_static/favicon-32x32.png | Bin 1717 -> 0 bytes site/_static/favicon.ico | Bin 1150 -> 0 bytes site/_static/file.png | Bin 286 -> 0 bytes site/_static/launch-logo.svg | 19 - site/_static/minus.png | Bin 90 -> 0 bytes site/_static/plus.png | Bin 90 -> 0 bytes site/api/client/index.html | 2873 ------- site/api/endpoint_predictions/index.html | 1116 --- site/api/hooks/index.html | 679 -- site/api/model_bundles/index.html | 980 --- site/api/model_endpoints/index.html | 1047 --- site/assets/_mkdocstrings.css | 36 - site/assets/images/favicon.png | Bin 1870 -> 0 bytes .../assets/javascripts/bundle.2a6f1dda.min.js | 29 - .../javascripts/bundle.2a6f1dda.min.js.map | 8 - .../javascripts/lunr/min/lunr.ar.min.js | 1 - .../javascripts/lunr/min/lunr.da.min.js | 18 - .../javascripts/lunr/min/lunr.de.min.js | 18 - .../javascripts/lunr/min/lunr.du.min.js | 18 - .../javascripts/lunr/min/lunr.es.min.js | 18 - .../javascripts/lunr/min/lunr.fi.min.js | 18 - .../javascripts/lunr/min/lunr.fr.min.js | 18 - .../javascripts/lunr/min/lunr.hi.min.js | 1 - .../javascripts/lunr/min/lunr.hu.min.js | 18 - .../javascripts/lunr/min/lunr.it.min.js | 18 - .../javascripts/lunr/min/lunr.ja.min.js | 1 - .../javascripts/lunr/min/lunr.jp.min.js | 1 - .../javascripts/lunr/min/lunr.ko.min.js | 1 - .../javascripts/lunr/min/lunr.multi.min.js | 1 - .../javascripts/lunr/min/lunr.nl.min.js | 18 - .../javascripts/lunr/min/lunr.no.min.js | 18 - .../javascripts/lunr/min/lunr.pt.min.js | 18 - .../javascripts/lunr/min/lunr.ro.min.js | 18 - .../javascripts/lunr/min/lunr.ru.min.js | 18 - .../lunr/min/lunr.stemmer.support.min.js | 1 - .../javascripts/lunr/min/lunr.sv.min.js | 18 - .../javascripts/lunr/min/lunr.ta.min.js | 1 - .../javascripts/lunr/min/lunr.th.min.js | 1 - .../javascripts/lunr/min/lunr.tr.min.js | 18 - .../javascripts/lunr/min/lunr.vi.min.js | 1 - .../javascripts/lunr/min/lunr.zh.min.js | 1 - site/assets/javascripts/lunr/tinyseg.js | 206 - site/assets/javascripts/lunr/wordcut.js | 6708 ----------------- .../workers/search.208ed371.min.js | 42 - .../workers/search.208ed371.min.js.map | 8 - site/assets/stylesheets/main.113286f1.min.css | 1 - .../stylesheets/main.113286f1.min.css.map | 1 - .../stylesheets/palette.a0c5b2b5.min.css | 1 - .../stylesheets/palette.a0c5b2b5.min.css.map | 1 - site/cli/index.html | 646 -- site/concepts/batch_jobs/index.html | 616 -- site/concepts/callbacks/index.html | 781 -- site/concepts/endpoint_predictions/index.html | 1143 --- site/concepts/model_bundles/index.html | 903 --- site/concepts/model_endpoints/index.html | 691 -- site/concepts/overview/index.html | 598 -- site/index.html | 751 -- site/objects.inv | Bin 533 -> 0 bytes site/search/search_index.json | 1 - site/sitemap.xml | 68 - site/sitemap.xml.gz | Bin 320 -> 0 bytes 65 files changed, 20782 deletions(-) delete mode 100644 site/404.html delete mode 100644 site/_images/model_bundle.png delete mode 100644 site/_images/model_endpoint.png delete mode 100644 site/_images/request_lifecycle.png delete mode 100644 site/_static/favicon-32x32.png delete mode 100644 site/_static/favicon.ico delete mode 100644 site/_static/file.png delete mode 100644 site/_static/launch-logo.svg delete mode 100644 site/_static/minus.png delete mode 100644 site/_static/plus.png delete mode 100644 site/api/client/index.html delete mode 100644 site/api/endpoint_predictions/index.html delete mode 100644 site/api/hooks/index.html delete mode 100644 site/api/model_bundles/index.html delete mode 100644 site/api/model_endpoints/index.html delete mode 100644 site/assets/_mkdocstrings.css delete mode 100644 site/assets/images/favicon.png delete mode 100644 site/assets/javascripts/bundle.2a6f1dda.min.js delete mode 100644 site/assets/javascripts/bundle.2a6f1dda.min.js.map delete mode 100644 site/assets/javascripts/lunr/min/lunr.ar.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.da.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.de.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.du.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.es.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.fi.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.fr.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.hi.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.hu.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.it.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.ja.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.jp.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.ko.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.multi.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.nl.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.no.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.pt.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.ro.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.ru.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.stemmer.support.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.sv.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.ta.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.th.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.tr.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.vi.min.js delete mode 100644 site/assets/javascripts/lunr/min/lunr.zh.min.js delete mode 100644 site/assets/javascripts/lunr/tinyseg.js delete mode 100644 site/assets/javascripts/lunr/wordcut.js delete mode 100644 site/assets/javascripts/workers/search.208ed371.min.js delete mode 100644 site/assets/javascripts/workers/search.208ed371.min.js.map delete mode 100644 site/assets/stylesheets/main.113286f1.min.css delete mode 100644 site/assets/stylesheets/main.113286f1.min.css.map delete mode 100644 site/assets/stylesheets/palette.a0c5b2b5.min.css delete mode 100644 site/assets/stylesheets/palette.a0c5b2b5.min.css.map delete mode 100644 site/cli/index.html delete mode 100644 site/concepts/batch_jobs/index.html delete mode 100644 site/concepts/callbacks/index.html delete mode 100644 site/concepts/endpoint_predictions/index.html delete mode 100644 site/concepts/model_bundles/index.html delete mode 100644 site/concepts/model_endpoints/index.html delete mode 100644 site/concepts/overview/index.html delete mode 100644 site/index.html delete mode 100644 site/objects.inv delete mode 100644 site/search/search_index.json delete mode 100644 site/sitemap.xml delete mode 100644 site/sitemap.xml.gz diff --git a/site/404.html b/site/404.html deleted file mode 100644 index 0a7b4ad9..00000000 --- a/site/404.html +++ /dev/null @@ -1,548 +0,0 @@ - - - - - - - - - - - - - - - - - - - - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- -

404 - Not found

- -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/_images/model_bundle.png b/site/_images/model_bundle.png deleted file mode 100644 index 75667ae057bff39ef6679fad8d15d194aeb086d8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 41350 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

mgdwbss$l=}3<7Ek5r!?m6yG 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�Hp{wH`g#(67E`#6F8U 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 diff --git a/site/_static/favicon-32x32.png b/site/_static/favicon-32x32.png deleted file mode 100644 index 52c5a60587922b9433191bbcd20024cc55532fff..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1717 zcmV;m21@yfP)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91AfN*P1ONa40RR91AOHXW0IY^$^8f$_A4x<(R9Fd>SIcf3MHH>-?wRq- z*v5&mP>9R~P^176vMg(4MHb>K<_p-u!doJ-=$`CwK7lp)kZe#^k=SMz%O=J|!T2#< zU7T}oS3f)sHZ4zg^{x9j_uQ)LYx~=;FMo2*JvMm}7p^cxUKpP{<7Uo!=gh1y=FG(A z6hA)COk~b&;_+_JZR`shS=)_G)QwEiOT6twHg3GfNo2c;G2O(QUdQ@QY;3m^`5tAl zG0~QNm|1T#Z;UgzJY0J3Eyvbi##)a7|KyT)nKLkfob&RGV5WBPLQ(6Y6OSA9=_}|) zc4FPQ^L17@H-!)&LMXcN0){|>OUi1`I?s0k56*)R4WgFdDY&SDLtrBs6U3w8R*Hxj zyytX8dAN!yGnEANumnRubV;9D)#EyoZDnxF$`S2GX*P9_ugZuD(B0~4^! z$+!T)oeY$@i8>h|I0BI^38`kS;S{)frXAl2>b(r8sxsk5J1Le+hL|oaJTibo5D#TV z!Dxx9U=#vo2o`+mHdMQ70nmu$ui{ICJkpUaUL+WSDp-A|iyH%=GMQK%ZKb*F4&9&>J%$8V$ZGESH{chR^5rbTJ5ybjvBQ2aVL1(m)%n%fzg=X27GSl|h)Td4I zeD8U`JM7M>?$b_gwS(8?@c8!^=G^3aW@)*P@VgMlTIq^vh>>amED4sOri~b34d@2q zd69JPE`Oirvmbr#V~>8op%?Jz36}6Q9~AxqPP89L%mVs>b5xDJLErY!8~Agy3wua^ z7v2+Q#BIocjK-`eL)O(!&@n-2Hs}Yw`q>xeDFj{MA3{9DcmO8@v?hyuhxGvZkeNZy zDfN1P9{)8(SZvYqD_SiyE00@XMCD=rT z3-kW)Ugitfmz`C?#YvzIKve>qzy%NWNk|YoOJgu$X-RqO91sw<#?m7qgd8@l3|I#IH2a!?0D~Ytx1ZoETF6&41QEC; zh)O2!Xla9ScoGEr0rrTH;n>ye!&Azj3x$5?E`s>feVj%S7ABY=SV9f@Ca|`$%{fj3>eb=%g{@OM&OYtAHS$J@eWA>Kg`s3>!4zO1ZM9 zdQyTngOeZf#dv?V5FMU%%;BkZhyS?Q;lM1tjw16Ng72{$RR$~of&4cHIkxW{eV8E# zn9yvN@BW@v{eS|;T~?NITgm1JWMb`Lg^L>f1k0fp zf$%2`$QHyo0H1ZuI4N9N>`9!BWj{bB)CJLB-WkDt`$-VDc5Y)$u;o_}QbH_3hG?Aw z@QM?STL_bgCKzz16ZQj+pJHEbF>%li_P)1?wXQc_$p`{5WnpUqjh2i|@c#n*e<=SU zUCxjohNCe)#Rl^r=7tOePy}H&SCC*K$y^CF0oFUbVX88A5qfc_Zd z;Lc8F3;*PF`BYDgMj+1LUw@by%)ec}n452?UO6O)w-0WoSYz40pB2%rh8S~F00000 LNkvXXu0mjfm diff --git a/site/_static/favicon.ico b/site/_static/favicon.ico deleted file mode 100644 index 2aca5b035dd69fa9d7313ccbe0fa35d32e9e93ef..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1150 zcmbV~Jxjx25XVoDwlqsYa5L@F;#Uys3$$?)RK(d$!KI5JA~hY{ln&L!Ql#I*!NIMF zR4eqIRKI{jZK}16|4Z{o8Y5^EemU-PzvP}LA)3G$2oSCz+MOhtCZbt@5-P(w0uk;_ zNkh!sx@_e71SF6E^8QJi9+id!5?}_{+sTNYGZHwqTpwZzl-I5XK_gQ1z)68J2-H(#=)c%uW)0GjaK zT+5eN^8m6~~N53DapzCl=zaG1f7|~49&9!{~Misz&#p@NcN=mJuFXprGJKXCA`ehITK|xW` zs`hMrGg#P~ix$^RISR_I47Y|r1 z_CyJOe}D1){SET-^Amu_i71Lt6eYfZjRyw@I6OQAIXXHDfiX^GbOlHe=Ae4>0m)d(f|Me07*qoM6N<$f}vM^LjV8( diff --git a/site/_static/launch-logo.svg b/site/_static/launch-logo.svg deleted file mode 100644 index 1e9a4431..00000000 --- a/site/_static/launch-logo.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/site/_static/minus.png b/site/_static/minus.png deleted file mode 100644 index d96755fdaf8bb2214971e0db9c1fd3077d7c419d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 90 zcmeAS@N?(olHy`uVBq!ia0vp^+#t*WBp7;*Yy1LIik>cxAr*|t7R?Mi>2?kWtu=nj kDsEF_5m^0CR;1wuP-*O&G^0G}KYk!hp00i_>zopr08q^qX#fBK diff --git a/site/_static/plus.png b/site/_static/plus.png deleted file mode 100644 index 7107cec93a979b9a5f64843235a16651d563ce2d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 90 zcmeAS@N?(olHy`uVBq!ia0vp^+#t*WBp7;*Yy1LIik>cxAr*|t7R?Mi>2?kWtu>-2 m3q%Vub%g%s<8sJhVPMczOq}xhg9DJoz~JfX=d#Wzp$Pyb1r*Kz diff --git a/site/api/client/index.html b/site/api/client/index.html deleted file mode 100644 index a7c6a91e..00000000 --- a/site/api/client/index.html +++ /dev/null @@ -1,2873 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - Launch Client - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - - - - - -
-
- - - - -

Launch Client

- - -
- - - -

- LaunchClient - - -

-
LaunchClient(
-    api_key: str,
-    endpoint: Optional[str] = None,
-    self_hosted: bool = False,
-)
-
- -
- - -

Scale Launch Python Client.

- - -

Initializes a Scale Launch Client.

- -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
api_key - str -

Your Scale API key

- required -
endpoint - Optional[str] -

The Scale Launch Endpoint (this should not need to be changed)

- None -
self_hosted - bool -

True iff you are connecting to a self-hosted Scale Launch

- False -
- - - - -
- - - - - - - - - -
- - - -

- batch_async_request - - -

-
batch_async_request(
-    *,
-    model_bundle: Union[ModelBundle, str],
-    urls: List[str] = None,
-    inputs: Optional[List[Dict[str, Any]]] = None,
-    batch_url_file_location: Optional[str] = None,
-    serialization_format: str = "JSON",
-    labels: Optional[Dict[str, str]] = None,
-    cpus: Optional[int] = None,
-    memory: Optional[str] = None,
-    gpus: Optional[int] = None,
-    gpu_type: Optional[str] = None,
-    storage: Optional[str] = None,
-    max_workers: Optional[int] = None,
-    per_worker: Optional[int] = None
-) -> Dict[str, Any]
-
- -
- -

Sends a batch inference request using a given bundle. Returns a key that can be used to -retrieve the results of inference at a later time.

-

Must have exactly one of urls or inputs passed in.

- -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
model_bundle - Union[ModelBundle, str] -

The bundle or the name of a the bundle to use for inference.

- required -
urls - List[str] -

A list of urls, each pointing to a file containing model input. Must be -accessible by Scale Launch, hence urls need to either be public or signedURLs.

- None -
inputs - Optional[List[Dict[str, Any]]] -

A list of model inputs, if exists, we will upload the inputs and pass it in -to Launch.

- None -
batch_url_file_location - Optional[str] -

In self-hosted mode, the input to the batch job will be -uploaded to this location if provided. Otherwise, one will be determined from -bundle_location_fn()

- None -
serialization_format - str -

Serialization format of output, either 'PICKLE' or 'JSON'. -'pickle' corresponds to pickling results + returning

- 'JSON' -
labels - Optional[Dict[str, str]] -

An optional dictionary of key/value pairs to associate with this endpoint.

- None -
cpus - Optional[int] -

Number of cpus each worker should get, e.g. 1, 2, etc. This must be greater than -or equal to 1.

- None -
memory - Optional[str] -

Amount of memory each worker should get, e.g. "4Gi", "512Mi", etc. This must be -a positive amount of memory.

- None -
storage - Optional[str] -

Amount of local ephemeral storage each worker should get, e.g. "4Gi", "512Mi", -etc. This must be a positive amount of storage.

- None -
gpus - Optional[int] -

Number of gpus each worker should get, e.g. 0, 1, etc.

- None -
max_workers - Optional[int] -

The maximum number of workers. Must be greater than or equal to 0, and as -well as greater than or equal to min_workers.

- None -
per_worker - Optional[int] -

The maximum number of concurrent requests that an individual worker can -service. Launch automatically scales the number of workers for the endpoint so that -each worker is processing per_worker requests:

-
    -
  • If the average number of concurrent requests per worker is lower than - per_worker, then the number of workers will be reduced.
  • -
  • Otherwise, if the average number of concurrent requests per worker is higher - than per_worker, then the number of workers will be increased to meet the - elevated traffic.
  • -
- None -
gpu_type - Optional[str] -

If specifying a non-zero number of gpus, this controls the type of gpu -requested. Here are the supported values:

-
    -
  • nvidia-tesla-t4
  • -
  • nvidia-ampere-a10
  • -
- None -
- -

Returns:

- - - - - - - - - - - - - -
TypeDescription
- Dict[str, Any] -

A dictionary that contains job_id as a key, and the ID as the value.

- -
- -
- -
- - - -

- clone_model_bundle_with_changes - - -

-
clone_model_bundle_with_changes(
-    model_bundle: Union[ModelBundle, str],
-    app_config: Optional[Dict] = None,
-) -> ModelBundle
-
- -
- -

Clones an existing model bundle with changes to its app config. (More fields coming soon)

- -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
model_bundle - Union[ModelBundle, str] -

The existing bundle or its ID.

- required -
app_config - Optional[Dict] -

The new bundle's app config, if not passed in, the new -bundle's app_config will be set to None

- None -
- -

Returns:

- - - - - - - - - - - - - -
TypeDescription
- ModelBundle -

A ModelBundle object

- -
- -
- -
- - - -

- create_model_bundle - - -

-
create_model_bundle(
-    model_bundle_name: str,
-    env_params: Dict[str, str],
-    *,
-    load_predict_fn: Optional[
-        Callable[[LaunchModel_T], Callable[[Any], Any]]
-    ] = None,
-    predict_fn_or_cls: Optional[
-        Callable[[Any], Any]
-    ] = None,
-    requirements: Optional[List[str]] = None,
-    model: Optional[LaunchModel_T] = None,
-    load_model_fn: Optional[
-        Callable[[], LaunchModel_T]
-    ] = None,
-    app_config: Optional[Union[Dict[str, Any], str]] = None,
-    globals_copy: Optional[Dict[str, Any]] = None,
-    request_schema: Optional[Type[BaseModel]] = None,
-    response_schema: Optional[Type[BaseModel]] = None
-) -> ModelBundle
-
- -
- -

Uploads and registers a model bundle to Scale Launch.

-

A model bundle consists of exactly one of the following:

-
    -
  • predict_fn_or_cls
  • -
  • load_predict_fn + model
  • -
  • load_predict_fn + load_model_fn
  • -
-

Pre/post-processing code can be included inside load_predict_fn/model or in -predict_fn_or_cls call.

- -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
model_bundle_name - str -

The name of the model bundle you want to create. The name -must be unique across all bundles that you own.

- required -
predict_fn_or_cls - Optional[Callable[[Any], Any]] -

Function or a Callable class that runs end-to-end -(pre/post processing and model inference) on the call. i.e. -predict_fn_or_cls(REQUEST) -> RESPONSE.

- None -
model - Optional[LaunchModel_T] -

Typically a trained Neural Network, e.g. a Pytorch module.

-

Exactly one of model and load_model_fn must be provided.

- None -
load_model_fn - Optional[Callable[[], LaunchModel_T]] -

A function that, when run, loads a model. This function is essentially -a deferred wrapper around the model argument.

-

Exactly one of model and load_model_fn must be provided.

- None -
load_predict_fn - Optional[Callable[[LaunchModel_T], Callable[[Any], Any]]] -

Function that, when called with a model, returns a function that -carries out inference.

-

If model is specified, then this is equivalent -to: - load_predict_fn(model, app_config=optional_app_config]) -> predict_fn

-

Otherwise, if load_model_fn is specified, then this is equivalent to: -load_predict_fn(load_model_fn(), app_config=optional_app_config]) -> predict_fn

-

In both cases, predict_fn is then the inference function, i.e.: - predict_fn(REQUEST) -> RESPONSE

- None -
requirements - Optional[List[str]] -

A list of python package requirements, where each list element is of -the form <package_name>==<package_version>, e.g.

-

["tensorflow==2.3.0", "tensorflow-hub==0.11.0"]

-

If you do not pass in a value for requirements, then you must pass in -globals() for the globals_copy argument.

- None -
app_config - Optional[Union[Dict[str, Any], str]] -

Either a Dictionary that represents a YAML file contents or a local path -to a YAML file.

- None -
env_params - Dict[str, str] -

A dictionary that dictates environment information e.g. -the use of pytorch or tensorflow, which base image tag to use, etc. -Specifically, the dictionary should contain the following keys:

-
    -
  • -

    framework_type: either tensorflow or pytorch. - PyTorch fields: - -pytorch_image_tag: An image tag for the pytorch docker base image. The -list of tags can be found from https://hub.docker.com/r/pytorch/pytorch/tags. - -Example:

    -

    .. code-block:: python

    -

    { - "framework_type": "pytorch", - "pytorch_image_tag": "1.10.0-cuda11.3-cudnn8-runtime" - }

    -
  • -
  • -

    Tensorflow fields:

    -
      -
    • tensorflow_version: Version of tensorflow, e.g. "2.3.0".
    • -
    -
  • -
- required -
globals_copy - Optional[Dict[str, Any]] -

Dictionary of the global symbol table. Normally provided by -globals() built-in function.

- None -
request_schema - Optional[Type[BaseModel]] -

A pydantic model that represents the request schema for the model -bundle. This is used to validate the request body for the model bundle's endpoint.

- None -
response_schema - Optional[Type[BaseModel]] -

A pydantic model that represents the request schema for the model -bundle. This is used to validate the response for the model bundle's endpoint. -Note: If request_schema is specified, then response_schema must also be specified.

- None -
- -
- -
- -
- - - -

- create_model_bundle_from_dirs - - -

-
create_model_bundle_from_dirs(
-    *,
-    model_bundle_name: str,
-    base_paths: List[str],
-    requirements_path: str,
-    env_params: Dict[str, str],
-    load_predict_fn_module_path: str,
-    load_model_fn_module_path: str,
-    app_config: Optional[Union[Dict[str, Any], str]] = None,
-    request_schema: Optional[Type[BaseModel]] = None,
-    response_schema: Optional[Type[BaseModel]] = None
-) -> ModelBundle
-
- -
- -

Packages up code from one or more local filesystem folders and uploads them as a bundle -to Scale Launch. In this mode, a bundle is just local code instead of a serialized object.

-

For example, if you have a directory structure like so, and your current working -directory is also my_root:

-

.. code-block:: text

-

my_root/ - my_module1/ - init.py - ...files and directories - my_inference_file.py - my_module2/ - init.py - ...files and directories

-

then calling create_model_bundle_from_dirs with base_paths=["my_module1", -"my_module2"] essentially creates a zip file without the root directory, e.g.:

-

.. code-block:: text

-

my_module1/ - init.py - ...files and directories - my_inference_file.py - my_module2/ - init.py - ...files and directories

-

and these contents will be unzipped relative to the server side application root. Bear -these points in mind when referencing Python module paths for this bundle. For instance, -if my_inference_file.py has def f(...) as the desired inference loading function, -then the load_predict_fn_module_path argument should be my_module1.my_inference_file.f.

- -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
model_bundle_name - str -

The name of the model bundle you want to create. The name -must be unique across all bundles that you own.

- required -
base_paths - List[str] -

The paths on the local filesystem where the bundle code lives.

- required -
requirements_path - str -

A path on the local filesystem where a requirements.txt file -lives.

- required -
env_params - Dict[str, str] -

A dictionary that dictates environment information e.g. -the use of pytorch or tensorflow, which base image tag to use, etc. -Specifically, the dictionary should contain the following keys:

-
    -
  • -

    framework_type: either tensorflow or pytorch. - PyTorch fields: - -pytorch_image_tag: An image tag for the pytorch docker base image. The -list of tags can be found from https://hub.docker.com/r/pytorch/pytorch/tags. - -Example:

    -

    .. code-block:: python

    -

    { - "framework_type": "pytorch", - "pytorch_image_tag": "1.10.0-cuda11.3-cudnn8-runtime" - }

    -
  • -
- required -
load_predict_fn_module_path - str -

A python module path for a function that, when called -with the output of load_model_fn_module_path, returns a function that carries out -inference.

- required -
load_model_fn_module_path - str -

A python module path for a function that returns a model. -The output feeds into the function located at load_predict_fn_module_path.

- required -
app_config - Optional[Union[Dict[str, Any], str]] -

Either a Dictionary that represents a YAML file contents or a local path -to a YAML file.

- None -
request_schema - Optional[Type[BaseModel]] -

A pydantic model that represents the request schema for the model -bundle. This is used to validate the request body for the model bundle's endpoint.

- None -
response_schema - Optional[Type[BaseModel]] -

A pydantic model that represents the request schema for the model -bundle. This is used to validate the response for the model bundle's endpoint. -Note: If request_schema is specified, then response_schema must also be specified.

- None -
- -
- -
- -
- - - -

- create_model_endpoint - - -

-
create_model_endpoint(
-    *,
-    endpoint_name: str,
-    model_bundle: Union[ModelBundle, str],
-    cpus: int = 3,
-    memory: str = "8Gi",
-    storage: Optional[str] = None,
-    gpus: int = 0,
-    min_workers: int = 1,
-    max_workers: int = 1,
-    per_worker: int = 10,
-    gpu_type: Optional[str] = None,
-    endpoint_type: str = "sync",
-    high_priority: Optional[bool] = False,
-    post_inference_hooks: Optional[
-        List[PostInferenceHooks]
-    ] = None,
-    default_callback_url: Optional[str] = None,
-    default_callback_auth_kind: Optional[
-        Literal[basic, mtls]
-    ] = None,
-    default_callback_auth_username: Optional[str] = None,
-    default_callback_auth_password: Optional[str] = None,
-    default_callback_auth_cert: Optional[str] = None,
-    default_callback_auth_key: Optional[str] = None,
-    update_if_exists: bool = False,
-    labels: Optional[Dict[str, str]] = None
-) -> Optional[Endpoint]
-
- -
- -

Creates and registers a model endpoint in Scale Launch. The returned object is an -instance of type Endpoint, which is a base class of either SyncEndpoint or -AsyncEndpoint. This is the object to which you sent inference requests.

- -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
endpoint_name - str -

The name of the model endpoint you want to create. The name -must be unique across all endpoints that you own.

- required -
model_bundle - Union[ModelBundle, str] -

The ModelBundle that the endpoint should serve.

- required -
cpus - int -

Number of cpus each worker should get, e.g. 1, 2, etc. This must be greater -than or equal to 1.

- 3 -
memory - str -

Amount of memory each worker should get, e.g. "4Gi", "512Mi", etc. This must -be a positive amount of memory.

- '8Gi' -
storage - Optional[str] -

Amount of local ephemeral storage each worker should get, e.g. "4Gi", -"512Mi", etc. This must be a positive amount of storage.

- None -
gpus - int -

Number of gpus each worker should get, e.g. 0, 1, etc.

- 0 -
min_workers - int -

The minimum number of workers. Must be greater than or equal to 0. This -should be determined by computing the minimum throughput of your workload and -dividing it by the throughput of a single worker. This field must be at least 1 -for synchronous endpoints.

- 1 -
max_workers - int -

The maximum number of workers. Must be greater than or equal to 0, -and as well as greater than or equal to min_workers. This should be determined by -computing the maximum throughput of your workload and dividing it by the throughput -of a single worker.

- 1 -
per_worker - int -

The maximum number of concurrent requests that an individual worker can -service. Launch automatically scales the number of workers for the endpoint so that -each worker is processing per_worker requests, subject to the limits defined by -min_workers and max_workers.

-
    -
  • If the average number of concurrent requests per worker is lower than -per_worker, then the number of workers will be reduced. - Otherwise, -if the average number of concurrent requests per worker is higher than -per_worker, then the number of workers will be increased to meet the elevated -traffic.
  • -
-

Here is our recommendation for computing per_worker:

-
    -
  1. Compute min_workers and max_workers per your minimum and maximum -throughput requirements. 2. Determine a value for the maximum number of -concurrent requests in the workload. Divide this number by max_workers. Doing -this ensures that the number of workers will "climb" to max_workers.
  2. -
- 10 -
gpu_type - Optional[str] -

If specifying a non-zero number of gpus, this controls the type of gpu -requested. Here are the supported values:

-
    -
  • nvidia-tesla-t4
  • -
  • nvidia-ampere-a10
  • -
- None -
endpoint_type - str -

Either "sync" or "async".

- 'sync' -
high_priority - Optional[bool] -

Either True or False. Enabling this will allow the created -endpoint to leverage the shared pool of prewarmed nodes for faster spinup time.

- False -
post_inference_hooks - Optional[List[PostInferenceHooks]] -

List of hooks to trigger after inference tasks are served.

- None -
default_callback_url - Optional[str] -

The default callback url to use for async endpoints. -This can be overridden in the task parameters for each individual task. -post_inference_hooks must contain "callback" for the callback to be triggered.

- None -
default_callback_auth_kind - Optional[Literal[basic, mtls]] -

The default callback auth kind to use for async endpoints. -Either "basic" or "mtls". This can be overridden in the task parameters for each -individual task.

- None -
default_callback_auth_username - Optional[str] -

The default callback auth username to use. This only -applies if default_callback_auth_kind is "basic". This can be overridden in the task -parameters for each individual task.

- None -
default_callback_auth_password - Optional[str] -

The default callback auth password to use. This only -applies if default_callback_auth_kind is "basic". This can be overridden in the task -parameters for each individual task.

- None -
default_callback_auth_cert - Optional[str] -

The default callback auth cert to use. This only applies -if default_callback_auth_kind is "mtls". This can be overridden in the task -parameters for each individual task.

- None -
default_callback_auth_key - Optional[str] -

The default callback auth key to use. This only applies -if default_callback_auth_kind is "mtls". This can be overridden in the task -parameters for each individual task.

- None -
update_if_exists - bool -

If True, will attempt to update the endpoint if it exists. -Otherwise, will unconditionally try to create a new endpoint. Note that endpoint -names for a given user must be unique, so attempting to call this function with -update_if_exists=False for an existing endpoint will raise an error.

- False -
labels - Optional[Dict[str, str]] -

An optional dictionary of key/value pairs to associate with this endpoint.

- None -
- -

Returns:

- - - - - - - - - - - - - -
TypeDescription
- Optional[Endpoint] -

A Endpoint object that can be used to make requests to the endpoint.

- -
- -
- -
- - - -

- delete_model_endpoint - - -

-
delete_model_endpoint(
-    model_endpoint: Union[ModelEndpoint, str]
-)
-
- -
- -

Deletes a model endpoint.

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
model_endpoint - Union[ModelEndpoint, str] -

A ModelEndpoint object.

- required -
- -
- -
- -
- - - -

- edit_model_endpoint - - -

-
edit_model_endpoint(
-    *,
-    model_endpoint: Union[ModelEndpoint, str],
-    model_bundle: Optional[Union[ModelBundle, str]] = None,
-    cpus: Optional[float] = None,
-    memory: Optional[str] = None,
-    storage: Optional[str] = None,
-    gpus: Optional[int] = None,
-    min_workers: Optional[int] = None,
-    max_workers: Optional[int] = None,
-    per_worker: Optional[int] = None,
-    gpu_type: Optional[str] = None,
-    high_priority: Optional[bool] = None,
-    post_inference_hooks: Optional[
-        List[PostInferenceHooks]
-    ] = None,
-    default_callback_url: Optional[str] = None,
-    default_callback_auth_kind: Optional[
-        Literal[basic, mtls]
-    ] = None,
-    default_callback_auth_username: Optional[str] = None,
-    default_callback_auth_password: Optional[str] = None,
-    default_callback_auth_cert: Optional[str] = None,
-    default_callback_auth_key: Optional[str] = None
-) -> None
-
- -
- -

Edits an existing model endpoint. Here are the fields that cannot be edited on an -existing endpoint:

-
    -
  • The endpoint's name. - The endpoint's type (i.e. you cannot go from a SyncEnpdoint -to an AsyncEndpoint or vice versa.
  • -
- -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
model_endpoint - Union[ModelEndpoint, str] -

The model endpoint (or its name) you want to edit. The name -must be unique across all endpoints that you own.

- required -
model_bundle - Optional[Union[ModelBundle, str]] -

The ModelBundle that the endpoint should serve.

- None -
cpus - Optional[float] -

Number of cpus each worker should get, e.g. 1, 2, etc. This must be greater -than or equal to 1.

- None -
memory - Optional[str] -

Amount of memory each worker should get, e.g. "4Gi", "512Mi", etc. This must -be a positive amount of memory.

- None -
storage - Optional[str] -

Amount of local ephemeral storage each worker should get, e.g. "4Gi", -"512Mi", etc. This must be a positive amount of storage.

- None -
gpus - Optional[int] -

Number of gpus each worker should get, e.g. 0, 1, etc.

- None -
min_workers - Optional[int] -

The minimum number of workers. Must be greater than or equal to 0.

- None -
max_workers - Optional[int] -

The maximum number of workers. Must be greater than or equal to 0, -and as well as greater than or equal to min_workers.

- None -
per_worker - Optional[int] -

The maximum number of concurrent requests that an individual worker can -service. Launch automatically scales the number of workers for the endpoint so that -each worker is processing per_worker requests:

-
    -
  • If the average number of concurrent requests per worker is lower than -per_worker, then the number of workers will be reduced. - Otherwise, -if the average number of concurrent requests per worker is higher than -per_worker, then the number of workers will be increased to meet the elevated -traffic.
  • -
- None -
gpu_type - Optional[str] -

If specifying a non-zero number of gpus, this controls the type of gpu -requested. Here are the supported values:

-
    -
  • nvidia-tesla-t4
  • -
  • nvidia-ampere-a10
  • -
- None -
high_priority - Optional[bool] -

Either True or False. Enabling this will allow the created -endpoint to leverage the shared pool of prewarmed nodes for faster spinup time.

- None -
post_inference_hooks - Optional[List[PostInferenceHooks]] -

List of hooks to trigger after inference tasks are served.

- None -
default_callback_url - Optional[str] -

The default callback url to use for async endpoints. -This can be overridden in the task parameters for each individual task. -post_inference_hooks must contain "callback" for the callback to be triggered.

- None -
default_callback_auth_kind - Optional[Literal[basic, mtls]] -

The default callback auth kind to use for async endpoints. -Either "basic" or "mtls". This can be overridden in the task parameters for each -individual task.

- None -
default_callback_auth_username - Optional[str] -

The default callback auth username to use. This only -applies if default_callback_auth_kind is "basic". This can be overridden in the task -parameters for each individual task.

- None -
default_callback_auth_password - Optional[str] -

The default callback auth password to use. This only -applies if default_callback_auth_kind is "basic". This can be overridden in the task -parameters for each individual task.

- None -
default_callback_auth_cert - Optional[str] -

The default callback auth cert to use. This only applies -if default_callback_auth_kind is "mtls". This can be overridden in the task -parameters for each individual task.

- None -
default_callback_auth_key - Optional[str] -

The default callback auth key to use. This only applies -if default_callback_auth_kind is "mtls". This can be overridden in the task -parameters for each individual task.

- None -
- -
- -
- -
- - - -

- get_batch_async_response - - -

-
get_batch_async_response(
-    batch_job_id: str,
-) -> Dict[str, Any]
-
- -
- -

Gets inference results from a previously created batch job.

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
batch_job_id - str -

An id representing the batch task job. This id is the in the response from -calling batch_async_request.

- required -
- -

Returns:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- Dict[str, Any] -

A dictionary that contains the following fields:

- Dict[str, Any] -
    -
  • status: The status of the job.
  • -
- Dict[str, Any] -
    -
  • result: The url where the result is stored.
  • -
- Dict[str, Any] -
    -
  • duration: A string representation of how long the job took to finish - or how long it has been running, for a job current in progress.
  • -
- Dict[str, Any] -
    -
  • num_tasks_pending: The number of tasks that are still pending.
  • -
- Dict[str, Any] -
    -
  • num_tasks_completed: The number of tasks that have completed.
  • -
- -
- -
- -
- - - -

- get_model_bundle - - -

-
get_model_bundle(
-    model_bundle: Union[ModelBundle, str]
-) -> ModelBundle
-
- -
- -

Returns a model bundle specified by bundle_name that the user owns.

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
model_bundle - Union[ModelBundle, str] -

The bundle or its name.

- required -
- -

Returns:

- - - - - - - - - - - - - -
TypeDescription
- ModelBundle -

A ModelBundle object

- -
- -
- -
- - - -

- get_model_endpoint - - -

-
get_model_endpoint(
-    endpoint_name: str,
-) -> Optional[Union[AsyncEndpoint, SyncEndpoint]]
-
- -
- -

Gets a model endpoint associated with a name.

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
endpoint_name - str -

The name of the endpoint to retrieve.

- required -
- -
- -
- -
- - - -

- list_model_bundles - - -

-
list_model_bundles() -> List[ModelBundle]
-
- -
- -

Returns a list of model bundles that the user owns.

- -

Returns:

- - - - - - - - - - - - - -
TypeDescription
- List[ModelBundle] -

A list of ModelBundle objects

- -
- -
- -
- - - -

- list_model_endpoints - - -

-
list_model_endpoints() -> List[Endpoint]
-
- -
- -

Lists all model endpoints that the user owns.

- -

Returns:

- - - - - - - - - - - - - -
TypeDescription
- List[Endpoint] -

A list of ModelEndpoint objects.

- -
- -
- -
- - - -

- read_endpoint_creation_logs - - -

-
read_endpoint_creation_logs(
-    model_endpoint: Union[ModelEndpoint, str]
-)
-
- -
- -

Retrieves the logs for the creation of the endpoint.

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
model_endpoint - Union[ModelEndpoint, str] -

The endpoint or its name.

- required -
- -
- -
- -
- - - -

- register_batch_csv_location_fn - - -

-
register_batch_csv_location_fn(
-    batch_csv_location_fn: Callable[[], str]
-)
-
- -
- -

For self-hosted mode only. Registers a function that gives a location for batch CSV -inputs. Should give different locations each time. This function is called as -batch_csv_location_fn(), and should return a batch_csv_url that upload_batch_csv_fn can -take.

-

Strictly, batch_csv_location_fn() does not need to return a str. The only requirement is -that if batch_csv_location_fn returns a value of type T, then upload_batch_csv_fn() takes -in an object of type T as its second argument (i.e. batch_csv_url).

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
batch_csv_location_fn - Callable[[], str] -

Function that generates batch_csv_urls for upload_batch_csv_fn.

- required -
- -
- -
- -
- - - -

- register_bundle_location_fn - - -

-
register_bundle_location_fn(
-    bundle_location_fn: Callable[[], str]
-)
-
- -
- -

For self-hosted mode only. Registers a function that gives a location for a model bundle. -Should give different locations each time. This function is called as -bundle_location_fn(), and should return a bundle_url that -register_upload_bundle_fn can take.

-

Strictly, bundle_location_fn() does not need to return a str. The only -requirement is that if bundle_location_fn returns a value of type T, -then upload_bundle_fn() takes in an object of type T as its second argument (i.e. -bundle_url).

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
bundle_location_fn - Callable[[], str] -

Function that generates bundle_urls for upload_bundle_fn.

- required -
- -
- -
- -
- - - -

- register_upload_batch_csv_fn - - -

-
register_upload_batch_csv_fn(
-    upload_batch_csv_fn: Callable[[str, str], None]
-)
-
- -
- -

For self-hosted mode only. Registers a function that handles batch text upload. This -function is called as

-
upload_batch_csv_fn(csv_text, csv_url)
-
-

This function should directly write the contents of csv_text as a text string into -csv_url.

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
upload_batch_csv_fn - Callable[[str, str], None] -

Function that takes in a csv text (string type), -and uploads that bundle to an appropriate location. Only needed for self-hosted mode.

- required -
- -
- -
- -
- - - -

- register_upload_bundle_fn - - -

-
register_upload_bundle_fn(
-    upload_bundle_fn: Callable[[str, str], None]
-)
-
- -
- -

For self-hosted mode only. Registers a function that handles model bundle upload. This -function is called as

-
upload_bundle_fn(serialized_bundle, bundle_url)
-
-

This function should directly write the contents of serialized_bundle as a -binary string into bundle_url.

-

See register_bundle_location_fn for more notes on the signature of upload_bundle_fn

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
upload_bundle_fn - Callable[[str, str], None] -

Function that takes in a serialized bundle (bytes type), -and uploads that bundle to an appropriate location. Only needed for self-hosted mode.

- required -
- -
- -
- - - -
- -
- -
- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/api/endpoint_predictions/index.html b/site/api/endpoint_predictions/index.html deleted file mode 100644 index 7b6df3fd..00000000 --- a/site/api/endpoint_predictions/index.html +++ /dev/null @@ -1,1116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - Endpoint Predictions - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - -

Endpoint Predictions

- - -
- - - -

- EndpointRequest - - -

-
EndpointRequest(
-    url: Optional[str] = None,
-    args: Optional[Dict] = None,
-    callback_url: Optional[str] = None,
-    callback_auth_kind: Optional[
-        Literal[basic, mtls]
-    ] = None,
-    callback_auth_username: Optional[str] = None,
-    callback_auth_password: Optional[str] = None,
-    callback_auth_cert: Optional[str] = None,
-    callback_auth_key: Optional[str] = None,
-    return_pickled: Optional[bool] = False,
-    request_id: Optional[str] = None,
-)
-
- -
- - -

Represents a single request to either a SyncEndpoint or AsyncEndpoint.

- -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
url - Optional[str] -

A url to some file that can be read in to a ModelBundle's predict function. Can be an image, raw text, etc. -Note: the contents of the file located at url are opened as a sequence of bytes and passed -to the predict function. If you instead want to pass the url itself as an input to the predict function, -see args.

-

Exactly one of url and args must be specified.

- None -
args - Optional[Dict] -

A Dictionary with arguments to a ModelBundle's predict function. If the predict function has signature -predict_fn(foo, bar), then the keys in the dictionary should be "foo" and "bar". -Values must be native Python objects.

-

Exactly one of url and args must be specified.

- None -
return_pickled - Optional[bool] -

Whether the output should be a pickled python object, or directly returned serialized json.

- False -
callback_url - Optional[str] -

The callback url to use for this task. If None, then the -default_callback_url of the endpoint is used. The endpoint must specify -"callback" as a post-inference hook for the callback to be triggered.

- None -
callback_auth_kind - Optional[Literal[basic, mtls]] -

The default callback auth kind to use for async endpoints. -Either "basic" or "mtls". This can be overridden in the task parameters for each -individual task.

- None -
callback_auth_username - Optional[str] -

The default callback auth username to use. This only -applies if callback_auth_kind is "basic". This can be overridden in the task -parameters for each individual task.

- None -
callback_auth_password - Optional[str] -

The default callback auth password to use. This only -applies if callback_auth_kind is "basic". This can be overridden in the task -parameters for each individual task.

- None -
callback_auth_cert - Optional[str] -

The default callback auth cert to use. This only applies -if callback_auth_kind is "mtls". This can be overridden in the task -parameters for each individual task.

- None -
callback_auth_key - Optional[str] -

The default callback auth key to use. This only applies -if callback_auth_kind is "mtls". This can be overridden in the task -parameters for each individual task.

- None -
request_id - Optional[str] -

(deprecated) A user-specifiable id for requests. -Should be unique among EndpointRequests made in the same batch call. -If one isn't provided the client will generate its own.

- None -
- - - - - -
- - - - - - - - - - - -
- -
- -
- -
- - - -

- EndpointResponse - - -

-
EndpointResponse(
-    client,
-    status: str,
-    result_url: Optional[str] = None,
-    result: Optional[str] = None,
-    traceback: Optional[str] = None,
-)
-
- -
- - -

Represents a response received from a Endpoint.

- - - -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
client -

An instance of LaunchClient.

- required -
status - str -

A string representing the status of the request, i.e. SUCCESS, FAILURE, or PENDING

- required -
result_url - Optional[str] -

A string that is a url containing the pickled python object from the -Endpoint's predict function.

-

Exactly one of result_url or result will be populated, -depending on the value of return_pickled in the request.

- None -
result - Optional[str] -

A string that is the serialized return value (in json form) of the Endpoint's predict function. -Specifically, one can json.loads() the value of result to get the original python object back.

-

Exactly one of result_url or result will be populated, -depending on the value of return_pickled in the request.

- None -
traceback - Optional[str] -

The stack trace if the inference endpoint raised an error. Can be used for debugging

- None -
- - - - -
- - - - - - - - - - - -
- -
- -
- -
- - - -

- EndpointResponseFuture - - -

-
EndpointResponseFuture(
-    client, endpoint_name: str, async_task_id: str
-)
-
- -
- - -

Represents a future response from an Endpoint. Specifically, when the EndpointResponseFuture is ready, -then its get method will return an actual instance of EndpointResponse.

-

This object should not be directly instantiated by the user.

- - - -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
client -

An instance of LaunchClient.

- required -
endpoint_name - str -

The name of the endpoint.

- required -
async_task_id - str -

An async task id.

- required -
- - - - -
- - - - - - - - - -
- - - -

- get - - -

-
get(timeout: Optional[float] = None) -> EndpointResponse
-
- -
- -

Retrieves the EndpointResponse for the prediction request after it completes. This method blocks.

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
timeout - Optional[float] -

The maximum number of seconds to wait for the response. If None, then -the method will block indefinitely until the response is ready.

- None -
- -
- -
- - - -
- -
- -
- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/api/hooks/index.html b/site/api/hooks/index.html deleted file mode 100644 index 7566017a..00000000 --- a/site/api/hooks/index.html +++ /dev/null @@ -1,679 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - Hooks - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - -

Hooks

- -
- - - -

- PostInferenceHooks - - -

- - -
-

- Bases: str, Enum

- - -

Post-inference hooks are functions that are called after inference is complete.

- -

Attributes:

- - - - - - - - - - - - - - - -
NameTypeDescription
CALLBACK - str -

The callback hook is called with the inference response and the task ID.

- - - - - -
- - - - - - - - - - - -
- -
- -
- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/api/model_bundles/index.html b/site/api/model_bundles/index.html deleted file mode 100644 index da2f184a..00000000 --- a/site/api/model_bundles/index.html +++ /dev/null @@ -1,980 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - Model Bundles - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - -

Model Bundles

- - -
- - - -

- ModelBundle - - - - dataclass - - -

- - -
- - -

Represents a ModelBundle.

- - - - - -
- - - - - - - -
- - - -

- app_config - - - - class-attribute - - -

-
app_config: Optional[Dict[Any, Any]] = None
-
- -
- -

An optional user-specified configuration mapping for the bundle.

-
- -
- -
- - - -

- env_params - - - - class-attribute - - -

-
env_params: Optional[Dict[str, str]] = None
-
- -
- -

A dictionary that dictates environment information. See LaunchClient.create_model_bundle -for more information.

-
- -
- -
- - - -

- id - - - - class-attribute - - -

-
id: Optional[str] = None
-
- -
- -

A globally unique identifier for the bundle.

-
- -
- -
- - - -

- location - - - - class-attribute - - -

-
location: Optional[str] = None
-
- -
- -

An opaque location for the bundle.

-
- -
- -
- - - -

- metadata - - - - class-attribute - - -

-
metadata: Optional[Dict[Any, Any]] = None
-
- -
- -

Arbitrary metadata for the bundle.

-
- -
- -
- - - -

- name - - - - class-attribute - - -

-
name: str
-
- -
- -

The name of the bundle. Must be unique across all bundles that the user owns.

-
- -
- -
- - - -

- packaging_type - - - - class-attribute - - -

-
packaging_type: Optional[str] = None
-
- -
- -

The packaging type for the bundle. Can be cloudpickle or zip.

-
- -
- -
- - - -

- requirements - - - - class-attribute - - -

-
requirements: Optional[List[str]] = None
-
- -
- -

A list of Python package requirements for the bundle. See LaunchClient.create_model_bundle -for more information.

-
- -
- - - - - -
- -
- -
- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/api/model_endpoints/index.html b/site/api/model_endpoints/index.html deleted file mode 100644 index 9f235bf9..00000000 --- a/site/api/model_endpoints/index.html +++ /dev/null @@ -1,1047 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - Model Endpoints - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - -

Model Endpoints

-

All classes here are returned by the -get_model_endpoint -method and provide a predict function.

- - -
- - - -

- AsyncEndpoint - - -

-
AsyncEndpoint(model_endpoint: ModelEndpoint, client)
-
- -
-

- Bases: Endpoint

- - -

An asynchronous model endpoint.

- - - -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
model_endpoint - ModelEndpoint -

ModelEndpoint object.

- required -
client -

A LaunchClient object

- required -
- - - - -
- - - - - - - - - -
- - - -

- predict - - -

-
predict(request: EndpointRequest) -> EndpointResponseFuture
-
- -
- -

Runs an asynchronous prediction request.

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
request - EndpointRequest -

The EndpointRequest object that contains the payload.

- required -
- -

Returns:

- - - - - - - - - - - - - - - - - - - - - -
Name TypeDescription
- EndpointResponseFuture -

An EndpointResponseFuture such the user can use to query the status of the request.

Example - EndpointResponseFuture -
- EndpointResponseFuture -

.. code-block:: python

-

my_endpoint = AsyncEndpoint(...) -f: EndpointResponseFuture = my_endpoint.predict(EndpointRequest(...)) -result = f.get() # blocks on completion

- -
- -
- -
- - - -

- predict_batch - - -

-
predict_batch(
-    requests: Sequence[EndpointRequest],
-) -> AsyncEndpointBatchResponse
-
- -
- -

(deprecated) -Runs inference on the data items specified by urls. Returns a AsyncEndpointResponse.

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
requests - Sequence[EndpointRequest] -

List of EndpointRequests. Request_ids must all be distinct.

- required -
- -

Returns:

- - - - - - - - - - - - - -
TypeDescription
- AsyncEndpointBatchResponse -

an AsyncEndpointResponse keeping track of the inference requests made

- -
- -
- - - -
- -
- -
- -
- - - -

- SyncEndpoint - - -

-
SyncEndpoint(model_endpoint: ModelEndpoint, client)
-
- -
-

- Bases: Endpoint

- - -

A synchronous model endpoint.

- - - -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
model_endpoint - ModelEndpoint -

ModelEndpoint object.

- required -
client -

A LaunchClient object

- required -
- - - - -
- - - - - - - - - -
- - - -

- predict - - -

-
predict(request: EndpointRequest) -> EndpointResponse
-
- -
- -

Runs a synchronous prediction request.

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
request - EndpointRequest -

The EndpointRequest object that contains the payload.

- required -
- -
- -
- - - -
- -
- -
- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/assets/_mkdocstrings.css b/site/assets/_mkdocstrings.css deleted file mode 100644 index a65078d0..00000000 --- a/site/assets/_mkdocstrings.css +++ /dev/null @@ -1,36 +0,0 @@ - -/* Don't capitalize names. */ -h5.doc-heading { - text-transform: none !important; -} - -/* Avoid breaking parameters name, etc. in table cells. */ -.doc-contents td code { - word-break: normal !important; -} - -/* For pieces of Markdown rendered in table cells. */ -.doc-contents td p { - margin-top: 0 !important; - margin-bottom: 0 !important; -} - -/* Max width for docstring sections tables. */ -.doc .md-typeset__table, -.doc .md-typeset__table table { - display: table !important; - width: 100%; -} -.doc .md-typeset__table tr { - display: table-row; -} - -/* Avoid line breaks in rendered fields. */ -.field-body p { - display: inline; -} - -/* Defaults in Spacy table style. */ -.doc-param-default { - float: right; -} diff --git a/site/assets/images/favicon.png b/site/assets/images/favicon.png deleted file mode 100644 index 1cf13b9f9d978896599290a74f77d5dbe7d1655c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1870 zcmV-U2eJ5xP)Gc)JR9QMau)O=X#!i9;T z37kk-upj^(fsR36MHs_+1RCI)NNu9}lD0S{B^g8PN?Ww(5|~L#Ng*g{WsqleV}|#l zz8@ri&cTzw_h33bHI+12+kK6WN$h#n5cD8OQt`5kw6p~9H3()bUQ8OS4Q4HTQ=1Ol z_JAocz`fLbT2^{`8n~UAo=#AUOf=SOq4pYkt;XbC&f#7lb$*7=$na!mWCQ`dBQsO0 zLFBSPj*N?#u5&pf2t4XjEGH|=pPQ8xh7tpx;US5Cx_Ju;!O`ya-yF`)b%TEt5>eP1ZX~}sjjA%FJF?h7cX8=b!DZl<6%Cv z*G0uvvU+vmnpLZ2paivG-(cd*y3$hCIcsZcYOGh{$&)A6*XX&kXZd3G8m)G$Zz-LV z^GF3VAW^Mdv!)4OM8EgqRiz~*Cji;uzl2uC9^=8I84vNp;ltJ|q-*uQwGp2ma6cY7 z;`%`!9UXO@fr&Ebapfs34OmS9^u6$)bJxrucutf>`dKPKT%%*d3XlFVKunp9 zasduxjrjs>f8V=D|J=XNZp;_Zy^WgQ$9WDjgY=z@stwiEBm9u5*|34&1Na8BMjjgf3+SHcr`5~>oz1Y?SW^=K z^bTyO6>Gar#P_W2gEMwq)ot3; zREHn~U&Dp0l6YT0&k-wLwYjb?5zGK`W6S2v+K>AM(95m2C20L|3m~rN8dprPr@t)5lsk9Hu*W z?pS990s;Ez=+Rj{x7p``4>+c0G5^pYnB1^!TL=(?HLHZ+HicG{~4F1d^5Awl_2!1jICM-!9eoLhbbT^;yHcefyTAaqRcY zmuctDopPT!%k+}x%lZRKnzykr2}}XfG_ne?nRQO~?%hkzo;@RN{P6o`&mMUWBYMTe z6i8ChtjX&gXl`nvrU>jah)2iNM%JdjqoaeaU%yVn!^70x-flljp6Q5tK}5}&X8&&G zX3fpb3E(!rH=zVI_9Gjl45w@{(ITqngWFe7@9{mX;tO25Z_8 zQHEpI+FkTU#4xu>RkN>b3Tnc3UpWzPXWm#o55GKF09j^Mh~)K7{QqbO_~(@CVq! zS<8954|P8mXN2MRs86xZ&Q4EfM@JB94b=(YGuk)s&^jiSF=t3*oNK3`rD{H`yQ?d; ztE=laAUoZx5?RC8*WKOj`%LXEkgDd>&^Q4M^z`%u0rg-It=hLCVsq!Z%^6eB-OvOT zFZ28TN&cRmgU}Elrnk43)!>Z1FCPL2K$7}gwzIc48NX}#!A1BpJP?#v5wkNprhV** z?Cpalt1oH&{r!o3eSKc&ap)iz2BTn_VV`4>9M^b3;(YY}4>#ML6{~(4mH+?%07*qo IM6N<$f(jP3KmY&$ diff --git a/site/assets/javascripts/bundle.2a6f1dda.min.js b/site/assets/javascripts/bundle.2a6f1dda.min.js deleted file mode 100644 index 2f912a0b..00000000 --- a/site/assets/javascripts/bundle.2a6f1dda.min.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict";(()=>{var Hi=Object.create;var xr=Object.defineProperty;var Pi=Object.getOwnPropertyDescriptor;var $i=Object.getOwnPropertyNames,Ht=Object.getOwnPropertySymbols,Ii=Object.getPrototypeOf,Er=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable;var on=(e,t,r)=>t in e?xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))Er.call(t,r)&&on(e,r,t[r]);if(Ht)for(var r of Ht(t))an.call(t,r)&&on(e,r,t[r]);return e};var sn=(e,t)=>{var r={};for(var n in e)Er.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ht)for(var n of Ht(e))t.indexOf(n)<0&&an.call(e,n)&&(r[n]=e[n]);return r};var Pt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Fi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $i(t))!Er.call(e,o)&&o!==r&&xr(e,o,{get:()=>t[o],enumerable:!(n=Pi(t,o))||n.enumerable});return e};var yt=(e,t,r)=>(r=e!=null?Hi(Ii(e)):{},Fi(t||!e||!e.__esModule?xr(r,"default",{value:e,enumerable:!0}):r,e));var fn=Pt((wr,cn)=>{(function(e,t){typeof wr=="object"&&typeof cn!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(wr,function(){"use strict";function e(r){var n=!0,o=!1,i=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function a(O){return!!(O&&O!==document&&O.nodeName!=="HTML"&&O.nodeName!=="BODY"&&"classList"in O&&"contains"in O.classList)}function f(O){var Ke=O.type,De=O.tagName;return!!(De==="INPUT"&&s[Ke]&&!O.readOnly||De==="TEXTAREA"&&!O.readOnly||O.isContentEditable)}function c(O){O.classList.contains("focus-visible")||(O.classList.add("focus-visible"),O.setAttribute("data-focus-visible-added",""))}function u(O){O.hasAttribute("data-focus-visible-added")&&(O.classList.remove("focus-visible"),O.removeAttribute("data-focus-visible-added"))}function p(O){O.metaKey||O.altKey||O.ctrlKey||(a(r.activeElement)&&c(r.activeElement),n=!0)}function m(O){n=!1}function d(O){a(O.target)&&(n||f(O.target))&&c(O.target)}function h(O){a(O.target)&&(O.target.classList.contains("focus-visible")||O.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(O.target))}function v(O){document.visibilityState==="hidden"&&(o&&(n=!0),B())}function B(){document.addEventListener("mousemove",z),document.addEventListener("mousedown",z),document.addEventListener("mouseup",z),document.addEventListener("pointermove",z),document.addEventListener("pointerdown",z),document.addEventListener("pointerup",z),document.addEventListener("touchmove",z),document.addEventListener("touchstart",z),document.addEventListener("touchend",z)}function ne(){document.removeEventListener("mousemove",z),document.removeEventListener("mousedown",z),document.removeEventListener("mouseup",z),document.removeEventListener("pointermove",z),document.removeEventListener("pointerdown",z),document.removeEventListener("pointerup",z),document.removeEventListener("touchmove",z),document.removeEventListener("touchstart",z),document.removeEventListener("touchend",z)}function z(O){O.target.nodeName&&O.target.nodeName.toLowerCase()==="html"||(n=!1,ne())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",v,!0),B(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var un=Pt(Sr=>{(function(e){var t=function(){try{return!!Symbol.iterator}catch(c){return!1}},r=t(),n=function(c){var u={next:function(){var p=c.shift();return{done:p===void 0,value:p}}};return r&&(u[Symbol.iterator]=function(){return u}),u},o=function(c){return encodeURIComponent(c).replace(/%20/g,"+")},i=function(c){return decodeURIComponent(String(c).replace(/\+/g," "))},s=function(){var c=function(p){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var m=typeof p;if(m!=="undefined")if(m==="string")p!==""&&this._fromString(p);else if(p instanceof c){var d=this;p.forEach(function(ne,z){d.append(z,ne)})}else if(p!==null&&m==="object")if(Object.prototype.toString.call(p)==="[object Array]")for(var h=0;hd[0]?1:0}),c._entries&&(c._entries={});for(var p=0;p1?i(d[1]):"")}})})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Sr);(function(e){var t=function(){try{var o=new e.URL("b","http://a");return o.pathname="c d",o.href==="http://a/c%20d"&&o.searchParams}catch(i){return!1}},r=function(){var o=e.URL,i=function(f,c){typeof f!="string"&&(f=String(f)),c&&typeof c!="string"&&(c=String(c));var u=document,p;if(c&&(e.location===void 0||c!==e.location.href)){c=c.toLowerCase(),u=document.implementation.createHTMLDocument(""),p=u.createElement("base"),p.href=c,u.head.appendChild(p);try{if(p.href.indexOf(c)!==0)throw new Error(p.href)}catch(O){throw new Error("URL unable to set base "+c+" due to "+O)}}var m=u.createElement("a");m.href=f,p&&(u.body.appendChild(m),m.href=m.href);var d=u.createElement("input");if(d.type="url",d.value=f,m.protocol===":"||!/:/.test(m.href)||!d.checkValidity()&&!c)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:m});var h=new e.URLSearchParams(this.search),v=!0,B=!0,ne=this;["append","delete","set"].forEach(function(O){var Ke=h[O];h[O]=function(){Ke.apply(h,arguments),v&&(B=!1,ne.search=h.toString(),B=!0)}}),Object.defineProperty(this,"searchParams",{value:h,enumerable:!0});var z=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==z&&(z=this.search,B&&(v=!1,this.searchParams._fromString(this.search),v=!0))}})},s=i.prototype,a=function(f){Object.defineProperty(s,f,{get:function(){return this._anchorElement[f]},set:function(c){this._anchorElement[f]=c},enumerable:!0})};["hash","host","hostname","port","protocol"].forEach(function(f){a(f)}),Object.defineProperty(s,"search",{get:function(){return this._anchorElement.search},set:function(f){this._anchorElement.search=f,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(s,{toString:{get:function(){var f=this;return function(){return f.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(f){this._anchorElement.href=f,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(f){this._anchorElement.pathname=f},enumerable:!0},origin:{get:function(){var f={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],c=this._anchorElement.port!=f&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(c?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(f){},enumerable:!0},username:{get:function(){return""},set:function(f){},enumerable:!0}}),i.createObjectURL=function(f){return o.createObjectURL.apply(o,arguments)},i.revokeObjectURL=function(f){return o.revokeObjectURL.apply(o,arguments)},e.URL=i};if(t()||r(),e.location!==void 0&&!("origin"in e.location)){var n=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:n,enumerable:!0})}catch(o){setInterval(function(){e.location.origin=n()},100)}}})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Sr)});var Qr=Pt((Lt,Kr)=>{/*! - * clipboard.js v2.0.11 - * https://clipboardjs.com/ - * - * Licensed MIT © Zeno Rocha - */(function(t,r){typeof Lt=="object"&&typeof Kr=="object"?Kr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Lt=="object"?Lt.ClipboardJS=r():t.ClipboardJS=r()})(Lt,function(){return function(){var e={686:function(n,o,i){"use strict";i.d(o,{default:function(){return ki}});var s=i(279),a=i.n(s),f=i(370),c=i.n(f),u=i(817),p=i.n(u);function m(j){try{return document.execCommand(j)}catch(T){return!1}}var d=function(T){var w=p()(T);return m("cut"),w},h=d;function v(j){var T=document.documentElement.getAttribute("dir")==="rtl",w=document.createElement("textarea");w.style.fontSize="12pt",w.style.border="0",w.style.padding="0",w.style.margin="0",w.style.position="absolute",w.style[T?"right":"left"]="-9999px";var k=window.pageYOffset||document.documentElement.scrollTop;return w.style.top="".concat(k,"px"),w.setAttribute("readonly",""),w.value=j,w}var B=function(T,w){var k=v(T);w.container.appendChild(k);var F=p()(k);return m("copy"),k.remove(),F},ne=function(T){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},k="";return typeof T=="string"?k=B(T,w):T instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(T==null?void 0:T.type)?k=B(T.value,w):(k=p()(T),m("copy")),k},z=ne;function O(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(w){return typeof w}:O=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},O(j)}var Ke=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=T.action,k=w===void 0?"copy":w,F=T.container,q=T.target,Le=T.text;if(k!=="copy"&&k!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(q!==void 0)if(q&&O(q)==="object"&&q.nodeType===1){if(k==="copy"&&q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(k==="cut"&&(q.hasAttribute("readonly")||q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Le)return z(Le,{container:F});if(q)return k==="cut"?h(q):z(q,{container:F})},De=Ke;function Fe(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(w){return typeof w}:Fe=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},Fe(j)}function Oi(j,T){if(!(j instanceof T))throw new TypeError("Cannot call a class as a function")}function nn(j,T){for(var w=0;w0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof F.action=="function"?F.action:this.defaultAction,this.target=typeof F.target=="function"?F.target:this.defaultTarget,this.text=typeof F.text=="function"?F.text:this.defaultText,this.container=Fe(F.container)==="object"?F.container:document.body}},{key:"listenClick",value:function(F){var q=this;this.listener=c()(F,"click",function(Le){return q.onClick(Le)})}},{key:"onClick",value:function(F){var q=F.delegateTarget||F.currentTarget,Le=this.action(q)||"copy",kt=De({action:Le,container:this.container,target:this.target(q),text:this.text(q)});this.emit(kt?"success":"error",{action:Le,text:kt,trigger:q,clearSelection:function(){q&&q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(F){return yr("action",F)}},{key:"defaultTarget",value:function(F){var q=yr("target",F);if(q)return document.querySelector(q)}},{key:"defaultText",value:function(F){return yr("text",F)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(F){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return z(F,q)}},{key:"cut",value:function(F){return h(F)}},{key:"isSupported",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],q=typeof F=="string"?[F]:F,Le=!!document.queryCommandSupported;return q.forEach(function(kt){Le=Le&&!!document.queryCommandSupported(kt)}),Le}}]),w}(a()),ki=Ri},828:function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function s(a,f){for(;a&&a.nodeType!==o;){if(typeof a.matches=="function"&&a.matches(f))return a;a=a.parentNode}}n.exports=s},438:function(n,o,i){var s=i(828);function a(u,p,m,d,h){var v=c.apply(this,arguments);return u.addEventListener(m,v,h),{destroy:function(){u.removeEventListener(m,v,h)}}}function f(u,p,m,d,h){return typeof u.addEventListener=="function"?a.apply(null,arguments):typeof m=="function"?a.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return a(v,p,m,d,h)}))}function c(u,p,m,d){return function(h){h.delegateTarget=s(h.target,p),h.delegateTarget&&d.call(u,h)}}n.exports=f},879:function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var s=Object.prototype.toString.call(i);return i!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var s=Object.prototype.toString.call(i);return s==="[object Function]"}},370:function(n,o,i){var s=i(879),a=i(438);function f(m,d,h){if(!m&&!d&&!h)throw new Error("Missing required arguments");if(!s.string(d))throw new TypeError("Second argument must be a String");if(!s.fn(h))throw new TypeError("Third argument must be a Function");if(s.node(m))return c(m,d,h);if(s.nodeList(m))return u(m,d,h);if(s.string(m))return p(m,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(m,d,h){return m.addEventListener(d,h),{destroy:function(){m.removeEventListener(d,h)}}}function u(m,d,h){return Array.prototype.forEach.call(m,function(v){v.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(m,function(v){v.removeEventListener(d,h)})}}}function p(m,d,h){return a(document.body,m,d,h)}n.exports=f},817:function(n){function o(i){var s;if(i.nodeName==="SELECT")i.focus(),s=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var a=i.hasAttribute("readonly");a||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),a||i.removeAttribute("readonly"),s=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var f=window.getSelection(),c=document.createRange();c.selectNodeContents(i),f.removeAllRanges(),f.addRange(c),s=f.toString()}return s}n.exports=o},279:function(n){function o(){}o.prototype={on:function(i,s,a){var f=this.e||(this.e={});return(f[i]||(f[i]=[])).push({fn:s,ctx:a}),this},once:function(i,s,a){var f=this;function c(){f.off(i,c),s.apply(a,arguments)}return c._=s,this.on(i,c,a)},emit:function(i){var s=[].slice.call(arguments,1),a=((this.e||(this.e={}))[i]||[]).slice(),f=0,c=a.length;for(f;f{"use strict";/*! - * escape-html - * Copyright(c) 2012-2013 TJ Holowaychuk - * Copyright(c) 2015 Andreas Lubbe - * Copyright(c) 2015 Tiancheng "Timothy" Gu - * MIT Licensed - */var is=/["'&<>]/;Jo.exports=as;function as(e){var t=""+e,r=is.exec(t);if(!r)return t;var n,o="",i=0,s=0;for(i=r.index;i0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function D(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||a(m,d)})})}function a(m,d){try{f(n[m](d))}catch(h){p(i[0][3],h)}}function f(m){m.value instanceof Ze?Promise.resolve(m.value.v).then(c,u):p(i[0][2],m)}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,d){m(d),i.shift(),i.length&&a(i[0][0],i[0][1])}}function mn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof xe=="function"?xe(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,f){s=e[i](s),o(a,f,s.done,s.value)})}}function o(i,s,a,f){Promise.resolve(f).then(function(c){i({value:c,done:a})},s)}}function A(e){return typeof e=="function"}function at(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var It=at(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: -`+r.map(function(n,o){return o+1+") "+n.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=r}});function Ve(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var je=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=xe(s),f=a.next();!f.done;f=a.next()){var c=f.value;c.remove(this)}}catch(v){t={error:v}}finally{try{f&&!f.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(A(u))try{u()}catch(v){i=v instanceof It?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var m=xe(p),d=m.next();!d.done;d=m.next()){var h=d.value;try{dn(h)}catch(v){i=i!=null?i:[],v instanceof It?i=D(D([],W(i)),W(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}}if(i)throw new It(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)dn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Ve(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ve(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Tr=je.EMPTY;function Ft(e){return e instanceof je||e&&"closed"in e&&A(e.remove)&&A(e.add)&&A(e.unsubscribe)}function dn(e){A(e)?e():e.unsubscribe()}var Ae={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var st={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Tr:(this.currentObservers=null,a.push(r),new je(function(){n.currentObservers=null,Ve(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new U;return r.source=this,r},t.create=function(r,n){return new wn(r,n)},t}(U);var wn=function(e){ie(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Tr},t}(E);var Et={now:function(){return(Et.delegate||Date).now()},delegate:void 0};var wt=function(e){ie(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Et);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,f=n._windowTime;o||(i.push(r),!s&&i.push(a.now()+f)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),f=0;f0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=ut.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var s=r.actions;n!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==n&&(ut.cancelAnimationFrame(n),r._scheduled=void 0)},t}(Wt);var Tn=function(e){ie(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t}(Dt);var we=new Tn(On);var R=new U(function(e){return e.complete()});function Vt(e){return e&&A(e.schedule)}function kr(e){return e[e.length-1]}function Qe(e){return A(kr(e))?e.pop():void 0}function Se(e){return Vt(kr(e))?e.pop():void 0}function zt(e,t){return typeof kr(e)=="number"?e.pop():t}var pt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Nt(e){return A(e==null?void 0:e.then)}function qt(e){return A(e[ft])}function Kt(e){return Symbol.asyncIterator&&A(e==null?void 0:e[Symbol.asyncIterator])}function Qt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ki(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Yt=Ki();function Gt(e){return A(e==null?void 0:e[Yt])}function Bt(e){return ln(this,arguments,function(){var r,n,o,i;return $t(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Ze(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,Ze(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Ze(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Jt(e){return A(e==null?void 0:e.getReader)}function $(e){if(e instanceof U)return e;if(e!=null){if(qt(e))return Qi(e);if(pt(e))return Yi(e);if(Nt(e))return Gi(e);if(Kt(e))return _n(e);if(Gt(e))return Bi(e);if(Jt(e))return Ji(e)}throw Qt(e)}function Qi(e){return new U(function(t){var r=e[ft]();if(A(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Yi(e){return new U(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?_(function(o,i){return e(o,i,n)}):de,Te(1),r?Pe(t):zn(function(){return new Zt}))}}function Nn(){for(var e=[],t=0;t=2,!0))}function ue(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new E}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,s=i===void 0?!0:i,a=e.resetOnRefCountZero,f=a===void 0?!0:a;return function(c){var u,p,m,d=0,h=!1,v=!1,B=function(){p==null||p.unsubscribe(),p=void 0},ne=function(){B(),u=m=void 0,h=v=!1},z=function(){var O=u;ne(),O==null||O.unsubscribe()};return g(function(O,Ke){d++,!v&&!h&&B();var De=m=m!=null?m:r();Ke.add(function(){d--,d===0&&!v&&!h&&(p=jr(z,f))}),De.subscribe(Ke),!u&&d>0&&(u=new tt({next:function(Fe){return De.next(Fe)},error:function(Fe){v=!0,B(),p=jr(ne,o,Fe),De.error(Fe)},complete:function(){h=!0,B(),p=jr(ne,s),De.complete()}}),$(O).subscribe(u))})(c)}}function jr(e,t){for(var r=[],n=2;ne.next(document)),e}function K(e,t=document){return Array.from(t.querySelectorAll(e))}function V(e,t=document){let r=ce(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function ce(e,t=document){return t.querySelector(e)||void 0}function _e(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function rr(e){return L(b(document.body,"focusin"),b(document.body,"focusout")).pipe(He(1),l(()=>{let t=_e();return typeof t!="undefined"?e.contains(t):!1}),N(e===_e()),G())}function Je(e){return{x:e.offsetLeft,y:e.offsetTop}}function Yn(e){return L(b(window,"load"),b(window,"resize")).pipe(Re(0,we),l(()=>Je(e)),N(Je(e)))}function nr(e){return{x:e.scrollLeft,y:e.scrollTop}}function dt(e){return L(b(e,"scroll"),b(window,"resize")).pipe(Re(0,we),l(()=>nr(e)),N(nr(e)))}var Bn=function(){if(typeof Map!="undefined")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!zr||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),xa?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!zr||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=ya.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Jn=function(e,t){for(var r=0,n=Object.keys(t);r0},e}(),Zn=typeof WeakMap!="undefined"?new WeakMap:new Bn,eo=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Ea.getInstance(),n=new Ra(t,r,this);Zn.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){eo.prototype[e]=function(){var t;return(t=Zn.get(this))[e].apply(t,arguments)}});var ka=function(){return typeof or.ResizeObserver!="undefined"?or.ResizeObserver:eo}(),to=ka;var ro=new E,Ha=I(()=>H(new to(e=>{for(let t of e)ro.next(t)}))).pipe(x(e=>L(Oe,H(e)).pipe(C(()=>e.disconnect()))),J(1));function he(e){return{width:e.offsetWidth,height:e.offsetHeight}}function ge(e){return Ha.pipe(S(t=>t.observe(e)),x(t=>ro.pipe(_(({target:r})=>r===e),C(()=>t.unobserve(e)),l(()=>he(e)))),N(he(e)))}function bt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function sr(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}var no=new E,Pa=I(()=>H(new IntersectionObserver(e=>{for(let t of e)no.next(t)},{threshold:0}))).pipe(x(e=>L(Oe,H(e)).pipe(C(()=>e.disconnect()))),J(1));function cr(e){return Pa.pipe(S(t=>t.observe(e)),x(t=>no.pipe(_(({target:r})=>r===e),C(()=>t.unobserve(e)),l(({isIntersecting:r})=>r))))}function oo(e,t=16){return dt(e).pipe(l(({y:r})=>{let n=he(e),o=bt(e);return r>=o.height-n.height-t}),G())}var fr={drawer:V("[data-md-toggle=drawer]"),search:V("[data-md-toggle=search]")};function io(e){return fr[e].checked}function qe(e,t){fr[e].checked!==t&&fr[e].click()}function Ue(e){let t=fr[e];return b(t,"change").pipe(l(()=>t.checked),N(t.checked))}function $a(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function Ia(){return L(b(window,"compositionstart").pipe(l(()=>!0)),b(window,"compositionend").pipe(l(()=>!1))).pipe(N(!1))}function ao(){let e=b(window,"keydown").pipe(_(t=>!(t.metaKey||t.ctrlKey)),l(t=>({mode:io("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),_(({mode:t,type:r})=>{if(t==="global"){let n=_e();if(typeof n!="undefined")return!$a(n,r)}return!0}),ue());return Ia().pipe(x(t=>t?R:e))}function Me(){return new URL(location.href)}function ot(e){location.href=e.href}function so(){return new E}function co(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)co(e,r)}function M(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)co(n,o);return n}function ur(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function fo(){return location.hash.substring(1)}function uo(e){let t=M("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Fa(){return b(window,"hashchange").pipe(l(fo),N(fo()),_(e=>e.length>0),J(1))}function po(){return Fa().pipe(l(e=>ce(`[id="${e}"]`)),_(e=>typeof e!="undefined"))}function Nr(e){let t=matchMedia(e);return er(r=>t.addListener(()=>r(t.matches))).pipe(N(t.matches))}function lo(){let e=matchMedia("print");return L(b(window,"beforeprint").pipe(l(()=>!0)),b(window,"afterprint").pipe(l(()=>!1))).pipe(N(e.matches))}function qr(e,t){return e.pipe(x(r=>r?t():R))}function pr(e,t={credentials:"same-origin"}){return pe(fetch(`${e}`,t)).pipe(fe(()=>R),x(r=>r.status!==200?Ot(()=>new Error(r.statusText)):H(r)))}function We(e,t){return pr(e,t).pipe(x(r=>r.json()),J(1))}function mo(e,t){let r=new DOMParser;return pr(e,t).pipe(x(n=>n.text()),l(n=>r.parseFromString(n,"text/xml")),J(1))}function lr(e){let t=M("script",{src:e});return I(()=>(document.head.appendChild(t),L(b(t,"load"),b(t,"error").pipe(x(()=>Ot(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(l(()=>{}),C(()=>document.head.removeChild(t)),Te(1))))}function ho(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function bo(){return L(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(l(ho),N(ho()))}function vo(){return{width:innerWidth,height:innerHeight}}function go(){return b(window,"resize",{passive:!0}).pipe(l(vo),N(vo()))}function yo(){return Q([bo(),go()]).pipe(l(([e,t])=>({offset:e,size:t})),J(1))}function mr(e,{viewport$:t,header$:r}){let n=t.pipe(X("size")),o=Q([n,r]).pipe(l(()=>Je(e)));return Q([r,t,o]).pipe(l(([{height:i},{offset:s,size:a},{x:f,y:c}])=>({offset:{x:s.x-f,y:s.y-c+i},size:a})))}(()=>{function e(n,o){parent.postMessage(n,o||"*")}function t(...n){return n.reduce((o,i)=>o.then(()=>new Promise(s=>{let a=document.createElement("script");a.src=i,a.onload=s,document.body.appendChild(a)})),Promise.resolve())}var r=class extends EventTarget{constructor(n){super(),this.url=n,this.m=i=>{i.source===this.w&&(this.dispatchEvent(new MessageEvent("message",{data:i.data})),this.onmessage&&this.onmessage(i))},this.e=(i,s,a,f,c)=>{if(s===`${this.url}`){let u=new ErrorEvent("error",{message:i,filename:s,lineno:a,colno:f,error:c});this.dispatchEvent(u),this.onerror&&this.onerror(u)}};let o=document.createElement("iframe");o.hidden=!0,document.body.appendChild(this.iframe=o),this.w.document.open(),this.w.document.write(` - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - -

CLI

- -

Launch comes with a CLI for listing bundles / endpoints, editing endpoints, -and sending tasks to endpoints.

-

The CLI can be used as scale-launch ....

-

Help

-

Run scale-launch --help for more options.

-
scale-launch --help
    This is the command line interface (CLI) package for Scale Launch.
-
-       ██╗      █████╗ ██╗   ██╗███╗   ██╗ ██████╗██╗  ██╗
-       ██║     ██╔══██╗██║   ██║████╗  ██║██╔════╝██║  ██║
-       ██║     ███████║██║   ██║██╔██╗ ██║██║     ███████║
-       ██║     ██╔══██║██║   ██║██║╚██╗██║██║     ██╔══██║
-       ███████╗██║  ██║╚██████╔╝██║ ╚████║╚██████╗██║  ██║
-       ╚══════╝╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═══╝ ╚═════╝╚═╝  ╚═╝
-
-Usage: scale-launch [OPTIONS] COMMAND [ARGS]...
-
-Options:
-  --help  Show this message and exit.
-
-Commands:
-  batch-jobs  Batch Jobs is a wrapper around batch jobs in Scale Launch
-  bundles     Bundles is a wrapper around model bundles in Scale Launch
-  config      Config is a wrapper around getting and setting your API key and other configuration options
-  endpoints   Endpoints is a wrapper around model endpoints in Scale Launch
-  tasks       Tasks is a wrapper around sending requests to endpoints
-
- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/concepts/batch_jobs/index.html b/site/concepts/batch_jobs/index.html deleted file mode 100644 index f90b1ef1..00000000 --- a/site/concepts/batch_jobs/index.html +++ /dev/null @@ -1,616 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - Batch Jobs - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - -

Batch Jobs

-

For predicting over a larger set of tasks (> 50) at once, it is recommended to -use batch jobs. Batch jobs are a way to send a large number of tasks to a model -bundle. The tasks are processed in parallel, and the results are returned as a -list of predictions.

-

Batch jobs are created using the -batch_async_request -method of the -LaunchClient.

-
Creating and Following a Batch Job
import os
-import time
-from launch import LaunchClient
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-batch_job = client.batch_async_request(
-    model_bundle="test-bundle",
-    inputs=[
-        {"x": 2, "y": "hello"},
-        {"x": 3, "y": "world"},
-    ],
-    labels={
-        "team": "MY_TEAM",
-        "product": "MY_PRODUCT",
-    }
-)
-
-status = "PENDING"
-res = None
-while status != "SUCCESS" and status != "FAILURE" and status != "CANCELLED":
-    time.sleep(30)
-    res = client.get_batch_async_response(batch_job["job_id"])
-    status = res["status"]
-    print(f"the batch job is {status}")
-
-print(res)
-
- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/concepts/callbacks/index.html b/site/concepts/callbacks/index.html deleted file mode 100644 index 0ee63def..00000000 --- a/site/concepts/callbacks/index.html +++ /dev/null @@ -1,781 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - Callbacks - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - -

Callbacks

-

Async model endpoints can be configured to send callbacks to a user-defined -callback URL. Callbacks are sent as HTTP POST requests with a JSON body. The -following code snippet shows how to create an async model endpoint with a -callback URL.

-

To configure an async endpoint to send callbacks, set the post_inference_hooks -field to include -launch.PostInferenceHooks.CALLBACK. -A callback URL also needs to be specified, and it can be configured as a default -using the default_callback_url argument to -launch.LaunchClient.create_model_endpoint -or as a per-task override using the callback_url field of -launch.EndpointRequest.

-
-

Note

-

Callbacks will not be sent if the endpoint does not have any post-inference -hooks specified, even if a default_callback_url is provided to the endpoint -creation method or if the prediction request has a callback_url override.

-
-
Creating an Async Model Endpoint with a Callback URL
import os
-import time
-from launch import EndpointRequest, LaunchClient, PostInferenceHooks
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-endpoint = client.create_model_endpoint(
-    endpoint_name="demo-endpoint-callback",
-    model_bundle="test-bundle",
-    cpus=1,
-    min_workers=1,
-    endpoint_type="async",
-    update_if_exists=True,
-    labels={
-        "team": "MY_TEAM",
-        "product": "MY_PRODUCT",
-    },
-    post_inference_hooks=[PostInferenceHooks.CALLBACK],
-    default_callback_url="https://example.com",
-)
-
-while endpoint.status() != "READY":
-    time.sleep(10)
-
-future_default = endpoint.predict(
-    request=EndpointRequest(args={"x": 2, "y": "hello"})
-)
-"""
-A callback is sent to https://example.com with the following JSON body:
-{
-    "task_id": "THE_TASK_ID",
-    "result": 7
-}
-"""
-
-future_custom_callback_url = endpoint.predict(
-    request=EndpointRequest(
-        args={"x": 3, "y": "hello"}, callback_url="https://example.com/custom"
-    ),
-)
-
-"""
-A callback is sent to https://example.com/custom with the following JSON body:
-{
-    "task_id": "THE_TASK_ID",
-    "result": 8
-}
-"""
-
-

Authentication for callbacks

-
-

Warning

-

This feature is currently in beta, and the API is likely to change.

-
-

Callbacks can be authenticated using shared authentication headers. To enable authentication, -set either default_callback_auth_kind when creating the endpoint or callback_auth_kind -when making a prediction request.

-

Currently, the supported authentication methods are basic and mtls. If basic is used, -then the default_callback_auth_username and default_callback_auth_password fields must be -specified when creating the endpoint, or the callback_auth_username and callback_auth_password -fields must be specified when making a prediction request. If mtls is used, then the -same is true for the default_callback_auth_cert and default_callback_auth_key fields, -or the callback_auth_cert and callback_auth_key fields.

-
Creating an Async Model Endpoint with custom Callback auth
import os
-import time
-from launch import EndpointRequest, LaunchClient, PostInferenceHooks
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-endpoint = client.create_model_endpoint(
-    endpoint_name="demo-endpoint-callback",
-    model_bundle="test-bundle",
-    cpus=1,
-    min_workers=1,
-    endpoint_type="async",
-    update_if_exists=True,
-    labels={
-        "team": "MY_TEAM",
-        "product": "MY_PRODUCT",
-    },
-    post_inference_hooks=[PostInferenceHooks.CALLBACK],
-    default_callback_url="https://example.com",
-    default_callback_auth_kind="basic",
-    default_callback_auth_username="user",
-    default_callback_auth_password="password",
-)
-
-while endpoint.status() != "READY":
-    time.sleep(10)
-
-future_default = endpoint.predict(
-    request=EndpointRequest(args={"x": 2, "y": "hello"})
-)
-"""
-A callback is sent to https://example.com with ("user", "password") as the basic auth.
-"""
-
-future_custom_callback_auth = endpoint.predict(
-    request=EndpointRequest(
-        args={"x": 3, "y": "hello"},
-        callback_auth_kind="mtls", 
-        callback_auth_cert="cert", 
-        callback_auth_key="key",
-    ),
-)
-"""
-A callback is sent with mTLS authentication.
-"""
-
-client.edit_model_endpoint(
-    model_endpoint=endpoint.model_endpoint,
-    default_callback_auth_kind="mtls",
-    default_callback_auth_cert="cert",
-    default_callback_auth_key="key",
-)
-
-while endpoint.status() != "READY":
-    time.sleep(10)
-
-future_default = endpoint.predict(
-    request=EndpointRequest(args={"x": 2, "y": "hello"})
-)
-"""
-A callback is sent with mTLS auth.
-"""
-
-future_custom_callback_auth = endpoint.predict(
-    request=EndpointRequest(
-        args={"x": 3, "y": "hello"},
-        callback_auth_kind="basic",
-        callback_auth_username="user",
-        callback_auth_password="pass",
-    ),
-)
-"""
-A callback is sent with ("user", "pass") as the basic auth.
-"""
-
- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/concepts/endpoint_predictions/index.html b/site/concepts/endpoint_predictions/index.html deleted file mode 100644 index 65e10247..00000000 --- a/site/concepts/endpoint_predictions/index.html +++ /dev/null @@ -1,1143 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - Endpoint Predictions - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - -

Endpoint Predictions

-

Once endpoints have been created, users can send tasks to them to make -predictions. The following code snippet shows how to send tasks to endpoints.

-
-
-
-
import os
-from launch import EndpointRequest, LaunchClient
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-endpoint = client.get_model_endpoint("demo-endpoint-async")
-future = endpoint.predict(request=EndpointRequest(args={"x": 2, "y": "hello"}))
-response = future.get()
-print(response)
-
-
-
-
import os
-from launch import EndpointRequest, LaunchClient
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-endpoint = client.get_model_endpoint("demo-endpoint-sync")
-response = endpoint.predict(request=EndpointRequest(args={"x": 2, "y": "hello"}))
-print(response)
-
-
-
-
- - -
- - - -

- EndpointRequest - - -

-
EndpointRequest(
-    url: Optional[str] = None,
-    args: Optional[Dict] = None,
-    callback_url: Optional[str] = None,
-    callback_auth_kind: Optional[
-        Literal[basic, mtls]
-    ] = None,
-    callback_auth_username: Optional[str] = None,
-    callback_auth_password: Optional[str] = None,
-    callback_auth_cert: Optional[str] = None,
-    callback_auth_key: Optional[str] = None,
-    return_pickled: Optional[bool] = False,
-    request_id: Optional[str] = None,
-)
-
- -
- - -

Represents a single request to either a SyncEndpoint or AsyncEndpoint.

- -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
url - Optional[str] -

A url to some file that can be read in to a ModelBundle's predict function. Can be an image, raw text, etc. -Note: the contents of the file located at url are opened as a sequence of bytes and passed -to the predict function. If you instead want to pass the url itself as an input to the predict function, -see args.

-

Exactly one of url and args must be specified.

- None -
args - Optional[Dict] -

A Dictionary with arguments to a ModelBundle's predict function. If the predict function has signature -predict_fn(foo, bar), then the keys in the dictionary should be "foo" and "bar". -Values must be native Python objects.

-

Exactly one of url and args must be specified.

- None -
return_pickled - Optional[bool] -

Whether the output should be a pickled python object, or directly returned serialized json.

- False -
callback_url - Optional[str] -

The callback url to use for this task. If None, then the -default_callback_url of the endpoint is used. The endpoint must specify -"callback" as a post-inference hook for the callback to be triggered.

- None -
callback_auth_kind - Optional[Literal[basic, mtls]] -

The default callback auth kind to use for async endpoints. -Either "basic" or "mtls". This can be overridden in the task parameters for each -individual task.

- None -
callback_auth_username - Optional[str] -

The default callback auth username to use. This only -applies if callback_auth_kind is "basic". This can be overridden in the task -parameters for each individual task.

- None -
callback_auth_password - Optional[str] -

The default callback auth password to use. This only -applies if callback_auth_kind is "basic". This can be overridden in the task -parameters for each individual task.

- None -
callback_auth_cert - Optional[str] -

The default callback auth cert to use. This only applies -if callback_auth_kind is "mtls". This can be overridden in the task -parameters for each individual task.

- None -
callback_auth_key - Optional[str] -

The default callback auth key to use. This only applies -if callback_auth_kind is "mtls". This can be overridden in the task -parameters for each individual task.

- None -
request_id - Optional[str] -

(deprecated) A user-specifiable id for requests. -Should be unique among EndpointRequests made in the same batch call. -If one isn't provided the client will generate its own.

- None -
- - - - - -
- - - - - - - - - - - -
- -
- -
- -
- - - -

- EndpointResponseFuture - - -

-
EndpointResponseFuture(
-    client, endpoint_name: str, async_task_id: str
-)
-
- -
- - -

Represents a future response from an Endpoint. Specifically, when the EndpointResponseFuture is ready, -then its get method will return an actual instance of EndpointResponse.

-

This object should not be directly instantiated by the user.

- - - -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
client -

An instance of LaunchClient.

- required -
endpoint_name - str -

The name of the endpoint.

- required -
async_task_id - str -

An async task id.

- required -
- - - - -
- - - - - - - - - -
- - - -

- get - - -

-
get(timeout: Optional[float] = None) -> EndpointResponse
-
- -
- -

Retrieves the EndpointResponse for the prediction request after it completes. This method blocks.

- -

Parameters:

- - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
timeout - Optional[float] -

The maximum number of seconds to wait for the response. If None, then -the method will block indefinitely until the response is ready.

- None -
- -
- -
- - - -
- -
- -
- -
- - - -

- EndpointResponse - - -

-
EndpointResponse(
-    client,
-    status: str,
-    result_url: Optional[str] = None,
-    result: Optional[str] = None,
-    traceback: Optional[str] = None,
-)
-
- -
- - -

Represents a response received from a Endpoint.

- - - -

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescriptionDefault
client -

An instance of LaunchClient.

- required -
status - str -

A string representing the status of the request, i.e. SUCCESS, FAILURE, or PENDING

- required -
result_url - Optional[str] -

A string that is a url containing the pickled python object from the -Endpoint's predict function.

-

Exactly one of result_url or result will be populated, -depending on the value of return_pickled in the request.

- None -
result - Optional[str] -

A string that is the serialized return value (in json form) of the Endpoint's predict function. -Specifically, one can json.loads() the value of result to get the original python object back.

-

Exactly one of result_url or result will be populated, -depending on the value of return_pickled in the request.

- None -
traceback - Optional[str] -

The stack trace if the inference endpoint raised an error. Can be used for debugging

- None -
- - - - -
- - - - - - - - - - - -
- -
- -
- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/concepts/model_bundles/index.html b/site/concepts/model_bundles/index.html deleted file mode 100644 index 9c558fdd..00000000 --- a/site/concepts/model_bundles/index.html +++ /dev/null @@ -1,903 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - Model Bundles - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - -

Model Bundles

-

Model Bundles are deployable models that can be used to make predictions. They -are created by packaging a model up into a deployable format.

-

Creating Model Bundles

-

There are two methods for creating model bundles: -create_model_bundle -and -create_model_bundle_from_dirs. -The former directly pickles a user-specified load_predict_fn, a function which -loads the model and returns a predict_fn, a function which takes in a request. -The latter takes in directories containing a load_predict_fn and the -module path to the load_predict_fn.

-
-
-
-
import os
-from pydantic import BaseModel
-from launch import LaunchClient
-
-
-class MyRequestSchema(BaseModel):
-    x: int
-    y: str
-
-class MyResponseSchema(BaseModel):
-    __root__: int
-
-
-def my_load_predict_fn(model):
-    def returns_model_of_x_plus_len_of_y(x: int, y: str) -> int:
-        """MyRequestSchema -> MyResponseSchema"""
-        assert isinstance(x, int) and isinstance(y, str)
-        return model(x) + len(y)
-
-    return returns_model_of_x_plus_len_of_y
-
-
-def my_model(x):
-    return x * 2
-
-ENV_PARAMS = {
-    "framework_type": "pytorch",
-    "pytorch_image_tag": "1.7.1-cuda11.0-cudnn8-runtime",
-}
-
-BUNDLE_PARAMS = {
-    "model_bundle_name": "test-bundle",
-    "model": my_model,
-    "load_predict_fn": my_load_predict_fn,
-    "env_params": ENV_PARAMS,
-    "requirements": ["pytest==7.2.1", "numpy"],  # list your requirements here
-    "request_schema": MyRequestSchema,
-    "response_schema": MyResponseSchema,
-}
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-client.create_model_bundle(**BUNDLE_PARAMS)
-
-
-
-
import os
-import tempfile
-from pydantic import BaseModel
-from launch import LaunchClient
-
-directory = tempfile.mkdtemp()
-model_filename = os.path.join(directory, "model.py")
-with open(model_filename, "w") as f:
-    f.write("""
-def my_load_model_fn():
-    def my_model(x):
-        return x * 2
-
-    return my_model
-""")
-
-predict_filename = os.path.join(directory, "predict.py")
-with open(predict_filename, "w") as f:
-    f.write("""
-def my_load_predict_fn(model):
-    def returns_model_of_x_plus_len_of_y(x: int, y: str) -> int:
-        assert isinstance(x, int) and isinstance(y, str)
-        return model(x) + len(y)
-
-    return returns_model_of_x_plus_len_of_y
-""")
-
-requirements_filename = os.path.join(directory, "requirements.txt")
-with open(predict_filename, "w") as f:
-    f.write("""
-pytest==7.2.1
-numpy
-"""
-    )
-
-"""
-The directory structure should now look like
-
-directory/
-    model.py
-    predict.py
-    requirements.txt
-"""
-
-
-class MyRequestSchema(BaseModel):
-    x: int
-    y: str
-
-class MyResponseSchema(BaseModel):
-    __root__: int
-
-ENV_PARAMS = {
-    "framework_type": "pytorch",
-    "pytorch_image_tag": "1.7.1-cuda11.0-cudnn8-runtime",
-}
-
-BUNDLE_PARAMS = {
-    "model_bundle_name": "test-bundle",
-    "base_paths": [directory],
-    "requirements_path": "requirements.txt",
-    "env_params": ENV_PARAMS,
-    "load_predict_fn": "predict.my_load_predict_fn",
-    "load_model_fn_module_path": "model.my_load_model_fn",
-    "request_schema": MyRequestSchema,
-    "response_schema": MyResponseSchema,
-}
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-client.create_model_bundle_from_dirs(**BUNDLE_PARAMS)
-
-# Clean up files from demo
-os.remove(model_filename)
-os.remove(predict_filename)
-os.rmdir(directory)
-
-
-
-
-

Configuring Model Bundles

-

The app_config field of a model bundle is a dictionary that can be used to -configure the model bundle. If specified, the app_config is passed to the -load_predict_fn when the model bundle is deployed, alongside the model. This -can allow for more code reuse between multiple bundles that perform similar -tasks.

-
Creating Model Bundles with app_config
import os
-from launch import LaunchClient
-from pydantic import BaseModel
-from typing import List, Union
-from typing_extensions import Literal
-
-
-class MyRequestSchemaSingle(BaseModel):
-    kind: Literal['single']
-    x: int
-    y: str
-
-class MyRequestSchemaBatched(BaseModel):
-    kind: Literal['batched']
-    x: List[int]
-    y: List[str]
-
-class MyRequestSchema(BaseModel):
-    __root__: Union[MyRequestSchemaSingle, MyRequestSchemaBatched]
-
-class MyResponseSchema(BaseModel):
-    __root__: Union[int, List[int]]
-
-
-def my_load_predict_fn(app_config, model):
-    def returns_model_of_x_plus_len_of_y(x: Union[int, List[int]], y: Union[str, List[str]]) -> Union[int, List[int]]:
-        """MyRequestSchema -> MyResponseSchema"""
-        if app_config["mode"] == "single":
-            assert isinstance(x, int) and isinstance(y, str)
-            return model(x) + len(y)
-
-        result = []
-        for x_i, y_i in zip(x, y):
-            result.append(model(x_i) + len(y_i))
-        return result
-
-    return returns_model_of_x_plus_len_of_y
-
-
-def my_load_model_fn(app_config):
-    def my_model_single(x: int):
-        return x * 2
-
-    def my_model_batched(x: List[int]):
-        return [my_model_single(x_i) for x_i in x]
-
-    if app_config["mode"] == "single":
-        return my_model_single
-
-    return my_model_batched
-
-
-ENV_PARAMS = {
-    "framework_type": "pytorch",
-    "pytorch_image_tag": "1.7.1-cuda11.0-cudnn8-runtime",
-}
-
-BUNDLE_PARAMS_SINGLE = {
-    "model_bundle_name": "test-bundle-single",
-    "load_predict_fn": my_load_predict_fn,
-    "load_model_fn": my_load_model_fn,
-    "env_params": ENV_PARAMS,
-    "requirements": ["pytest==7.2.1", "numpy"],
-    "request_schema": MyRequestSchema,
-    "response_schema": MyResponseSchema,
-    "app_config": {"mode": "single"},
-}
-BUNDLE_PARAMS_BATCHED = {
-    "model_bundle_name": "test-bundle-batched",
-    "load_predict_fn": my_load_predict_fn,
-    "load_model_fn": my_load_model_fn,
-    "env_params": ENV_PARAMS,
-    "requirements": ["pytest==7.2.1", "numpy"],
-    "request_schema": MyRequestSchema,
-    "response_schema": MyResponseSchema,
-    "app_config": {"mode": "batched"},
-}
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-bundle_single = client.create_model_bundle(**BUNDLE_PARAMS_SINGLE)
-bundle_batch = client.create_model_bundle(**BUNDLE_PARAMS_BATCHED)
-
-

Updating Model Bundles

-

Model Bundles are immutable, meaning they cannot be edited once created. -However, it is possible to clone an existing model bundle with a new app_config -using -clone_model_bundle_with_changes.

-

Listing Model Bundles

-

To list all the model bundles you own, use -list_model_bundles.

- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/concepts/model_endpoints/index.html b/site/concepts/model_endpoints/index.html deleted file mode 100644 index 7f7d737f..00000000 --- a/site/concepts/model_endpoints/index.html +++ /dev/null @@ -1,691 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - Model Endpoints - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - -

Model Endpoints

-

Model Endpoints are deployments of models that can receive requests and return -predictions containing the results of the model's inference. Each model endpoint -is associated with a model bundle, which contains the model's code. An endpoint -specifies deployment parameters, such as the minimum and maximum number of -workers, as well as the requested resources for each worker, such as the number -of CPUs, amount of memory, GPU count, and type of GPU.

-

Endpoints can be asynchronous or synchronous. Asynchronous endpoints return -a future immediately after receiving a request, and the future can be used to -retrieve the prediction once it is ready. Synchronous endpoints return the -prediction directly after receiving a request.

-
-

Info

-

Choosing the right inference mode

-

Here are some tips for how to choose between SyncEndpoint, AsyncEndpoint, and BatchJob for deploying your ModelBundle:

-

A SyncEndpoint is good if:

-
    -
  • You have strict latency requirements (e.g. on the order of seconds or less).
  • -
  • You are willing to have resources continually allocated.
  • -
-

An AsyncEndpoint is good if:

-
    -
  • You want to save on compute costs.
  • -
  • Your inference code takes a long time to run.
  • -
  • Your latency requirements are on the order of minutes.
  • -
-

A BatchJob is good if:

-
    -
  • You know there is a large batch of inputs ahead of time.
  • -
  • You want to optimize for throughput instead of latency.
  • -
-
-

Creating Async Model Endpoints

-

Async model endpoints are the most cost-efficient way to perform inference on -tasks that are less latency-sensitive.

-
Creating an Async Model Endpoint
import os
-from launch import LaunchClient
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-endpoint = client.create_model_endpoint(
-    endpoint_name="demo-endpoint-async",
-    model_bundle="test-bundle",
-    cpus=1,
-    min_workers=0,
-    endpoint_type="async",
-    update_if_exists=True,
-    labels={
-        "team": "MY_TEAM",
-        "product": "MY_PRODUCT",
-    },
-)
-
-

Creating Sync Model Endpoints

-

Sync model endpoints are useful for latency-sensitive tasks, such as real-time -inference. Sync endpoints are more expensive than async endpoints.

-
-

Note

-

Sync model endpoints require at least 1 min_worker.

-
-
Creating a Sync Model Endpoint
import os
-from launch import LaunchClient
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-endpoint = client.create_model_endpoint(
-    endpoint_name="demo-endpoint-sync",
-    model_bundle="test-bundle",
-    cpus=1,
-    min_workers=1,
-    endpoint_type="sync",
-    update_if_exists=True,
-    labels={
-        "team": "MY_TEAM",
-        "product": "MY_PRODUCT",
-    },
-)
-
-

Managing Model Endpoints

-

Model endpoints can be listed, updated, and deleted using the Launch API.

-
Listing Model Endpoints
import os
-from launch import LaunchClient
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-endpoints = client.list_model_endpoints()
-
-
Updating a Model Endpoint
import os
-from launch import LaunchClient
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-client.edit_model_endpoint(
-    model_endpoint="demo-endpoint",
-    max_workers=2,
-)
-
-
Deleting a Model Endpoint
import os
-from launch import LaunchClient
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-endpoint = client.create_model_endpoint(
-    endpoint_name="demo-endpoint-tmp",
-    model_bundle="test-bundle",
-    cpus=1,
-    min_workers=0,
-    endpoint_type="async",
-    update_if_exists=True,
-    labels={
-        "team": "MY_TEAM",
-        "product": "MY_PRODUCT",
-    },
-)
-client.delete_model_endpoint(model_endpoint="demo-endpoint-tmp")
-
- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/concepts/overview/index.html b/site/concepts/overview/index.html deleted file mode 100644 index ccf323e0..00000000 --- a/site/concepts/overview/index.html +++ /dev/null @@ -1,598 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - Overview - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - -

Overview

-

Creating deployments on Launch generally involves three steps:

-
    -
  1. -

    Create and upload a ModelBundle. Pass your trained model - as well as pre-/post-processing code to the Scale Launch Python client, and - we’ll create a model bundle based on the code and store it in our Bundle Store.

    -
  2. -
  3. -

    Create a ModelEndpoint. Pass a ModelBundle as well as - infrastructure settings such as the desired number of GPUs to our client. - This provisions resources on Scale’s cluster dedicated to your ModelEndpoint.

    -
  4. -
  5. -

    Make requests to the ModelEndpoint. You can make requests through the Python - client, or make HTTP requests directly to Scale.

    -
  6. -
- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/index.html b/site/index.html deleted file mode 100644 index c9ceff39..00000000 --- a/site/index.html +++ /dev/null @@ -1,751 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - Launch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - -
- -
- - - - - - -
-
- - - -
-
-
- - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - -

Scale Launch

-

CI -pypi

-

Simple, scalable, and high performance ML service deployment in python.

-

Example

-
Launch Usage
import os
-import time
-from launch import LaunchClient
-from launch import EndpointRequest
-from pydantic import BaseModel
-from rich import print
-
-
-class MyRequestSchema(BaseModel):
-    x: int
-    y: str
-
-class MyResponseSchema(BaseModel):
-    __root__: int
-
-
-def my_load_predict_fn(model):
-    def returns_model_of_x_plus_len_of_y(x: int, y: str) -> int:
-        """MyRequestSchema -> MyResponseSchema"""
-        assert isinstance(x, int) and isinstance(y, str)
-        return model(x) + len(y)
-
-    return returns_model_of_x_plus_len_of_y
-
-
-def my_model(x):
-    return x * 2
-
-ENV_PARAMS = {
-    "framework_type": "pytorch",
-    "pytorch_image_tag": "1.7.1-cuda11.0-cudnn8-runtime",
-}
-
-BUNDLE_PARAMS = {
-    "model_bundle_name": "test-bundle",
-    "model": my_model,
-    "load_predict_fn": my_load_predict_fn,
-    "env_params": ENV_PARAMS,
-    "requirements": ["pytest==7.2.1", "numpy"],  # list your requirements here
-    "request_schema": MyRequestSchema,
-    "response_schema": MyResponseSchema,
-}
-
-ENDPOINT_PARAMS = {
-    "endpoint_name": "demo-endpoint",
-    "model_bundle": "test-bundle",
-    "cpus": 1,
-    "min_workers": 0,
-    "endpoint_type": "async",
-    "update_if_exists": True,
-    "labels": {
-        "team": "MY_TEAM",
-        "product": "launch",
-    }
-}
-
-def predict_on_endpoint(request: MyRequestSchema) -> MyResponseSchema:
-    # Wait for the endpoint to be ready first before submitting a task
-    endpoint = client.get_model_endpoint(endpoint_name="demo-endpoint")
-    while endpoint.status() != "READY":
-        time.sleep(10)
-
-    endpoint_request = EndpointRequest(args=request.dict(), return_pickled=False)
-
-    future = endpoint.predict(request=endpoint_request)
-    raw_response = future.get()
-
-    response = MyResponseSchema.parse_raw(raw_response.result)
-    return response
-
-
-client = LaunchClient(api_key=os.getenv("LAUNCH_API_KEY"))
-
-client.create_model_bundle(**BUNDLE_PARAMS)
-endpoint = client.create_model_endpoint(**ENDPOINT_PARAMS)
-
-request = MyRequestSchema(x=5, y="hello")
-response = predict_on_endpoint(request)
-print(response)
-"""
-MyResponseSchema(__root__=10)
-"""
-
-

What's going on here:

-
    -
  • First we use pydantic to define our request and response - schemas, MyRequestSchema and MyResponseSchema. These schemas are used to generate the API - documentation for our models.
  • -
  • Next we define the the model and the load_predict_fn, which tells Launch - how to load our model and how to make predictions with it. In this case, - we're just returning a function that adds the length of the string y to - model(x), where model doubles the integer x.
  • -
  • We then define the model bundle by specifying the load_predict_fn, the request_schema, and the - response_schema. We also specify the env_params, which tell Launch environment settings like - the base image to use. In this case, we're using a PyTorch image.
  • -
  • Next, we create the model endpoint, which is the API that we'll use to make predictions. We - specify the model_bundle that we created above, and we specify the endpoint_type, which tells - Launch whether to use a synchronous or asynchronous endpoint. In this case, we're using an - asynchronous endpoint, which means that we can make predictions and return immediately with a - future object. We can then use the future object to get the prediction result later.
  • -
  • Finally, we make a prediction by calling predict_on_endpoint with a MyRequestSchema object. - This function first waits for the endpoint to be ready, then it submits a prediction request to - the endpoint. It then waits for the prediction result and returns it.
  • -
-

Notice that we specified min_workers=0, meaning that the endpoint will scale down to 0 workers -when it's not being used.

-

Installation

-

To use Scale Launch, first install it using pip:

-
Installation
pip install -U scale-launch
-
- - - - - - -
-
- - - - -
- -
- - - -
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/site/objects.inv b/site/objects.inv deleted file mode 100644 index e43ed22faff7f5befaa9ffd329ff598edc3168bd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 533 zcmV+w0_y!EAX9K?X>NERX>N99Zgg*Qc_4OWa&u{KZXhxWBOp+6Z)#;@bUGkRVRdd} zXbK}BR%LQ?X>V>iATTa4E-(rsAXI2&AaZ4GVQFq;WpW^IW*~HEX>%ZEX>4U6X>%ZB zZ*6dLWpi_7WFU2OX>MmAdTeQ8E(&c>@V4PI0n+>Qjd_|c&2q#{i5Qq%7+p)?_{b&iU!8_E^(Pw6WzDxeZw1Z)xf zR8ETV!s?pm(x!?LDK}bD#90Of6LOeKpA0L}^XbKLMw7!hF->+4Qv5!Zbkne05^En= zgcj~vK03U+dcojImr-aLfy2Y?+WBWH&|+Bk z)P8mP1a|Yz#MUR3y|#nbS82AqirDcN&LbldkiPtn diff --git a/site/search/search_index.json b/site/search/search_index.json deleted file mode 100644 index d169be02..00000000 --- a/site/search/search_index.json +++ /dev/null @@ -1 +0,0 @@ -{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"Scale Launch","text":"

Simple, scalable, and high performance ML service deployment in python.

"},{"location":"#example","title":"Example","text":"Launch Usage
import os\nimport time\nfrom launch import LaunchClient\nfrom launch import EndpointRequest\nfrom pydantic import BaseModel\nfrom rich import print\nclass MyRequestSchema(BaseModel):\nx: int\ny: str\nclass MyResponseSchema(BaseModel):\n__root__: int\ndef my_load_predict_fn(model):\ndef returns_model_of_x_plus_len_of_y(x: int, y: str) -> int:\n\"\"\"MyRequestSchema -> MyResponseSchema\"\"\"\nassert isinstance(x, int) and isinstance(y, str)\nreturn model(x) + len(y)\nreturn returns_model_of_x_plus_len_of_y\ndef my_model(x):\nreturn x * 2\nENV_PARAMS = {\n\"framework_type\": \"pytorch\",\n\"pytorch_image_tag\": \"1.7.1-cuda11.0-cudnn8-runtime\",\n}\nBUNDLE_PARAMS = {\n\"model_bundle_name\": \"test-bundle\",\n\"model\": my_model,\n\"load_predict_fn\": my_load_predict_fn,\n\"env_params\": ENV_PARAMS,\n\"requirements\": [\"pytest==7.2.1\", \"numpy\"],  # list your requirements here\n\"request_schema\": MyRequestSchema,\n\"response_schema\": MyResponseSchema,\n}\nENDPOINT_PARAMS = {\n\"endpoint_name\": \"demo-endpoint\",\n\"model_bundle\": \"test-bundle\",\n\"cpus\": 1,\n\"min_workers\": 0,\n\"endpoint_type\": \"async\",\n\"update_if_exists\": True,\n\"labels\": {\n\"team\": \"MY_TEAM\",\n\"product\": \"launch\",\n}\n}\ndef predict_on_endpoint(request: MyRequestSchema) -> MyResponseSchema:\n# Wait for the endpoint to be ready first before submitting a task\nendpoint = client.get_model_endpoint(endpoint_name=\"demo-endpoint\")\nwhile endpoint.status() != \"READY\":\ntime.sleep(10)\nendpoint_request = EndpointRequest(args=request.dict(), return_pickled=False)\nfuture = endpoint.predict(request=endpoint_request)\nraw_response = future.get()\nresponse = MyResponseSchema.parse_raw(raw_response.result)\nreturn response\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nclient.create_model_bundle(**BUNDLE_PARAMS)\nendpoint = client.create_model_endpoint(**ENDPOINT_PARAMS)\nrequest = MyRequestSchema(x=5, y=\"hello\")\nresponse = predict_on_endpoint(request)\nprint(response)\n\"\"\"\nMyResponseSchema(__root__=10)\n\"\"\"\n

What's going on here:

  • First we use pydantic to define our request and response schemas, MyRequestSchema and MyResponseSchema. These schemas are used to generate the API documentation for our models.
  • Next we define the the model and the load_predict_fn, which tells Launch how to load our model and how to make predictions with it. In this case, we're just returning a function that adds the length of the string y to model(x), where model doubles the integer x.
  • We then define the model bundle by specifying the load_predict_fn, the request_schema, and the response_schema. We also specify the env_params, which tell Launch environment settings like the base image to use. In this case, we're using a PyTorch image.
  • Next, we create the model endpoint, which is the API that we'll use to make predictions. We specify the model_bundle that we created above, and we specify the endpoint_type, which tells Launch whether to use a synchronous or asynchronous endpoint. In this case, we're using an asynchronous endpoint, which means that we can make predictions and return immediately with a future object. We can then use the future object to get the prediction result later.
  • Finally, we make a prediction by calling predict_on_endpoint with a MyRequestSchema object. This function first waits for the endpoint to be ready, then it submits a prediction request to the endpoint. It then waits for the prediction result and returns it.

Notice that we specified min_workers=0, meaning that the endpoint will scale down to 0 workers when it's not being used.

"},{"location":"#installation","title":"Installation","text":"

To use Scale Launch, first install it using pip:

Installation
pip install -U scale-launch\n
"},{"location":"cli/","title":"CLI","text":"

Launch comes with a CLI for listing bundles / endpoints, editing endpoints, and sending tasks to endpoints.

The CLI can be used as scale-launch ....

"},{"location":"cli/#help","title":"Help","text":"

Run scale-launch --help for more options.

scale-launch --help
    This is the command line interface (CLI) package for Scale Launch.\n\n       \u2588\u2588\u2557      \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557   \u2588\u2588\u2557\u2588\u2588\u2588\u2557   \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557  \u2588\u2588\u2557\n       \u2588\u2588\u2551     \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551   \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2557  \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d\u2588\u2588\u2551  \u2588\u2588\u2551\n       \u2588\u2588\u2551     \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551   \u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551     \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\n       \u2588\u2588\u2551     \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551   \u2588\u2588\u2551\u2588\u2588\u2551\u255a\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2551     \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\n       \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551  \u2588\u2588\u2551\u255a\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2551 \u255a\u2588\u2588\u2588\u2588\u2551\u255a\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551  \u2588\u2588\u2551\n       \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d\u255a\u2550\u255d  \u255a\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u255d \u255a\u2550\u255d  \u255a\u2550\u2550\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u255d\u255a\u2550\u255d  \u255a\u2550\u255d\n\nUsage: scale-launch [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --help  Show this message and exit.\n\nCommands:\n  batch-jobs  Batch Jobs is a wrapper around batch jobs in Scale Launch\n  bundles     Bundles is a wrapper around model bundles in Scale Launch\n  config      Config is a wrapper around getting and setting your API key and other configuration options\n  endpoints   Endpoints is a wrapper around model endpoints in Scale Launch\n  tasks       Tasks is a wrapper around sending requests to endpoints\n
"},{"location":"api/client/","title":"Launch Client","text":""},{"location":"api/client/#launch.client.LaunchClient","title":"LaunchClient","text":"
LaunchClient(\napi_key: str,\nendpoint: Optional[str] = None,\nself_hosted: bool = False,\n)\n

Scale Launch Python Client.

Initializes a Scale Launch Client.

Parameters:

Name Type Description Default api_key str

Your Scale API key

required endpoint Optional[str]

The Scale Launch Endpoint (this should not need to be changed)

None self_hosted bool

True iff you are connecting to a self-hosted Scale Launch

False"},{"location":"api/client/#launch.client.LaunchClient.batch_async_request","title":"batch_async_request","text":"
batch_async_request(\n*,\nmodel_bundle: Union[ModelBundle, str],\nurls: List[str] = None,\ninputs: Optional[List[Dict[str, Any]]] = None,\nbatch_url_file_location: Optional[str] = None,\nserialization_format: str = \"JSON\",\nlabels: Optional[Dict[str, str]] = None,\ncpus: Optional[int] = None,\nmemory: Optional[str] = None,\ngpus: Optional[int] = None,\ngpu_type: Optional[str] = None,\nstorage: Optional[str] = None,\nmax_workers: Optional[int] = None,\nper_worker: Optional[int] = None\n) -> Dict[str, Any]\n

Sends a batch inference request using a given bundle. Returns a key that can be used to retrieve the results of inference at a later time.

Must have exactly one of urls or inputs passed in.

Parameters:

Name Type Description Default model_bundle Union[ModelBundle, str]

The bundle or the name of a the bundle to use for inference.

required urls List[str]

A list of urls, each pointing to a file containing model input. Must be accessible by Scale Launch, hence urls need to either be public or signedURLs.

None inputs Optional[List[Dict[str, Any]]]

A list of model inputs, if exists, we will upload the inputs and pass it in to Launch.

None batch_url_file_location Optional[str]

In self-hosted mode, the input to the batch job will be uploaded to this location if provided. Otherwise, one will be determined from bundle_location_fn()

None serialization_format str

Serialization format of output, either 'PICKLE' or 'JSON'. 'pickle' corresponds to pickling results + returning

'JSON' labels Optional[Dict[str, str]]

An optional dictionary of key/value pairs to associate with this endpoint.

None cpus Optional[int]

Number of cpus each worker should get, e.g. 1, 2, etc. This must be greater than or equal to 1.

None memory Optional[str]

Amount of memory each worker should get, e.g. \"4Gi\", \"512Mi\", etc. This must be a positive amount of memory.

None storage Optional[str]

Amount of local ephemeral storage each worker should get, e.g. \"4Gi\", \"512Mi\", etc. This must be a positive amount of storage.

None gpus Optional[int]

Number of gpus each worker should get, e.g. 0, 1, etc.

None max_workers Optional[int]

The maximum number of workers. Must be greater than or equal to 0, and as well as greater than or equal to min_workers.

None per_worker Optional[int]

The maximum number of concurrent requests that an individual worker can service. Launch automatically scales the number of workers for the endpoint so that each worker is processing per_worker requests:

  • If the average number of concurrent requests per worker is lower than per_worker, then the number of workers will be reduced.
  • Otherwise, if the average number of concurrent requests per worker is higher than per_worker, then the number of workers will be increased to meet the elevated traffic.
None gpu_type Optional[str]

If specifying a non-zero number of gpus, this controls the type of gpu requested. Here are the supported values:

  • nvidia-tesla-t4
  • nvidia-ampere-a10
None

Returns:

Type Description Dict[str, Any]

A dictionary that contains job_id as a key, and the ID as the value.

"},{"location":"api/client/#launch.client.LaunchClient.clone_model_bundle_with_changes","title":"clone_model_bundle_with_changes","text":"
clone_model_bundle_with_changes(\nmodel_bundle: Union[ModelBundle, str],\napp_config: Optional[Dict] = None,\n) -> ModelBundle\n

Clones an existing model bundle with changes to its app config. (More fields coming soon)

Parameters:

Name Type Description Default model_bundle Union[ModelBundle, str]

The existing bundle or its ID.

required app_config Optional[Dict]

The new bundle's app config, if not passed in, the new bundle's app_config will be set to None

None

Returns:

Type Description ModelBundle

A ModelBundle object

"},{"location":"api/client/#launch.client.LaunchClient.create_model_bundle","title":"create_model_bundle","text":"
create_model_bundle(\nmodel_bundle_name: str,\nenv_params: Dict[str, str],\n*,\nload_predict_fn: Optional[\nCallable[[LaunchModel_T], Callable[[Any], Any]]\n] = None,\npredict_fn_or_cls: Optional[\nCallable[[Any], Any]\n] = None,\nrequirements: Optional[List[str]] = None,\nmodel: Optional[LaunchModel_T] = None,\nload_model_fn: Optional[\nCallable[[], LaunchModel_T]\n] = None,\napp_config: Optional[Union[Dict[str, Any], str]] = None,\nglobals_copy: Optional[Dict[str, Any]] = None,\nrequest_schema: Optional[Type[BaseModel]] = None,\nresponse_schema: Optional[Type[BaseModel]] = None\n) -> ModelBundle\n

Uploads and registers a model bundle to Scale Launch.

A model bundle consists of exactly one of the following:

  • predict_fn_or_cls
  • load_predict_fn + model
  • load_predict_fn + load_model_fn

Pre/post-processing code can be included inside load_predict_fn/model or in predict_fn_or_cls call.

Parameters:

Name Type Description Default model_bundle_name str

The name of the model bundle you want to create. The name must be unique across all bundles that you own.

required predict_fn_or_cls Optional[Callable[[Any], Any]]

Function or a Callable class that runs end-to-end (pre/post processing and model inference) on the call. i.e. predict_fn_or_cls(REQUEST) -> RESPONSE.

None model Optional[LaunchModel_T]

Typically a trained Neural Network, e.g. a Pytorch module.

Exactly one of model and load_model_fn must be provided.

None load_model_fn Optional[Callable[[], LaunchModel_T]]

A function that, when run, loads a model. This function is essentially a deferred wrapper around the model argument.

Exactly one of model and load_model_fn must be provided.

None load_predict_fn Optional[Callable[[LaunchModel_T], Callable[[Any], Any]]]

Function that, when called with a model, returns a function that carries out inference.

If model is specified, then this is equivalent to: load_predict_fn(model, app_config=optional_app_config]) -> predict_fn

Otherwise, if load_model_fn is specified, then this is equivalent to: load_predict_fn(load_model_fn(), app_config=optional_app_config]) -> predict_fn

In both cases, predict_fn is then the inference function, i.e.: predict_fn(REQUEST) -> RESPONSE

None requirements Optional[List[str]]

A list of python package requirements, where each list element is of the form <package_name>==<package_version>, e.g.

[\"tensorflow==2.3.0\", \"tensorflow-hub==0.11.0\"]

If you do not pass in a value for requirements, then you must pass in globals() for the globals_copy argument.

None app_config Optional[Union[Dict[str, Any], str]]

Either a Dictionary that represents a YAML file contents or a local path to a YAML file.

None env_params Dict[str, str]

A dictionary that dictates environment information e.g. the use of pytorch or tensorflow, which base image tag to use, etc. Specifically, the dictionary should contain the following keys:

  • framework_type: either tensorflow or pytorch. - PyTorch fields: - pytorch_image_tag: An image tag for the pytorch docker base image. The list of tags can be found from https://hub.docker.com/r/pytorch/pytorch/tags. - Example:

    .. code-block:: python

    { \"framework_type\": \"pytorch\", \"pytorch_image_tag\": \"1.10.0-cuda11.3-cudnn8-runtime\" }

  • Tensorflow fields:

    • tensorflow_version: Version of tensorflow, e.g. \"2.3.0\".
required globals_copy Optional[Dict[str, Any]]

Dictionary of the global symbol table. Normally provided by globals() built-in function.

None request_schema Optional[Type[BaseModel]]

A pydantic model that represents the request schema for the model bundle. This is used to validate the request body for the model bundle's endpoint.

None response_schema Optional[Type[BaseModel]]

A pydantic model that represents the request schema for the model bundle. This is used to validate the response for the model bundle's endpoint. Note: If request_schema is specified, then response_schema must also be specified.

None"},{"location":"api/client/#launch.client.LaunchClient.create_model_bundle_from_dirs","title":"create_model_bundle_from_dirs","text":"
create_model_bundle_from_dirs(\n*,\nmodel_bundle_name: str,\nbase_paths: List[str],\nrequirements_path: str,\nenv_params: Dict[str, str],\nload_predict_fn_module_path: str,\nload_model_fn_module_path: str,\napp_config: Optional[Union[Dict[str, Any], str]] = None,\nrequest_schema: Optional[Type[BaseModel]] = None,\nresponse_schema: Optional[Type[BaseModel]] = None\n) -> ModelBundle\n

Packages up code from one or more local filesystem folders and uploads them as a bundle to Scale Launch. In this mode, a bundle is just local code instead of a serialized object.

For example, if you have a directory structure like so, and your current working directory is also my_root:

.. code-block:: text

my_root/ my_module1/ init.py ...files and directories my_inference_file.py my_module2/ init.py ...files and directories

then calling create_model_bundle_from_dirs with base_paths=[\"my_module1\", \"my_module2\"] essentially creates a zip file without the root directory, e.g.:

.. code-block:: text

my_module1/ init.py ...files and directories my_inference_file.py my_module2/ init.py ...files and directories

and these contents will be unzipped relative to the server side application root. Bear these points in mind when referencing Python module paths for this bundle. For instance, if my_inference_file.py has def f(...) as the desired inference loading function, then the load_predict_fn_module_path argument should be my_module1.my_inference_file.f.

Parameters:

Name Type Description Default model_bundle_name str

The name of the model bundle you want to create. The name must be unique across all bundles that you own.

required base_paths List[str]

The paths on the local filesystem where the bundle code lives.

required requirements_path str

A path on the local filesystem where a requirements.txt file lives.

required env_params Dict[str, str]

A dictionary that dictates environment information e.g. the use of pytorch or tensorflow, which base image tag to use, etc. Specifically, the dictionary should contain the following keys:

  • framework_type: either tensorflow or pytorch. - PyTorch fields: - pytorch_image_tag: An image tag for the pytorch docker base image. The list of tags can be found from https://hub.docker.com/r/pytorch/pytorch/tags. - Example:

    .. code-block:: python

    { \"framework_type\": \"pytorch\", \"pytorch_image_tag\": \"1.10.0-cuda11.3-cudnn8-runtime\" }

required load_predict_fn_module_path str

A python module path for a function that, when called with the output of load_model_fn_module_path, returns a function that carries out inference.

required load_model_fn_module_path str

A python module path for a function that returns a model. The output feeds into the function located at load_predict_fn_module_path.

required app_config Optional[Union[Dict[str, Any], str]]

Either a Dictionary that represents a YAML file contents or a local path to a YAML file.

None request_schema Optional[Type[BaseModel]]

A pydantic model that represents the request schema for the model bundle. This is used to validate the request body for the model bundle's endpoint.

None response_schema Optional[Type[BaseModel]]

A pydantic model that represents the request schema for the model bundle. This is used to validate the response for the model bundle's endpoint. Note: If request_schema is specified, then response_schema must also be specified.

None"},{"location":"api/client/#launch.client.LaunchClient.create_model_endpoint","title":"create_model_endpoint","text":"
create_model_endpoint(\n*,\nendpoint_name: str,\nmodel_bundle: Union[ModelBundle, str],\ncpus: int = 3,\nmemory: str = \"8Gi\",\nstorage: Optional[str] = None,\ngpus: int = 0,\nmin_workers: int = 1,\nmax_workers: int = 1,\nper_worker: int = 10,\ngpu_type: Optional[str] = None,\nendpoint_type: str = \"sync\",\nhigh_priority: Optional[bool] = False,\npost_inference_hooks: Optional[\nList[PostInferenceHooks]\n] = None,\ndefault_callback_url: Optional[str] = None,\ndefault_callback_auth_kind: Optional[\nLiteral[basic, mtls]\n] = None,\ndefault_callback_auth_username: Optional[str] = None,\ndefault_callback_auth_password: Optional[str] = None,\ndefault_callback_auth_cert: Optional[str] = None,\ndefault_callback_auth_key: Optional[str] = None,\nupdate_if_exists: bool = False,\nlabels: Optional[Dict[str, str]] = None\n) -> Optional[Endpoint]\n

Creates and registers a model endpoint in Scale Launch. The returned object is an instance of type Endpoint, which is a base class of either SyncEndpoint or AsyncEndpoint. This is the object to which you sent inference requests.

Parameters:

Name Type Description Default endpoint_name str

The name of the model endpoint you want to create. The name must be unique across all endpoints that you own.

required model_bundle Union[ModelBundle, str]

The ModelBundle that the endpoint should serve.

required cpus int

Number of cpus each worker should get, e.g. 1, 2, etc. This must be greater than or equal to 1.

3 memory str

Amount of memory each worker should get, e.g. \"4Gi\", \"512Mi\", etc. This must be a positive amount of memory.

'8Gi' storage Optional[str]

Amount of local ephemeral storage each worker should get, e.g. \"4Gi\", \"512Mi\", etc. This must be a positive amount of storage.

None gpus int

Number of gpus each worker should get, e.g. 0, 1, etc.

0 min_workers int

The minimum number of workers. Must be greater than or equal to 0. This should be determined by computing the minimum throughput of your workload and dividing it by the throughput of a single worker. This field must be at least 1 for synchronous endpoints.

1 max_workers int

The maximum number of workers. Must be greater than or equal to 0, and as well as greater than or equal to min_workers. This should be determined by computing the maximum throughput of your workload and dividing it by the throughput of a single worker.

1 per_worker int

The maximum number of concurrent requests that an individual worker can service. Launch automatically scales the number of workers for the endpoint so that each worker is processing per_worker requests, subject to the limits defined by min_workers and max_workers.

  • If the average number of concurrent requests per worker is lower than per_worker, then the number of workers will be reduced. - Otherwise, if the average number of concurrent requests per worker is higher than per_worker, then the number of workers will be increased to meet the elevated traffic.

Here is our recommendation for computing per_worker:

  1. Compute min_workers and max_workers per your minimum and maximum throughput requirements. 2. Determine a value for the maximum number of concurrent requests in the workload. Divide this number by max_workers. Doing this ensures that the number of workers will \"climb\" to max_workers.
10 gpu_type Optional[str]

If specifying a non-zero number of gpus, this controls the type of gpu requested. Here are the supported values:

  • nvidia-tesla-t4
  • nvidia-ampere-a10
None endpoint_type str

Either \"sync\" or \"async\".

'sync' high_priority Optional[bool]

Either True or False. Enabling this will allow the created endpoint to leverage the shared pool of prewarmed nodes for faster spinup time.

False post_inference_hooks Optional[List[PostInferenceHooks]]

List of hooks to trigger after inference tasks are served.

None default_callback_url Optional[str]

The default callback url to use for async endpoints. This can be overridden in the task parameters for each individual task. post_inference_hooks must contain \"callback\" for the callback to be triggered.

None default_callback_auth_kind Optional[Literal[basic, mtls]]

The default callback auth kind to use for async endpoints. Either \"basic\" or \"mtls\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_username Optional[str]

The default callback auth username to use. This only applies if default_callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_password Optional[str]

The default callback auth password to use. This only applies if default_callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_cert Optional[str]

The default callback auth cert to use. This only applies if default_callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_key Optional[str]

The default callback auth key to use. This only applies if default_callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None update_if_exists bool

If True, will attempt to update the endpoint if it exists. Otherwise, will unconditionally try to create a new endpoint. Note that endpoint names for a given user must be unique, so attempting to call this function with update_if_exists=False for an existing endpoint will raise an error.

False labels Optional[Dict[str, str]]

An optional dictionary of key/value pairs to associate with this endpoint.

None

Returns:

Type Description Optional[Endpoint]

A Endpoint object that can be used to make requests to the endpoint.

"},{"location":"api/client/#launch.client.LaunchClient.delete_model_endpoint","title":"delete_model_endpoint","text":"
delete_model_endpoint(\nmodel_endpoint: Union[ModelEndpoint, str]\n)\n

Deletes a model endpoint.

Parameters:

Name Type Description Default model_endpoint Union[ModelEndpoint, str]

A ModelEndpoint object.

required"},{"location":"api/client/#launch.client.LaunchClient.edit_model_endpoint","title":"edit_model_endpoint","text":"
edit_model_endpoint(\n*,\nmodel_endpoint: Union[ModelEndpoint, str],\nmodel_bundle: Optional[Union[ModelBundle, str]] = None,\ncpus: Optional[float] = None,\nmemory: Optional[str] = None,\nstorage: Optional[str] = None,\ngpus: Optional[int] = None,\nmin_workers: Optional[int] = None,\nmax_workers: Optional[int] = None,\nper_worker: Optional[int] = None,\ngpu_type: Optional[str] = None,\nhigh_priority: Optional[bool] = None,\npost_inference_hooks: Optional[\nList[PostInferenceHooks]\n] = None,\ndefault_callback_url: Optional[str] = None,\ndefault_callback_auth_kind: Optional[\nLiteral[basic, mtls]\n] = None,\ndefault_callback_auth_username: Optional[str] = None,\ndefault_callback_auth_password: Optional[str] = None,\ndefault_callback_auth_cert: Optional[str] = None,\ndefault_callback_auth_key: Optional[str] = None\n) -> None\n

Edits an existing model endpoint. Here are the fields that cannot be edited on an existing endpoint:

  • The endpoint's name. - The endpoint's type (i.e. you cannot go from a SyncEnpdoint to an AsyncEndpoint or vice versa.

Parameters:

Name Type Description Default model_endpoint Union[ModelEndpoint, str]

The model endpoint (or its name) you want to edit. The name must be unique across all endpoints that you own.

required model_bundle Optional[Union[ModelBundle, str]]

The ModelBundle that the endpoint should serve.

None cpus Optional[float]

Number of cpus each worker should get, e.g. 1, 2, etc. This must be greater than or equal to 1.

None memory Optional[str]

Amount of memory each worker should get, e.g. \"4Gi\", \"512Mi\", etc. This must be a positive amount of memory.

None storage Optional[str]

Amount of local ephemeral storage each worker should get, e.g. \"4Gi\", \"512Mi\", etc. This must be a positive amount of storage.

None gpus Optional[int]

Number of gpus each worker should get, e.g. 0, 1, etc.

None min_workers Optional[int]

The minimum number of workers. Must be greater than or equal to 0.

None max_workers Optional[int]

The maximum number of workers. Must be greater than or equal to 0, and as well as greater than or equal to min_workers.

None per_worker Optional[int]

The maximum number of concurrent requests that an individual worker can service. Launch automatically scales the number of workers for the endpoint so that each worker is processing per_worker requests:

  • If the average number of concurrent requests per worker is lower than per_worker, then the number of workers will be reduced. - Otherwise, if the average number of concurrent requests per worker is higher than per_worker, then the number of workers will be increased to meet the elevated traffic.
None gpu_type Optional[str]

If specifying a non-zero number of gpus, this controls the type of gpu requested. Here are the supported values:

  • nvidia-tesla-t4
  • nvidia-ampere-a10
None high_priority Optional[bool]

Either True or False. Enabling this will allow the created endpoint to leverage the shared pool of prewarmed nodes for faster spinup time.

None post_inference_hooks Optional[List[PostInferenceHooks]]

List of hooks to trigger after inference tasks are served.

None default_callback_url Optional[str]

The default callback url to use for async endpoints. This can be overridden in the task parameters for each individual task. post_inference_hooks must contain \"callback\" for the callback to be triggered.

None default_callback_auth_kind Optional[Literal[basic, mtls]]

The default callback auth kind to use for async endpoints. Either \"basic\" or \"mtls\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_username Optional[str]

The default callback auth username to use. This only applies if default_callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_password Optional[str]

The default callback auth password to use. This only applies if default_callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_cert Optional[str]

The default callback auth cert to use. This only applies if default_callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None default_callback_auth_key Optional[str]

The default callback auth key to use. This only applies if default_callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None"},{"location":"api/client/#launch.client.LaunchClient.get_batch_async_response","title":"get_batch_async_response","text":"
get_batch_async_response(\nbatch_job_id: str,\n) -> Dict[str, Any]\n

Gets inference results from a previously created batch job.

Parameters:

Name Type Description Default batch_job_id str

An id representing the batch task job. This id is the in the response from calling batch_async_request.

required

Returns:

Type Description Dict[str, Any]

A dictionary that contains the following fields:

Dict[str, Any]
  • status: The status of the job.
Dict[str, Any]
  • result: The url where the result is stored.
Dict[str, Any]
  • duration: A string representation of how long the job took to finish or how long it has been running, for a job current in progress.
Dict[str, Any]
  • num_tasks_pending: The number of tasks that are still pending.
Dict[str, Any]
  • num_tasks_completed: The number of tasks that have completed.
"},{"location":"api/client/#launch.client.LaunchClient.get_model_bundle","title":"get_model_bundle","text":"
get_model_bundle(\nmodel_bundle: Union[ModelBundle, str]\n) -> ModelBundle\n

Returns a model bundle specified by bundle_name that the user owns.

Parameters:

Name Type Description Default model_bundle Union[ModelBundle, str]

The bundle or its name.

required

Returns:

Type Description ModelBundle

A ModelBundle object

"},{"location":"api/client/#launch.client.LaunchClient.get_model_endpoint","title":"get_model_endpoint","text":"
get_model_endpoint(\nendpoint_name: str,\n) -> Optional[Union[AsyncEndpoint, SyncEndpoint]]\n

Gets a model endpoint associated with a name.

Parameters:

Name Type Description Default endpoint_name str

The name of the endpoint to retrieve.

required"},{"location":"api/client/#launch.client.LaunchClient.list_model_bundles","title":"list_model_bundles","text":"
list_model_bundles() -> List[ModelBundle]\n

Returns a list of model bundles that the user owns.

Returns:

Type Description List[ModelBundle]

A list of ModelBundle objects

"},{"location":"api/client/#launch.client.LaunchClient.list_model_endpoints","title":"list_model_endpoints","text":"
list_model_endpoints() -> List[Endpoint]\n

Lists all model endpoints that the user owns.

Returns:

Type Description List[Endpoint]

A list of ModelEndpoint objects.

"},{"location":"api/client/#launch.client.LaunchClient.read_endpoint_creation_logs","title":"read_endpoint_creation_logs","text":"
read_endpoint_creation_logs(\nmodel_endpoint: Union[ModelEndpoint, str]\n)\n

Retrieves the logs for the creation of the endpoint.

Parameters:

Name Type Description Default model_endpoint Union[ModelEndpoint, str]

The endpoint or its name.

required"},{"location":"api/client/#launch.client.LaunchClient.register_batch_csv_location_fn","title":"register_batch_csv_location_fn","text":"
register_batch_csv_location_fn(\nbatch_csv_location_fn: Callable[[], str]\n)\n

For self-hosted mode only. Registers a function that gives a location for batch CSV inputs. Should give different locations each time. This function is called as batch_csv_location_fn(), and should return a batch_csv_url that upload_batch_csv_fn can take.

Strictly, batch_csv_location_fn() does not need to return a str. The only requirement is that if batch_csv_location_fn returns a value of type T, then upload_batch_csv_fn() takes in an object of type T as its second argument (i.e. batch_csv_url).

Parameters:

Name Type Description Default batch_csv_location_fn Callable[[], str]

Function that generates batch_csv_urls for upload_batch_csv_fn.

required"},{"location":"api/client/#launch.client.LaunchClient.register_bundle_location_fn","title":"register_bundle_location_fn","text":"
register_bundle_location_fn(\nbundle_location_fn: Callable[[], str]\n)\n

For self-hosted mode only. Registers a function that gives a location for a model bundle. Should give different locations each time. This function is called as bundle_location_fn(), and should return a bundle_url that register_upload_bundle_fn can take.

Strictly, bundle_location_fn() does not need to return a str. The only requirement is that if bundle_location_fn returns a value of type T, then upload_bundle_fn() takes in an object of type T as its second argument (i.e. bundle_url).

Parameters:

Name Type Description Default bundle_location_fn Callable[[], str]

Function that generates bundle_urls for upload_bundle_fn.

required"},{"location":"api/client/#launch.client.LaunchClient.register_upload_batch_csv_fn","title":"register_upload_batch_csv_fn","text":"
register_upload_batch_csv_fn(\nupload_batch_csv_fn: Callable[[str, str], None]\n)\n

For self-hosted mode only. Registers a function that handles batch text upload. This function is called as

upload_batch_csv_fn(csv_text, csv_url)\n

This function should directly write the contents of csv_text as a text string into csv_url.

Parameters:

Name Type Description Default upload_batch_csv_fn Callable[[str, str], None]

Function that takes in a csv text (string type), and uploads that bundle to an appropriate location. Only needed for self-hosted mode.

required"},{"location":"api/client/#launch.client.LaunchClient.register_upload_bundle_fn","title":"register_upload_bundle_fn","text":"
register_upload_bundle_fn(\nupload_bundle_fn: Callable[[str, str], None]\n)\n

For self-hosted mode only. Registers a function that handles model bundle upload. This function is called as

upload_bundle_fn(serialized_bundle, bundle_url)\n

This function should directly write the contents of serialized_bundle as a binary string into bundle_url.

See register_bundle_location_fn for more notes on the signature of upload_bundle_fn

Parameters:

Name Type Description Default upload_bundle_fn Callable[[str, str], None]

Function that takes in a serialized bundle (bytes type), and uploads that bundle to an appropriate location. Only needed for self-hosted mode.

required"},{"location":"api/endpoint_predictions/","title":"Endpoint Predictions","text":""},{"location":"api/endpoint_predictions/#launch.model_endpoint.EndpointRequest","title":"EndpointRequest","text":"
EndpointRequest(\nurl: Optional[str] = None,\nargs: Optional[Dict] = None,\ncallback_url: Optional[str] = None,\ncallback_auth_kind: Optional[\nLiteral[basic, mtls]\n] = None,\ncallback_auth_username: Optional[str] = None,\ncallback_auth_password: Optional[str] = None,\ncallback_auth_cert: Optional[str] = None,\ncallback_auth_key: Optional[str] = None,\nreturn_pickled: Optional[bool] = False,\nrequest_id: Optional[str] = None,\n)\n

Represents a single request to either a SyncEndpoint or AsyncEndpoint.

Parameters:

Name Type Description Default url Optional[str]

A url to some file that can be read in to a ModelBundle's predict function. Can be an image, raw text, etc. Note: the contents of the file located at url are opened as a sequence of bytes and passed to the predict function. If you instead want to pass the url itself as an input to the predict function, see args.

Exactly one of url and args must be specified.

None args Optional[Dict]

A Dictionary with arguments to a ModelBundle's predict function. If the predict function has signature predict_fn(foo, bar), then the keys in the dictionary should be \"foo\" and \"bar\". Values must be native Python objects.

Exactly one of url and args must be specified.

None return_pickled Optional[bool]

Whether the output should be a pickled python object, or directly returned serialized json.

False callback_url Optional[str]

The callback url to use for this task. If None, then the default_callback_url of the endpoint is used. The endpoint must specify \"callback\" as a post-inference hook for the callback to be triggered.

None callback_auth_kind Optional[Literal[basic, mtls]]

The default callback auth kind to use for async endpoints. Either \"basic\" or \"mtls\". This can be overridden in the task parameters for each individual task.

None callback_auth_username Optional[str]

The default callback auth username to use. This only applies if callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None callback_auth_password Optional[str]

The default callback auth password to use. This only applies if callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None callback_auth_cert Optional[str]

The default callback auth cert to use. This only applies if callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None callback_auth_key Optional[str]

The default callback auth key to use. This only applies if callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None request_id Optional[str]

(deprecated) A user-specifiable id for requests. Should be unique among EndpointRequests made in the same batch call. If one isn't provided the client will generate its own.

None"},{"location":"api/endpoint_predictions/#launch.model_endpoint.EndpointResponse","title":"EndpointResponse","text":"
EndpointResponse(\nclient,\nstatus: str,\nresult_url: Optional[str] = None,\nresult: Optional[str] = None,\ntraceback: Optional[str] = None,\n)\n

Represents a response received from a Endpoint.

Parameters:

Name Type Description Default client

An instance of LaunchClient.

required status str

A string representing the status of the request, i.e. SUCCESS, FAILURE, or PENDING

required result_url Optional[str]

A string that is a url containing the pickled python object from the Endpoint's predict function.

Exactly one of result_url or result will be populated, depending on the value of return_pickled in the request.

None result Optional[str]

A string that is the serialized return value (in json form) of the Endpoint's predict function. Specifically, one can json.loads() the value of result to get the original python object back.

Exactly one of result_url or result will be populated, depending on the value of return_pickled in the request.

None traceback Optional[str]

The stack trace if the inference endpoint raised an error. Can be used for debugging

None"},{"location":"api/endpoint_predictions/#launch.model_endpoint.EndpointResponseFuture","title":"EndpointResponseFuture","text":"
EndpointResponseFuture(\nclient, endpoint_name: str, async_task_id: str\n)\n

Represents a future response from an Endpoint. Specifically, when the EndpointResponseFuture is ready, then its get method will return an actual instance of EndpointResponse.

This object should not be directly instantiated by the user.

Parameters:

Name Type Description Default client

An instance of LaunchClient.

required endpoint_name str

The name of the endpoint.

required async_task_id str

An async task id.

required"},{"location":"api/endpoint_predictions/#launch.model_endpoint.EndpointResponseFuture.get","title":"get","text":"
get(timeout: Optional[float] = None) -> EndpointResponse\n

Retrieves the EndpointResponse for the prediction request after it completes. This method blocks.

Parameters:

Name Type Description Default timeout Optional[float]

The maximum number of seconds to wait for the response. If None, then the method will block indefinitely until the response is ready.

None"},{"location":"api/hooks/","title":"Hooks","text":""},{"location":"api/hooks/#launch.hooks.PostInferenceHooks","title":"PostInferenceHooks","text":"

Bases: str, Enum

Post-inference hooks are functions that are called after inference is complete.

Attributes:

Name Type Description CALLBACK str

The callback hook is called with the inference response and the task ID.

"},{"location":"api/model_bundles/","title":"Model Bundles","text":""},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle","title":"ModelBundle dataclass","text":"

Represents a ModelBundle.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.app_config","title":"app_config class-attribute","text":"
app_config: Optional[Dict[Any, Any]] = None\n

An optional user-specified configuration mapping for the bundle.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.env_params","title":"env_params class-attribute","text":"
env_params: Optional[Dict[str, str]] = None\n

A dictionary that dictates environment information. See LaunchClient.create_model_bundle for more information.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.id","title":"id class-attribute","text":"
id: Optional[str] = None\n

A globally unique identifier for the bundle.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.location","title":"location class-attribute","text":"
location: Optional[str] = None\n

An opaque location for the bundle.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.metadata","title":"metadata class-attribute","text":"
metadata: Optional[Dict[Any, Any]] = None\n

Arbitrary metadata for the bundle.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.name","title":"name class-attribute","text":"
name: str\n

The name of the bundle. Must be unique across all bundles that the user owns.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.packaging_type","title":"packaging_type class-attribute","text":"
packaging_type: Optional[str] = None\n

The packaging type for the bundle. Can be cloudpickle or zip.

"},{"location":"api/model_bundles/#launch.model_bundle.ModelBundle.requirements","title":"requirements class-attribute","text":"
requirements: Optional[List[str]] = None\n

A list of Python package requirements for the bundle. See LaunchClient.create_model_bundle for more information.

"},{"location":"api/model_endpoints/","title":"Model Endpoints","text":"

All classes here are returned by the get_model_endpoint method and provide a predict function.

"},{"location":"api/model_endpoints/#launch.model_endpoint.AsyncEndpoint","title":"AsyncEndpoint","text":"
AsyncEndpoint(model_endpoint: ModelEndpoint, client)\n

Bases: Endpoint

An asynchronous model endpoint.

Parameters:

Name Type Description Default model_endpoint ModelEndpoint

ModelEndpoint object.

required client

A LaunchClient object

required"},{"location":"api/model_endpoints/#launch.model_endpoint.AsyncEndpoint.predict","title":"predict","text":"
predict(request: EndpointRequest) -> EndpointResponseFuture\n

Runs an asynchronous prediction request.

Parameters:

Name Type Description Default request EndpointRequest

The EndpointRequest object that contains the payload.

required

Returns:

Name Type Description EndpointResponseFuture

An EndpointResponseFuture such the user can use to query the status of the request.

Example EndpointResponseFuture EndpointResponseFuture

.. code-block:: python

my_endpoint = AsyncEndpoint(...) f: EndpointResponseFuture = my_endpoint.predict(EndpointRequest(...)) result = f.get() # blocks on completion

"},{"location":"api/model_endpoints/#launch.model_endpoint.AsyncEndpoint.predict_batch","title":"predict_batch","text":"
predict_batch(\nrequests: Sequence[EndpointRequest],\n) -> AsyncEndpointBatchResponse\n

(deprecated) Runs inference on the data items specified by urls. Returns a AsyncEndpointResponse.

Parameters:

Name Type Description Default requests Sequence[EndpointRequest]

List of EndpointRequests. Request_ids must all be distinct.

required

Returns:

Type Description AsyncEndpointBatchResponse

an AsyncEndpointResponse keeping track of the inference requests made

"},{"location":"api/model_endpoints/#launch.model_endpoint.SyncEndpoint","title":"SyncEndpoint","text":"
SyncEndpoint(model_endpoint: ModelEndpoint, client)\n

Bases: Endpoint

A synchronous model endpoint.

Parameters:

Name Type Description Default model_endpoint ModelEndpoint

ModelEndpoint object.

required client

A LaunchClient object

required"},{"location":"api/model_endpoints/#launch.model_endpoint.SyncEndpoint.predict","title":"predict","text":"
predict(request: EndpointRequest) -> EndpointResponse\n

Runs a synchronous prediction request.

Parameters:

Name Type Description Default request EndpointRequest

The EndpointRequest object that contains the payload.

required"},{"location":"concepts/batch_jobs/","title":"Batch Jobs","text":"

For predicting over a larger set of tasks (> 50) at once, it is recommended to use batch jobs. Batch jobs are a way to send a large number of tasks to a model bundle. The tasks are processed in parallel, and the results are returned as a list of predictions.

Batch jobs are created using the batch_async_request method of the LaunchClient.

Creating and Following a Batch Job
import os\nimport time\nfrom launch import LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nbatch_job = client.batch_async_request(\nmodel_bundle=\"test-bundle\",\ninputs=[\n{\"x\": 2, \"y\": \"hello\"},\n{\"x\": 3, \"y\": \"world\"},\n],\nlabels={\n\"team\": \"MY_TEAM\",\n\"product\": \"MY_PRODUCT\",\n}\n)\nstatus = \"PENDING\"\nres = None\nwhile status != \"SUCCESS\" and status != \"FAILURE\" and status != \"CANCELLED\":\ntime.sleep(30)\nres = client.get_batch_async_response(batch_job[\"job_id\"])\nstatus = res[\"status\"]\nprint(f\"the batch job is {status}\")\nprint(res)\n
"},{"location":"concepts/callbacks/","title":"Callbacks","text":"

Async model endpoints can be configured to send callbacks to a user-defined callback URL. Callbacks are sent as HTTP POST requests with a JSON body. The following code snippet shows how to create an async model endpoint with a callback URL.

To configure an async endpoint to send callbacks, set the post_inference_hooks field to include launch.PostInferenceHooks.CALLBACK. A callback URL also needs to be specified, and it can be configured as a default using the default_callback_url argument to launch.LaunchClient.create_model_endpoint or as a per-task override using the callback_url field of launch.EndpointRequest.

Note

Callbacks will not be sent if the endpoint does not have any post-inference hooks specified, even if a default_callback_url is provided to the endpoint creation method or if the prediction request has a callback_url override.

Creating an Async Model Endpoint with a Callback URL
import os\nimport time\nfrom launch import EndpointRequest, LaunchClient, PostInferenceHooks\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.create_model_endpoint(\nendpoint_name=\"demo-endpoint-callback\",\nmodel_bundle=\"test-bundle\",\ncpus=1,\nmin_workers=1,\nendpoint_type=\"async\",\nupdate_if_exists=True,\nlabels={\n\"team\": \"MY_TEAM\",\n\"product\": \"MY_PRODUCT\",\n},\npost_inference_hooks=[PostInferenceHooks.CALLBACK],\ndefault_callback_url=\"https://example.com\",\n)\nwhile endpoint.status() != \"READY\":\ntime.sleep(10)\nfuture_default = endpoint.predict(\nrequest=EndpointRequest(args={\"x\": 2, \"y\": \"hello\"})\n)\n\"\"\"\nA callback is sent to https://example.com with the following JSON body:\n{\n    \"task_id\": \"THE_TASK_ID\",\n    \"result\": 7\n}\n\"\"\"\nfuture_custom_callback_url = endpoint.predict(\nrequest=EndpointRequest(\nargs={\"x\": 3, \"y\": \"hello\"}, callback_url=\"https://example.com/custom\"\n),\n)\n\"\"\"\nA callback is sent to https://example.com/custom with the following JSON body:\n{\n    \"task_id\": \"THE_TASK_ID\",\n    \"result\": 8\n}\n\"\"\"\n
"},{"location":"concepts/callbacks/#authentication-for-callbacks","title":"Authentication for callbacks","text":"

Warning

This feature is currently in beta, and the API is likely to change.

Callbacks can be authenticated using shared authentication headers. To enable authentication, set either default_callback_auth_kind when creating the endpoint or callback_auth_kind when making a prediction request.

Currently, the supported authentication methods are basic and mtls. If basic is used, then the default_callback_auth_username and default_callback_auth_password fields must be specified when creating the endpoint, or the callback_auth_username and callback_auth_password fields must be specified when making a prediction request. If mtls is used, then the same is true for the default_callback_auth_cert and default_callback_auth_key fields, or the callback_auth_cert and callback_auth_key fields.

Creating an Async Model Endpoint with custom Callback auth
import os\nimport time\nfrom launch import EndpointRequest, LaunchClient, PostInferenceHooks\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.create_model_endpoint(\nendpoint_name=\"demo-endpoint-callback\",\nmodel_bundle=\"test-bundle\",\ncpus=1,\nmin_workers=1,\nendpoint_type=\"async\",\nupdate_if_exists=True,\nlabels={\n\"team\": \"MY_TEAM\",\n\"product\": \"MY_PRODUCT\",\n},\npost_inference_hooks=[PostInferenceHooks.CALLBACK],\ndefault_callback_url=\"https://example.com\",\ndefault_callback_auth_kind=\"basic\",\ndefault_callback_auth_username=\"user\",\ndefault_callback_auth_password=\"password\",\n)\nwhile endpoint.status() != \"READY\":\ntime.sleep(10)\nfuture_default = endpoint.predict(\nrequest=EndpointRequest(args={\"x\": 2, \"y\": \"hello\"})\n)\n\"\"\"\nA callback is sent to https://example.com with (\"user\", \"password\") as the basic auth.\n\"\"\"\nfuture_custom_callback_auth = endpoint.predict(\nrequest=EndpointRequest(\nargs={\"x\": 3, \"y\": \"hello\"},\ncallback_auth_kind=\"mtls\", \ncallback_auth_cert=\"cert\", \ncallback_auth_key=\"key\",\n),\n)\n\"\"\"\nA callback is sent with mTLS authentication.\n\"\"\"\nclient.edit_model_endpoint(\nmodel_endpoint=endpoint.model_endpoint,\ndefault_callback_auth_kind=\"mtls\",\ndefault_callback_auth_cert=\"cert\",\ndefault_callback_auth_key=\"key\",\n)\nwhile endpoint.status() != \"READY\":\ntime.sleep(10)\nfuture_default = endpoint.predict(\nrequest=EndpointRequest(args={\"x\": 2, \"y\": \"hello\"})\n)\n\"\"\"\nA callback is sent with mTLS auth.\n\"\"\"\nfuture_custom_callback_auth = endpoint.predict(\nrequest=EndpointRequest(\nargs={\"x\": 3, \"y\": \"hello\"},\ncallback_auth_kind=\"basic\",\ncallback_auth_username=\"user\",\ncallback_auth_password=\"pass\",\n),\n)\n\"\"\"\nA callback is sent with (\"user\", \"pass\") as the basic auth.\n\"\"\"\n
"},{"location":"concepts/endpoint_predictions/","title":"Endpoint Predictions","text":"

Once endpoints have been created, users can send tasks to them to make predictions. The following code snippet shows how to send tasks to endpoints.

Sending a Task to an Async EndpointSending a Task to a Sync Endpoint
import os\nfrom launch import EndpointRequest, LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.get_model_endpoint(\"demo-endpoint-async\")\nfuture = endpoint.predict(request=EndpointRequest(args={\"x\": 2, \"y\": \"hello\"}))\nresponse = future.get()\nprint(response)\n
import os\nfrom launch import EndpointRequest, LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.get_model_endpoint(\"demo-endpoint-sync\")\nresponse = endpoint.predict(request=EndpointRequest(args={\"x\": 2, \"y\": \"hello\"}))\nprint(response)\n
"},{"location":"concepts/endpoint_predictions/#launch.model_endpoint.EndpointRequest","title":"EndpointRequest","text":"
EndpointRequest(\nurl: Optional[str] = None,\nargs: Optional[Dict] = None,\ncallback_url: Optional[str] = None,\ncallback_auth_kind: Optional[\nLiteral[basic, mtls]\n] = None,\ncallback_auth_username: Optional[str] = None,\ncallback_auth_password: Optional[str] = None,\ncallback_auth_cert: Optional[str] = None,\ncallback_auth_key: Optional[str] = None,\nreturn_pickled: Optional[bool] = False,\nrequest_id: Optional[str] = None,\n)\n

Represents a single request to either a SyncEndpoint or AsyncEndpoint.

Parameters:

Name Type Description Default url Optional[str]

A url to some file that can be read in to a ModelBundle's predict function. Can be an image, raw text, etc. Note: the contents of the file located at url are opened as a sequence of bytes and passed to the predict function. If you instead want to pass the url itself as an input to the predict function, see args.

Exactly one of url and args must be specified.

None args Optional[Dict]

A Dictionary with arguments to a ModelBundle's predict function. If the predict function has signature predict_fn(foo, bar), then the keys in the dictionary should be \"foo\" and \"bar\". Values must be native Python objects.

Exactly one of url and args must be specified.

None return_pickled Optional[bool]

Whether the output should be a pickled python object, or directly returned serialized json.

False callback_url Optional[str]

The callback url to use for this task. If None, then the default_callback_url of the endpoint is used. The endpoint must specify \"callback\" as a post-inference hook for the callback to be triggered.

None callback_auth_kind Optional[Literal[basic, mtls]]

The default callback auth kind to use for async endpoints. Either \"basic\" or \"mtls\". This can be overridden in the task parameters for each individual task.

None callback_auth_username Optional[str]

The default callback auth username to use. This only applies if callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None callback_auth_password Optional[str]

The default callback auth password to use. This only applies if callback_auth_kind is \"basic\". This can be overridden in the task parameters for each individual task.

None callback_auth_cert Optional[str]

The default callback auth cert to use. This only applies if callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None callback_auth_key Optional[str]

The default callback auth key to use. This only applies if callback_auth_kind is \"mtls\". This can be overridden in the task parameters for each individual task.

None request_id Optional[str]

(deprecated) A user-specifiable id for requests. Should be unique among EndpointRequests made in the same batch call. If one isn't provided the client will generate its own.

None"},{"location":"concepts/endpoint_predictions/#launch.model_endpoint.EndpointResponseFuture","title":"EndpointResponseFuture","text":"
EndpointResponseFuture(\nclient, endpoint_name: str, async_task_id: str\n)\n

Represents a future response from an Endpoint. Specifically, when the EndpointResponseFuture is ready, then its get method will return an actual instance of EndpointResponse.

This object should not be directly instantiated by the user.

Parameters:

Name Type Description Default client

An instance of LaunchClient.

required endpoint_name str

The name of the endpoint.

required async_task_id str

An async task id.

required"},{"location":"concepts/endpoint_predictions/#launch.model_endpoint.EndpointResponseFuture.get","title":"get","text":"
get(timeout: Optional[float] = None) -> EndpointResponse\n

Retrieves the EndpointResponse for the prediction request after it completes. This method blocks.

Parameters:

Name Type Description Default timeout Optional[float]

The maximum number of seconds to wait for the response. If None, then the method will block indefinitely until the response is ready.

None"},{"location":"concepts/endpoint_predictions/#launch.model_endpoint.EndpointResponse","title":"EndpointResponse","text":"
EndpointResponse(\nclient,\nstatus: str,\nresult_url: Optional[str] = None,\nresult: Optional[str] = None,\ntraceback: Optional[str] = None,\n)\n

Represents a response received from a Endpoint.

Parameters:

Name Type Description Default client

An instance of LaunchClient.

required status str

A string representing the status of the request, i.e. SUCCESS, FAILURE, or PENDING

required result_url Optional[str]

A string that is a url containing the pickled python object from the Endpoint's predict function.

Exactly one of result_url or result will be populated, depending on the value of return_pickled in the request.

None result Optional[str]

A string that is the serialized return value (in json form) of the Endpoint's predict function. Specifically, one can json.loads() the value of result to get the original python object back.

Exactly one of result_url or result will be populated, depending on the value of return_pickled in the request.

None traceback Optional[str]

The stack trace if the inference endpoint raised an error. Can be used for debugging

None"},{"location":"concepts/model_bundles/","title":"Model Bundles","text":"

Model Bundles are deployable models that can be used to make predictions. They are created by packaging a model up into a deployable format.

"},{"location":"concepts/model_bundles/#creating-model-bundles","title":"Creating Model Bundles","text":"

There are two methods for creating model bundles: create_model_bundle and create_model_bundle_from_dirs. The former directly pickles a user-specified load_predict_fn, a function which loads the model and returns a predict_fn, a function which takes in a request. The latter takes in directories containing a load_predict_fn and the module path to the load_predict_fn.

Creating a Model Bundle DirectlyCreating a Model Bundle from Directories
import os\nfrom pydantic import BaseModel\nfrom launch import LaunchClient\nclass MyRequestSchema(BaseModel):\nx: int\ny: str\nclass MyResponseSchema(BaseModel):\n__root__: int\ndef my_load_predict_fn(model):\ndef returns_model_of_x_plus_len_of_y(x: int, y: str) -> int:\n\"\"\"MyRequestSchema -> MyResponseSchema\"\"\"\nassert isinstance(x, int) and isinstance(y, str)\nreturn model(x) + len(y)\nreturn returns_model_of_x_plus_len_of_y\ndef my_model(x):\nreturn x * 2\nENV_PARAMS = {\n\"framework_type\": \"pytorch\",\n\"pytorch_image_tag\": \"1.7.1-cuda11.0-cudnn8-runtime\",\n}\nBUNDLE_PARAMS = {\n\"model_bundle_name\": \"test-bundle\",\n\"model\": my_model,\n\"load_predict_fn\": my_load_predict_fn,\n\"env_params\": ENV_PARAMS,\n\"requirements\": [\"pytest==7.2.1\", \"numpy\"],  # list your requirements here\n\"request_schema\": MyRequestSchema,\n\"response_schema\": MyResponseSchema,\n}\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nclient.create_model_bundle(**BUNDLE_PARAMS)\n
import os\nimport tempfile\nfrom pydantic import BaseModel\nfrom launch import LaunchClient\ndirectory = tempfile.mkdtemp()\nmodel_filename = os.path.join(directory, \"model.py\")\nwith open(model_filename, \"w\") as f:\nf.write(\"\"\"\ndef my_load_model_fn():\n    def my_model(x):\n        return x * 2\n    return my_model\n\"\"\")\npredict_filename = os.path.join(directory, \"predict.py\")\nwith open(predict_filename, \"w\") as f:\nf.write(\"\"\"\ndef my_load_predict_fn(model):\n    def returns_model_of_x_plus_len_of_y(x: int, y: str) -> int:\n        assert isinstance(x, int) and isinstance(y, str)\n        return model(x) + len(y)\n    return returns_model_of_x_plus_len_of_y\n\"\"\")\nrequirements_filename = os.path.join(directory, \"requirements.txt\")\nwith open(predict_filename, \"w\") as f:\nf.write(\"\"\"\npytest==7.2.1\nnumpy\n\"\"\"\n)\n\"\"\"\nThe directory structure should now look like\ndirectory/\n    model.py\n    predict.py\n    requirements.txt\n\"\"\"\nclass MyRequestSchema(BaseModel):\nx: int\ny: str\nclass MyResponseSchema(BaseModel):\n__root__: int\nENV_PARAMS = {\n\"framework_type\": \"pytorch\",\n\"pytorch_image_tag\": \"1.7.1-cuda11.0-cudnn8-runtime\",\n}\nBUNDLE_PARAMS = {\n\"model_bundle_name\": \"test-bundle\",\n\"base_paths\": [directory],\n\"requirements_path\": \"requirements.txt\",\n\"env_params\": ENV_PARAMS,\n\"load_predict_fn\": \"predict.my_load_predict_fn\",\n\"load_model_fn_module_path\": \"model.my_load_model_fn\",\n\"request_schema\": MyRequestSchema,\n\"response_schema\": MyResponseSchema,\n}\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nclient.create_model_bundle_from_dirs(**BUNDLE_PARAMS)\n# Clean up files from demo\nos.remove(model_filename)\nos.remove(predict_filename)\nos.rmdir(directory)\n
"},{"location":"concepts/model_bundles/#configuring-model-bundles","title":"Configuring Model Bundles","text":"

The app_config field of a model bundle is a dictionary that can be used to configure the model bundle. If specified, the app_config is passed to the load_predict_fn when the model bundle is deployed, alongside the model. This can allow for more code reuse between multiple bundles that perform similar tasks.

Creating Model Bundles with app_config
import os\nfrom launch import LaunchClient\nfrom pydantic import BaseModel\nfrom typing import List, Union\nfrom typing_extensions import Literal\nclass MyRequestSchemaSingle(BaseModel):\nkind: Literal['single']\nx: int\ny: str\nclass MyRequestSchemaBatched(BaseModel):\nkind: Literal['batched']\nx: List[int]\ny: List[str]\nclass MyRequestSchema(BaseModel):\n__root__: Union[MyRequestSchemaSingle, MyRequestSchemaBatched]\nclass MyResponseSchema(BaseModel):\n__root__: Union[int, List[int]]\ndef my_load_predict_fn(app_config, model):\ndef returns_model_of_x_plus_len_of_y(x: Union[int, List[int]], y: Union[str, List[str]]) -> Union[int, List[int]]:\n\"\"\"MyRequestSchema -> MyResponseSchema\"\"\"\nif app_config[\"mode\"] == \"single\":\nassert isinstance(x, int) and isinstance(y, str)\nreturn model(x) + len(y)\nresult = []\nfor x_i, y_i in zip(x, y):\nresult.append(model(x_i) + len(y_i))\nreturn result\nreturn returns_model_of_x_plus_len_of_y\ndef my_load_model_fn(app_config):\ndef my_model_single(x: int):\nreturn x * 2\ndef my_model_batched(x: List[int]):\nreturn [my_model_single(x_i) for x_i in x]\nif app_config[\"mode\"] == \"single\":\nreturn my_model_single\nreturn my_model_batched\nENV_PARAMS = {\n\"framework_type\": \"pytorch\",\n\"pytorch_image_tag\": \"1.7.1-cuda11.0-cudnn8-runtime\",\n}\nBUNDLE_PARAMS_SINGLE = {\n\"model_bundle_name\": \"test-bundle-single\",\n\"load_predict_fn\": my_load_predict_fn,\n\"load_model_fn\": my_load_model_fn,\n\"env_params\": ENV_PARAMS,\n\"requirements\": [\"pytest==7.2.1\", \"numpy\"],\n\"request_schema\": MyRequestSchema,\n\"response_schema\": MyResponseSchema,\n\"app_config\": {\"mode\": \"single\"},\n}\nBUNDLE_PARAMS_BATCHED = {\n\"model_bundle_name\": \"test-bundle-batched\",\n\"load_predict_fn\": my_load_predict_fn,\n\"load_model_fn\": my_load_model_fn,\n\"env_params\": ENV_PARAMS,\n\"requirements\": [\"pytest==7.2.1\", \"numpy\"],\n\"request_schema\": MyRequestSchema,\n\"response_schema\": MyResponseSchema,\n\"app_config\": {\"mode\": \"batched\"},\n}\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nbundle_single = client.create_model_bundle(**BUNDLE_PARAMS_SINGLE)\nbundle_batch = client.create_model_bundle(**BUNDLE_PARAMS_BATCHED)\n
"},{"location":"concepts/model_bundles/#updating-model-bundles","title":"Updating Model Bundles","text":"

Model Bundles are immutable, meaning they cannot be edited once created. However, it is possible to clone an existing model bundle with a new app_config using clone_model_bundle_with_changes.

"},{"location":"concepts/model_bundles/#listing-model-bundles","title":"Listing Model Bundles","text":"

To list all the model bundles you own, use list_model_bundles.

"},{"location":"concepts/model_endpoints/","title":"Model Endpoints","text":"

Model Endpoints are deployments of models that can receive requests and return predictions containing the results of the model's inference. Each model endpoint is associated with a model bundle, which contains the model's code. An endpoint specifies deployment parameters, such as the minimum and maximum number of workers, as well as the requested resources for each worker, such as the number of CPUs, amount of memory, GPU count, and type of GPU.

Endpoints can be asynchronous or synchronous. Asynchronous endpoints return a future immediately after receiving a request, and the future can be used to retrieve the prediction once it is ready. Synchronous endpoints return the prediction directly after receiving a request.

Info

"},{"location":"concepts/model_endpoints/#choosing-the-right-inference-mode","title":"Choosing the right inference mode","text":"

Here are some tips for how to choose between SyncEndpoint, AsyncEndpoint, and BatchJob for deploying your ModelBundle:

A SyncEndpoint is good if:

  • You have strict latency requirements (e.g. on the order of seconds or less).
  • You are willing to have resources continually allocated.

An AsyncEndpoint is good if:

  • You want to save on compute costs.
  • Your inference code takes a long time to run.
  • Your latency requirements are on the order of minutes.

A BatchJob is good if:

  • You know there is a large batch of inputs ahead of time.
  • You want to optimize for throughput instead of latency.
"},{"location":"concepts/model_endpoints/#creating-async-model-endpoints","title":"Creating Async Model Endpoints","text":"

Async model endpoints are the most cost-efficient way to perform inference on tasks that are less latency-sensitive.

Creating an Async Model Endpoint
import os\nfrom launch import LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.create_model_endpoint(\nendpoint_name=\"demo-endpoint-async\",\nmodel_bundle=\"test-bundle\",\ncpus=1,\nmin_workers=0,\nendpoint_type=\"async\",\nupdate_if_exists=True,\nlabels={\n\"team\": \"MY_TEAM\",\n\"product\": \"MY_PRODUCT\",\n},\n)\n
"},{"location":"concepts/model_endpoints/#creating-sync-model-endpoints","title":"Creating Sync Model Endpoints","text":"

Sync model endpoints are useful for latency-sensitive tasks, such as real-time inference. Sync endpoints are more expensive than async endpoints.

Note

Sync model endpoints require at least 1 min_worker.

Creating a Sync Model Endpoint
import os\nfrom launch import LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.create_model_endpoint(\nendpoint_name=\"demo-endpoint-sync\",\nmodel_bundle=\"test-bundle\",\ncpus=1,\nmin_workers=1,\nendpoint_type=\"sync\",\nupdate_if_exists=True,\nlabels={\n\"team\": \"MY_TEAM\",\n\"product\": \"MY_PRODUCT\",\n},\n)\n
"},{"location":"concepts/model_endpoints/#managing-model-endpoints","title":"Managing Model Endpoints","text":"

Model endpoints can be listed, updated, and deleted using the Launch API.

Listing Model Endpoints
import os\nfrom launch import LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoints = client.list_model_endpoints()\n
Updating a Model Endpoint
import os\nfrom launch import LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nclient.edit_model_endpoint(\nmodel_endpoint=\"demo-endpoint\",\nmax_workers=2,\n)\n
Deleting a Model Endpoint
import os\nfrom launch import LaunchClient\nclient = LaunchClient(api_key=os.getenv(\"LAUNCH_API_KEY\"))\nendpoint = client.create_model_endpoint(\nendpoint_name=\"demo-endpoint-tmp\",\nmodel_bundle=\"test-bundle\",\ncpus=1,\nmin_workers=0,\nendpoint_type=\"async\",\nupdate_if_exists=True,\nlabels={\n\"team\": \"MY_TEAM\",\n\"product\": \"MY_PRODUCT\",\n},\n)\nclient.delete_model_endpoint(model_endpoint=\"demo-endpoint-tmp\")\n
"},{"location":"concepts/overview/","title":"Overview","text":"

Creating deployments on Launch generally involves three steps:

  1. Create and upload a ModelBundle. Pass your trained model as well as pre-/post-processing code to the Scale Launch Python client, and we\u2019ll create a model bundle based on the code and store it in our Bundle Store.

  2. Create a ModelEndpoint. Pass a ModelBundle as well as infrastructure settings such as the desired number of GPUs to our client. This provisions resources on Scale\u2019s cluster dedicated to your ModelEndpoint.

  3. Make requests to the ModelEndpoint. You can make requests through the Python client, or make HTTP requests directly to Scale.

"}]} \ No newline at end of file diff --git a/site/sitemap.xml b/site/sitemap.xml deleted file mode 100644 index 23730f01..00000000 --- a/site/sitemap.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - https://scaleapi.github.io/launch-python-client/ - 2023-03-21 - daily - - - https://scaleapi.github.io/launch-python-client/cli/ - 2023-03-21 - daily - - - https://scaleapi.github.io/launch-python-client/api/client/ - 2023-03-21 - daily - - - https://scaleapi.github.io/launch-python-client/api/endpoint_predictions/ - 2023-03-21 - daily - - - https://scaleapi.github.io/launch-python-client/api/hooks/ - 2023-03-21 - daily - - - https://scaleapi.github.io/launch-python-client/api/model_bundles/ - 2023-03-21 - daily - - - https://scaleapi.github.io/launch-python-client/api/model_endpoints/ - 2023-03-21 - daily - - - https://scaleapi.github.io/launch-python-client/concepts/batch_jobs/ - 2023-03-21 - daily - - - https://scaleapi.github.io/launch-python-client/concepts/callbacks/ - 2023-03-21 - daily - - - https://scaleapi.github.io/launch-python-client/concepts/endpoint_predictions/ - 2023-03-21 - daily - - - https://scaleapi.github.io/launch-python-client/concepts/model_bundles/ - 2023-03-21 - daily - - - https://scaleapi.github.io/launch-python-client/concepts/model_endpoints/ - 2023-03-21 - daily - - - https://scaleapi.github.io/launch-python-client/concepts/overview/ - 2023-03-21 - daily - - \ No newline at end of file diff --git a/site/sitemap.xml.gz b/site/sitemap.xml.gz deleted file mode 100644 index b3e137ef068f2bfab21f0f021512787268799a23..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 320 zcmV-G0l)qqiwFqtEE;42|8r?{Wo=<_E_iKh0M(YkZo?o9hVOlfh8W&qXf-*8v|Aw?G(1@qRkck0o z+f7bcND}?0YZ8K&=p=X|?nIQj{lG3oc+%TW$Ww~!X+JfOG7=r$U;HUgFw#fsY+(L> S^sA#ETk{Qe!ZDlS2><{tyOW*( From 50913ff0f327b02f2943a559395b44a315f1dd86 Mon Sep 17 00:00:00 2001 From: Anirudh-Scale Date: Tue, 21 Mar 2023 22:45:50 +0000 Subject: [PATCH 10/11] making sure? --- .../model/create_async_task_v1_response.py | 16 ++++++++++++++-- .../model/create_async_task_v1_response.pyi | 16 ++++++++++++++-- .../model/create_batch_job_v1_request.py | 10 ++++++++-- .../model/create_batch_job_v1_request.pyi | 10 ++++++++-- .../model/create_batch_job_v1_response.py | 16 ++++++++++++++-- .../model/create_batch_job_v1_response.pyi | 16 ++++++++++++++-- .../model/create_model_bundle_v1_response.py | 16 ++++++++++++++-- .../model/create_model_bundle_v1_response.pyi | 16 ++++++++++++++-- .../model/create_model_endpoint_v1_request.py | 10 ++++++++-- .../model/create_model_endpoint_v1_request.pyi | 10 ++++++++-- .../model/create_model_endpoint_v1_response.py | 16 ++++++++++++++-- .../model/create_model_endpoint_v1_response.pyi | 16 ++++++++++++++-- .../model/delete_model_endpoint_v1_response.py | 16 ++++++++++++++-- .../model/delete_model_endpoint_v1_response.pyi | 16 ++++++++++++++-- .../model/get_model_endpoint_v1_response.py | 10 ++++++++-- .../model/get_model_endpoint_v1_response.pyi | 10 ++++++++-- launch/api_client/model/http_validation_error.py | 16 ++++++++++++++-- .../api_client/model/http_validation_error.pyi | 16 ++++++++++++++-- .../model/list_model_bundles_v1_response.py | 16 ++++++++++++++-- .../model/list_model_bundles_v1_response.pyi | 16 ++++++++++++++-- .../model/list_model_endpoints_v1_response.py | 16 ++++++++++++++-- .../model/list_model_endpoints_v1_response.pyi | 16 ++++++++++++++-- .../model/update_batch_job_v1_request.py | 16 ++++++++++++++-- .../model/update_batch_job_v1_request.pyi | 16 ++++++++++++++-- .../model/update_batch_job_v1_response.py | 16 ++++++++++++++-- .../model/update_batch_job_v1_response.pyi | 16 ++++++++++++++-- .../model/update_model_endpoint_v1_request.py | 10 ++++++++-- .../model/update_model_endpoint_v1_request.pyi | 10 ++++++++-- .../model/update_model_endpoint_v1_response.py | 16 ++++++++++++++-- .../model/update_model_endpoint_v1_response.pyi | 16 ++++++++++++++-- 30 files changed, 372 insertions(+), 60 deletions(-) diff --git a/launch/api_client/model/create_async_task_v1_response.py b/launch/api_client/model/create_async_task_v1_response.py index 0acca935..83b2baaf 100644 --- a/launch/api_client/model/create_async_task_v1_response.py +++ b/launch/api_client/model/create_async_task_v1_response.py @@ -51,7 +51,13 @@ def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.pr def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["task_id",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -63,7 +69,13 @@ def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg. def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["task_id",], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_async_task_v1_response.pyi b/launch/api_client/model/create_async_task_v1_response.pyi index 519e6dcd..f5577ea5 100644 --- a/launch/api_client/model/create_async_task_v1_response.pyi +++ b/launch/api_client/model/create_async_task_v1_response.pyi @@ -44,14 +44,26 @@ class CreateAsyncTaskV1Response(schemas.DictSchema): def __getitem__(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["task_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["task_id",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["task_id"]) -> MetaOapg.properties.task_id: ... @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["task_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["task_id",], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/create_batch_job_v1_request.py b/launch/api_client/model/create_batch_job_v1_request.py index 0dfcde1b..b819f63e 100644 --- a/launch/api_client/model/create_batch_job_v1_request.py +++ b/launch/api_client/model/create_batch_job_v1_request.py @@ -46,11 +46,17 @@ class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_batch_job_v1_request.pyi b/launch/api_client/model/create_batch_job_v1_request.pyi index bca2db17..6e5f195c 100644 --- a/launch/api_client/model/create_batch_job_v1_request.pyi +++ b/launch/api_client/model/create_batch_job_v1_request.pyi @@ -43,10 +43,16 @@ class CreateBatchJobV1Request(schemas.DictSchema): class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/create_batch_job_v1_response.py b/launch/api_client/model/create_batch_job_v1_response.py index 5db054c8..9aebd3da 100644 --- a/launch/api_client/model/create_batch_job_v1_response.py +++ b/launch/api_client/model/create_batch_job_v1_response.py @@ -51,7 +51,13 @@ def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.pro def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["job_id",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -63,7 +69,13 @@ def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.p def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["job_id",], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_batch_job_v1_response.pyi b/launch/api_client/model/create_batch_job_v1_response.pyi index 01665b22..fe85812f 100644 --- a/launch/api_client/model/create_batch_job_v1_response.pyi +++ b/launch/api_client/model/create_batch_job_v1_response.pyi @@ -44,14 +44,26 @@ class CreateBatchJobV1Response(schemas.DictSchema): def __getitem__(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["job_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["job_id",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["job_id"]) -> MetaOapg.properties.job_id: ... @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["job_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["job_id",], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/create_model_bundle_v1_response.py b/launch/api_client/model/create_model_bundle_v1_response.py index 726207b0..394aaf62 100644 --- a/launch/api_client/model/create_model_bundle_v1_response.py +++ b/launch/api_client/model/create_model_bundle_v1_response.py @@ -53,7 +53,13 @@ def __getitem__(self, name: typing_extensions.Literal["model_bundle_id"]) -> Met def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["model_bundle_id",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -65,7 +71,13 @@ def get_item_oapg(self, name: typing_extensions.Literal["model_bundle_id"]) -> M def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["model_bundle_id",], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_model_bundle_v1_response.pyi b/launch/api_client/model/create_model_bundle_v1_response.pyi index 6b03b26f..16fc7788 100644 --- a/launch/api_client/model/create_model_bundle_v1_response.pyi +++ b/launch/api_client/model/create_model_bundle_v1_response.pyi @@ -48,7 +48,13 @@ class CreateModelBundleV1Response(schemas.DictSchema): ) -> MetaOapg.properties.model_bundle_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundle_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["model_bundle_id",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload @@ -57,7 +63,13 @@ class CreateModelBundleV1Response(schemas.DictSchema): ) -> MetaOapg.properties.model_bundle_id: ... @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["model_bundle_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["model_bundle_id",], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/create_model_endpoint_v1_request.py b/launch/api_client/model/create_model_endpoint_v1_request.py index 2717f643..d0b9fd42 100644 --- a/launch/api_client/model/create_model_endpoint_v1_request.py +++ b/launch/api_client/model/create_model_endpoint_v1_request.py @@ -127,11 +127,17 @@ class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_model_endpoint_v1_request.pyi b/launch/api_client/model/create_model_endpoint_v1_request.pyi index d4e30084..44911627 100644 --- a/launch/api_client/model/create_model_endpoint_v1_request.pyi +++ b/launch/api_client/model/create_model_endpoint_v1_request.pyi @@ -121,10 +121,16 @@ class CreateModelEndpointV1Request(schemas.DictSchema): class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/create_model_endpoint_v1_response.py b/launch/api_client/model/create_model_endpoint_v1_response.py index 39cb7722..1841c16f 100644 --- a/launch/api_client/model/create_model_endpoint_v1_response.py +++ b/launch/api_client/model/create_model_endpoint_v1_response.py @@ -53,7 +53,13 @@ def __getitem__( def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["endpoint_creation_task_id",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -67,7 +73,13 @@ def get_item_oapg( def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["endpoint_creation_task_id",], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/create_model_endpoint_v1_response.pyi b/launch/api_client/model/create_model_endpoint_v1_response.pyi index ae27258e..57887d1e 100644 --- a/launch/api_client/model/create_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/create_model_endpoint_v1_response.pyi @@ -46,7 +46,13 @@ class CreateModelEndpointV1Response(schemas.DictSchema): ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["endpoint_creation_task_id",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload @@ -55,7 +61,13 @@ class CreateModelEndpointV1Response(schemas.DictSchema): ) -> MetaOapg.properties.endpoint_creation_task_id: ... @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["endpoint_creation_task_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["endpoint_creation_task_id",], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.py b/launch/api_client/model/delete_model_endpoint_v1_response.py index afd67204..c6f2aaaf 100644 --- a/launch/api_client/model/delete_model_endpoint_v1_response.py +++ b/launch/api_client/model/delete_model_endpoint_v1_response.py @@ -51,7 +51,13 @@ def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.pr def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["deleted",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -63,7 +69,13 @@ def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg. def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["deleted",], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/delete_model_endpoint_v1_response.pyi b/launch/api_client/model/delete_model_endpoint_v1_response.pyi index c254be0b..e5ca73aa 100644 --- a/launch/api_client/model/delete_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/delete_model_endpoint_v1_response.pyi @@ -44,14 +44,26 @@ class DeleteModelEndpointV1Response(schemas.DictSchema): def __getitem__(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["deleted",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["deleted",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["deleted"]) -> MetaOapg.properties.deleted: ... @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["deleted",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["deleted",], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/get_model_endpoint_v1_response.py b/launch/api_client/model/get_model_endpoint_v1_response.py index a14d8486..41b4e554 100644 --- a/launch/api_client/model/get_model_endpoint_v1_response.py +++ b/launch/api_client/model/get_model_endpoint_v1_response.py @@ -83,11 +83,17 @@ class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/get_model_endpoint_v1_response.pyi b/launch/api_client/model/get_model_endpoint_v1_response.pyi index 299c0026..9f1beb10 100644 --- a/launch/api_client/model/get_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/get_model_endpoint_v1_response.pyi @@ -74,10 +74,16 @@ class GetModelEndpointV1Response(schemas.DictSchema): class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/http_validation_error.py b/launch/api_client/model/http_validation_error.py index 51e9ef8b..6206ad17 100644 --- a/launch/api_client/model/http_validation_error.py +++ b/launch/api_client/model/http_validation_error.py @@ -64,7 +64,13 @@ def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.pro def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["detail",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -78,7 +84,13 @@ def get_item_oapg( def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["detail",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["detail",], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/http_validation_error.pyi b/launch/api_client/model/http_validation_error.pyi index 437f1853..3a172fce 100644 --- a/launch/api_client/model/http_validation_error.pyi +++ b/launch/api_client/model/http_validation_error.pyi @@ -54,7 +54,13 @@ class HTTPValidationError(schemas.DictSchema): def __getitem__(self, name: typing_extensions.Literal["detail"]) -> MetaOapg.properties.detail: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["detail",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["detail",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload @@ -63,7 +69,13 @@ class HTTPValidationError(schemas.DictSchema): ) -> typing.Union[MetaOapg.properties.detail, 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["detail",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["detail",], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/list_model_bundles_v1_response.py b/launch/api_client/model/list_model_bundles_v1_response.py index 7d844835..85827680 100644 --- a/launch/api_client/model/list_model_bundles_v1_response.py +++ b/launch/api_client/model/list_model_bundles_v1_response.py @@ -72,7 +72,13 @@ def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaO def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["model_bundles",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -84,7 +90,13 @@ def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> Met def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["model_bundles",], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/list_model_bundles_v1_response.pyi b/launch/api_client/model/list_model_bundles_v1_response.pyi index 421b33c7..044323e2 100644 --- a/launch/api_client/model/list_model_bundles_v1_response.pyi +++ b/launch/api_client/model/list_model_bundles_v1_response.pyi @@ -62,14 +62,26 @@ class ListModelBundlesV1Response(schemas.DictSchema): def __getitem__(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_bundles",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["model_bundles",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["model_bundles"]) -> MetaOapg.properties.model_bundles: ... @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["model_bundles",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["model_bundles",], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/list_model_endpoints_v1_response.py b/launch/api_client/model/list_model_endpoints_v1_response.py index 90e47d13..93efc7f3 100644 --- a/launch/api_client/model/list_model_endpoints_v1_response.py +++ b/launch/api_client/model/list_model_endpoints_v1_response.py @@ -73,7 +73,13 @@ def __getitem__(self, name: typing_extensions.Literal["model_endpoints"]) -> Met def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["model_endpoints",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -85,7 +91,13 @@ def get_item_oapg(self, name: typing_extensions.Literal["model_endpoints"]) -> M def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["model_endpoints",], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/list_model_endpoints_v1_response.pyi b/launch/api_client/model/list_model_endpoints_v1_response.pyi index 4793ea8e..e5ef6e13 100644 --- a/launch/api_client/model/list_model_endpoints_v1_response.pyi +++ b/launch/api_client/model/list_model_endpoints_v1_response.pyi @@ -65,7 +65,13 @@ class ListModelEndpointsV1Response(schemas.DictSchema): ) -> MetaOapg.properties.model_endpoints: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["model_endpoints",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["model_endpoints",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload @@ -74,7 +80,13 @@ class ListModelEndpointsV1Response(schemas.DictSchema): ) -> MetaOapg.properties.model_endpoints: ... @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["model_endpoints",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["model_endpoints",], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/update_batch_job_v1_request.py b/launch/api_client/model/update_batch_job_v1_request.py index 55cbfa11..3e1de5a1 100644 --- a/launch/api_client/model/update_batch_job_v1_request.py +++ b/launch/api_client/model/update_batch_job_v1_request.py @@ -51,7 +51,13 @@ def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.pro def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["cancel",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -63,7 +69,13 @@ def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.p def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["cancel",], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/update_batch_job_v1_request.pyi b/launch/api_client/model/update_batch_job_v1_request.pyi index 9f146df2..a86ddc67 100644 --- a/launch/api_client/model/update_batch_job_v1_request.pyi +++ b/launch/api_client/model/update_batch_job_v1_request.pyi @@ -44,14 +44,26 @@ class UpdateBatchJobV1Request(schemas.DictSchema): def __getitem__(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cancel",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["cancel",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["cancel"]) -> MetaOapg.properties.cancel: ... @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["cancel",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["cancel",], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/update_batch_job_v1_response.py b/launch/api_client/model/update_batch_job_v1_response.py index cb9129f5..00236e84 100644 --- a/launch/api_client/model/update_batch_job_v1_response.py +++ b/launch/api_client/model/update_batch_job_v1_response.py @@ -51,7 +51,13 @@ def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.pr def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["success",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -63,7 +69,13 @@ def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg. def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["success",], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/update_batch_job_v1_response.pyi b/launch/api_client/model/update_batch_job_v1_response.pyi index 5f33c30d..25a2b4b7 100644 --- a/launch/api_client/model/update_batch_job_v1_response.pyi +++ b/launch/api_client/model/update_batch_job_v1_response.pyi @@ -44,14 +44,26 @@ class UpdateBatchJobV1Response(schemas.DictSchema): def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["success",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ... @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["success",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["success",], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/update_model_endpoint_v1_request.py b/launch/api_client/model/update_model_endpoint_v1_request.py index 811edbcd..eea59db8 100644 --- a/launch/api_client/model/update_model_endpoint_v1_request.py +++ b/launch/api_client/model/update_model_endpoint_v1_request.py @@ -128,11 +128,17 @@ class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/update_model_endpoint_v1_request.pyi b/launch/api_client/model/update_model_endpoint_v1_request.pyi index 50acf6cb..f3d5cbe4 100644 --- a/launch/api_client/model/update_model_endpoint_v1_request.pyi +++ b/launch/api_client/model/update_model_endpoint_v1_request.pyi @@ -117,10 +117,16 @@ class UpdateModelEndpointV1Request(schemas.DictSchema): class labels(schemas.DictSchema): class MetaOapg: additional_properties = schemas.StrSchema - def __getitem__(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def __getitem__( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: # dict_instance[name] accessor return super().__getitem__(name) - def get_item_oapg(self, name: typing.Union[str,]) -> MetaOapg.additional_properties: + def get_item_oapg( + self, + name: typing.Union[str,], + ) -> MetaOapg.additional_properties: return super().get_item_oapg(name) def __new__( cls, diff --git a/launch/api_client/model/update_model_endpoint_v1_response.py b/launch/api_client/model/update_model_endpoint_v1_response.py index 4369866b..e65d917f 100644 --- a/launch/api_client/model/update_model_endpoint_v1_response.py +++ b/launch/api_client/model/update_model_endpoint_v1_response.py @@ -53,7 +53,13 @@ def __getitem__( def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["endpoint_creation_task_id",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @@ -67,7 +73,13 @@ def get_item_oapg( def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["endpoint_creation_task_id",], + str, + ], + ): return super().get_item_oapg(name) def __new__( diff --git a/launch/api_client/model/update_model_endpoint_v1_response.pyi b/launch/api_client/model/update_model_endpoint_v1_response.pyi index 2b330725..cc0ef32b 100644 --- a/launch/api_client/model/update_model_endpoint_v1_response.pyi +++ b/launch/api_client/model/update_model_endpoint_v1_response.pyi @@ -46,7 +46,13 @@ class UpdateModelEndpointV1Response(schemas.DictSchema): ) -> MetaOapg.properties.endpoint_creation_task_id: ... @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint_creation_task_id",], str]): + def __getitem__( + self, + name: typing.Union[ + typing_extensions.Literal["endpoint_creation_task_id",], + str, + ], + ): # dict_instance[name] accessor return super().__getitem__(name) @typing.overload @@ -55,7 +61,13 @@ class UpdateModelEndpointV1Response(schemas.DictSchema): ) -> MetaOapg.properties.endpoint_creation_task_id: ... @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["endpoint_creation_task_id",], str]): + def get_item_oapg( + self, + name: typing.Union[ + typing_extensions.Literal["endpoint_creation_task_id",], + str, + ], + ): return super().get_item_oapg(name) def __new__( cls, From cf728c2e97fdd871ac69b53c25f33259d4a90df7 Mon Sep 17 00:00:00 2001 From: Anirudh-Scale Date: Wed, 22 Mar 2023 01:07:49 +0000 Subject: [PATCH 11/11] update to v1 --- launch/client.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/launch/client.py b/launch/client.py index 9130270c..a2dc86fa 100644 --- a/launch/client.py +++ b/launch/client.py @@ -27,8 +27,8 @@ from launch.api_client.model.create_model_bundle_request import ( CreateModelBundleRequest, ) -from launch.api_client.model.create_model_endpoint_request import ( - CreateModelEndpointRequest, +from launch.api_client.model.create_model_endpoint_v1_request import ( + CreateModelEndpointV1Request, ) from launch.api_client.model.endpoint_predict_request import ( EndpointPredictRequest, @@ -42,8 +42,8 @@ ModelBundlePackagingType, ) from launch.api_client.model.model_endpoint_type import ModelEndpointType -from launch.api_client.model.update_model_endpoint_request import ( - UpdateModelEndpointRequest, +from launch.api_client.model.update_model_endpoint_v1_request import ( + UpdateModelEndpointV1Request, ) from launch.connection import Connection from launch.constants import ( @@ -802,7 +802,7 @@ def create_model_endpoint( default_callback_auth=default_callback_auth, storage=storage, ) - create_model_endpoint_request = CreateModelEndpointRequest(**payload) + create_model_endpoint_request = CreateModelEndpointV1Request(**payload) response = api_instance.create_model_endpoint_v1_model_endpoints_post( body=create_model_endpoint_request, skip_deserialization=True, @@ -972,7 +972,7 @@ def edit_model_endpoint( default_callback_auth=default_callback_auth, storage=storage, ) - update_model_endpoint_request = UpdateModelEndpointRequest(**payload) + update_model_endpoint_request = UpdateModelEndpointV1Request(**payload) path_params = frozendict({"model_endpoint_id": model_endpoint_id}) response = api_instance.update_model_endpoint_v1_model_endpoints_model_endpoint_id_put( # type: ignore body=update_model_endpoint_request,