Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): update via SDK Studio #417

Merged
merged 1 commit into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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