Skip to content

Commit

Permalink
chore(internal): codegen related update (#2362)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Jan 14, 2025
1 parent ab82381 commit bac39ba
Show file tree
Hide file tree
Showing 40 changed files with 300 additions and 710 deletions.
44 changes: 22 additions & 22 deletions src/cloudflare/resources/accounts/tokens/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ def update(
token_id: str,
*,
account_id: str,
name: str,
policies: Iterable[TokenPolicy],
status: Literal["active", "disabled", "expired"],
condition: token_update_params.Condition | NotGiven = NOT_GIVEN,
expires_on: Union[str, datetime] | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
not_before: Union[str, datetime] | NotGiven = NOT_GIVEN,
policies: Iterable[TokenPolicy] | NotGiven = NOT_GIVEN,
status: Literal["active", "disabled", "expired"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -167,17 +167,17 @@ def update(
token_id: Token identifier tag.
expires_on: The expiration time on or after which the JWT MUST NOT be accepted for
processing.
name: Token name.
not_before: The time before which the token MUST NOT be accepted for processing.
policies: List of access policies assigned to the token.
status: Status of the token.
expires_on: The expiration time on or after which the JWT MUST NOT be accepted for
processing.
not_before: The time before which the token MUST NOT be accepted for processing.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand All @@ -194,12 +194,12 @@ def update(
f"/accounts/{account_id}/tokens/{token_id}",
body=maybe_transform(
{
"name": name,
"policies": policies,
"status": status,
"condition": condition,
"expires_on": expires_on,
"name": name,
"not_before": not_before,
"policies": policies,
"status": status,
},
token_update_params.TokenUpdateParams,
),
Expand Down Expand Up @@ -493,12 +493,12 @@ async def update(
token_id: str,
*,
account_id: str,
name: str,
policies: Iterable[TokenPolicy],
status: Literal["active", "disabled", "expired"],
condition: token_update_params.Condition | NotGiven = NOT_GIVEN,
expires_on: Union[str, datetime] | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
not_before: Union[str, datetime] | NotGiven = NOT_GIVEN,
policies: Iterable[TokenPolicy] | NotGiven = NOT_GIVEN,
status: Literal["active", "disabled", "expired"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -514,17 +514,17 @@ async def update(
token_id: Token identifier tag.
expires_on: The expiration time on or after which the JWT MUST NOT be accepted for
processing.
name: Token name.
not_before: The time before which the token MUST NOT be accepted for processing.
policies: List of access policies assigned to the token.
status: Status of the token.
expires_on: The expiration time on or after which the JWT MUST NOT be accepted for
processing.
not_before: The time before which the token MUST NOT be accepted for processing.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand All @@ -541,12 +541,12 @@ async def update(
f"/accounts/{account_id}/tokens/{token_id}",
body=await async_maybe_transform(
{
"name": name,
"policies": policies,
"status": status,
"condition": condition,
"expires_on": expires_on,
"name": name,
"not_before": not_before,
"policies": policies,
"status": status,
},
token_update_params.TokenUpdateParams,
),
Expand Down
4 changes: 2 additions & 2 deletions src/cloudflare/resources/content_scanning/payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def delete(
Args:
zone_id: Identifier
expression_id: The unique ID for this custom scan expression
expression_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -287,7 +287,7 @@ async def delete(
Args:
zone_id: Identifier
expression_id: The unique ID for this custom scan expression
expression_id: Identifier
extra_headers: Send extra headers
Expand Down
8 changes: 4 additions & 4 deletions src/cloudflare/resources/dns/settings/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def create(
self,
*,
account_id: str,
name: str,
zones: List[str],
name: str | NotGiven = NOT_GIVEN,
zones: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -351,8 +351,8 @@ async def create(
self,
*,
account_id: str,
name: str,
zones: List[str],
name: str | NotGiven = NOT_GIVEN,
zones: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down
24 changes: 12 additions & 12 deletions src/cloudflare/resources/dns_firewall/dns_firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ def create(
self,
*,
account_id: str,
name: str,
upstream_ips: List[UpstreamIPs],
attack_mitigation: Optional[AttackMitigationParam] | NotGiven = NOT_GIVEN,
deprecate_any_requests: bool | NotGiven = NOT_GIVEN,
ecs_fallback: bool | NotGiven = NOT_GIVEN,
maximum_cache_ttl: float | NotGiven = NOT_GIVEN,
minimum_cache_ttl: float | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
negative_cache_ttl: Optional[float] | NotGiven = NOT_GIVEN,
ratelimit: Optional[float] | NotGiven = NOT_GIVEN,
retries: float | NotGiven = NOT_GIVEN,
upstream_ips: List[UpstreamIPs] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -109,8 +109,6 @@ def create(
Args:
account_id: Identifier
name: DNS Firewall cluster name
attack_mitigation: Attack mitigation settings
deprecate_any_requests: Whether to refuse to answer queries for the ANY type
Expand All @@ -125,6 +123,8 @@ def create(
of caching between DNS Firewall and the upstream servers. Lower TTLs will be
increased to the minimum defined here for caching purposes.
name: DNS Firewall cluster name
negative_cache_ttl: Negative DNS cache TTL This setting controls how long DNS Firewall should cache
negative responses (e.g., NXDOMAIN) from the upstream servers.
Expand All @@ -148,16 +148,16 @@ def create(
f"/accounts/{account_id}/dns_firewall",
body=maybe_transform(
{
"name": name,
"upstream_ips": upstream_ips,
"attack_mitigation": attack_mitigation,
"deprecate_any_requests": deprecate_any_requests,
"ecs_fallback": ecs_fallback,
"maximum_cache_ttl": maximum_cache_ttl,
"minimum_cache_ttl": minimum_cache_ttl,
"name": name,
"negative_cache_ttl": negative_cache_ttl,
"ratelimit": ratelimit,
"retries": retries,
"upstream_ips": upstream_ips,
},
dns_firewall_create_params.DNSFirewallCreateParams,
),
Expand Down Expand Up @@ -438,16 +438,16 @@ async def create(
self,
*,
account_id: str,
name: str,
upstream_ips: List[UpstreamIPs],
attack_mitigation: Optional[AttackMitigationParam] | NotGiven = NOT_GIVEN,
deprecate_any_requests: bool | NotGiven = NOT_GIVEN,
ecs_fallback: bool | NotGiven = NOT_GIVEN,
maximum_cache_ttl: float | NotGiven = NOT_GIVEN,
minimum_cache_ttl: float | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
negative_cache_ttl: Optional[float] | NotGiven = NOT_GIVEN,
ratelimit: Optional[float] | NotGiven = NOT_GIVEN,
retries: float | NotGiven = NOT_GIVEN,
upstream_ips: List[UpstreamIPs] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -461,8 +461,6 @@ async def create(
Args:
account_id: Identifier
name: DNS Firewall cluster name
attack_mitigation: Attack mitigation settings
deprecate_any_requests: Whether to refuse to answer queries for the ANY type
Expand All @@ -477,6 +475,8 @@ async def create(
of caching between DNS Firewall and the upstream servers. Lower TTLs will be
increased to the minimum defined here for caching purposes.
name: DNS Firewall cluster name
negative_cache_ttl: Negative DNS cache TTL This setting controls how long DNS Firewall should cache
negative responses (e.g., NXDOMAIN) from the upstream servers.
Expand All @@ -500,16 +500,16 @@ async def create(
f"/accounts/{account_id}/dns_firewall",
body=await async_maybe_transform(
{
"name": name,
"upstream_ips": upstream_ips,
"attack_mitigation": attack_mitigation,
"deprecate_any_requests": deprecate_any_requests,
"ecs_fallback": ecs_fallback,
"maximum_cache_ttl": maximum_cache_ttl,
"minimum_cache_ttl": minimum_cache_ttl,
"name": name,
"negative_cache_ttl": negative_cache_ttl,
"ratelimit": ratelimit,
"retries": retries,
"upstream_ips": upstream_ips,
},
dns_firewall_create_params.DNSFirewallCreateParams,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def update(
Args:
zone_id: Identifier
detection_id: The unique ID for this custom detection
detection_id: Identifier
password: The ruleset expression to use in matching the password in a request
Expand Down Expand Up @@ -213,7 +213,7 @@ def delete(
Args:
zone_id: Identifier
detection_id: The unique ID for this custom detection
detection_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -332,7 +332,7 @@ async def update(
Args:
zone_id: Identifier
detection_id: The unique ID for this custom detection
detection_id: Identifier
password: The ruleset expression to use in matching the password in a request
Expand Down Expand Up @@ -423,7 +423,7 @@ async def delete(
Args:
zone_id: Identifier
detection_id: The unique ID for this custom detection
detection_id: Identifier
extra_headers: Send extra headers
Expand Down
12 changes: 0 additions & 12 deletions src/cloudflare/resources/spectrum/analytics/events/bytimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,9 @@ def get(
| duration90th | 90th percentile connection duration | 1.0 | Time in milliseconds |
| duration99th | 99th percentile connection duration | 1.0 | Time in milliseconds. |
since: Start of time interval to query, defaults to `until` - 6 hours. Timestamp must
be in RFC3339 format and uses UTC unless otherwise specified.
sort: The sort order for the result set; sort fields must be included in `metrics` or
`dimensions`.
until: End of time interval to query, defaults to current time. Timestamp must be in
RFC3339 format and uses UTC unless otherwise specified.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -254,15 +248,9 @@ async def get(
| duration90th | 90th percentile connection duration | 1.0 | Time in milliseconds |
| duration99th | 99th percentile connection duration | 1.0 | Time in milliseconds. |
since: Start of time interval to query, defaults to `until` - 6 hours. Timestamp must
be in RFC3339 format and uses UTC unless otherwise specified.
sort: The sort order for the result set; sort fields must be included in `metrics` or
`dimensions`.
until: End of time interval to query, defaults to current time. Timestamp must be in
RFC3339 format and uses UTC unless otherwise specified.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down
12 changes: 0 additions & 12 deletions src/cloudflare/resources/spectrum/analytics/events/summaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,9 @@ def get(
| duration90th | 90th percentile connection duration | 1.0 | Time in milliseconds |
| duration99th | 99th percentile connection duration | 1.0 | Time in milliseconds. |
since: Start of time interval to query, defaults to `until` - 6 hours. Timestamp must
be in RFC3339 format and uses UTC unless otherwise specified.
sort: The sort order for the result set; sort fields must be included in `metrics` or
`dimensions`.
until: End of time interval to query, defaults to current time. Timestamp must be in
RFC3339 format and uses UTC unless otherwise specified.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -247,15 +241,9 @@ async def get(
| duration90th | 90th percentile connection duration | 1.0 | Time in milliseconds |
| duration99th | 99th percentile connection duration | 1.0 | Time in milliseconds. |
since: Start of time interval to query, defaults to `until` - 6 hours. Timestamp must
be in RFC3339 format and uses UTC unless otherwise specified.
sort: The sort order for the result set; sort fields must be included in `metrics` or
`dimensions`.
until: End of time interval to query, defaults to current time. Timestamp must be in
RFC3339 format and uses UTC unless otherwise specified.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down
Loading

0 comments on commit bac39ba

Please sign in to comment.