Skip to content

Commit e738082

Browse files
feat(api): api update (#2266)
1 parent da884ff commit e738082

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3103
-2594
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1460
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-31e83e551de81cf50b30c8dda5b5b8f3f7e7034ad82af7fb6caa67f76cae7e9d.yml
1+
configured_endpoints: 1455
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4118c37824cecf34c05447175906b84c57105e89ea6a092fee7047b46613e094.yml

api.md

+1-44
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ from cloudflare.types.zones import ZoneHold
416416
Methods:
417417

418418
- <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>
419-
- <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>
419+
- <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>
420420
- <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>
421421

422422
## Subscriptions
@@ -4841,18 +4841,6 @@ Methods:
48414841
- <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>
48424842
- <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>
48434843

4844-
### FleetStatus
4845-
4846-
Types:
4847-
4848-
```python
4849-
from cloudflare.types.zero_trust.devices import FleetStatusGetResponse
4850-
```
4851-
4852-
Methods:
4853-
4854-
- <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>
4855-
48564844
### Policies
48574845

48584846
Types:
@@ -5591,37 +5579,6 @@ from cloudflare.types.zero_trust import (
55915579
)
55925580
```
55935581

5594-
### Commands
5595-
5596-
Types:
5597-
5598-
```python
5599-
from cloudflare.types.zero_trust.dex import CommandCreateResponse, CommandListResponse
5600-
```
5601-
5602-
Methods:
5603-
5604-
- <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>
5605-
- <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>
5606-
5607-
#### Downloads
5608-
5609-
Methods:
5610-
5611-
- <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>
5612-
5613-
#### Quota
5614-
5615-
Types:
5616-
5617-
```python
5618-
from cloudflare.types.zero_trust.dex.commands import QuotaGetResponse
5619-
```
5620-
5621-
Methods:
5622-
5623-
- <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>
5624-
56255582
### Colos
56265583

56275584
Types:

src/cloudflare/resources/zero_trust/devices/__init__.py

-14
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@
6464
DEXTestsResourceWithStreamingResponse,
6565
AsyncDEXTestsResourceWithStreamingResponse,
6666
)
67-
from .fleet_status import (
68-
FleetStatusResource,
69-
AsyncFleetStatusResource,
70-
FleetStatusResourceWithRawResponse,
71-
AsyncFleetStatusResourceWithRawResponse,
72-
FleetStatusResourceWithStreamingResponse,
73-
AsyncFleetStatusResourceWithStreamingResponse,
74-
)
7567
from .override_codes import (
7668
OverrideCodesResource,
7769
AsyncOverrideCodesResource,
@@ -94,12 +86,6 @@
9486
"AsyncNetworksResourceWithRawResponse",
9587
"NetworksResourceWithStreamingResponse",
9688
"AsyncNetworksResourceWithStreamingResponse",
97-
"FleetStatusResource",
98-
"AsyncFleetStatusResource",
99-
"FleetStatusResourceWithRawResponse",
100-
"AsyncFleetStatusResourceWithRawResponse",
101-
"FleetStatusResourceWithStreamingResponse",
102-
"AsyncFleetStatusResourceWithStreamingResponse",
10389
"PoliciesResource",
10490
"AsyncPoliciesResource",
10591
"PoliciesResourceWithRawResponse",

src/cloudflare/resources/zero_trust/devices/devices.py

-32
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,6 @@
7272
async_to_streamed_response_wrapper,
7373
)
7474
from ...._wrappers import ResultWrapper
75-
from .fleet_status import (
76-
FleetStatusResource,
77-
AsyncFleetStatusResource,
78-
FleetStatusResourceWithRawResponse,
79-
AsyncFleetStatusResourceWithRawResponse,
80-
FleetStatusResourceWithStreamingResponse,
81-
AsyncFleetStatusResourceWithStreamingResponse,
82-
)
8375
from ....pagination import SyncSinglePage, AsyncSinglePage
8476
from .override_codes import (
8577
OverrideCodesResource,
@@ -107,10 +99,6 @@ def dex_tests(self) -> DEXTestsResource:
10799
def networks(self) -> NetworksResource:
108100
return NetworksResource(self._client)
109101

110-
@cached_property
111-
def fleet_status(self) -> FleetStatusResource:
112-
return FleetStatusResource(self._client)
113-
114102
@cached_property
115103
def policies(self) -> PoliciesResource:
116104
return PoliciesResource(self._client)
@@ -245,10 +233,6 @@ def dex_tests(self) -> AsyncDEXTestsResource:
245233
def networks(self) -> AsyncNetworksResource:
246234
return AsyncNetworksResource(self._client)
247235

248-
@cached_property
249-
def fleet_status(self) -> AsyncFleetStatusResource:
250-
return AsyncFleetStatusResource(self._client)
251-
252236
@cached_property
253237
def policies(self) -> AsyncPoliciesResource:
254238
return AsyncPoliciesResource(self._client)
@@ -393,10 +377,6 @@ def dex_tests(self) -> DEXTestsResourceWithRawResponse:
393377
def networks(self) -> NetworksResourceWithRawResponse:
394378
return NetworksResourceWithRawResponse(self._devices.networks)
395379

396-
@cached_property
397-
def fleet_status(self) -> FleetStatusResourceWithRawResponse:
398-
return FleetStatusResourceWithRawResponse(self._devices.fleet_status)
399-
400380
@cached_property
401381
def policies(self) -> PoliciesResourceWithRawResponse:
402382
return PoliciesResourceWithRawResponse(self._devices.policies)
@@ -441,10 +421,6 @@ def dex_tests(self) -> AsyncDEXTestsResourceWithRawResponse:
441421
def networks(self) -> AsyncNetworksResourceWithRawResponse:
442422
return AsyncNetworksResourceWithRawResponse(self._devices.networks)
443423

444-
@cached_property
445-
def fleet_status(self) -> AsyncFleetStatusResourceWithRawResponse:
446-
return AsyncFleetStatusResourceWithRawResponse(self._devices.fleet_status)
447-
448424
@cached_property
449425
def policies(self) -> AsyncPoliciesResourceWithRawResponse:
450426
return AsyncPoliciesResourceWithRawResponse(self._devices.policies)
@@ -489,10 +465,6 @@ def dex_tests(self) -> DEXTestsResourceWithStreamingResponse:
489465
def networks(self) -> NetworksResourceWithStreamingResponse:
490466
return NetworksResourceWithStreamingResponse(self._devices.networks)
491467

492-
@cached_property
493-
def fleet_status(self) -> FleetStatusResourceWithStreamingResponse:
494-
return FleetStatusResourceWithStreamingResponse(self._devices.fleet_status)
495-
496468
@cached_property
497469
def policies(self) -> PoliciesResourceWithStreamingResponse:
498470
return PoliciesResourceWithStreamingResponse(self._devices.policies)
@@ -537,10 +509,6 @@ def dex_tests(self) -> AsyncDEXTestsResourceWithStreamingResponse:
537509
def networks(self) -> AsyncNetworksResourceWithStreamingResponse:
538510
return AsyncNetworksResourceWithStreamingResponse(self._devices.networks)
539511

540-
@cached_property
541-
def fleet_status(self) -> AsyncFleetStatusResourceWithStreamingResponse:
542-
return AsyncFleetStatusResourceWithStreamingResponse(self._devices.fleet_status)
543-
544512
@cached_property
545513
def policies(self) -> AsyncPoliciesResourceWithStreamingResponse:
546514
return AsyncPoliciesResourceWithStreamingResponse(self._devices.policies)

0 commit comments

Comments
 (0)