-
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 (#255)
- Loading branch information
1 parent
04f7e9d
commit a9f75be
Showing
27 changed files
with
836 additions
and
4,335 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
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,61 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import List, Optional | ||
from datetime import datetime | ||
from typing_extensions import Literal | ||
|
||
from .shared import UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | ||
from .._models import BaseModel | ||
|
||
__all__ = ["BlockRule", "ActionParameters", "ActionParametersResponse"] | ||
|
||
|
||
class ActionParametersResponse(BaseModel): | ||
content: str | ||
"""The content to return.""" | ||
|
||
content_type: str | ||
"""The type of the content to return.""" | ||
|
||
status_code: int | ||
"""The status code to return.""" | ||
|
||
|
||
class ActionParameters(BaseModel): | ||
response: Optional[ActionParametersResponse] = None | ||
"""The response to show when the block is applied.""" | ||
|
||
|
||
class BlockRule(BaseModel): | ||
last_updated: datetime | ||
"""The timestamp of when the rule was last modified.""" | ||
|
||
version: str | ||
"""The version of the rule.""" | ||
|
||
id: Optional[str] = None | ||
"""The unique ID of the rule.""" | ||
|
||
action: Optional[Literal["block"]] = None | ||
"""The action to perform when the rule matches.""" | ||
|
||
action_parameters: Optional[ActionParameters] = None | ||
"""The parameters configuring the rule's action.""" | ||
|
||
categories: Optional[List[str]] = None | ||
"""The categories of the rule.""" | ||
|
||
description: Optional[str] = None | ||
"""An informative description of the rule.""" | ||
|
||
enabled: Optional[bool] = None | ||
"""Whether the rule should be executed.""" | ||
|
||
expression: Optional[str] = None | ||
"""The expression defining which traffic will match the rule.""" | ||
|
||
logging: Optional[UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c] = None | ||
"""An object configuring the rule's logging behavior.""" | ||
|
||
ref: Optional[str] = None | ||
"""The reference of the rule (the rule ID by default).""" |
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,51 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from typing_extensions import Literal, Required, TypedDict | ||
|
||
from ..types import shared_params | ||
|
||
__all__ = ["BlockRuleParam", "ActionParameters", "ActionParametersResponse"] | ||
|
||
|
||
class ActionParametersResponse(TypedDict, total=False): | ||
content: Required[str] | ||
"""The content to return.""" | ||
|
||
content_type: Required[str] | ||
"""The type of the content to return.""" | ||
|
||
status_code: Required[int] | ||
"""The status code to return.""" | ||
|
||
|
||
class ActionParameters(TypedDict, total=False): | ||
response: ActionParametersResponse | ||
"""The response to show when the block is applied.""" | ||
|
||
|
||
class BlockRuleParam(TypedDict, total=False): | ||
id: str | ||
"""The unique ID of the rule.""" | ||
|
||
action: Literal["block"] | ||
"""The action to perform when the rule matches.""" | ||
|
||
action_parameters: ActionParameters | ||
"""The parameters configuring the rule's action.""" | ||
|
||
description: str | ||
"""An informative description of the rule.""" | ||
|
||
enabled: bool | ||
"""Whether the rule should be executed.""" | ||
|
||
expression: str | ||
"""The expression defining which traffic will match the rule.""" | ||
|
||
logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | ||
"""An object configuring the rule's logging behavior.""" | ||
|
||
ref: str | ||
"""The reference of the rule (the rule ID by default).""" |
Oops, something went wrong.