Skip to content

Commit cd4f924

Browse files
chore(api): update composite API spec
1 parent 4e9deac commit cd4f924

File tree

195 files changed

+1987
-16808
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+1987
-16808
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1864
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c0392dcf61647dfd80bd9cfba1b84336aa6348d8e85b59199172c0cf5a2e30c2.yml
3-
openapi_spec_hash: ddde86af37159dac5dc0f678abffcb72
1+
configured_endpoints: 1826
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cceecd20dfd89884f795e75b433848994bed610b79802c65104f0c70d3ada54e.yml
3+
openapi_spec_hash: c33c0e26e48c004c1781a36748d0144c
44
config_hash: f02bc3ad56bdede6c515f996ca86012c

api.md

Lines changed: 25 additions & 251 deletions
Large diffs are not rendered by default.

src/cloudflare/_client.py

Lines changed: 0 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
rum,
4646
ssl,
4747
argo,
48-
logs,
4948
user,
5049
web3,
5150
cache,
@@ -75,7 +74,6 @@
7574
registrar,
7675
turnstile,
7776
vectorize,
78-
workflows,
7977
addressing,
8078
ai_gateway,
8179
audit_logs,
@@ -127,7 +125,6 @@
127125
origin_ca_certificates,
128126
origin_tls_client_auth,
129127
certificate_authorities,
130-
leaked_credential_checks,
131128
magic_network_monitoring,
132129
origin_post_quantum_encryption,
133130
)
@@ -143,7 +140,6 @@
143140
from .resources.rum.rum import RUMResource, AsyncRUMResource
144141
from .resources.ssl.ssl import SSLResource, AsyncSSLResource
145142
from .resources.argo.argo import ArgoResource, AsyncArgoResource
146-
from .resources.logs.logs import LogsResource, AsyncLogsResource
147143
from .resources.pipelines import PipelinesResource, AsyncPipelinesResource
148144
from .resources.user.user import UserResource, AsyncUserResource
149145
from .resources.web3.web3 import Web3Resource, AsyncWeb3Resource
@@ -184,7 +180,6 @@
184180
from .resources.registrar.registrar import RegistrarResource, AsyncRegistrarResource
185181
from .resources.turnstile.turnstile import TurnstileResource, AsyncTurnstileResource
186182
from .resources.vectorize.vectorize import VectorizeResource, AsyncVectorizeResource
187-
from .resources.workflows.workflows import WorkflowsResource, AsyncWorkflowsResource
188183
from .resources.keyless_certificates import KeylessCertificatesResource, AsyncKeylessCertificatesResource
189184
from .resources.addressing.addressing import AddressingResource, AsyncAddressingResource
190185
from .resources.ai_gateway.ai_gateway import AIGatewayResource, AsyncAIGatewayResource
@@ -246,10 +241,6 @@
246241
CertificateAuthoritiesResource,
247242
AsyncCertificateAuthoritiesResource,
248243
)
249-
from .resources.leaked_credential_checks.leaked_credential_checks import (
250-
LeakedCredentialChecksResource,
251-
AsyncLeakedCredentialChecksResource,
252-
)
253244
from .resources.magic_network_monitoring.magic_network_monitoring import (
254245
MagicNetworkMonitoringResource,
255246
AsyncMagicNetworkMonitoringResource,
@@ -501,12 +492,6 @@ def logpush(self) -> LogpushResource:
501492

502493
return LogpushResource(self)
503494

504-
@cached_property
505-
def logs(self) -> LogsResource:
506-
from .resources.logs import LogsResource
507-
508-
return LogsResource(self)
509-
510495
@cached_property
511496
def origin_tls_client_auth(self) -> OriginTLSClientAuthResource:
512497
from .resources.origin_tls_client_auth import OriginTLSClientAuthResource
@@ -855,24 +840,12 @@ def security_txt(self) -> SecurityTXTResource:
855840

856841
return SecurityTXTResource(self)
857842

858-
@cached_property
859-
def workflows(self) -> WorkflowsResource:
860-
from .resources.workflows import WorkflowsResource
861-
862-
return WorkflowsResource(self)
863-
864843
@cached_property
865844
def resource_sharing(self) -> ResourceSharingResource:
866845
from .resources.resource_sharing import ResourceSharingResource
867846

868847
return ResourceSharingResource(self)
869848

870-
@cached_property
871-
def leaked_credential_checks(self) -> LeakedCredentialChecksResource:
872-
from .resources.leaked_credential_checks import LeakedCredentialChecksResource
873-
874-
return LeakedCredentialChecksResource(self)
875-
876849
@cached_property
877850
def content_scanning(self) -> ContentScanningResource:
878851
from .resources.content_scanning import ContentScanningResource
@@ -1339,12 +1312,6 @@ def logpush(self) -> AsyncLogpushResource:
13391312

13401313
return AsyncLogpushResource(self)
13411314

1342-
@cached_property
1343-
def logs(self) -> AsyncLogsResource:
1344-
from .resources.logs import AsyncLogsResource
1345-
1346-
return AsyncLogsResource(self)
1347-
13481315
@cached_property
13491316
def origin_tls_client_auth(self) -> AsyncOriginTLSClientAuthResource:
13501317
from .resources.origin_tls_client_auth import AsyncOriginTLSClientAuthResource
@@ -1693,24 +1660,12 @@ def security_txt(self) -> AsyncSecurityTXTResource:
16931660

16941661
return AsyncSecurityTXTResource(self)
16951662

1696-
@cached_property
1697-
def workflows(self) -> AsyncWorkflowsResource:
1698-
from .resources.workflows import AsyncWorkflowsResource
1699-
1700-
return AsyncWorkflowsResource(self)
1701-
17021663
@cached_property
17031664
def resource_sharing(self) -> AsyncResourceSharingResource:
17041665
from .resources.resource_sharing import AsyncResourceSharingResource
17051666

17061667
return AsyncResourceSharingResource(self)
17071668

1708-
@cached_property
1709-
def leaked_credential_checks(self) -> AsyncLeakedCredentialChecksResource:
1710-
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResource
1711-
1712-
return AsyncLeakedCredentialChecksResource(self)
1713-
17141669
@cached_property
17151670
def content_scanning(self) -> AsyncContentScanningResource:
17161671
from .resources.content_scanning import AsyncContentScanningResource
@@ -2105,12 +2060,6 @@ def logpush(self) -> logpush.LogpushResourceWithRawResponse:
21052060

21062061
return LogpushResourceWithRawResponse(self._client.logpush)
21072062

2108-
@cached_property
2109-
def logs(self) -> logs.LogsResourceWithRawResponse:
2110-
from .resources.logs import LogsResourceWithRawResponse
2111-
2112-
return LogsResourceWithRawResponse(self._client.logs)
2113-
21142063
@cached_property
21152064
def origin_tls_client_auth(self) -> origin_tls_client_auth.OriginTLSClientAuthResourceWithRawResponse:
21162065
from .resources.origin_tls_client_auth import OriginTLSClientAuthResourceWithRawResponse
@@ -2461,24 +2410,12 @@ def security_txt(self) -> security_txt.SecurityTXTResourceWithRawResponse:
24612410

24622411
return SecurityTXTResourceWithRawResponse(self._client.security_txt)
24632412

2464-
@cached_property
2465-
def workflows(self) -> workflows.WorkflowsResourceWithRawResponse:
2466-
from .resources.workflows import WorkflowsResourceWithRawResponse
2467-
2468-
return WorkflowsResourceWithRawResponse(self._client.workflows)
2469-
24702413
@cached_property
24712414
def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithRawResponse:
24722415
from .resources.resource_sharing import ResourceSharingResourceWithRawResponse
24732416

24742417
return ResourceSharingResourceWithRawResponse(self._client.resource_sharing)
24752418

2476-
@cached_property
2477-
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResourceWithRawResponse:
2478-
from .resources.leaked_credential_checks import LeakedCredentialChecksResourceWithRawResponse
2479-
2480-
return LeakedCredentialChecksResourceWithRawResponse(self._client.leaked_credential_checks)
2481-
24822419
@cached_property
24832420
def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawResponse:
24842421
from .resources.content_scanning import ContentScanningResourceWithRawResponse
@@ -2690,12 +2627,6 @@ def logpush(self) -> logpush.AsyncLogpushResourceWithRawResponse:
26902627

26912628
return AsyncLogpushResourceWithRawResponse(self._client.logpush)
26922629

2693-
@cached_property
2694-
def logs(self) -> logs.AsyncLogsResourceWithRawResponse:
2695-
from .resources.logs import AsyncLogsResourceWithRawResponse
2696-
2697-
return AsyncLogsResourceWithRawResponse(self._client.logs)
2698-
26992630
@cached_property
27002631
def origin_tls_client_auth(self) -> origin_tls_client_auth.AsyncOriginTLSClientAuthResourceWithRawResponse:
27012632
from .resources.origin_tls_client_auth import AsyncOriginTLSClientAuthResourceWithRawResponse
@@ -3046,24 +2977,12 @@ def security_txt(self) -> security_txt.AsyncSecurityTXTResourceWithRawResponse:
30462977

30472978
return AsyncSecurityTXTResourceWithRawResponse(self._client.security_txt)
30482979

3049-
@cached_property
3050-
def workflows(self) -> workflows.AsyncWorkflowsResourceWithRawResponse:
3051-
from .resources.workflows import AsyncWorkflowsResourceWithRawResponse
3052-
3053-
return AsyncWorkflowsResourceWithRawResponse(self._client.workflows)
3054-
30552980
@cached_property
30562981
def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithRawResponse:
30572982
from .resources.resource_sharing import AsyncResourceSharingResourceWithRawResponse
30582983

30592984
return AsyncResourceSharingResourceWithRawResponse(self._client.resource_sharing)
30602985

3061-
@cached_property
3062-
def leaked_credential_checks(self) -> leaked_credential_checks.AsyncLeakedCredentialChecksResourceWithRawResponse:
3063-
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResourceWithRawResponse
3064-
3065-
return AsyncLeakedCredentialChecksResourceWithRawResponse(self._client.leaked_credential_checks)
3066-
30672986
@cached_property
30682987
def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithRawResponse:
30692988
from .resources.content_scanning import AsyncContentScanningResourceWithRawResponse
@@ -3275,12 +3194,6 @@ def logpush(self) -> logpush.LogpushResourceWithStreamingResponse:
32753194

32763195
return LogpushResourceWithStreamingResponse(self._client.logpush)
32773196

3278-
@cached_property
3279-
def logs(self) -> logs.LogsResourceWithStreamingResponse:
3280-
from .resources.logs import LogsResourceWithStreamingResponse
3281-
3282-
return LogsResourceWithStreamingResponse(self._client.logs)
3283-
32843197
@cached_property
32853198
def origin_tls_client_auth(self) -> origin_tls_client_auth.OriginTLSClientAuthResourceWithStreamingResponse:
32863199
from .resources.origin_tls_client_auth import OriginTLSClientAuthResourceWithStreamingResponse
@@ -3631,24 +3544,12 @@ def security_txt(self) -> security_txt.SecurityTXTResourceWithStreamingResponse:
36313544

36323545
return SecurityTXTResourceWithStreamingResponse(self._client.security_txt)
36333546

3634-
@cached_property
3635-
def workflows(self) -> workflows.WorkflowsResourceWithStreamingResponse:
3636-
from .resources.workflows import WorkflowsResourceWithStreamingResponse
3637-
3638-
return WorkflowsResourceWithStreamingResponse(self._client.workflows)
3639-
36403547
@cached_property
36413548
def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithStreamingResponse:
36423549
from .resources.resource_sharing import ResourceSharingResourceWithStreamingResponse
36433550

36443551
return ResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)
36453552

