Skip to content

Commit dd0b6fb

Browse files
feat: chore(abuse): rename path parameter
* chore(abuse): rename path parameter
1 parent 7361723 commit dd0b6fb

File tree

8 files changed

+4646
-2
lines changed

8 files changed

+4646
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1855
1+
configured_endpoints: 1856
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-90808d61c82855d01afed337662c50972dc6ac8b779763650cecef6541c2d5cc.yml
33
openapi_spec_hash: 5c9d36950e74e02161a89f5051bccef1
4-
config_hash: ced339c69004cc06854b37a59f5d270a
4+
config_hash: 8b4b3138e3a18ef5db3b0cadffd36a6e

api.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9954,6 +9954,18 @@ Methods:
99549954

99559955
- <code title="get /zones/{zone_id}/content-upload-scan/settings">client.content_scanning.settings.<a href="./src/cloudflare/resources/content_scanning/settings.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/content_scanning/setting_get_response.py">SettingGetResponse</a></code>
99569956

9957+
# AbuseReports
9958+
9959+
Types:
9960+
9961+
```python
9962+
from cloudflare.types.abuse_reports import AbuseReportCreateResponse
9963+
```
9964+
9965+
Methods:
9966+
9967+
- <code title="post /accounts/{account_id}/abuse-reports/{report_param}">client.abuse_reports.<a href="./src/cloudflare/resources/abuse_reports.py">create</a>(report_param, \*, account_id, \*\*<a href="src/cloudflare/types/abuse_reports/abuse_report_create_params.py">params</a>) -> <a href="./src/cloudflare/types/abuse_reports/abuse_report_create_response.py">str</a></code>
9968+
99579969
# AI
99589970

99599971
Types:

src/cloudflare/_client.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
dns_firewall,
9494
healthchecks,
9595
security_txt,
96+
abuse_reports,
9697
email_routing,
9798
magic_transit,
9899
organizations,
@@ -161,6 +162,7 @@
161162
from .resources.zones.zones import ZonesResource, AsyncZonesResource
162163
from .resources.custom_pages import CustomPagesResource, AsyncCustomPagesResource
163164
from .resources.security_txt import SecurityTXTResource, AsyncSecurityTXTResource
165+
from .resources.abuse_reports import AbuseReportsResource, AsyncAbuseReportsResource
164166
from .resources.images.images import ImagesResource, AsyncImagesResource
165167
from .resources.queues.queues import QueuesResource, AsyncQueuesResource
166168
from .resources.stream.stream import StreamResource, AsyncStreamResource
@@ -871,6 +873,12 @@ def content_scanning(self) -> ContentScanningResource:
871873

872874
return ContentScanningResource(self)
873875

876+
@cached_property
877+
def abuse_reports(self) -> AbuseReportsResource:
878+
from .resources.abuse_reports import AbuseReportsResource
879+
880+
return AbuseReportsResource(self)
881+
874882
@cached_property
875883
def ai(self) -> AIResource:
876884
from .resources.ai import AIResource
@@ -1703,6 +1711,12 @@ def content_scanning(self) -> AsyncContentScanningResource:
17031711

17041712
return AsyncContentScanningResource(self)
17051713

1714+
@cached_property
1715+
def abuse_reports(self) -> AsyncAbuseReportsResource:
1716+
from .resources.abuse_reports import AsyncAbuseReportsResource
1717+
1718+
return AsyncAbuseReportsResource(self)
1719+
17061720
@cached_property
17071721
def ai(self) -> AsyncAIResource:
17081722
from .resources.ai import AsyncAIResource
@@ -2465,6 +2479,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawRes
24652479

24662480
return ContentScanningResourceWithRawResponse(self._client.content_scanning)
24672481

2482+
@cached_property
2483+
def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithRawResponse:
2484+
from .resources.abuse_reports import AbuseReportsResourceWithRawResponse
2485+
2486+
return AbuseReportsResourceWithRawResponse(self._client.abuse_reports)
2487+
24682488
@cached_property
24692489
def ai(self) -> ai.AIResourceWithRawResponse:
24702490
from .resources.ai import AIResourceWithRawResponse
@@ -3044,6 +3064,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithR
30443064

30453065
return AsyncContentScanningResourceWithRawResponse(self._client.content_scanning)
30463066

3067+
@cached_property
3068+
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithRawResponse:
3069+
from .resources.abuse_reports import AsyncAbuseReportsResourceWithRawResponse
3070+
3071+
return AsyncAbuseReportsResourceWithRawResponse(self._client.abuse_reports)
3072+
30473073
@cached_property
30483074
def ai(self) -> ai.AsyncAIResourceWithRawResponse:
30493075
from .resources.ai import AsyncAIResourceWithRawResponse
@@ -3623,6 +3649,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithStream
36233649

36243650
return ContentScanningResourceWithStreamingResponse(self._client.content_scanning)
36253651

3652+
@cached_property
3653+
def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithStreamingResponse:
3654+
from .resources.abuse_reports import AbuseReportsResourceWithStreamingResponse
3655+
3656+
return AbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)
3657+
36263658
@cached_property
36273659
def ai(self) -> ai.AIResourceWithStreamingResponse:
36283660
from .resources.ai import AIResourceWithStreamingResponse
@@ -4212,6 +4244,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithS
42124244

42134245
return AsyncContentScanningResourceWithStreamingResponse(self._client.content_scanning)
42144246

4247+
@cached_property
4248+
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithStreamingResponse:
4249+
from .resources.abuse_reports import AsyncAbuseReportsResourceWithStreamingResponse
4250+
4251+
return AsyncAbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)
4252+
42154253
@cached_property
42164254
def ai(self) -> ai.AsyncAIResourceWithStreamingResponse:
42174255
from .resources.ai import AsyncAIResourceWithStreamingResponse

0 commit comments

Comments
 (0)