Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
86bdf98
chore(internal): codegen related update
stainless-app[bot] Jun 12, 2026
72eb205
chore(api): update composite API spec
stainless-app[bot] Jun 12, 2026
45260b9
chore(api): update composite API spec
stainless-app[bot] Jun 12, 2026
7677b4c
feat: feat(tenants): add tenants resource SDK mapping [PT-2567]
stainless-app[bot] Jun 12, 2026
5bb529c
feat: feat(ct_alerter): add CT alerting subscription endpoint mappings
stainless-app[bot] Jun 12, 2026
14409ae
codegen metadata
stainless-app[bot] Jun 12, 2026
04f9fee
codegen metadata
stainless-app[bot] Jun 13, 2026
2fcdb13
codegen metadata
stainless-app[bot] Jun 13, 2026
16d8e61
codegen metadata
stainless-app[bot] Jun 15, 2026
eeec39a
chore(api): update composite API spec
stainless-app[bot] Jun 15, 2026
b982ff3
feat: feat(ai_gateway): add custom_providers resource
stainless-app[bot] Jun 15, 2026
0ff89f9
chore(api): update composite API spec
stainless-app[bot] Jun 15, 2026
5d8e422
feat: feat(api): map ipsec_tunnels/psk, sites/app_policies and cf1_si…
stainless-app[bot] Jun 15, 2026
3e26c73
chore(api): update composite API spec
stainless-app[bot] Jun 15, 2026
3817b57
chore(api): update composite API spec
stainless-app[bot] Jun 15, 2026
05e802d
chore(api): update composite API spec
stainless-app[bot] Jun 15, 2026
656f973
chore(api): update composite API spec
stainless-app[bot] Jun 16, 2026
f94e4de
chore(api): update composite API spec
stainless-app[bot] Jun 16, 2026
c7202c9
chore(api): update composite API spec
stainless-app[bot] Jun 16, 2026
f8e14b9
codegen metadata
stainless-app[bot] Jun 16, 2026
25b2838
codegen metadata
stainless-app[bot] Jun 16, 2026
2b0e738
chore(api): update composite API spec
stainless-app[bot] Jun 16, 2026
64469d6
Merge pull request #2732 from cloudflare/staging-next
ssicard Jun 16, 2026
87ee898
release: 5.4.0
stainless-app[bot] Jun 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: feat(ai_gateway): add custom_providers resource
* feat(ai_gateway): add custom_providers resource
  • Loading branch information
