1818 PoliciesResourceWithStreamingResponse ,
1919 AsyncPoliciesResourceWithStreamingResponse ,
2020)
21+ from .silences import (
22+ SilencesResource ,
23+ AsyncSilencesResource ,
24+ SilencesResourceWithRawResponse ,
25+ AsyncSilencesResourceWithRawResponse ,
26+ SilencesResourceWithStreamingResponse ,
27+ AsyncSilencesResourceWithStreamingResponse ,
28+ )
2129from ..._compat import cached_property
2230from ..._resource import SyncAPIResource , AsyncAPIResource
2331from .available_alerts import (
@@ -57,6 +65,10 @@ def history(self) -> HistoryResource:
5765 def policies (self ) -> PoliciesResource :
5866 return PoliciesResource (self ._client )
5967
68+ @cached_property
69+ def silences (self ) -> SilencesResource :
70+ return SilencesResource (self ._client )
71+
6072 @cached_property
6173 def with_raw_response (self ) -> AlertingResourceWithRawResponse :
6274 """
@@ -94,6 +106,10 @@ def history(self) -> AsyncHistoryResource:
94106 def policies (self ) -> AsyncPoliciesResource :
95107 return AsyncPoliciesResource (self ._client )
96108
109+ @cached_property
110+ def silences (self ) -> AsyncSilencesResource :
111+ return AsyncSilencesResource (self ._client )
112+
97113 @cached_property
98114 def with_raw_response (self ) -> AsyncAlertingResourceWithRawResponse :
99115 """
@@ -134,6 +150,10 @@ def history(self) -> HistoryResourceWithRawResponse:
134150 def policies (self ) -> PoliciesResourceWithRawResponse :
135151 return PoliciesResourceWithRawResponse (self ._alerting .policies )
136152
153+ @cached_property
154+ def silences (self ) -> SilencesResourceWithRawResponse :
155+ return SilencesResourceWithRawResponse (self ._alerting .silences )
156+
137157
138158class AsyncAlertingResourceWithRawResponse :
139159 def __init__ (self , alerting : AsyncAlertingResource ) -> None :
@@ -155,6 +175,10 @@ def history(self) -> AsyncHistoryResourceWithRawResponse:
155175 def policies (self ) -> AsyncPoliciesResourceWithRawResponse :
156176 return AsyncPoliciesResourceWithRawResponse (self ._alerting .policies )
157177
178+ @cached_property
179+ def silences (self ) -> AsyncSilencesResourceWithRawResponse :
180+ return AsyncSilencesResourceWithRawResponse (self ._alerting .silences )
181+
158182
159183class AlertingResourceWithStreamingResponse :
160184 def __init__ (self , alerting : AlertingResource ) -> None :
@@ -176,6 +200,10 @@ def history(self) -> HistoryResourceWithStreamingResponse:
176200 def policies (self ) -> PoliciesResourceWithStreamingResponse :
177201 return PoliciesResourceWithStreamingResponse (self ._alerting .policies )
178202
203+ @cached_property
204+ def silences (self ) -> SilencesResourceWithStreamingResponse :
205+ return SilencesResourceWithStreamingResponse (self ._alerting .silences )
206+
179207
180208class AsyncAlertingResourceWithStreamingResponse :
181209 def __init__ (self , alerting : AsyncAlertingResource ) -> None :
@@ -196,3 +224,7 @@ def history(self) -> AsyncHistoryResourceWithStreamingResponse:
196224 @cached_property
197225 def policies (self ) -> AsyncPoliciesResourceWithStreamingResponse :
198226 return AsyncPoliciesResourceWithStreamingResponse (self ._alerting .policies )
227+
228+ @cached_property
229+ def silences (self ) -> AsyncSilencesResourceWithStreamingResponse :
230+ return AsyncSilencesResourceWithStreamingResponse (self ._alerting .silences )
0 commit comments