From 24230dffda1fe7e37068fd98d59647bf085bda54 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 24 Aug 2024 04:15:47 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#325) --- .../types/commits/test_result_list_response.py | 18 +----------------- .../test_result_list_response.py | 18 +----------------- src/openlayer/types/project_list_response.py | 18 +----------------- .../types/projects/commit_list_response.py | 18 +----------------- .../inference_pipeline_list_response.py | 18 +----------------- 5 files changed, 5 insertions(+), 85 deletions(-) diff --git a/src/openlayer/types/commits/test_result_list_response.py b/src/openlayer/types/commits/test_result_list_response.py index b099bfe0..c62a3efc 100644 --- a/src/openlayer/types/commits/test_result_list_response.py +++ b/src/openlayer/types/commits/test_result_list_response.py @@ -8,21 +8,7 @@ from ..._models import BaseModel -__all__ = ["TestResultListResponse", "_Meta", "Item", "ItemGoal", "ItemGoalThreshold"] - - -class _Meta(BaseModel): - page: int - """The current page.""" - - per_page: int = FieldInfo(alias="perPage") - """The number of items per page.""" - - total_items: int = FieldInfo(alias="totalItems") - """The total number of items.""" - - total_pages: int = FieldInfo(alias="totalPages") - """The total number of pages.""" +__all__ = ["TestResultListResponse", "Item", "ItemGoal", "ItemGoalThreshold"] class ItemGoalThreshold(BaseModel): @@ -147,6 +133,4 @@ class Item(BaseModel): class TestResultListResponse(BaseModel): __test__ = False - api_meta: _Meta = FieldInfo(alias="_meta") - items: List[Item] diff --git a/src/openlayer/types/inference_pipelines/test_result_list_response.py b/src/openlayer/types/inference_pipelines/test_result_list_response.py index b099bfe0..c62a3efc 100644 --- a/src/openlayer/types/inference_pipelines/test_result_list_response.py +++ b/src/openlayer/types/inference_pipelines/test_result_list_response.py @@ -8,21 +8,7 @@ from ..._models import BaseModel -__all__ = ["TestResultListResponse", "_Meta", "Item", "ItemGoal", "ItemGoalThreshold"] - - -class _Meta(BaseModel): - page: int - """The current page.""" - - per_page: int = FieldInfo(alias="perPage") - """The number of items per page.""" - - total_items: int = FieldInfo(alias="totalItems") - """The total number of items.""" - - total_pages: int = FieldInfo(alias="totalPages") - """The total number of pages.""" +__all__ = ["TestResultListResponse", "Item", "ItemGoal", "ItemGoalThreshold"] class ItemGoalThreshold(BaseModel): @@ -147,6 +133,4 @@ class Item(BaseModel): class TestResultListResponse(BaseModel): __test__ = False - api_meta: _Meta = FieldInfo(alias="_meta") - items: List[Item] diff --git a/src/openlayer/types/project_list_response.py b/src/openlayer/types/project_list_response.py index 976a68b9..34a231a5 100644 --- a/src/openlayer/types/project_list_response.py +++ b/src/openlayer/types/project_list_response.py @@ -8,21 +8,7 @@ from .._models import BaseModel -__all__ = ["ProjectListResponse", "_Meta", "Item", "ItemLinks", "ItemGitRepo"] - - -class _Meta(BaseModel): - page: int - """The current page.""" - - per_page: int = FieldInfo(alias="perPage") - """The number of items per page.""" - - total_items: int = FieldInfo(alias="totalItems") - """The total number of items.""" - - total_pages: int = FieldInfo(alias="totalPages") - """The total number of pages.""" +__all__ = ["ProjectListResponse", "Item", "ItemLinks", "ItemGitRepo"] class ItemLinks(BaseModel): @@ -107,6 +93,4 @@ class Item(BaseModel): class ProjectListResponse(BaseModel): - api_meta: _Meta = FieldInfo(alias="_meta") - items: List[Item] diff --git a/src/openlayer/types/projects/commit_list_response.py b/src/openlayer/types/projects/commit_list_response.py index d89b9006..85003858 100644 --- a/src/openlayer/types/projects/commit_list_response.py +++ b/src/openlayer/types/projects/commit_list_response.py @@ -8,21 +8,7 @@ from ..._models import BaseModel -__all__ = ["CommitListResponse", "_Meta", "Item", "ItemCommit", "ItemLinks"] - - -class _Meta(BaseModel): - page: int - """The current page.""" - - per_page: int = FieldInfo(alias="perPage") - """The number of items per page.""" - - total_items: int = FieldInfo(alias="totalItems") - """The total number of items.""" - - total_pages: int = FieldInfo(alias="totalPages") - """The total number of pages.""" +__all__ = ["CommitListResponse", "Item", "ItemCommit", "ItemLinks"] class ItemCommit(BaseModel): @@ -121,6 +107,4 @@ class Item(BaseModel): class CommitListResponse(BaseModel): - api_meta: _Meta = FieldInfo(alias="_meta") - items: List[Item] diff --git a/src/openlayer/types/projects/inference_pipeline_list_response.py b/src/openlayer/types/projects/inference_pipeline_list_response.py index 6eeffb28..09b0c37f 100644 --- a/src/openlayer/types/projects/inference_pipeline_list_response.py +++ b/src/openlayer/types/projects/inference_pipeline_list_response.py @@ -8,21 +8,7 @@ from ..._models import BaseModel -__all__ = ["InferencePipelineListResponse", "_Meta", "Item", "ItemLinks"] - - -class _Meta(BaseModel): - page: int - """The current page.""" - - per_page: int = FieldInfo(alias="perPage") - """The number of items per page.""" - - total_items: int = FieldInfo(alias="totalItems") - """The total number of items.""" - - total_pages: int = FieldInfo(alias="totalPages") - """The total number of pages.""" +__all__ = ["InferencePipelineListResponse", "Item", "ItemLinks"] class ItemLinks(BaseModel): @@ -76,6 +62,4 @@ class Item(BaseModel): class InferencePipelineListResponse(BaseModel): - api_meta: _Meta = FieldInfo(alias="_meta") - items: List[Item]