1212 TraceroutesResourceWithStreamingResponse ,
1313 AsyncTraceroutesResourceWithStreamingResponse ,
1414)
15+ from .endpoint_healthchecks import (
16+ EndpointHealthchecksResource ,
17+ AsyncEndpointHealthchecksResource ,
18+ EndpointHealthchecksResourceWithRawResponse ,
19+ AsyncEndpointHealthchecksResourceWithRawResponse ,
20+ EndpointHealthchecksResourceWithStreamingResponse ,
21+ AsyncEndpointHealthchecksResourceWithStreamingResponse ,
22+ )
1523
1624__all__ = ["DiagnosticsResource" , "AsyncDiagnosticsResource" ]
1725
@@ -21,6 +29,10 @@ class DiagnosticsResource(SyncAPIResource):
2129 def traceroutes (self ) -> TraceroutesResource :
2230 return TraceroutesResource (self ._client )
2331
32+ @cached_property
33+ def endpoint_healthchecks (self ) -> EndpointHealthchecksResource :
34+ return EndpointHealthchecksResource (self ._client )
35+
2436 @cached_property
2537 def with_raw_response (self ) -> DiagnosticsResourceWithRawResponse :
2638 """
@@ -46,6 +58,10 @@ class AsyncDiagnosticsResource(AsyncAPIResource):
4658 def traceroutes (self ) -> AsyncTraceroutesResource :
4759 return AsyncTraceroutesResource (self ._client )
4860
61+ @cached_property
62+ def endpoint_healthchecks (self ) -> AsyncEndpointHealthchecksResource :
63+ return AsyncEndpointHealthchecksResource (self ._client )
64+
4965 @cached_property
5066 def with_raw_response (self ) -> AsyncDiagnosticsResourceWithRawResponse :
5167 """
@@ -74,6 +90,10 @@ def __init__(self, diagnostics: DiagnosticsResource) -> None:
7490 def traceroutes (self ) -> TraceroutesResourceWithRawResponse :
7591 return TraceroutesResourceWithRawResponse (self ._diagnostics .traceroutes )
7692
93+ @cached_property
94+ def endpoint_healthchecks (self ) -> EndpointHealthchecksResourceWithRawResponse :
95+ return EndpointHealthchecksResourceWithRawResponse (self ._diagnostics .endpoint_healthchecks )
96+
7797
7898class AsyncDiagnosticsResourceWithRawResponse :
7999 def __init__ (self , diagnostics : AsyncDiagnosticsResource ) -> None :
@@ -83,6 +103,10 @@ def __init__(self, diagnostics: AsyncDiagnosticsResource) -> None:
83103 def traceroutes (self ) -> AsyncTraceroutesResourceWithRawResponse :
84104 return AsyncTraceroutesResourceWithRawResponse (self ._diagnostics .traceroutes )
85105
106+ @cached_property
107+ def endpoint_healthchecks (self ) -> AsyncEndpointHealthchecksResourceWithRawResponse :
108+ return AsyncEndpointHealthchecksResourceWithRawResponse (self ._diagnostics .endpoint_healthchecks )
109+
86110
87111class DiagnosticsResourceWithStreamingResponse :
88112 def __init__ (self , diagnostics : DiagnosticsResource ) -> None :
@@ -92,6 +116,10 @@ def __init__(self, diagnostics: DiagnosticsResource) -> None:
92116 def traceroutes (self ) -> TraceroutesResourceWithStreamingResponse :
93117 return TraceroutesResourceWithStreamingResponse (self ._diagnostics .traceroutes )
94118
119+ @cached_property
120+ def endpoint_healthchecks (self ) -> EndpointHealthchecksResourceWithStreamingResponse :
121+ return EndpointHealthchecksResourceWithStreamingResponse (self ._diagnostics .endpoint_healthchecks )
122+
95123
96124class AsyncDiagnosticsResourceWithStreamingResponse :
97125 def __init__ (self , diagnostics : AsyncDiagnosticsResource ) -> None :
@@ -100,3 +128,7 @@ def __init__(self, diagnostics: AsyncDiagnosticsResource) -> None:
100128 @cached_property
101129 def traceroutes (self ) -> AsyncTraceroutesResourceWithStreamingResponse :
102130 return AsyncTraceroutesResourceWithStreamingResponse (self ._diagnostics .traceroutes )
131+
132+ @cached_property
133+ def endpoint_healthchecks (self ) -> AsyncEndpointHealthchecksResourceWithStreamingResponse :
134+ return AsyncEndpointHealthchecksResourceWithStreamingResponse (self ._diagnostics .endpoint_healthchecks )
0 commit comments