Skip to content

Commit

Permalink
Automatic update API spec from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Mar 1, 2024
1 parent 04c85ca commit f4283fc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions mlp-specs/mlp-rest-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8797,10 +8797,10 @@ components:
totalPages:
type: integer
format: int32
pageable:
$ref: '#/components/schemas/PageableObject'
first:
type: boolean
pageable:
$ref: '#/components/schemas/PageableObject'
size:
type: integer
format: int32
Expand Down
20 changes: 10 additions & 10 deletions mlp_api/model/page_stat_log_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ class MetaOapg:
class properties:
totalElements = schemas.Int64Schema
totalPages = schemas.Int32Schema
first = schemas.BoolSchema

@staticmethod
def pageable() -> typing.Type['PageableObject']:
return PageableObject
first = schemas.BoolSchema
size = schemas.Int32Schema


Expand Down Expand Up @@ -81,8 +81,8 @@ def sort() -> typing.Type['Sort']:
__annotations__ = {
"totalElements": totalElements,
"totalPages": totalPages,
"pageable": pageable,
"first": first,
"pageable": pageable,
"size": size,
"content": content,
"number": number,
Expand All @@ -99,10 +99,10 @@ def __getitem__(self, name: typing_extensions.Literal["totalElements"]) -> MetaO
def __getitem__(self, name: typing_extensions.Literal["totalPages"]) -> MetaOapg.properties.totalPages: ...

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

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

@typing.overload
def __getitem__(self, name: typing_extensions.Literal["size"]) -> MetaOapg.properties.size: ...
Expand All @@ -128,7 +128,7 @@ def __getitem__(self, name: typing_extensions.Literal["empty"]) -> MetaOapg.prop
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...

def __getitem__(self, name: typing.Union[typing_extensions.Literal["totalElements", "totalPages", "pageable", "first", "size", "content", "number", "sort", "numberOfElements", "last", "empty", ], str]):
def __getitem__(self, name: typing.Union[typing_extensions.Literal["totalElements", "totalPages", "first", "pageable", "size", "content", "number", "sort", "numberOfElements", "last", "empty", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)

Expand All @@ -140,10 +140,10 @@ def get_item_oapg(self, name: typing_extensions.Literal["totalElements"]) -> typ
def get_item_oapg(self, name: typing_extensions.Literal["totalPages"]) -> typing.Union[MetaOapg.properties.totalPages, schemas.Unset]: ...

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

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

@typing.overload
def get_item_oapg(self, name: typing_extensions.Literal["size"]) -> typing.Union[MetaOapg.properties.size, schemas.Unset]: ...
Expand All @@ -169,7 +169,7 @@ def get_item_oapg(self, name: typing_extensions.Literal["empty"]) -> typing.Unio
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...

def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["totalElements", "totalPages", "pageable", "first", "size", "content", "number", "sort", "numberOfElements", "last", "empty", ], str]):
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["totalElements", "totalPages", "first", "pageable", "size", "content", "number", "sort", "numberOfElements", "last", "empty", ], str]):
return super().get_item_oapg(name)