3646-
@cached_property
3647-
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResourceWithStreamingResponse:
3648-
from .resources.leaked_credential_checks import LeakedCredentialChecksResourceWithStreamingResponse
3649-
3650-
return LeakedCredentialChecksResourceWithStreamingResponse(self._client.leaked_credential_checks)
3651-
36523553
@cached_property
36533554
def content_scanning(self) -> content_scanning.ContentScanningResourceWithStreamingResponse:
36543555
from .resources.content_scanning import ContentScanningResourceWithStreamingResponse
@@ -3862,12 +3763,6 @@ def logpush(self) -> logpush.AsyncLogpushResourceWithStreamingResponse:
38623763

38633764
return AsyncLogpushResourceWithStreamingResponse(self._client.logpush)
38643765

3865-
@cached_property
3866-
def logs(self) -> logs.AsyncLogsResourceWithStreamingResponse:
3867-
from .resources.logs import AsyncLogsResourceWithStreamingResponse
3868-
3869-
return AsyncLogsResourceWithStreamingResponse(self._client.logs)
3870-
38713766
@cached_property
38723767
def origin_tls_client_auth(self) -> origin_tls_client_auth.AsyncOriginTLSClientAuthResourceWithStreamingResponse:
38733768
from .resources.origin_tls_client_auth import AsyncOriginTLSClientAuthResourceWithStreamingResponse
@@ -4224,26 +4119,12 @@ def security_txt(self) -> security_txt.AsyncSecurityTXTResourceWithStreamingResp
42244119

