Skip to content

Commit 19d1d96

Browse files
chore(api): update composite API spec
1 parent f9160a4 commit 19d1d96

298 files changed

Lines changed: 21653 additions & 17582 deletions

File tree

Some content is hidden

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

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1814
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cceecd20dfd89884f795e75b433848994bed610b79802c65104f0c70d3ada54e.yml
3-
openapi_spec_hash: c33c0e26e48c004c1781a36748d0144c
1+
configured_endpoints: 1839
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ca8fbfa82d19dca400ec61b8c93392de1acd157860e435419f9a5e9ec8c586e0.yml
3+
openapi_spec_hash: 77d55c70bc3824ac61bd056e2319ee18
44
config_hash: eab23d0b8fa818f1d1dc0e9e18de4266

api.md

Lines changed: 256 additions & 80 deletions
Large diffs are not rendered by default.

src/cloudflare/_client.py

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
rum,
4646
ssl,
4747
argo,
48+
logs,
4849
user,
4950
web3,
5051
cache,
@@ -74,6 +75,7 @@
7475
registrar,
7576
turnstile,
7677
vectorize,
78+
workflows,
7779
addressing,
7880
ai_gateway,
7981
audit_logs,
@@ -125,6 +127,7 @@
125127
origin_ca_certificates,
126128
origin_tls_client_auth,
127129
certificate_authorities,
130+
leaked_credential_checks,
128131
magic_network_monitoring,
129132
origin_post_quantum_encryption,
130133
)
@@ -140,6 +143,7 @@
140143
from .resources.rum.rum import RUMResource, AsyncRUMResource
141144
from .resources.ssl.ssl import SSLResource, AsyncSSLResource
142145
from .resources.argo.argo import ArgoResource, AsyncArgoResource
146+
from .resources.logs.logs import LogsResource, AsyncLogsResource
143147
from .resources.pipelines import PipelinesResource, AsyncPipelinesResource
144148
from .resources.user.user import UserResource, AsyncUserResource
145149
from .resources.web3.web3 import Web3Resource, AsyncWeb3Resource
@@ -181,6 +185,7 @@
181185
from .resources.registrar.registrar import RegistrarResource, AsyncRegistrarResource
182186
from .resources.turnstile.turnstile import TurnstileResource, AsyncTurnstileResource
183187
from .resources.vectorize.vectorize import VectorizeResource, AsyncVectorizeResource
188+
from .resources.workflows.workflows import WorkflowsResource, AsyncWorkflowsResource
184189
from .resources.keyless_certificates import KeylessCertificatesResource, AsyncKeylessCertificatesResource
185190
from .resources.addressing.addressing import AddressingResource, AsyncAddressingResource
186191
from .resources.ai_gateway.ai_gateway import AIGatewayResource, AsyncAIGatewayResource
@@ -241,6 +246,10 @@
241246
CertificateAuthoritiesResource,
242247
AsyncCertificateAuthoritiesResource,
243248
)
249+
from .resources.leaked_credential_checks.leaked_credential_checks import (
250+
LeakedCredentialChecksResource,
251+
AsyncLeakedCredentialChecksResource,
252+
)
244253
from .resources.magic_network_monitoring.magic_network_monitoring import (
245254
MagicNetworkMonitoringResource,
246255
AsyncMagicNetworkMonitoringResource,
@@ -492,6 +501,12 @@ def logpush(self) -> LogpushResource:
492501

493502
return LogpushResource(self)
494503

504+
@cached_property
505+
def logs(self) -> LogsResource:
506+
from .resources.logs import LogsResource
507+
508+
return LogsResource(self)
509+
495510
@cached_property
496511
def origin_tls_client_auth(self) -> OriginTLSClientAuthResource:
497512
from .resources.origin_tls_client_auth import OriginTLSClientAuthResource
@@ -834,12 +849,24 @@ def security_txt(self) -> SecurityTXTResource:
834849

835850
return SecurityTXTResource(self)
836851

852+
@cached_property
853+
def workflows(self) -> WorkflowsResource:
854+
from .resources.workflows import WorkflowsResource
855+
856+
return WorkflowsResource(self)
857+
837858
@cached_property
838859
def resource_sharing(self) -> ResourceSharingResource:
839860
from .resources.resource_sharing import ResourceSharingResource
840861

841862
return ResourceSharingResource(self)
842863

864+
@cached_property
865+
def leaked_credential_checks(self) -> LeakedCredentialChecksResource:
866+
from .resources.leaked_credential_checks import LeakedCredentialChecksResource
867+
868+
return LeakedCredentialChecksResource(self)
869+
843870
@cached_property
844871
def content_scanning(self) -> ContentScanningResource:
845872
from .resources.content_scanning import ContentScanningResource
@@ -1312,6 +1339,12 @@ def logpush(self) -> AsyncLogpushResource:
13121339

13131340
return AsyncLogpushResource(self)
13141341

1342+
@cached_property
1343+
def logs(self) -> AsyncLogsResource:
1344+
from .resources.logs import AsyncLogsResource
1345+
1346+
return AsyncLogsResource(self)
1347+
13151348
@cached_property
13161349
def origin_tls_client_auth(self) -> AsyncOriginTLSClientAuthResource:
13171350
from .resources.origin_tls_client_auth import AsyncOriginTLSClientAuthResource
@@ -1654,12 +1687,24 @@ def security_txt(self) -> AsyncSecurityTXTResource:
16541687

16551688
return AsyncSecurityTXTResource(self)
16561689

1690+
@cached_property
1691+
def workflows(self) -> AsyncWorkflowsResource:
1692+
from .resources.workflows import AsyncWorkflowsResource
1693+
1694+
return AsyncWorkflowsResource(self)
1695+
16571696
@cached_property
16581697
def resource_sharing(self) -> AsyncResourceSharingResource:
16591698
from .resources.resource_sharing import AsyncResourceSharingResource
16601699

16611700
return AsyncResourceSharingResource(self)
16621701

1702+
@cached_property
1703+
def leaked_credential_checks(self) -> AsyncLeakedCredentialChecksResource:
1704+
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResource
1705+
1706+
return AsyncLeakedCredentialChecksResource(self)
1707+
16631708
@cached_property
16641709
def content_scanning(self) -> AsyncContentScanningResource:
16651710
from .resources.content_scanning import AsyncContentScanningResource
@@ -2060,6 +2105,12 @@ def logpush(self) -> logpush.LogpushResourceWithRawResponse:
20602105

20612106
return LogpushResourceWithRawResponse(self._client.logpush)
20622107

2108+
@cached_property
2109+
def logs(self) -> logs.LogsResourceWithRawResponse:
2110+
from .resources.logs import LogsResourceWithRawResponse
2111+
2112+
return LogsResourceWithRawResponse(self._client.logs)
2113+
20632114
@cached_property
20642115
def origin_tls_client_auth(self) -> origin_tls_client_auth.OriginTLSClientAuthResourceWithRawResponse:
20652116
from .resources.origin_tls_client_auth import OriginTLSClientAuthResourceWithRawResponse
@@ -2404,12 +2455,24 @@ def security_txt(self) -> security_txt.SecurityTXTResourceWithRawResponse:
24042455

24052456
return SecurityTXTResourceWithRawResponse(self._client.security_txt)
24062457

2458+
@cached_property
2459+
def workflows(self) -> workflows.WorkflowsResourceWithRawResponse:
2460+
from .resources.workflows import WorkflowsResourceWithRawResponse
2461+
2462+
return WorkflowsResourceWithRawResponse(self._client.workflows)
2463+
24072464
@cached_property
24082465
def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithRawResponse:
24092466
from .resources.resource_sharing import ResourceSharingResourceWithRawResponse
24102467

24112468
return ResourceSharingResourceWithRawResponse(self._client.resource_sharing)
24122469

2470+
@cached_property
2471+
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResourceWithRawResponse:
2472+
from .resources.leaked_credential_checks import LeakedCredentialChecksResourceWithRawResponse
2473+
2474+
return LeakedCredentialChecksResourceWithRawResponse(self._client.leaked_credential_checks)
2475+
24132476
@cached_property
24142477
def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawResponse:
24152478
from .resources.content_scanning import ContentScanningResourceWithRawResponse
@@ -2627,6 +2690,12 @@ def logpush(self) -> logpush.AsyncLogpushResourceWithRawResponse:
26272690

26282691
return AsyncLogpushResourceWithRawResponse(self._client.logpush)
26292692

2693+
@cached_property
2694+
def logs(self) -> logs.AsyncLogsResourceWithRawResponse:
2695+
from .resources.logs import AsyncLogsResourceWithRawResponse
2696+
2697+
return AsyncLogsResourceWithRawResponse(self._client.logs)
2698+
26302699
@cached_property
26312700
def origin_tls_client_auth(self) -> origin_tls_client_auth.AsyncOriginTLSClientAuthResourceWithRawResponse:
26322701
from .resources.origin_tls_client_auth import AsyncOriginTLSClientAuthResourceWithRawResponse
@@ -2971,12 +3040,24 @@ def security_txt(self) -> security_txt.AsyncSecurityTXTResourceWithRawResponse:
29713040

29723041
return AsyncSecurityTXTResourceWithRawResponse(self._client.security_txt)
29733042

3043+
@cached_property
3044+
def workflows(self) -> workflows.AsyncWorkflowsResourceWithRawResponse:
3045+
from .resources.workflows import AsyncWorkflowsResourceWithRawResponse
3046+
3047+
return AsyncWorkflowsResourceWithRawResponse(self._client.workflows)
3048+
29743049
@cached_property
29753050
def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithRawResponse:
29763051
from .resources.resource_sharing import AsyncResourceSharingResourceWithRawResponse
29773052

29783053
return AsyncResourceSharingResourceWithRawResponse(self._client.resource_sharing)
29793054

3055+
@cached_property
3056+
def leaked_credential_checks(self) -> leaked_credential_checks.AsyncLeakedCredentialChecksResourceWithRawResponse:
3057+
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResourceWithRawResponse
3058+
3059+
return AsyncLeakedCredentialChecksResourceWithRawResponse(self._client.leaked_credential_checks)
3060+
29803061
@cached_property
29813062
def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithRawResponse:
29823063
from .resources.content_scanning import AsyncContentScanningResourceWithRawResponse
@@ -3194,6 +3275,12 @@ def logpush(self) -> logpush.LogpushResourceWithStreamingResponse:
31943275

31953276
return LogpushResourceWithStreamingResponse(self._client.logpush)
31963277

3278+
@cached_property
3279+
def logs(self) -> logs.LogsResourceWithStreamingResponse:
3280+
from .resources.logs import LogsResourceWithStreamingResponse
3281+
3282+
return LogsResourceWithStreamingResponse(self._client.logs)
3283+
31973284
@cached_property
31983285
def origin_tls_client_auth(self) -> origin_tls_client_auth.OriginTLSClientAuthResourceWithStreamingResponse:
31993286
from .resources.origin_tls_client_auth import OriginTLSClientAuthResourceWithStreamingResponse
@@ -3538,12 +3625,24 @@ def security_txt(self) -> security_txt.SecurityTXTResourceWithStreamingResponse:
35383625

35393626
return SecurityTXTResourceWithStreamingResponse(self._client.security_txt)
35403627

3628+
@cached_property
3629+
def workflows(self) -> workflows.WorkflowsResourceWithStreamingResponse:
3630+
from .resources.workflows import WorkflowsResourceWithStreamingResponse
3631+
3632+
return WorkflowsResourceWithStreamingResponse(self._client.workflows)
3633+
35413634
@cached_property
35423635
def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithStreamingResponse:
35433636
from .resources.resource_sharing import ResourceSharingResourceWithStreamingResponse
35443637

35453638
return ResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)
35463639

