Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 22, 2024
1 parent 2a11bb1 commit 9683250
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 753 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1251
configured_endpoints: 1250
6 changes: 1 addition & 5 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4174,13 +4174,9 @@ Methods:
Types:

```python
from cloudflare.types.request_tracers import Trace, TraceItem, TraceCreateResponse
from cloudflare.types.request_tracers import Trace, TraceItem
```

Methods:

- <code title="post /accounts/{account_identifier}/request-tracer/trace">client.request_tracers.traces.<a href="./src/cloudflare/resources/request_tracers/traces.py">create</a>(account_identifier, \*\*<a href="src/cloudflare/types/request_tracers/trace_create_params.py">params</a>) -> <a href="./src/cloudflare/types/request_tracers/trace_create_response.py">TraceCreateResponse</a></code>

# Rules

## Lists
Expand Down
8 changes: 0 additions & 8 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ class Cloudflare(SyncAPIClient):
pages: resources.Pages
pcaps: resources.PCAPs
registrar: resources.Registrar
request_tracers: resources.RequestTracers
rules: resources.Rules
storage: resources.Storage
stream: resources.Stream
Expand Down Expand Up @@ -258,7 +257,6 @@ def __init__(
self.pages = resources.Pages(self)
self.pcaps = resources.PCAPs(self)
self.registrar = resources.Registrar(self)
self.request_tracers = resources.RequestTracers(self)
self.rules = resources.Rules(self)
self.storage = resources.Storage(self)
self.stream = resources.Stream(self)
Expand Down Expand Up @@ -516,7 +514,6 @@ class AsyncCloudflare(AsyncAPIClient):
pages: resources.AsyncPages
pcaps: resources.AsyncPCAPs
registrar: resources.AsyncRegistrar
request_tracers: resources.AsyncRequestTracers
rules: resources.AsyncRules
storage: resources.AsyncStorage
stream: resources.AsyncStream
Expand Down Expand Up @@ -671,7 +668,6 @@ def __init__(
self.pages = resources.AsyncPages(self)
self.pcaps = resources.AsyncPCAPs(self)
self.registrar = resources.AsyncRegistrar(self)
self.request_tracers = resources.AsyncRequestTracers(self)
self.rules = resources.AsyncRules(self)
self.storage = resources.AsyncStorage(self)
self.stream = resources.AsyncStream(self)
Expand Down Expand Up @@ -930,7 +926,6 @@ def __init__(self, client: Cloudflare) -> None:
self.pages = resources.PagesWithRawResponse(client.pages)
self.pcaps = resources.PCAPsWithRawResponse(client.pcaps)
self.registrar = resources.RegistrarWithRawResponse(client.registrar)
self.request_tracers = resources.RequestTracersWithRawResponse(client.request_tracers)
self.rules = resources.RulesWithRawResponse(client.rules)
self.storage = resources.StorageWithRawResponse(client.storage)
self.stream = resources.StreamWithRawResponse(client.stream)
Expand Down Expand Up @@ -1020,7 +1015,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.pages = resources.AsyncPagesWithRawResponse(client.pages)
self.pcaps = resources.AsyncPCAPsWithRawResponse(client.pcaps)
self.registrar = resources.AsyncRegistrarWithRawResponse(client.registrar)
self.request_tracers = resources.AsyncRequestTracersWithRawResponse(client.request_tracers)
self.rules = resources.AsyncRulesWithRawResponse(client.rules)
self.storage = resources.AsyncStorageWithRawResponse(client.storage)
self.stream = resources.AsyncStreamWithRawResponse(client.stream)
Expand Down Expand Up @@ -1110,7 +1104,6 @@ def __init__(self, client: Cloudflare) -> None:
self.pages = resources.PagesWithStreamingResponse(client.pages)
self.pcaps = resources.PCAPsWithStreamingResponse(client.pcaps)
self.registrar = resources.RegistrarWithStreamingResponse(client.registrar)
self.request_tracers = resources.RequestTracersWithStreamingResponse(client.request_tracers)
self.rules = resources.RulesWithStreamingResponse(client.rules)
self.storage = resources.StorageWithStreamingResponse(client.storage)
self.stream = resources.StreamWithStreamingResponse(client.stream)
Expand Down Expand Up @@ -1204,7 +1197,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.pages = resources.AsyncPagesWithStreamingResponse(client.pages)
self.pcaps = resources.AsyncPCAPsWithStreamingResponse(client.pcaps)
self.registrar = resources.AsyncRegistrarWithStreamingResponse(client.registrar)
self.request_tracers = resources.AsyncRequestTracersWithStreamingResponse(client.request_tracers)
self.rules = resources.AsyncRulesWithStreamingResponse(client.rules)
self.storage = resources.AsyncStorageWithStreamingResponse(client.storage)
self.stream = resources.AsyncStreamWithStreamingResponse(client.stream)
Expand Down
14 changes: 0 additions & 14 deletions src/cloudflare/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,14 +520,6 @@
ManagedHeadersWithStreamingResponse,
AsyncManagedHeadersWithStreamingResponse,
)
from .request_tracers import (
RequestTracers,
AsyncRequestTracers,
RequestTracersWithRawResponse,
AsyncRequestTracersWithRawResponse,
RequestTracersWithStreamingResponse,
AsyncRequestTracersWithStreamingResponse,
)
from .brand_protection import (
BrandProtection,
AsyncBrandProtection,
Expand Down Expand Up @@ -978,12 +970,6 @@
"AsyncRegistrarWithRawResponse",
"RegistrarWithStreamingResponse",
"AsyncRegistrarWithStreamingResponse",
"RequestTracers",
"AsyncRequestTracers",
"RequestTracersWithRawResponse",
"AsyncRequestTracersWithRawResponse",
"RequestTracersWithStreamingResponse",
"AsyncRequestTracersWithStreamingResponse",
"Rules",
"AsyncRules",
"RulesWithRawResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ def edit(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[Advertisement]:
"""
Update advertisement for rule.
"""Update advertisement for rule.
Args:
rule_id: The id of the rule.
Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -102,10 +105,13 @@ async def edit(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[Advertisement]:
"""
Update advertisement for rule.
"""Update advertisement for rule.
Args:
rule_id: The id of the rule.
Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down
12 changes: 12 additions & 0 deletions src/cloudflare/resources/magic_network_monitoring/rules/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ def delete(
Delete a network monitoring rule for account.
Args:
rule_id: The id of the rule. Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -230,6 +232,8 @@ def edit(
Update a network monitoring rule for account.
Args:
rule_id: The id of the rule. Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -271,6 +275,8 @@ def get(
List a single network monitoring rule for account.
Args:
rule_id: The id of the rule. Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -440,6 +446,8 @@ async def delete(
Delete a network monitoring rule for account.
Args:
rule_id: The id of the rule. Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -482,6 +490,8 @@ async def edit(
Update a network monitoring rule for account.
Args:
rule_id: The id of the rule. Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -523,6 +533,8 @@ async def get(
List a single network monitoring rule for account.
Args:
rule_id: The id of the rule. Must be unique.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand Down
33 changes: 0 additions & 33 deletions src/cloudflare/resources/request_tracers/__init__.py

This file was deleted.

80 changes: 0 additions & 80 deletions src/cloudflare/resources/request_tracers/request_tracers.py

This file was deleted.

Loading

0 comments on commit 9683250

Please sign in to comment.