Skip to content

Commit

Permalink
feat(api): Config update for yjp20/dev (#1749)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Sep 19, 2024
1 parent 25b6294 commit fe47b03
Show file tree
Hide file tree
Showing 151 changed files with 1,238 additions and 1,865 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1330
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c3cd4c1b3d10ea035cd202f12f4157a15c89826346ecece251da05916303098e.yml
configured_endpoints: 1331
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-39b038356da795b90be9cf01748bbbfc58b3ea7c73bb33bf2a4b5b4969342c22.yml
10 changes: 7 additions & 3 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ from cloudflare.types.zones import CustomNameserverUpdateResponse, CustomNameser
Methods:

- <code title="put /zones/{zone_id}/custom_ns">client.zones.custom_nameservers.<a href="./src/cloudflare/resources/zones/custom_nameservers.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/custom_nameserver_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/custom_nameserver_update_response.py">Optional</a></code>
- <code title="get /zones/{zone_id}/custom_ns">client.zones.custom_nameservers.<a href="./src/cloudflare/resources/zones/custom_nameservers.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/custom_nameserver_get_response.py">CustomNameserverGetResponse</a></code>
- <code title="get /zones/{zone_id}/custom_ns">client.zones.custom_nameservers.<a href="./src/cloudflare/resources/zones/custom_nameservers.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/custom_nameserver_get_response.py">Optional</a></code>

## Holds

Expand Down Expand Up @@ -3512,7 +3512,7 @@ Methods:

- <code title="get /accounts/{account_id}/intel/attack-surface-report/issues">client.intel.attack_surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_list_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_list_response.py">SyncV4PagePagination[IssueListResponse]</a></code>
- <code title="get /accounts/{account_id}/intel/attack-surface-report/issues/class">client.intel.attack*surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">class*</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_class_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_class_response.py">Optional</a></code>
- <code title="put /accounts/{account_id}/intel/attack-surface-report/{issue_id}/dismiss">client.intel.attack_surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">dismiss</a>(issue_id, \*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_dismiss_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_dismiss_response.py">IssueDismissResponse</a></code>
- <code title="put /accounts/{account_id}/intel/attack-surface-report/{issue_id}/dismiss">client.intel.attack_surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">dismiss</a>(issue_id, \*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_dismiss_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_dismiss_response.py">Optional</a></code>
- <code title="get /accounts/{account_id}/intel/attack-surface-report/issues/severity">client.intel.attack_surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">severity</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_severity_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_severity_response.py">Optional</a></code>
- <code title="get /accounts/{account_id}/intel/attack-surface-report/issues/type">client.intel.attack_surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">type</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_type_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_type_response.py">Optional</a></code>

Expand Down Expand Up @@ -5381,9 +5381,13 @@ Methods:
Types:

```python
from cloudflare.types.zero_trust.dex import AggregateTimePeriod, Tests
from cloudflare.types.zero_trust.dex import AggregateTimePeriod, Tests, TestListResponse
```

Methods:

- <code title="get /accounts/{account_id}/dex/tests">client.zero_trust.dex.tests.<a href="./src/cloudflare/resources/zero_trust/dex/tests/tests.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dex/test_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dex/test_list_response.py">SyncV4PagePagination[TestListResponse]</a></code>

#### UniqueDevices

Types:
Expand Down
4 changes: 2 additions & 2 deletions src/cloudflare/resources/ai_gateway/ai_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def list(
account_id: str,
id: str | NotGiven = NOT_GIVEN,
order_by: str | NotGiven = NOT_GIVEN,
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
order_by_direction: Literal["ASC", "DESC"] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -470,7 +470,7 @@ def list(
account_id: str,
id: str | NotGiven = NOT_GIVEN,
order_by: str | NotGiven = NOT_GIVEN,
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
order_by_direction: Literal["ASC", "DESC"] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down
48 changes: 12 additions & 36 deletions src/cloudflare/resources/ai_gateway/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,18 @@ def list(
*,
account_id: str,
cached: bool | NotGiven = NOT_GIVEN,
direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
direction: Literal["asc", "desc", "ASC", "DESC"] | NotGiven = NOT_GIVEN,
end_date: Union[str, datetime] | NotGiven = NOT_GIVEN,
feedback: Literal[0, 1] | NotGiven = NOT_GIVEN,
max_cost: float | NotGiven = NOT_GIVEN,
max_duration: float | NotGiven = NOT_GIVEN,
max_tokens_in: float | NotGiven = NOT_GIVEN,
max_tokens_out: float | NotGiven = NOT_GIVEN,
max_total_tokens: float | NotGiven = NOT_GIVEN,
meta_info: bool | NotGiven = NOT_GIVEN,
max_tokens: float | NotGiven = NOT_GIVEN,
min_cost: float | NotGiven = NOT_GIVEN,
min_duration: float | NotGiven = NOT_GIVEN,
min_tokens_in: float | NotGiven = NOT_GIVEN,
min_tokens_out: float | NotGiven = NOT_GIVEN,
min_total_tokens: float | NotGiven = NOT_GIVEN,
min_tokens: float | NotGiven = NOT_GIVEN,
model: str | NotGiven = NOT_GIVEN,
model_type: str | NotGiven = NOT_GIVEN,
order_by: Literal["created_at", "provider", "model", "model_type", "success", "cached"] | NotGiven = NOT_GIVEN,
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
order_by_direction: Literal["asc", "desc", "ASC", "DESC"] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
provider: str | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -116,18 +110,12 @@ def list(
"cached": cached,
"direction": direction,
"end_date": end_date,
"feedback": feedback,
"max_cost": max_cost,
"max_duration": max_duration,
"max_tokens_in": max_tokens_in,
"max_tokens_out": max_tokens_out,
"max_total_tokens": max_total_tokens,
"meta_info": meta_info,
"max_tokens": max_tokens,
"min_cost": min_cost,
"min_duration": min_duration,
"min_tokens_in": min_tokens_in,
"min_tokens_out": min_tokens_out,
"min_total_tokens": min_total_tokens,
"min_tokens": min_tokens,
"model": model,
"model_type": model_type,
"order_by": order_by,
Expand Down Expand Up @@ -174,24 +162,18 @@ def list(
*,
account_id: str,
cached: bool | NotGiven = NOT_GIVEN,
direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
direction: Literal["asc", "desc", "ASC", "DESC"] | NotGiven = NOT_GIVEN,
end_date: Union[str, datetime] | NotGiven = NOT_GIVEN,
feedback: Literal[0, 1] | NotGiven = NOT_GIVEN,
max_cost: float | NotGiven = NOT_GIVEN,
max_duration: float | NotGiven = NOT_GIVEN,
max_tokens_in: float | NotGiven = NOT_GIVEN,
max_tokens_out: float | NotGiven = NOT_GIVEN,
max_total_tokens: float | NotGiven = NOT_GIVEN,
meta_info: bool | NotGiven = NOT_GIVEN,
max_tokens: float | NotGiven = NOT_GIVEN,
min_cost: float | NotGiven = NOT_GIVEN,
min_duration: float | NotGiven = NOT_GIVEN,
min_tokens_in: float | NotGiven = NOT_GIVEN,
min_tokens_out: float | NotGiven = NOT_GIVEN,
min_total_tokens: float | NotGiven = NOT_GIVEN,
min_tokens: float | NotGiven = NOT_GIVEN,
model: str | NotGiven = NOT_GIVEN,
model_type: str | NotGiven = NOT_GIVEN,
order_by: Literal["created_at", "provider", "model", "model_type", "success", "cached"] | NotGiven = NOT_GIVEN,
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
order_by_direction: Literal["asc", "desc", "ASC", "DESC"] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
provider: str | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -238,18 +220,12 @@ def list(
"cached": cached,
"direction": direction,
"end_date": end_date,
"feedback": feedback,
"max_cost": max_cost,
"max_duration": max_duration,
"max_tokens_in": max_tokens_in,
"max_tokens_out": max_tokens_out,
"max_total_tokens": max_total_tokens,
"meta_info": meta_info,
"max_tokens": max_tokens,
"min_cost": min_cost,
"min_duration": min_duration,
"min_tokens_in": min_tokens_in,
"min_tokens_out": min_tokens_out,
"min_total_tokens": min_total_tokens,
"min_tokens": min_tokens,
"model": model,
"model_type": model_type,
"order_by": order_by,
Expand Down
4 changes: 0 additions & 4 deletions src/cloudflare/resources/alerting/policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def create(
"http_alert_edge_error",
"http_alert_origin_error",
"incident_alert",
"image_notification",
"load_balancing_health_alert",
"load_balancing_pool_enablement_alert",
"logo_match_alert",
Expand Down Expand Up @@ -233,7 +232,6 @@ def update(
"http_alert_edge_error",
"http_alert_origin_error",
"incident_alert",
"image_notification",
"load_balancing_health_alert",
"load_balancing_pool_enablement_alert",
"logo_match_alert",
Expand Down Expand Up @@ -520,7 +518,6 @@ async def create(
"http_alert_edge_error",
"http_alert_origin_error",
"incident_alert",
"image_notification",
"load_balancing_health_alert",
"load_balancing_pool_enablement_alert",
"logo_match_alert",
Expand Down Expand Up @@ -664,7 +661,6 @@ async def update(
"http_alert_edge_error",
"http_alert_origin_error",
"incident_alert",
"image_notification",
"load_balancing_health_alert",
"load_balancing_pool_enablement_alert",
"logo_match_alert",
Expand Down
26 changes: 13 additions & 13 deletions src/cloudflare/resources/audit_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

from typing import Union
from datetime import date, datetime
from datetime import datetime
from typing_extensions import Literal

import httpx
Expand Down Expand Up @@ -53,13 +53,13 @@ def list(
id: str | NotGiven = NOT_GIVEN,
action: audit_log_list_params.Action | NotGiven = NOT_GIVEN,
actor: audit_log_list_params.Actor | NotGiven = NOT_GIVEN,
before: Union[Union[str, date], Union[str, datetime]] | NotGiven = NOT_GIVEN,
before: Union[str, datetime] | NotGiven = NOT_GIVEN,
direction: Literal["desc", "asc"] | NotGiven = NOT_GIVEN,
export: bool | NotGiven = NOT_GIVEN,
hide_user_logs: bool | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
since: Union[Union[str, date], Union[str, datetime]] | NotGiven = NOT_GIVEN,
since: Union[str, datetime] | NotGiven = NOT_GIVEN,
zone: audit_log_list_params.Zone | 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.
Expand All @@ -78,8 +78,8 @@ def list(
id: Finds a specific log by its ID.
before: Limits the returned results to logs older than the specified date. A `full-date`
that conforms to RFC3339.
before: Limits the returned results to logs older than the specified date. This can be a
date string `2019-04-30` or an absolute timestamp that conforms to RFC3339.
direction: Changes the direction of the chronological sorting.
Expand All @@ -91,8 +91,8 @@ def list(
per_page: Sets the number of results to return per page.
since: Limits the returned results to logs newer than the specified date. A `full-date`
that conforms to RFC3339.
since: Limits the returned results to logs newer than the specified date. This can be a
date string `2019-04-30` or an absolute timestamp that conforms to RFC3339.
extra_headers: Send extra headers
Expand Down Expand Up @@ -160,13 +160,13 @@ def list(
id: str | NotGiven = NOT_GIVEN,
action: audit_log_list_params.Action | NotGiven = NOT_GIVEN,
actor: audit_log_list_params.Actor | NotGiven = NOT_GIVEN,
before: Union[Union[str, date], Union[str, datetime]] | NotGiven = NOT_GIVEN,
before: Union[str, datetime] | NotGiven = NOT_GIVEN,
direction: Literal["desc", "asc"] | NotGiven = NOT_GIVEN,
export: bool | NotGiven = NOT_GIVEN,
hide_user_logs: bool | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
since: Union[Union[str, date], Union[str, datetime]] | NotGiven = NOT_GIVEN,
since: Union[str, datetime] | NotGiven = NOT_GIVEN,
zone: audit_log_list_params.Zone | 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.
Expand All @@ -185,8 +185,8 @@ def list(
id: Finds a specific log by its ID.
before: Limits the returned results to logs older than the specified date. A `full-date`
that conforms to RFC3339.
before: Limits the returned results to logs older than the specified date. This can be a
date string `2019-04-30` or an absolute timestamp that conforms to RFC3339.
direction: Changes the direction of the chronological sorting.
Expand All @@ -198,8 +198,8 @@ def list(
per_page: Sets the number of results to return per page.
since: Limits the returned results to logs newer than the specified date. A `full-date`
that conforms to RFC3339.
since: Limits the returned results to logs newer than the specified date. This can be a
date string `2019-04-30` or an absolute timestamp that conforms to RFC3339.
extra_headers: Send extra headers
Expand Down
Loading

0 comments on commit fe47b03

Please sign in to comment.