3640+
@cached_property
3641+
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResourceWithStreamingResponse:
3642+
from .resources.leaked_credential_checks import LeakedCredentialChecksResourceWithStreamingResponse
3643+
3644+
return LeakedCredentialChecksResourceWithStreamingResponse(self._client.leaked_credential_checks)
3645+
35473646
@cached_property
35483647
def content_scanning(self) -> content_scanning.ContentScanningResourceWithStreamingResponse:
35493648
from .resources.content_scanning import ContentScanningResourceWithStreamingResponse
@@ -3763,6 +3862,12 @@ def logpush(self) -> logpush.AsyncLogpushResourceWithStreamingResponse:
37633862

37643863
return AsyncLogpushResourceWithStreamingResponse(self._client.logpush)
37653864

3865+
@cached_property
3866+
def logs(self) -> logs.AsyncLogsResourceWithStreamingResponse:
3867+
from .resources.logs import AsyncLogsResourceWithStreamingResponse
3868+
3869+
return AsyncLogsResourceWithStreamingResponse(self._client.logs)
3870+
37663871
@cached_property
37673872
def origin_tls_client_auth(self) -> origin_tls_client_auth.AsyncOriginTLSClientAuthResourceWithStreamingResponse:
37683873
from .resources.origin_tls_client_auth import AsyncOriginTLSClientAuthResourceWithStreamingResponse
@@ -4113,12 +4218,26 @@ def security_txt(self) -> security_txt.AsyncSecurityTXTResourceWithStreamingResp
41134218

