Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Aug 26, 2024
1 parent 0090a06 commit 24230df
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 85 deletions.
18 changes: 1 addition & 17 deletions src/openlayer/types/commits/test_result_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -147,6 +133,4 @@ class Item(BaseModel):

class TestResultListResponse(BaseModel):
__test__ = False
api_meta: _Meta = FieldInfo(alias="_meta")

items: List[Item]
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -147,6 +133,4 @@ class Item(BaseModel):

class TestResultListResponse(BaseModel):
__test__ = False
api_meta: _Meta = FieldInfo(alias="_meta")

items: List[Item]
18 changes: 1 addition & 17 deletions src/openlayer/types/project_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -107,6 +93,4 @@ class Item(BaseModel):


class ProjectListResponse(BaseModel):
api_meta: _Meta = FieldInfo(alias="_meta")

items: List[Item]
18 changes: 1 addition & 17 deletions src/openlayer/types/projects/commit_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -121,6 +107,4 @@ class Item(BaseModel):


class CommitListResponse(BaseModel):
api_meta: _Meta = FieldInfo(alias="_meta")

items: List[Item]
18 changes: 1 addition & 17 deletions src/openlayer/types/projects/inference_pipeline_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -76,6 +62,4 @@ class Item(BaseModel):


class InferencePipelineListResponse(BaseModel):
api_meta: _Meta = FieldInfo(alias="_meta")

items: List[Item]

0 comments on commit 24230df

Please sign in to comment.