42254120
return AsyncSecurityTXTResourceWithStreamingResponse(self._client.security_txt)
42264121

4227-
@cached_property
4228-
def workflows(self) -> workflows.AsyncWorkflowsResourceWithStreamingResponse:
4229-
from .resources.workflows import AsyncWorkflowsResourceWithStreamingResponse
4230-
4231-
return AsyncWorkflowsResourceWithStreamingResponse(self._client.workflows)
4232-
42334122
@cached_property
42344123
def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithStreamingResponse:
42354124
from .resources.resource_sharing import AsyncResourceSharingResourceWithStreamingResponse
42364125

42374126
return AsyncResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)
42384127

4239-
@cached_property
4240-
def leaked_credential_checks(
4241-
self,
4242-
) -> leaked_credential_checks.AsyncLeakedCredentialChecksResourceWithStreamingResponse:
4243-
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResourceWithStreamingResponse
4244-
4245-
return AsyncLeakedCredentialChecksResourceWithStreamingResponse(self._client.leaked_credential_checks)
4246-
42474128
@cached_property
42484129
def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithStreamingResponse:
42494130
from .resources.content_scanning import AsyncContentScanningResourceWithStreamingResponse

src/cloudflare/resources/alerting/policies.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def create(
5656
*,
5757
account_id: str,
5858
alert_type: Literal[
59+
"abuse_report_alert",
5960
"access_custom_certificate_expiration_type",
6061
"advanced_ddos_attack_l4_alert",
6162
"advanced_ddos_attack_l7_alert",
@@ -204,6 +205,7 @@ def update(
204205
account_id: str,
205206
alert_interval: str | Omit = omit,
206207
alert_type: Literal[
208+
"abuse_report_alert",
207209
"access_custom_certificate_expiration_type",
208210
"advanced_ddos_attack_l4_alert",
209211
"advanced_ddos_attack_l7_alert",
@@ -495,6 +497,7 @@ async def create(
495497
*,
496498
account_id: str,
497499
alert_type: Literal[
500+
"abuse_report_alert",
498501
"access_custom_certificate_expiration_type",
499502
"advanced_ddos_attack_l4_alert",
500503
"advanced_ddos_attack_l7_alert",
@@ -643,6 +646,7 @@ async def update(
643646
account_id: str,
644647
alert_interval: str | Omit = omit,
645648
alert_type: Literal[
649+
"abuse_report_alert",
646650
"access_custom_certificate_expiration_type",
647651
"advanced_ddos_attack_l4_alert",
648652
"advanced_ddos_attack_l7_alert",

src/cloudflare/resources/cloudforce_one/threat_events/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,6 @@
7272
ThreatEventsResourceWithStreamingResponse,
7373
AsyncThreatEventsResourceWithStreamingResponse,
7474
)
75-
from .indicator_types import (
76-
IndicatorTypesResource,
77-
AsyncIndicatorTypesResource,
78-
IndicatorTypesResourceWithRawResponse,
79-
AsyncIndicatorTypesResourceWithRawResponse,
80-
IndicatorTypesResourceWithStreamingResponse,
81-
AsyncIndicatorTypesResourceWithStreamingResponse,
82-
)
8375
from .target_industries import (
8476
TargetIndustriesResource,
8577
AsyncTargetIndustriesResource,
@@ -114,12 +106,6 @@
114106
"AsyncDatasetsResourceWithRawResponse",
115107
"DatasetsResourceWithStreamingResponse",
116108
"AsyncDatasetsResourceWithStreamingResponse",
117-
"IndicatorTypesResource",
118-
"AsyncIndicatorTypesResource",
119-
"IndicatorTypesResourceWithRawResponse",
120-
"AsyncIndicatorTypesResourceWithRawResponse",
121-
"IndicatorTypesResourceWithStreamingResponse",
122-
"AsyncIndicatorTypesResourceWithStreamingResponse",
123109
"RawResource",
124110
"AsyncRawResource",
125111
"RawResourceWithRawResponse",

0 commit comments

Comments
 (0)