Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 22, 2024
1 parent 02dc91c commit f3e3ce8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ def edit(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[Advertisement]:
"""
Update advertisement for rule.
"""Update advertisement for rule.
Args:
rule_id: The id of the rule.
Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -102,10 +105,13 @@ async def edit(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[Advertisement]:
"""
Update advertisement for rule.
"""Update advertisement for rule.
Args:
rule_id: The id of the rule.
Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down
12 changes: 12 additions & 0 deletions src/cloudflare/resources/magic_network_monitoring/rules/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ def delete(
Delete a network monitoring rule for account.
Args:
rule_id: The id of the rule. Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -230,6 +232,8 @@ def edit(
Update a network monitoring rule for account.
Args:
rule_id: The id of the rule. Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -271,6 +275,8 @@ def get(
List a single network monitoring rule for account.
Args:
rule_id: The id of the rule. Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -440,6 +446,8 @@ async def delete(
Delete a network monitoring rule for account.
Args:
rule_id: The id of the rule. Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -482,6 +490,8 @@ async def edit(
Update a network monitoring rule for account.
Args:
rule_id: The id of the rule. Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -523,6 +533,8 @@ async def get(
List a single network monitoring rule for account.
Args:
rule_id: The id of the rule. Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class MagicNetworkMonitoringRule(BaseModel):
prefixes: List[str]

id: Optional[str] = None
"""The id of the rule. Must be unique."""

bandwidth_threshold: Optional[float] = None
"""The number of bits per second for the rule.
Expand Down

0 comments on commit f3e3ce8

Please sign in to comment.