From f3e3ce861d66d402f4577b0406586d96087b0e05 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 18:24:21 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#277) --- .../rules/advertisements.py | 14 ++++++++++---- .../magic_network_monitoring/rules/rules.py | 12 ++++++++++++ .../magic_network_monitoring_rule.py | 1 + 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py b/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py index e2ca1205ecf..2db69ec78ac 100644 --- a/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py +++ b/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py @@ -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 @@ -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 diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/rules.py b/src/cloudflare/resources/magic_network_monitoring/rules/rules.py index 7759a7b2f19..2cc9c053e75 100644 --- a/src/cloudflare/resources/magic_network_monitoring/rules/rules.py +++ b/src/cloudflare/resources/magic_network_monitoring/rules/rules.py @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/src/cloudflare/types/magic_network_monitoring/magic_network_monitoring_rule.py b/src/cloudflare/types/magic_network_monitoring/magic_network_monitoring_rule.py index 8421ef7df0d..3dbb9d85afa 100644 --- a/src/cloudflare/types/magic_network_monitoring/magic_network_monitoring_rule.py +++ b/src/cloudflare/types/magic_network_monitoring/magic_network_monitoring_rule.py @@ -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.