From 2101d6d1b63d262fc3b032b95cdea30ffe9b3b2c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 19:16:26 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#179) --- .../resources/firewall/access_rules.py | 8 ++++---- src/cloudflare/resources/rulesets/rules.py | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/cloudflare/resources/firewall/access_rules.py b/src/cloudflare/resources/firewall/access_rules.py index 85dfe5f0f0a..2ac2903cb19 100644 --- a/src/cloudflare/resources/firewall/access_rules.py +++ b/src/cloudflare/resources/firewall/access_rules.py @@ -288,9 +288,9 @@ def edit( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> Optional[AccessRuleEditResponse]: """ - Updates an IP Access rule defined at the account level. + Updates an IP Access rule defined. - Note: This operation will affect all zones in the account. + Note: This operation will affect all zones in the account or zone. Args: configuration: The rule configuration. @@ -662,9 +662,9 @@ async def edit( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> Optional[AccessRuleEditResponse]: """ - Updates an IP Access rule defined at the account level. + Updates an IP Access rule defined. - Note: This operation will affect all zones in the account. + Note: This operation will affect all zones in the account or zone. Args: configuration: The rule configuration. diff --git a/src/cloudflare/resources/rulesets/rules.py b/src/cloudflare/resources/rulesets/rules.py index aa117100979..c7c92424969 100644 --- a/src/cloudflare/resources/rulesets/rules.py +++ b/src/cloudflare/resources/rulesets/rules.py @@ -436,7 +436,7 @@ def edit( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> RulesetsRulesetResponse: """ - Updates an existing rule in an account ruleset. + Updates an existing rule in an account or zone ruleset. Args: ruleset_id: The unique ID of the ruleset. @@ -497,7 +497,7 @@ def edit( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> RulesetsRulesetResponse: """ - Updates an existing rule in an account ruleset. + Updates an existing rule in an account or zone ruleset. Args: ruleset_id: The unique ID of the ruleset. @@ -558,7 +558,7 @@ def edit( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> RulesetsRulesetResponse: """ - Updates an existing rule in an account ruleset. + Updates an existing rule in an account or zone ruleset. Args: ruleset_id: The unique ID of the ruleset. @@ -619,7 +619,7 @@ def edit( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> RulesetsRulesetResponse: """ - Updates an existing rule in an account ruleset. + Updates an existing rule in an account or zone ruleset. Args: ruleset_id: The unique ID of the ruleset. @@ -1133,7 +1133,7 @@ async def edit( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> RulesetsRulesetResponse: """ - Updates an existing rule in an account ruleset. + Updates an existing rule in an account or zone ruleset. Args: ruleset_id: The unique ID of the ruleset. @@ -1194,7 +1194,7 @@ async def edit( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> RulesetsRulesetResponse: """ - Updates an existing rule in an account ruleset. + Updates an existing rule in an account or zone ruleset. Args: ruleset_id: The unique ID of the ruleset. @@ -1255,7 +1255,7 @@ async def edit( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> RulesetsRulesetResponse: """ - Updates an existing rule in an account ruleset. + Updates an existing rule in an account or zone ruleset. Args: ruleset_id: The unique ID of the ruleset. @@ -1316,7 +1316,7 @@ async def edit( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> RulesetsRulesetResponse: """ - Updates an existing rule in an account ruleset. + Updates an existing rule in an account or zone ruleset. Args: ruleset_id: The unique ID of the ruleset.