-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): update via SDK Studio (#253)
- Loading branch information
1 parent
3c334bb
commit 31c592f
Showing
5 changed files
with
68 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,11 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import List, Optional | ||
from __future__ import annotations | ||
|
||
from ..._models import BaseModel | ||
from typing import List | ||
|
||
__all__ = ["Trace"] | ||
|
||
Trace = List["TraceItem"] | ||
|
||
class Trace(BaseModel): | ||
action: Optional[str] = None | ||
"""If step type is rule, then action performed by this rule""" | ||
|
||
action_parameters: Optional[object] = None | ||
"""If step type is rule, then action parameters of this rule as JSON""" | ||
|
||
description: Optional[str] = None | ||
"""If step type is rule or ruleset, the description of this entity""" | ||
|
||
expression: Optional[str] = None | ||
"""If step type is rule, then expression used to match for this rule""" | ||
|
||
kind: Optional[str] = None | ||
"""If step type is ruleset, then kind of this ruleset""" | ||
|
||
matched: Optional[bool] = None | ||
"""Whether tracing step affected tracing request/response""" | ||
|
||
name: Optional[str] = None | ||
"""If step type is ruleset, then name of this ruleset""" | ||
|
||
step_name: Optional[str] = None | ||
"""Tracing step identifying name""" | ||
|
||
trace: Optional[List[Trace]] = None | ||
|
||
type: Optional[str] = None | ||
"""Tracing step type""" | ||
from .trace_item import TraceItem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from typing import Optional | ||
|
||
from ..._compat import PYDANTIC_V2 | ||
from ..._models import BaseModel | ||
|
||
__all__ = ["TraceItem"] | ||
|
||
|
||
class TraceItem(BaseModel): | ||
action: Optional[str] = None | ||
"""If step type is rule, then action performed by this rule""" | ||
|
||
action_parameters: Optional[object] = None | ||
"""If step type is rule, then action parameters of this rule as JSON""" | ||
|
||
description: Optional[str] = None | ||
"""If step type is rule or ruleset, the description of this entity""" | ||
|
||
expression: Optional[str] = None | ||
"""If step type is rule, then expression used to match for this rule""" | ||
|
||
kind: Optional[str] = None | ||
"""If step type is ruleset, then kind of this ruleset""" | ||
|
||
matched: Optional[bool] = None | ||
"""Whether tracing step affected tracing request/response""" | ||
|
||
name: Optional[str] = None | ||
"""If step type is ruleset, then name of this ruleset""" | ||
|
||
step_name: Optional[str] = None | ||
"""Tracing step identifying name""" | ||
|
||
trace: Optional["Trace"] = None | ||
|
||
type: Optional[str] = None | ||
"""Tracing step type""" | ||
|
||
|
||
from .trace import Trace | ||
|
||
if PYDANTIC_V2: | ||
TraceItem.model_rebuild() | ||
else: | ||
TraceItem.update_forward_refs() # type: ignore |