Skip to content

Commit f97054f

Browse files
feat(api): OpenAPI spec update via Stainless API (#277)
1 parent 4904d4b commit f97054f

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

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

+10-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,13 @@ def edit(
5050
extra_body: Body | None = None,
5151
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
5252
) -> Optional[Advertisement]:
53-
"""
54-
Update advertisement for rule.
53+
"""Update advertisement for rule.
5554
5655
Args:
56+
rule_id: The id of the rule.
57+
58+
Must be unique.
59+
5760
extra_headers: Send extra headers
5861
5962
extra_query: Add additional query parameters to the request
@@ -102,10 +105,13 @@ async def edit(
102105
extra_body: Body | None = None,
103106
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
104107
) -> Optional[Advertisement]:
105-
"""
106-
Update advertisement for rule.
108+
"""Update advertisement for rule.
107109
108110
Args:
111+
rule_id: The id of the rule.
112+
113+
Must be unique.
114+
109115
extra_headers: Send extra headers
110116
111117
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,6 +188,8 @@ 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+
191193
extra_headers: Send extra headers
192194
193195
extra_query: Add additional query parameters to the request
@@ -230,6 +232,8 @@ def edit(
230232
Update a network monitoring rule for account.
231233
232234
Args:
235+
rule_id: The id of the rule. Must be unique.
236+
233237
extra_headers: Send extra headers
234238
235239
extra_query: Add additional query parameters to the request
@@ -271,6 +275,8 @@ def get(
271275
List a single network monitoring rule for account.
272276
273277
Args:
278+
rule_id: The id of the rule. Must be unique.
279+
274280
extra_headers: Send extra headers
275281
276282
extra_query: Add additional query parameters to the request
@@ -440,6 +446,8 @@ async def delete(
440446
Delete a network monitoring rule for account.
441447
442448
Args:
449+
rule_id: The id of the rule. Must be unique.
450+
443451
extra_headers: Send extra headers
444452
445453
extra_query: Add additional query parameters to the request
@@ -482,6 +490,8 @@ async def edit(
482490
Update a network monitoring rule for account.
483491
484492
Args:
493+
rule_id: The id of the rule. Must be unique.
494+
485495
extra_headers: Send extra headers
486496
487497
extra_query: Add additional query parameters to the request
@@ -523,6 +533,8 @@ async def get(
523533
List a single network monitoring rule for account.
524534
525535
Args:
536+
rule_id: The id of the rule. Must be unique.
537+
526538
extra_headers: Send extra headers
527539
528540
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,6 +35,7 @@ class MagicNetworkMonitoringRule(BaseModel):
3535
prefixes: List[str]
3636

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

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

0 commit comments

Comments
 (0)