Skip to content

Commit 0ac8d45

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#2151)
1 parent 99d9133 commit 0ac8d45

File tree

9 files changed

+2
-722
lines changed

9 files changed

+2
-722
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1417
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2959676ecfc112a904ecea7f0874900dd48e4e15ea12ab641b3428db5dade9aa.yml
1+
configured_endpoints: 1416
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cc1685d89cdcb1a8b9f5eada60808601470876a497be8898010890736c20e77f.yml

api.md

-12
Original file line numberDiff line numberDiff line change
@@ -4812,18 +4812,6 @@ Methods:
48124812
- <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</a></code>
48134813
- <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</a></code>
48144814

4815-
### FleetStatus
4816-
4817-
Types:
4818-
4819-
```python
4820-
from cloudflare.types.zero_trust.devices import FleetStatusGetResponse
4821-
```
4822-
4823-
Methods:
4824-
4825-
- <code title="get /accounts/{accountTag}/devices/{deviceId}/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_tag, \*\*<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>
4826-
48274815
### Policies
48284816

48294817
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)

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

-220
This file was deleted.

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

-2
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,13 @@
4949
from .unique_client_id_input import UniqueClientIDInput as UniqueClientIDInput
5050
from .unrevoke_create_params import UnrevokeCreateParams as UnrevokeCreateParams
5151
from .crowdstrike_input_param import CrowdstrikeInputParam as CrowdstrikeInputParam
52-
from .fleet_status_get_params import FleetStatusGetParams as FleetStatusGetParams
5352
from .network_delete_response import NetworkDeleteResponse as NetworkDeleteResponse
5453
from .posture_delete_response import PostureDeleteResponse as PostureDeleteResponse
5554
from .sentinelone_input_param import SentineloneInputParam as SentineloneInputParam
5655
from .client_certificate_input import ClientCertificateInput as ClientCertificateInput
5756
from .dex_test_delete_response import DEXTestDeleteResponse as DEXTestDeleteResponse
5857
from .unrevoke_create_response import UnrevokeCreateResponse as UnrevokeCreateResponse
5958
from .domain_joined_input_param import DomainJoinedInputParam as DomainJoinedInputParam
60-
from .fleet_status_get_response import FleetStatusGetResponse as FleetStatusGetResponse
6159
from .workspace_one_input_param import WorkspaceOneInputParam as WorkspaceOneInputParam
6260
from .split_tunnel_exclude_param import SplitTunnelExcludeParam as SplitTunnelExcludeParam
6361
from .split_tunnel_include_param import SplitTunnelIncludeParam as SplitTunnelIncludeParam

src/cloudflare/types/zero_trust/devices/fleet_status_get_params.py

-22
This file was deleted.

0 commit comments

Comments
 (0)