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