Skip to content

Commit 02dc91c

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#276)
1 parent 9683250 commit 02dc91c

File tree

3 files changed

+4
-23
lines changed

3 files changed

+4
-23
lines changed

src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py

+4-10
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,10 @@ def edit(
5050
extra_body: Body | None = None,
5151
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
5252
) -> Optional[Advertisement]:
53-
"""Update advertisement for rule.
53+
"""
54+
Update advertisement for rule.
5455
5556
Args:
56-
rule_id: The id of the rule.
57-
58-
Must be unique.
59-
6057
extra_headers: Send extra headers
6158
6259
extra_query: Add additional query parameters to the request
@@ -105,13 +102,10 @@ async def edit(
105102
extra_body: Body | None = None,
106103
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
107104
) -> Optional[Advertisement]:
108-
"""Update advertisement for rule.
105+
"""
106+
Update advertisement for rule.
109107
110108
Args:
111-
rule_id: The id of the rule.
112-
113-
Must be unique.
114-
115109
extra_headers: Send extra headers
116110
117111
extra_query: Add additional query parameters to the request

src/cloudflare/resources/magic_network_monitoring/rules/rules.py

-12
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ def delete(
188188
Delete a network monitoring rule for account.
189189
190190
Args:
191-
rule_id: The id of the rule. Must be unique.
192-
193191
extra_headers: Send extra headers
194192
195193
extra_query: Add additional query parameters to the request
@@ -232,8 +230,6 @@ def edit(
232230
Update a network monitoring rule for account.
233231
234232
Args:
235-
rule_id: The id of the rule. Must be unique.
236-
237233
extra_headers: Send extra headers
238234
239235
extra_query: Add additional query parameters to the request
@@ -275,8 +271,6 @@ def get(
275271
List a single network monitoring rule for account.
276272
277273
Args:
278-
rule_id: The id of the rule. Must be unique.
279-
280274
extra_headers: Send extra headers
281275
282276
extra_query: Add additional query parameters to the request
@@ -446,8 +440,6 @@ async def delete(
446440
Delete a network monitoring rule for account.
447441
448442
Args:
449-
rule_id: The id of the rule. Must be unique.
450-
451443
extra_headers: Send extra headers
452444
453445
extra_query: Add additional query parameters to the request
@@ -490,8 +482,6 @@ async def edit(
490482
Update a network monitoring rule for account.
491483
492484
Args:
493-
rule_id: The id of the rule. Must be unique.
494-
495485
extra_headers: Send extra headers
496486
497487
extra_query: Add additional query parameters to the request
@@ -533,8 +523,6 @@ async def get(
533523
List a single network monitoring rule for account.
534524
535525
Args:
536-
rule_id: The id of the rule. Must be unique.
537-
538526
extra_headers: Send extra headers
539527
540528
extra_query: Add additional query parameters to the request

src/cloudflare/types/magic_network_monitoring/magic_network_monitoring_rule.py

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class MagicNetworkMonitoringRule(BaseModel):
3535
prefixes: List[str]
3636

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

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

0 commit comments

Comments
 (0)