Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 7, 2024
1 parent 04a6d48 commit 9312532
Show file tree
Hide file tree
Showing 27 changed files with 1,263 additions and 1,279 deletions.
41 changes: 19 additions & 22 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7176,65 +7176,62 @@ Methods:
Types:

```python
from cloudflare.types.speed import LabeledRegion, LighthouseReport, Trend, SpeedDeleteResponse
from cloudflare.types.speed import LabeledRegion, LighthouseReport, Trend
```

Methods:

- <code title="delete /zones/{zone_id}/speed_api/schedule/{url}">client.speed.<a href="./src/cloudflare/resources/speed/speed.py">delete</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/speed_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/speed_delete_response.py">Optional</a></code>
- <code title="get /zones/{zone_id}/speed_api/schedule/{url}">client.speed.<a href="./src/cloudflare/resources/speed/speed.py">schedule_get</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/speed_schedule_get_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/schedule.py">Optional</a></code>
- <code title="get /zones/{zone_id}/speed_api/pages/{url}/trend">client.speed.<a href="./src/cloudflare/resources/speed/speed.py">trends_list</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/speed_trends_list_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/trend.py">Optional</a></code>

## Tests
## Schedule

Types:

```python
from cloudflare.types.speed import Test, TestListResponse, TestDeleteResponse
from cloudflare.types.speed import Schedule, ScheduleCreateResponse, ScheduleDeleteResponse
```

Methods:

- <code title="post /zones/{zone_id}/speed_api/pages/{url}/tests">client.speed.tests.<a href="./src/cloudflare/resources/speed/tests.py">create</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/test_create_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/test.py">Optional</a></code>
- <code title="get /zones/{zone_id}/speed_api/pages/{url}/tests">client.speed.tests.<a href="./src/cloudflare/resources/speed/tests.py">list</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/test_list_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/test_list_response.py">TestListResponse</a></code>
- <code title="delete /zones/{zone_id}/speed_api/pages/{url}/tests">client.speed.tests.<a href="./src/cloudflare/resources/speed/tests.py">delete</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/test_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/test_delete_response.py">Optional</a></code>
- <code title="get /zones/{zone_id}/speed_api/pages/{url}/tests/{test_id}">client.speed.tests.<a href="./src/cloudflare/resources/speed/tests.py">get</a>(test_id, \*, zone_id, url) -> <a href="./src/cloudflare/types/speed/test.py">Optional</a></code>
- <code title="post /zones/{zone_id}/speed_api/schedule/{url}">client.speed.schedule.<a href="./src/cloudflare/resources/speed/schedule.py">create</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/schedule_create_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/schedule_create_response.py">Optional</a></code>
- <code title="delete /zones/{zone_id}/speed_api/schedule/{url}">client.speed.schedule.<a href="./src/cloudflare/resources/speed/schedule.py">delete</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/schedule_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/schedule_delete_response.py">Optional</a></code>
- <code title="get /zones/{zone_id}/speed_api/schedule/{url}">client.speed.schedule.<a href="./src/cloudflare/resources/speed/schedule.py">get</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/schedule_get_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/schedule.py">Optional</a></code>

## Schedule
## Availabilities

Types:

```python
from cloudflare.types.speed import Schedule, ScheduleCreateResponse
from cloudflare.types.speed import Availability
```

Methods:

- <code title="post /zones/{zone_id}/speed_api/schedule/{url}">client.speed.schedule.<a href="./src/cloudflare/resources/speed/schedule.py">create</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/schedule_create_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/schedule_create_response.py">Optional</a></code>
- <code title="get /zones/{zone_id}/speed_api/availabilities">client.speed.availabilities.<a href="./src/cloudflare/resources/speed/availabilities.py">list</a>(\*, zone_id) -> <a href="./src/cloudflare/types/speed/availability.py">Optional</a></code>

## Availabilities
## Pages

Types:

```python
from cloudflare.types.speed import Availability
from cloudflare.types.speed import PageListResponse
```

Methods:

