From 02dc91c727d7c01b8d0fe3be2a920e9cff5031d0 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:16:05 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#276) --- .../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.