Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#276)
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 9683250 commit 02dc91c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,10 @@ 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 @@ -105,13 +102,10 @@ 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: 0 additions & 12 deletions src/cloudflare/resources/magic_network_monitoring/rules/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ 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 @@ -232,8 +230,6 @@ 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 @@ -275,8 +271,6 @@ 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 @@ -446,8 +440,6 @@ 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 @@ -490,8 +482,6 @@ 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 @@ -533,8 +523,6 @@ 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,7 +35,6 @@ 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 02dc91c

Please sign in to comment.