Expand All @@ -178,8 +178,8 @@ def __new__(
*_args: typing.Union[dict, frozendict.frozendict, ],
totalElements: typing.Union[MetaOapg.properties.totalElements, decimal.Decimal, int, schemas.Unset] = schemas.unset,
totalPages: typing.Union[MetaOapg.properties.totalPages, decimal.Decimal, int, schemas.Unset] = schemas.unset,
pageable: typing.Union['PageableObject', schemas.Unset] = schemas.unset,
first: typing.Union[MetaOapg.properties.first, bool, schemas.Unset] = schemas.unset,
pageable: typing.Union['PageableObject', schemas.Unset] = schemas.unset,
size: typing.Union[MetaOapg.properties.size, decimal.Decimal, int, schemas.Unset] = schemas.unset,
content: typing.Union[MetaOapg.properties.content, list, tuple, schemas.Unset] = schemas.unset,
number: typing.Union[MetaOapg.properties.number, decimal.Decimal, int, schemas.Unset] = schemas.unset,
Expand All @@ -195,8 +195,8 @@ def __new__(
*_args,
totalElements=totalElements,
totalPages=totalPages,
pageable=pageable,
first=first,
pageable=pageable,
size=size,
content=content,
number=number,
Expand Down
20 changes: 10 additions & 10 deletions mlp_api/model/page_stat_log_data.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ class PageStatLogData(
class properties:
totalElements = schemas.Int64Schema
totalPages = schemas.Int32Schema
first = schemas.BoolSchema

@staticmethod
def pageable() -> typing.Type['PageableObject']:
return PageableObject
first = schemas.BoolSchema
size = schemas.Int32Schema


Expand Down Expand Up @@ -81,8 +81,8 @@ class PageStatLogData(
__annotations__ = {
"totalElements": totalElements,
"totalPages": totalPages,
"pageable": pageable,
"first": first,
"pageable": pageable,
"size": size,
"content": content,
"number": number,
Expand All @@ -99,10 +99,10 @@ class PageStatLogData(
def __getitem__(self, name: typing_extensions.Literal["totalPages"]) -> MetaOapg.properties.totalPages: ...

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

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

@typing.overload
def __getitem__(self, name: typing_extensions.Literal["size"]) -> MetaOapg.properties.size: ...
Expand All @@ -128,7 +128,7 @@ class PageStatLogData(
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...

def __getitem__(self, name: typing.Union[typing_extensions.Literal["totalElements", "totalPages", "pageable", "first", "size", "content", "number", "sort", "numberOfElements", "last", "empty", ], str]):
def __getitem__(self, name: typing.Union[typing_extensions.Literal["totalElements", "totalPages", "first", "pageable", "size", "content", "number", "sort", "numberOfElements", "last", "empty", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)

Expand All @@ -140,10 +140,10 @@ class PageStatLogData(
def get_item_oapg(self, name: typing_extensions.Literal["totalPages"]) -> typing.Union[MetaOapg.properties.totalPages, schemas.Unset]: ...

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

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

@typing.overload
def get_item_oapg(self, name: typing_extensions.Literal["size"]) -> typing.Union[MetaOapg.properties.size, schemas.Unset]: ...
Expand All @@ -169,7 +169,7 @@ class PageStatLogData(
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...

def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["totalElements", "totalPages", "pageable", "first", "size", "content", "number", "sort", "numberOfElements", "last", "empty", ], str]):
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["totalElements", "totalPages", "first", "pageable", "size", "content", "number", "sort", "numberOfElements", "last", "empty", ], str]):
return super().get_item_oapg(name)


Expand All @@ -178,8 +178,8 @@ class PageStatLogData(
*_args: typing.Union[dict, frozendict.frozendict, ],
totalElements: typing.Union[MetaOapg.properties.totalElements, decimal.Decimal, int, schemas.Unset] = schemas.unset,
totalPages: typing.Union[MetaOapg.properties.totalPages, decimal.Decimal, int, schemas.Unset] = schemas.unset,
pageable: typing.Union['PageableObject', schemas.Unset] = schemas.unset,
first: typing.Union[MetaOapg.properties.first, bool, schemas.Unset] = schemas.unset,
pageable: typing.Union['PageableObject', schemas.Unset] = schemas.unset,
size: typing.Union[MetaOapg.properties.size, decimal.Decimal, int, schemas.Unset] = schemas.unset,
content: typing.Union[MetaOapg.properties.content, list, tuple, schemas.Unset] = schemas.unset,
number: typing.Union[MetaOapg.properties.number, decimal.Decimal, int, schemas.Unset] = schemas.unset,
Expand All @@ -195,8 +195,8 @@ class PageStatLogData(
*_args,
totalElements=totalElements,
totalPages=totalPages,
pageable=pageable,
first=first,
pageable=pageable,
size=size,
content=content,
number=number,
Expand Down

0 comments on commit f4283fc

Please sign in to comment.