- <code title="get /zones/{zone_id}/speed_api/availabilities">client.speed.availabilities.<a href="./src/cloudflare/resources/speed/availabilities.py">list</a>(\*, zone_id) -> <a href="./src/cloudflare/types/speed/availability.py">Optional</a></code>
- <code title="get /zones/{zone_id}/speed_api/pages">client.speed.pages.<a href="./src/cloudflare/resources/speed/pages/pages.py">list</a>(\*, zone_id) -> <a href="./src/cloudflare/types/speed/page_list_response.py">SyncSinglePage[PageListResponse]</a></code>
- <code title="get /zones/{zone_id}/speed_api/pages/{url}/trend">client.speed.pages.<a href="./src/cloudflare/resources/speed/pages/pages.py">trend</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/page_trend_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/trend.py">Optional</a></code>

## Pages
### Tests

Types:

```python
from cloudflare.types.speed import PageListResponse
from cloudflare.types.speed.pages import Test, TestListResponse, TestDeleteResponse
```

Methods:

- <code title="get /zones/{zone_id}/speed_api/pages">client.speed.pages.<a href="./src/cloudflare/resources/speed/pages.py">list</a>(\*, zone_id) -> <a href="./src/cloudflare/types/speed/page_list_response.py">SyncSinglePage[PageListResponse]</a></code>
- <code title="post /zones/{zone_id}/speed_api/pages/{url}/tests">client.speed.pages.tests.<a href="./src/cloudflare/resources/speed/pages/tests.py">create</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/pages/test_create_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/pages/test.py">Optional</a></code>
- <code title="get /zones/{zone_id}/speed_api/pages/{url}/tests">client.speed.pages.tests.<a href="./src/cloudflare/resources/speed/pages/tests.py">list</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/pages/test_list_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/pages/test_list_response.py">TestListResponse</a></code>
- <code title="delete /zones/{zone_id}/speed_api/pages/{url}/tests">client.speed.pages.tests.<a href="./src/cloudflare/resources/speed/pages/tests.py">delete</a>(url, \*, zone_id, \*\*<a href="src/cloudflare/types/speed/pages/test_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/speed/pages/test_delete_response.py">Optional</a></code>
- <code title="get /zones/{zone_id}/speed_api/pages/{url}/tests/{test_id}">client.speed.pages.tests.<a href="./src/cloudflare/resources/speed/pages/tests.py">get</a>(test_id, \*, zone_id, url) -> <a href="./src/cloudflare/types/speed/pages/test.py">Optional</a></code>

# DCVDelegation

Expand Down
14 changes: 0 additions & 14 deletions src/cloudflare/resources/speed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@
SpeedResourceWithStreamingResponse,
AsyncSpeedResourceWithStreamingResponse,
)
from .tests import (
TestsResource,
AsyncTestsResource,
TestsResourceWithRawResponse,
AsyncTestsResourceWithRawResponse,
TestsResourceWithStreamingResponse,
AsyncTestsResourceWithStreamingResponse,
)
from .schedule import (
ScheduleResource,
AsyncScheduleResource,
Expand All @@ -42,12 +34,6 @@
)

__all__ = [
"TestsResource",
"AsyncTestsResource",
"TestsResourceWithRawResponse",
"AsyncTestsResourceWithRawResponse",
"TestsResourceWithStreamingResponse",
"AsyncTestsResourceWithStreamingResponse",
"ScheduleResource",
"AsyncScheduleResource",
"ScheduleResourceWithRawResponse",
Expand Down
151 changes: 0 additions & 151 deletions src/cloudflare/resources/speed/pages.py

This file was deleted.

33 changes: 33 additions & 0 deletions src/cloudflare/resources/speed/pages/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .pages import (
PagesResource,
AsyncPagesResource,
PagesResourceWithRawResponse,
AsyncPagesResourceWithRawResponse,
PagesResourceWithStreamingResponse,
AsyncPagesResourceWithStreamingResponse,
)
from .tests import (
TestsResource,
AsyncTestsResource,
TestsResourceWithRawResponse,
AsyncTestsResourceWithRawResponse,
TestsResourceWithStreamingResponse,
AsyncTestsResourceWithStreamingResponse,
)

__all__ = [
"TestsResource",
"AsyncTestsResource",
"TestsResourceWithRawResponse",
"AsyncTestsResourceWithRawResponse",
"TestsResourceWithStreamingResponse",
"AsyncTestsResourceWithStreamingResponse",
"PagesResource",
"AsyncPagesResource",
"PagesResourceWithRawResponse",
"AsyncPagesResourceWithRawResponse",
"PagesResourceWithStreamingResponse",
"AsyncPagesResourceWithStreamingResponse",
]
Loading

0 comments on commit 9312532

Please sign in to comment.