77
88import httpx
99
10- from .._types import Body , Omit , Query , Headers , NotGiven , omit , not_given
11- from .._utils import required_args , maybe_transform , async_maybe_transform
12- from .._compat import cached_property
13- from .._resource import SyncAPIResource , AsyncAPIResource
14- from .._response import (
10+ from ... _types import Body , Omit , Query , Headers , NotGiven , omit , not_given
11+ from ... _utils import required_args , maybe_transform , async_maybe_transform
12+ from ... _compat import cached_property
13+ from ... _resource import SyncAPIResource , AsyncAPIResource
14+ from ... _response import (
1515 to_raw_response_wrapper ,
1616 to_streamed_response_wrapper ,
1717 async_to_raw_response_wrapper ,
1818 async_to_streamed_response_wrapper ,
1919)
20- from .._wrappers import ResultWrapper
21- from ..pagination import SyncV4PagePagination , AsyncV4PagePagination
22- from .._base_client import AsyncPaginator , make_request_options
23- from ..types .abuse_reports import abuse_report_list_params , abuse_report_create_params
24- from ..types .abuse_reports .abuse_report_get_response import AbuseReportGetResponse
25- from ..types .abuse_reports .abuse_report_list_response import AbuseReportListResponse
26- from ..types .abuse_reports .abuse_report_create_response import AbuseReportCreateResponse
20+ from ..._wrappers import ResultWrapper
21+ from .mitigations import (
22+ MitigationsResource ,
23+ AsyncMitigationsResource ,
24+ MitigationsResourceWithRawResponse ,
25+ AsyncMitigationsResourceWithRawResponse ,
26+ MitigationsResourceWithStreamingResponse ,
27+ AsyncMitigationsResourceWithStreamingResponse ,
28+ )
29+ from ...pagination import SyncV4PagePagination , AsyncV4PagePagination
30+ from ..._base_client import AsyncPaginator , make_request_options
31+ from ...types .abuse_reports import abuse_report_list_params , abuse_report_create_params
32+ from ...types .abuse_reports .abuse_report_get_response import AbuseReportGetResponse
33+ from ...types .abuse_reports .abuse_report_list_response import AbuseReportListResponse
34+ from ...types .abuse_reports .abuse_report_create_response import AbuseReportCreateResponse
2735
2836__all__ = ["AbuseReportsResource" , "AsyncAbuseReportsResource" ]
2937
3038
3139class AbuseReportsResource (SyncAPIResource ):
40+ @cached_property
41+ def mitigations (self ) -> MitigationsResource :
42+ return MitigationsResource (self ._client )
43+
3244 @cached_property
3345 def with_raw_response (self ) -> AbuseReportsResourceWithRawResponse :
3446 """
@@ -1051,6 +1063,10 @@ def get(
10511063
10521064
10531065class AsyncAbuseReportsResource (AsyncAPIResource ):
1066+ @cached_property
1067+ def mitigations (self ) -> AsyncMitigationsResource :
1068+ return AsyncMitigationsResource (self ._client )
1069+
10541070 @cached_property
10551071 def with_raw_response (self ) -> AsyncAbuseReportsResourceWithRawResponse :
10561072 """
@@ -2086,6 +2102,10 @@ def __init__(self, abuse_reports: AbuseReportsResource) -> None:
20862102 abuse_reports .get ,
20872103 )
20882104
2105+ @cached_property
2106+ def mitigations (self ) -> MitigationsResourceWithRawResponse :
2107+ return MitigationsResourceWithRawResponse (self ._abuse_reports .mitigations )
2108+
20892109
20902110class AsyncAbuseReportsResourceWithRawResponse :
20912111 def __init__ (self , abuse_reports : AsyncAbuseReportsResource ) -> None :
@@ -2101,6 +2121,10 @@ def __init__(self, abuse_reports: AsyncAbuseReportsResource) -> None:
21012121 abuse_reports .get ,
21022122 )
21032123
2124+ @cached_property
2125+ def mitigations (self ) -> AsyncMitigationsResourceWithRawResponse :
2126+ return AsyncMitigationsResourceWithRawResponse (self ._abuse_reports .mitigations )
2127+
21042128
21052129class AbuseReportsResourceWithStreamingResponse :
21062130 def __init__ (self , abuse_reports : AbuseReportsResource ) -> None :
@@ -2116,6 +2140,10 @@ def __init__(self, abuse_reports: AbuseReportsResource) -> None:
21162140 abuse_reports .get ,
21172141 )
21182142
2143+ @cached_property
2144+ def mitigations (self ) -> MitigationsResourceWithStreamingResponse :
2145+ return MitigationsResourceWithStreamingResponse (self ._abuse_reports .mitigations )
2146+
21192147
21202148class AsyncAbuseReportsResourceWithStreamingResponse :
21212149 def __init__ (self , abuse_reports : AsyncAbuseReportsResource ) -> None :
@@ -2130,3 +2158,7 @@ def __init__(self, abuse_reports: AsyncAbuseReportsResource) -> None:
21302158 self .get = async_to_streamed_response_wrapper (
21312159 abuse_reports .get ,
21322160 )
2161+
2162+ @cached_property
2163+ def mitigations (self ) -> AsyncMitigationsResourceWithStreamingResponse :
2164+ return AsyncMitigationsResourceWithStreamingResponse (self ._abuse_reports .mitigations )
0 commit comments