Skip to content

Commit

Permalink
feat: OpenAPI spec update via Stainless API (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Mar 12, 2024
1 parent 0f09240 commit 25cdbce
Show file tree
Hide file tree
Showing 17 changed files with 86 additions and 444 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1163
configured_endpoints: 1162
12 changes: 0 additions & 12 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,18 +433,6 @@ Methods:
- <code title="get /zones/{zone_id}/hold">client.zones.hold.<a href="./src/cloudflare/resources/zones/hold.py">get</a>(zone_id) -> <a href="./src/cloudflare/types/zones/hold_get_response.py">HoldGetResponse</a></code>
- <code title="delete /zones/{zone_id}/hold">client.zones.hold.<a href="./src/cloudflare/resources/zones/hold.py">remove</a>(zone_id, \*\*<a href="src/cloudflare/types/zones/hold_remove_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/hold_remove_response.py">Optional</a></code>

# AI

Types:

```python
from cloudflare.types import AIRunResponse
```

Methods:

- <code title="post /accounts/{account_identifier}/ai/run/{model_name}">client.ai.<a href="./src/cloudflare/resources/ai.py">run</a>(model_name, \*, account_identifier, \*\*<a href="src/cloudflare/types/ai_run_params.py">params</a>) -> <a href="./src/cloudflare/types/ai_run_response.py">object</a></code>

# LoadBalancers

Types:
Expand Down
8 changes: 0 additions & 8 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class Cloudflare(SyncAPIClient):
memberships: resources.Memberships
users: resources.Users
zones: resources.Zones
ai: resources.AI
load_balancers: resources.LoadBalancers
access: resources.Access
dns_analytics: resources.DNSAnalytics
Expand Down Expand Up @@ -249,7 +248,6 @@ def __init__(
self.memberships = resources.Memberships(self)
self.users = resources.Users(self)
self.zones = resources.Zones(self)
self.ai = resources.AI(self)
self.load_balancers = resources.LoadBalancers(self)
self.access = resources.Access(self)
self.dns_analytics = resources.DNSAnalytics(self)
Expand Down Expand Up @@ -500,7 +498,6 @@ class AsyncCloudflare(AsyncAPIClient):
memberships: resources.AsyncMemberships
users: resources.AsyncUsers
zones: resources.AsyncZones
ai: resources.AsyncAI
load_balancers: resources.AsyncLoadBalancers
access: resources.AsyncAccess
dns_analytics: resources.AsyncDNSAnalytics
Expand Down Expand Up @@ -697,7 +694,6 @@ def __init__(
self.memberships = resources.AsyncMemberships(self)
self.users = resources.AsyncUsers(self)
self.zones = resources.AsyncZones(self)
self.ai = resources.AsyncAI(self)
self.load_balancers = resources.AsyncLoadBalancers(self)
self.access = resources.AsyncAccess(self)
self.dns_analytics = resources.AsyncDNSAnalytics(self)
Expand Down Expand Up @@ -949,7 +945,6 @@ def __init__(self, client: Cloudflare) -> None:
self.memberships = resources.MembershipsWithRawResponse(client.memberships)
self.users = resources.UsersWithRawResponse(client.users)
self.zones = resources.ZonesWithRawResponse(client.zones)
self.ai = resources.AIWithRawResponse(client.ai)
self.load_balancers = resources.LoadBalancersWithRawResponse(client.load_balancers)
self.access = resources.AccessWithRawResponse(client.access)
self.dns_analytics = resources.DNSAnalyticsWithRawResponse(client.dns_analytics)
Expand Down Expand Up @@ -1063,7 +1058,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.memberships = resources.AsyncMembershipsWithRawResponse(client.memberships)
self.users = resources.AsyncUsersWithRawResponse(client.users)
self.zones = resources.AsyncZonesWithRawResponse(client.zones)
self.ai = resources.AsyncAIWithRawResponse(client.ai)
self.load_balancers = resources.AsyncLoadBalancersWithRawResponse(client.load_balancers)
self.access = resources.AsyncAccessWithRawResponse(client.access)
self.dns_analytics = resources.AsyncDNSAnalyticsWithRawResponse(client.dns_analytics)
Expand Down Expand Up @@ -1179,7 +1173,6 @@ def __init__(self, client: Cloudflare) -> None:
self.memberships = resources.MembershipsWithStreamingResponse(client.memberships)
self.users = resources.UsersWithStreamingResponse(client.users)
self.zones = resources.ZonesWithStreamingResponse(client.zones)
self.ai = resources.AIWithStreamingResponse(client.ai)
self.load_balancers = resources.LoadBalancersWithStreamingResponse(client.load_balancers)
self.access = resources.AccessWithStreamingResponse(client.access)
self.dns_analytics = resources.DNSAnalyticsWithStreamingResponse(client.dns_analytics)
Expand Down Expand Up @@ -1295,7 +1288,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.memberships = resources.AsyncMembershipsWithStreamingResponse(client.memberships)
self.users = resources.AsyncUsersWithStreamingResponse(client.users)
self.zones = resources.AsyncZonesWithStreamingResponse(client.zones)
self.ai = resources.AsyncAIWithStreamingResponse(client.ai)
self.load_balancers = resources.AsyncLoadBalancersWithStreamingResponse(client.load_balancers)
self.access = resources.AsyncAccessWithStreamingResponse(client.access)
self.dns_analytics = resources.AsyncDNSAnalyticsWithStreamingResponse(client.dns_analytics)
Expand Down
14 changes: 0 additions & 14 deletions src/cloudflare/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# File generated from our OpenAPI spec by Stainless.

from .ai import (
AI,
AsyncAI,
AIWithRawResponse,
AsyncAIWithRawResponse,
AIWithStreamingResponse,
AsyncAIWithStreamingResponse,
)
from .d1 import (
D1,
AsyncD1,
Expand Down Expand Up @@ -902,12 +894,6 @@
"AsyncZonesWithRawResponse",
"ZonesWithStreamingResponse",
"AsyncZonesWithStreamingResponse",
"AI",
"AsyncAI",
"AIWithRawResponse",
"AsyncAIWithRawResponse",
"AIWithStreamingResponse",
"AsyncAIWithStreamingResponse",
"LoadBalancers",
"AsyncLoadBalancers",
"LoadBalancersWithRawResponse",
Expand Down
175 changes: 0 additions & 175 deletions src/cloudflare/resources/ai.py

This file was deleted.

12 changes: 6 additions & 6 deletions src/cloudflare/resources/pcaps/pcaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def magic_pcap_collection_create_pcap_request(
system: Literal["magic-transit"],
time_limit: float,
type: Literal["simple", "full"],
filter_v1: pcap_magic_pcap_collection_create_pcap_request_params._2ljpZLrBPcapsRequestSimpleFilterV1
filter_v1: pcap_magic_pcap_collection_create_pcap_request_params.UuvhQEsmPcapsRequestSimpleFilterV1
| 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 Down Expand Up @@ -170,7 +170,7 @@ def magic_pcap_collection_create_pcap_request(
time_limit: float,
type: Literal["simple", "full"],
byte_limit: float | NotGiven = NOT_GIVEN,
filter_v1: pcap_magic_pcap_collection_create_pcap_request_params._2ljpZLrBPcapsRequestFullFilterV1
filter_v1: pcap_magic_pcap_collection_create_pcap_request_params.UuvhQEsmPcapsRequestFullFilterV1
| NotGiven = NOT_GIVEN,
packet_limit: float | 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 @@ -228,7 +228,7 @@ def magic_pcap_collection_create_pcap_request(
system: Literal["magic-transit"],
time_limit: float,
type: Literal["simple", "full"],
filter_v1: pcap_magic_pcap_collection_create_pcap_request_params._2ljpZLrBPcapsRequestSimpleFilterV1
filter_v1: pcap_magic_pcap_collection_create_pcap_request_params.UuvhQEsmPcapsRequestSimpleFilterV1
| NotGiven = NOT_GIVEN,
colo_name: str | NotGiven = NOT_GIVEN,
destination_conf: str | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -390,7 +390,7 @@ async def magic_pcap_collection_create_pcap_request(
system: Literal["magic-transit"],
time_limit: float,
type: Literal["simple", "full"],
filter_v1: pcap_magic_pcap_collection_create_pcap_request_params._2ljpZLrBPcapsRequestSimpleFilterV1
filter_v1: pcap_magic_pcap_collection_create_pcap_request_params.UuvhQEsmPcapsRequestSimpleFilterV1
| 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 Down Expand Up @@ -437,7 +437,7 @@ async def magic_pcap_collection_create_pcap_request(
time_limit: float,
type: Literal["simple", "full"],
byte_limit: float | NotGiven = NOT_GIVEN,
filter_v1: pcap_magic_pcap_collection_create_pcap_request_params._2ljpZLrBPcapsRequestFullFilterV1
filter_v1: pcap_magic_pcap_collection_create_pcap_request_params.UuvhQEsmPcapsRequestFullFilterV1
| NotGiven = NOT_GIVEN,
packet_limit: float | 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 @@ -495,7 +495,7 @@ async def magic_pcap_collection_create_pcap_request(
system: Literal["magic-transit"],
time_limit: float,
type: Literal["simple", "full"],
filter_v1: pcap_magic_pcap_collection_create_pcap_request_params._2ljpZLrBPcapsRequestSimpleFilterV1
filter_v1: pcap_magic_pcap_collection_create_pcap_request_params.UuvhQEsmPcapsRequestSimpleFilterV1
| NotGiven = NOT_GIVEN,
colo_name: str | NotGiven = NOT_GIVEN,
destination_conf: str | NotGiven = NOT_GIVEN,
Expand Down
8 changes: 4 additions & 4 deletions src/cloudflare/resources/purge_caches.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def zone_purge(
self,
identifier: str,
*,
files: List[purge_cach_zone_purge_params.XYr1bNe9FilesFile] | NotGiven = NOT_GIVEN,
files: List[purge_cach_zone_purge_params.Kp8Uqy1uFilesFile] | 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 @@ -209,7 +209,7 @@ def zone_purge(
prefixes: List[str] | NotGiven = NOT_GIVEN,
tags: List[str] | NotGiven = NOT_GIVEN,
purge_everything: bool | NotGiven = NOT_GIVEN,
files: List[purge_cach_zone_purge_params.XYr1bNe9FilesFile] | NotGiven = NOT_GIVEN,
files: List[purge_cach_zone_purge_params.Kp8Uqy1uFilesFile] | 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 @@ -368,7 +368,7 @@ async def zone_purge(
self,
identifier: str,
*,
files: List[purge_cach_zone_purge_params.XYr1bNe9FilesFile] | NotGiven = NOT_GIVEN,
files: List[purge_cach_zone_purge_params.Kp8Uqy1uFilesFile] | 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 @@ -426,7 +426,7 @@ async def zone_purge(
prefixes: List[str] | NotGiven = NOT_GIVEN,
tags: List[str] | NotGiven = NOT_GIVEN,
purge_everything: bool | NotGiven = NOT_GIVEN,
files: List[purge_cach_zone_purge_params.XYr1bNe9FilesFile] | NotGiven = NOT_GIVEN,
files: List[purge_cach_zone_purge_params.Kp8Uqy1uFilesFile] | 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
1 change: 0 additions & 1 deletion src/cloudflare/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from __future__ import annotations

from .ai_run_params import AIRunParams as AIRunParams
from .ip_list_params import IPListParams as IPListParams
from .ip_list_response import IPListResponse as IPListResponse
from .zone_list_params import ZoneListParams as ZoneListParams
Expand Down
Loading

0 comments on commit 25cdbce

Please sign in to comment.