stainless-app[bot] committed Jun 15, 2026
commit b982ff391eab267ef16c719d0fc798d970292ed2
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 2384
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-471f2a9448b10c4c887be1fce3238a5f0ad296e80077090093fc9f52a0d99675.yml
configured_endpoints: 2388
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-1f58da61ef137d93446336e6c2c36bdd7bd1a6f56bb4ddb819090b7cecebe210.yml
openapi_spec_hash: c072a4a84aa2d1de3b656ae5fe7967f8
config_hash: fb7701532a56b6f947632365deb733af
config_hash: f81f9e27d86c53b33ee1f1f3654ef3c6
14 changes: 14 additions & 0 deletions src/cloudflare/resources/ai_gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@
DynamicRoutingResourceWithStreamingResponse,
AsyncDynamicRoutingResourceWithStreamingResponse,
)
from .custom_providers import (
CustomProvidersResource,
AsyncCustomProvidersResource,
CustomProvidersResourceWithRawResponse,
AsyncCustomProvidersResourceWithRawResponse,
CustomProvidersResourceWithStreamingResponse,
AsyncCustomProvidersResourceWithStreamingResponse,
)
from .evaluation_types import (
EvaluationTypesResource,
AsyncEvaluationTypesResource,
Expand All @@ -80,6 +88,12 @@
"AsyncEvaluationTypesResourceWithRawResponse",
"EvaluationTypesResourceWithStreamingResponse",
"AsyncEvaluationTypesResourceWithStreamingResponse",
"CustomProvidersResource",
"AsyncCustomProvidersResource",
"CustomProvidersResourceWithRawResponse",
"AsyncCustomProvidersResourceWithRawResponse",
"CustomProvidersResourceWithStreamingResponse",
"AsyncCustomProvidersResourceWithStreamingResponse",
"LogsResource",
"AsyncLogsResource",
"LogsResourceWithRawResponse",
Expand Down
32 changes: 32 additions & 0 deletions src/cloudflare/resources/ai_gateway/ai_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@
DynamicRoutingResourceWithStreamingResponse,
AsyncDynamicRoutingResourceWithStreamingResponse,
)
from .custom_providers import (
CustomProvidersResource,
AsyncCustomProvidersResource,
CustomProvidersResourceWithRawResponse,
AsyncCustomProvidersResourceWithRawResponse,
CustomProvidersResourceWithStreamingResponse,
AsyncCustomProvidersResourceWithStreamingResponse,
)
from .evaluation_types import (
EvaluationTypesResource,
AsyncEvaluationTypesResource,
Expand Down Expand Up @@ -99,6 +107,10 @@ class AIGatewayResource(SyncAPIResource):
def evaluation_types(self) -> EvaluationTypesResource:
return EvaluationTypesResource(self._client)

@cached_property
def custom_providers(self) -> CustomProvidersResource:
return CustomProvidersResource(self._client)

@cached_property
def logs(self) -> LogsResource:
return LogsResource(self._client)
Expand Down Expand Up @@ -473,6 +485,10 @@ class AsyncAIGatewayResource(AsyncAPIResource):
def evaluation_types(self) -> AsyncEvaluationTypesResource:
return AsyncEvaluationTypesResource(self._client)

@cached_property
def custom_providers(self) -> AsyncCustomProvidersResource:
return AsyncCustomProvidersResource(self._client)

@cached_property
def logs(self) -> AsyncLogsResource:
return AsyncLogsResource(self._client)
Expand Down Expand Up @@ -866,6 +882,10 @@ def __init__(self, ai_gateway: AIGatewayResource) -> None:
def evaluation_types(self) -> EvaluationTypesResourceWithRawResponse:
return EvaluationTypesResourceWithRawResponse(self._ai_gateway.evaluation_types)

@cached_property
def custom_providers(self) -> CustomProvidersResourceWithRawResponse:
return CustomProvidersResourceWithRawResponse(self._ai_gateway.custom_providers)

@cached_property
def logs(self) -> LogsResourceWithRawResponse:
return LogsResourceWithRawResponse(self._ai_gateway.logs)
Expand Down Expand Up @@ -919,6 +939,10 @@ def __init__(self, ai_gateway: AsyncAIGatewayResource) -> None:
def evaluation_types(self) -> AsyncEvaluationTypesResourceWithRawResponse:
return AsyncEvaluationTypesResourceWithRawResponse(self._ai_gateway.evaluation_types)

@cached_property
def custom_providers(self) -> AsyncCustomProvidersResourceWithRawResponse:
return AsyncCustomProvidersResourceWithRawResponse(self._ai_gateway.custom_providers)

@cached_property
def logs(self) -> AsyncLogsResourceWithRawResponse:
return AsyncLogsResourceWithRawResponse(self._ai_gateway.logs)
Expand Down Expand Up @@ -972,6 +996,10 @@ def __init__(self, ai_gateway: AIGatewayResource) -> None:
def evaluation_types(self) -> EvaluationTypesResourceWithStreamingResponse:
return EvaluationTypesResourceWithStreamingResponse(self._ai_gateway.evaluation_types)

@cached_property
def custom_providers(self) -> CustomProvidersResourceWithStreamingResponse:
return CustomProvidersResourceWithStreamingResponse(self._ai_gateway.custom_providers)

@cached_property
def logs(self) -> LogsResourceWithStreamingResponse:
return LogsResourceWithStreamingResponse(self._ai_gateway.logs)
Expand Down Expand Up @@ -1025,6 +1053,10 @@ def __init__(self, ai_gateway: AsyncAIGatewayResource) -> None:
def evaluation_types(self) -> AsyncEvaluationTypesResourceWithStreamingResponse:
return AsyncEvaluationTypesResourceWithStreamingResponse(self._ai_gateway.evaluation_types)

@cached_property
def custom_providers(self) -> AsyncCustomProvidersResourceWithStreamingResponse:
return AsyncCustomProvidersResourceWithStreamingResponse(self._ai_gateway.custom_providers)

@cached_property
def logs(self) -> AsyncLogsResourceWithStreamingResponse:
return AsyncLogsResourceWithStreamingResponse(self._ai_gateway.logs)
Expand Down
20 changes: 20 additions & 0 deletions src/cloudflare/resources/ai_gateway/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@ Methods:

- <code title="get /accounts/{account_id}/ai-gateway/evaluation-types">client.ai_gateway.evaluation_types.<a href="./src/cloudflare/resources/ai_gateway/evaluation_types.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/ai_gateway/evaluation_type_list_params.py">params</a>) -> <a href="./src/cloudflare/types/ai_gateway/evaluation_type_list_response.py">SyncV4PagePaginationArray[EvaluationTypeListResponse]</a></code>

## CustomProviders

Types:

```python
from cloudflare.types.ai_gateway import (
CustomProviderCreateResponse,
CustomProviderListResponse,
CustomProviderDeleteResponse,
CustomProviderGetResponse,
)
```

Methods:

- <code title="post /accounts/{account_id}/ai-gateway/custom-providers">client.ai_gateway.custom_providers.<a href="./src/cloudflare/resources/ai_gateway/custom_providers.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/ai_gateway/custom_provider_create_params.py">params</a>) -> <a href="./src/cloudflare/types/ai_gateway/custom_provider_create_response.py">CustomProviderCreateResponse</a></code>
- <code title="get /accounts/{account_id}/ai-gateway/custom-providers">client.ai_gateway.custom_providers.<a href="./src/cloudflare/resources/ai_gateway/custom_providers.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/ai_gateway/custom_provider_list_params.py">params</a>) -> <a href="./src/cloudflare/types/ai_gateway/custom_provider_list_response.py">SyncV4PagePaginationArray[CustomProviderListResponse]</a></code>
- <code title="delete /accounts/{account_id}/ai-gateway/custom-providers/{id}">client.ai_gateway.custom_providers.<a href="./src/cloudflare/resources/ai_gateway/custom_providers.py">delete</a>(id, \*, account_id) -> <a href="./src/cloudflare/types/ai_gateway/custom_provider_delete_response.py">CustomProviderDeleteResponse</a></code>
- <code title="get /accounts/{account_id}/ai-gateway/custom-providers/{id}">client.ai_gateway.custom_providers.<a href="./src/cloudflare/resources/ai_gateway/custom_providers.py">get</a>(id, \*, account_id) -> <a href="./src/cloudflare/types/ai_gateway/custom_provider_get_response.py">CustomProviderGetResponse</a></code>

## Logs

Types:
Expand Down
Loading