Skip to content

feat(api): api update #2266

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

Merged
merged 1 commit into from
Dec 12, 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
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1460
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-31e83e551de81cf50b30c8dda5b5b8f3f7e7034ad82af7fb6caa67f76cae7e9d.yml
configured_endpoints: 1455
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4118c37824cecf34c05447175906b84c57105e89ea6a092fee7047b46613e094.yml
45 changes: 1 addition & 44 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ from cloudflare.types.zones import ZoneHold
Methods:

- <code title="post /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/hold_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/zone_hold.py">ZoneHold</a></code>
- <code title="delete /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">delete</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/hold_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/zone_hold.py">Optional[ZoneHold]</a></code>
- <code title="delete /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">delete</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/hold_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/zone_hold.py">ZoneHold</a></code>
- <code title="get /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/zone_hold.py">ZoneHold</a></code>

## Subscriptions
Expand Down Expand Up @@ -4841,18 +4841,6 @@ Methods:
- <code title="delete /accounts/{account_id}/devices/networks/{network_id}">client.zero_trust.devices.networks.<a href="./src/cloudflare/resources/zero_trust/devices/networks.py">delete</a>(network_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/network_delete_response.py">Optional[NetworkDeleteResponse]</a></code>
- <code title="get /accounts/{account_id}/devices/networks/{network_id}">client.zero_trust.devices.networks.<a href="./src/cloudflare/resources/zero_trust/devices/networks.py">get</a>(network_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/device_network.py">Optional[DeviceNetwork]</a></code>

### FleetStatus

Types:

```python
from cloudflare.types.zero_trust.devices import FleetStatusGetResponse
```

Methods:

- <code title="get /accounts/{account_id}/devices/{device_id}/fleet-status/live">client.zero_trust.devices.fleet_status.<a href="./src/cloudflare/resources/zero_trust/devices/fleet_status.py">get</a>(device_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/devices/fleet_status_get_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/devices/fleet_status_get_response.py">FleetStatusGetResponse</a></code>

### Policies

Types:
Expand Down Expand Up @@ -5591,37 +5579,6 @@ from cloudflare.types.zero_trust import (
)
```

### Commands

Types:

```python
from cloudflare.types.zero_trust.dex import CommandCreateResponse, CommandListResponse
```

Methods:

- <code title="post /accounts/{account_id}/commands">client.zero_trust.dex.commands.<a href="./src/cloudflare/resources/zero_trust/dex/commands/commands.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dex/command_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dex/command_create_response.py">Optional[CommandCreateResponse]</a></code>
- <code title="get /accounts/{account_id}/commands">client.zero_trust.dex.commands.<a href="./src/cloudflare/resources/zero_trust/dex/commands/commands.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dex/command_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dex/command_list_response.py">SyncV4PagePagination[Optional[CommandListResponse]]</a></code>

#### Downloads

Methods:

- <code title="get /accounts/{account_id}/commands/{command_id}/downloads/{filename}">client.zero_trust.dex.commands.downloads.<a href="./src/cloudflare/resources/zero_trust/dex/commands/downloads.py">get</a>(filename, \*, account_id, command_id) -> BinaryAPIResponse</code>

#### Quota

Types:

```python
from cloudflare.types.zero_trust.dex.commands import QuotaGetResponse
```

Methods:

- <code title="get /accounts/{account_id}/commands/quota">client.zero_trust.dex.commands.quota.<a href="./src/cloudflare/resources/zero_trust/dex/commands/quota.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/zero_trust/dex/commands/quota_get_response.py">Optional[QuotaGetResponse]</a></code>

### Colos

Types:
Expand Down
14 changes: 0 additions & 14 deletions src/cloudflare/resources/zero_trust/devices/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@
DEXTestsResourceWithStreamingResponse,
AsyncDEXTestsResourceWithStreamingResponse,
)
from .fleet_status import (
FleetStatusResource,
AsyncFleetStatusResource,
FleetStatusResourceWithRawResponse,
AsyncFleetStatusResourceWithRawResponse,
FleetStatusResourceWithStreamingResponse,
AsyncFleetStatusResourceWithStreamingResponse,
)
from .override_codes import (
OverrideCodesResource,
AsyncOverrideCodesResource,
Expand All @@ -94,12 +86,6 @@
"AsyncNetworksResourceWithRawResponse",
"NetworksResourceWithStreamingResponse",
"AsyncNetworksResourceWithStreamingResponse",
"FleetStatusResource",
"AsyncFleetStatusResource",
"FleetStatusResourceWithRawResponse",
"AsyncFleetStatusResourceWithRawResponse",
"FleetStatusResourceWithStreamingResponse",
"AsyncFleetStatusResourceWithStreamingResponse",
"PoliciesResource",
"AsyncPoliciesResource",
"PoliciesResourceWithRawResponse",
Expand Down
32 changes: 0 additions & 32 deletions src/cloudflare/resources/zero_trust/devices/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from .fleet_status import (
FleetStatusResource,
AsyncFleetStatusResource,
FleetStatusResourceWithRawResponse,
AsyncFleetStatusResourceWithRawResponse,
FleetStatusResourceWithStreamingResponse,
AsyncFleetStatusResourceWithStreamingResponse,
)
from ....pagination import SyncSinglePage, AsyncSinglePage
from .override_codes import (
OverrideCodesResource,
Expand Down Expand Up @@ -107,10 +99,6 @@ def dex_tests(self) -> DEXTestsResource:
def networks(self) -> NetworksResource:
return NetworksResource(self._client)

@cached_property
def fleet_status(self) -> FleetStatusResource:
return FleetStatusResource(self._client)

@cached_property
def policies(self) -> PoliciesResource:
return PoliciesResource(self._client)
Expand Down Expand Up @@ -245,10 +233,6 @@ def dex_tests(self) -> AsyncDEXTestsResource:
def networks(self) -> AsyncNetworksResource:
return AsyncNetworksResource(self._client)

@cached_property
def fleet_status(self) -> AsyncFleetStatusResource:
return AsyncFleetStatusResource(self._client)

@cached_property
def policies(self) -> AsyncPoliciesResource:
return AsyncPoliciesResource(self._client)
Expand Down Expand Up @@ -393,10 +377,6 @@ def dex_tests(self) -> DEXTestsResourceWithRawResponse:
def networks(self) -> NetworksResourceWithRawResponse:
return NetworksResourceWithRawResponse(self._devices.networks)

@cached_property
def fleet_status(self) -> FleetStatusResourceWithRawResponse:
return FleetStatusResourceWithRawResponse(self._devices.fleet_status)

@cached_property
def policies(self) -> PoliciesResourceWithRawResponse:
return PoliciesResourceWithRawResponse(self._devices.policies)
Expand Down Expand Up @@ -441,10 +421,6 @@ def dex_tests(self) -> AsyncDEXTestsResourceWithRawResponse:
def networks(self) -> AsyncNetworksResourceWithRawResponse:
return AsyncNetworksResourceWithRawResponse(self._devices.networks)

@cached_property
def fleet_status(self) -> AsyncFleetStatusResourceWithRawResponse:
return AsyncFleetStatusResourceWithRawResponse(self._devices.fleet_status)

@cached_property
def policies(self) -> AsyncPoliciesResourceWithRawResponse:
return AsyncPoliciesResourceWithRawResponse(self._devices.policies)
Expand Down Expand Up @@ -489,10 +465,6 @@ def dex_tests(self) -> DEXTestsResourceWithStreamingResponse:
def networks(self) -> NetworksResourceWithStreamingResponse:
return NetworksResourceWithStreamingResponse(self._devices.networks)

@cached_property
def fleet_status(self) -> FleetStatusResourceWithStreamingResponse:
return FleetStatusResourceWithStreamingResponse(self._devices.fleet_status)

@cached_property
def policies(self) -> PoliciesResourceWithStreamingResponse:
return PoliciesResourceWithStreamingResponse(self._devices.policies)
Expand Down Expand Up @@ -537,10 +509,6 @@ def dex_tests(self) -> AsyncDEXTestsResourceWithStreamingResponse:
def networks(self) -> AsyncNetworksResourceWithStreamingResponse:
return AsyncNetworksResourceWithStreamingResponse(self._devices.networks)

@cached_property
def fleet_status(self) -> AsyncFleetStatusResourceWithStreamingResponse:
return AsyncFleetStatusResourceWithStreamingResponse(self._devices.fleet_status)

@cached_property
def policies(self) -> AsyncPoliciesResourceWithStreamingResponse:
return AsyncPoliciesResourceWithStreamingResponse(self._devices.policies)
Expand Down
Loading