41144219
return AsyncSecurityTXTResourceWithStreamingResponse(self._client.security_txt)
41154220

4221+
@cached_property
4222+
def workflows(self) -> workflows.AsyncWorkflowsResourceWithStreamingResponse:
4223+
from .resources.workflows import AsyncWorkflowsResourceWithStreamingResponse
4224+
4225+
return AsyncWorkflowsResourceWithStreamingResponse(self._client.workflows)
4226+
41164227
@cached_property
41174228
def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithStreamingResponse:
41184229
from .resources.resource_sharing import AsyncResourceSharingResourceWithStreamingResponse
41194230

41204231
return AsyncResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)
41214232

4233+
@cached_property
4234+
def leaked_credential_checks(
4235+
self,
4236+
) -> leaked_credential_checks.AsyncLeakedCredentialChecksResourceWithStreamingResponse:
4237+
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResourceWithStreamingResponse
4238+
4239+
return AsyncLeakedCredentialChecksResourceWithStreamingResponse(self._client.leaked_credential_checks)
4240+
41224241
@cached_property
41234242
def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithStreamingResponse:
41244243
from .resources.content_scanning import AsyncContentScanningResourceWithStreamingResponse

src/cloudflare/resources/alerting/policies.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def create(
5656
*,
5757
account_id: str,
5858
alert_type: Literal[
59-
"abuse_report_alert",
6059
"access_custom_certificate_expiration_type",
6160
"advanced_ddos_attack_l4_alert",
6261
"advanced_ddos_attack_l7_alert",
@@ -205,7 +204,6 @@ def update(
205204
account_id: str,
206205
alert_interval: str | Omit = omit,
207206
alert_type: Literal[
208-
"abuse_report_alert",
209207
"access_custom_certificate_expiration_type",
210208
"advanced_ddos_attack_l4_alert",
211209
"advanced_ddos_attack_l7_alert",
@@ -497,7 +495,6 @@ async def create(
497495
*,
498496
account_id: str,
499497
alert_type: Literal[
500-
"abuse_report_alert",
501498
"access_custom_certificate_expiration_type",
502499
"advanced_ddos_attack_l4_alert",
503500
"advanced_ddos_attack_l7_alert",
@@ -646,7 +643,6 @@ async def update(
646643
account_id: str,
647644
alert_interval: str | Omit = omit,
648645
alert_type: Literal[
649-
"abuse_report_alert",
650646
"access_custom_certificate_expiration_type",
651647
"advanced_ddos_attack_l4_alert",
652648
"advanced_ddos_attack_l7_alert",

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@
7272
ThreatEventsResourceWithStreamingResponse,
7373
AsyncThreatEventsResourceWithStreamingResponse,
7474
)
75+
from .indicator_types import (
76+
IndicatorTypesResource,
77+
AsyncIndicatorTypesResource,
78+
IndicatorTypesResourceWithRawResponse,
79+
AsyncIndicatorTypesResourceWithRawResponse,
80+
IndicatorTypesResourceWithStreamingResponse,
81+
AsyncIndicatorTypesResourceWithStreamingResponse,
82+
)
7583
from .target_industries import (
7684
TargetIndustriesResource,
7785
AsyncTargetIndustriesResource,
@@ -106,6 +114,12 @@
106114
"AsyncDatasetsResourceWithRawResponse",
107115
"DatasetsResourceWithStreamingResponse",
108116
"AsyncDatasetsResourceWithStreamingResponse",
117+
"IndicatorTypesResource",
118+
"AsyncIndicatorTypesResource",
119+
"IndicatorTypesResourceWithRawResponse",
120+
"AsyncIndicatorTypesResourceWithRawResponse",
121+
"IndicatorTypesResourceWithStreamingResponse",
122+
"AsyncIndicatorTypesResourceWithStreamingResponse",
109123
"RawResource",
110124
"AsyncRawResource",
111125
"RawResourceWithRawResponse",

0 commit comments

Comments
 (0)