Skip to content

Commit 35670b1

Browse files
chore(api): update composite API spec
1 parent 5fdf07b commit 35670b1

File tree

306 files changed

+21666
-17651
lines changed

Some content is hidden

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

306 files changed

+21666
-17651
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: 1825
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cceecd20dfd89884f795e75b433848994bed610b79802c65104f0c70d3ada54e.yml
3-
openapi_spec_hash: c33c0e26e48c004c1781a36748d0144c
1+
configured_endpoints: 1850
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ca8fbfa82d19dca400ec61b8c93392de1acd157860e435419f9a5e9ec8c586e0.yml
3+
openapi_spec_hash: 77d55c70bc3824ac61bd056e2319ee18
44
config_hash: 4b8075dcc6a5884435b2e16c80fc020f

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,
@@ -124,6 +126,7 @@
124126
origin_ca_certificates,
125127
origin_tls_client_auth,
126128
certificate_authorities,
129+
leaked_credential_checks,
127130
magic_network_monitoring,
128131
origin_post_quantum_encryption,
129132
)
@@ -139,6 +142,7 @@
139142
from .resources.rum.rum import RUMResource, AsyncRUMResource
140143
from .resources.ssl.ssl import SSLResource, AsyncSSLResource
141144
from .resources.argo.argo import ArgoResource, AsyncArgoResource
145+
from .resources.logs.logs import LogsResource, AsyncLogsResource
142146
from .resources.pipelines import PipelinesResource, AsyncPipelinesResource
143147
from .resources.user.user import UserResource, AsyncUserResource
144148
from .resources.web3.web3 import Web3Resource, AsyncWeb3Resource
@@ -179,6 +183,7 @@
179183
from .resources.registrar.registrar import RegistrarResource, AsyncRegistrarResource
180184
from .resources.turnstile.turnstile import TurnstileResource, AsyncTurnstileResource
181185
from .resources.vectorize.vectorize import VectorizeResource, AsyncVectorizeResource
186+
from .resources.workflows.workflows import WorkflowsResource, AsyncWorkflowsResource
182187
from .resources.keyless_certificates import KeylessCertificatesResource, AsyncKeylessCertificatesResource
183188
from .resources.addressing.addressing import AddressingResource, AsyncAddressingResource
184189
from .resources.ai_gateway.ai_gateway import AIGatewayResource, AsyncAIGatewayResource
@@ -239,6 +244,10 @@
239244
CertificateAuthoritiesResource,
240245
AsyncCertificateAuthoritiesResource,
241246
)
247+
from .resources.leaked_credential_checks.leaked_credential_checks import (
248+
LeakedCredentialChecksResource,
249+
AsyncLeakedCredentialChecksResource,
250+
)
242251
from .resources.magic_network_monitoring.magic_network_monitoring import (
243252
MagicNetworkMonitoringResource,
244253
AsyncMagicNetworkMonitoringResource,
@@ -490,6 +499,12 @@ def logpush(self) -> LogpushResource:
490499

491500
return LogpushResource(self)
492501

502+
@cached_property
503+
def logs(self) -> LogsResource:
504+
from .resources.logs import LogsResource
505+
506+
return LogsResource(self)
507+
493508
@cached_property
494509
def origin_tls_client_auth(self) -> OriginTLSClientAuthResource:
495510
from .resources.origin_tls_client_auth import OriginTLSClientAuthResource
@@ -832,12 +847,24 @@ def security_txt(self) -> SecurityTXTResource:
832847

833848
return SecurityTXTResource(self)
834849

850+
@cached_property
851+
def workflows(self) -> WorkflowsResource:
852+
from .resources.workflows import WorkflowsResource
853+
854+
return WorkflowsResource(self)
855+
835856
@cached_property
836857
def resource_sharing(self) -> ResourceSharingResource:
837858
from .resources.resource_sharing import ResourceSharingResource
838859

839860
return ResourceSharingResource(self)
840861

862+
@cached_property
863+
def leaked_credential_checks(self) -> LeakedCredentialChecksResource:
864+
from .resources.leaked_credential_checks import LeakedCredentialChecksResource
865+
866+
return LeakedCredentialChecksResource(self)
867+
841868
@cached_property
842869
def content_scanning(self) -> ContentScanningResource:
843870
from .resources.content_scanning import ContentScanningResource
@@ -1304,6 +1331,12 @@ def logpush(self) -> AsyncLogpushResource:
13041331

13051332
return AsyncLogpushResource(self)
13061333

1334+
@cached_property
1335+
def logs(self) -> AsyncLogsResource:
1336+
from .resources.logs import AsyncLogsResource
1337+
1338+
return AsyncLogsResource(self)
1339+
13071340
@cached_property
13081341
def origin_tls_client_auth(self) -> AsyncOriginTLSClientAuthResource:
13091342
from .resources.origin_tls_client_auth import AsyncOriginTLSClientAuthResource
@@ -1646,12 +1679,24 @@ def security_txt(self) -> AsyncSecurityTXTResource:
16461679

16471680
return AsyncSecurityTXTResource(self)
16481681

1682+
@cached_property
1683+
def workflows(self) -> AsyncWorkflowsResource:
1684+
from .resources.workflows import AsyncWorkflowsResource
1685+
1686+
return AsyncWorkflowsResource(self)
1687+
16491688
@cached_property
16501689
def resource_sharing(self) -> AsyncResourceSharingResource:
16511690
from .resources.resource_sharing import AsyncResourceSharingResource
16521691

16531692
return AsyncResourceSharingResource(self)
16541693

1694+
@cached_property
1695+
def leaked_credential_checks(self) -> AsyncLeakedCredentialChecksResource:
1696+
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResource
1697+
1698+
return AsyncLeakedCredentialChecksResource(self)
1699+
16551700
@cached_property
16561701
def content_scanning(self) -> AsyncContentScanningResource:
16571702
from .resources.content_scanning import AsyncContentScanningResource
@@ -2046,6 +2091,12 @@ def logpush(self) -> logpush.LogpushResourceWithRawResponse:
20462091

20472092
return LogpushResourceWithRawResponse(self._client.logpush)
20482093

2094+
@cached_property
2095+
def logs(self) -> logs.LogsResourceWithRawResponse:
2096+
from .resources.logs import LogsResourceWithRawResponse
2097+
2098+
return LogsResourceWithRawResponse(self._client.logs)
2099+
20492100
@cached_property
20502101
def origin_tls_client_auth(self) -> origin_tls_client_auth.OriginTLSClientAuthResourceWithRawResponse:
20512102
from .resources.origin_tls_client_auth import OriginTLSClientAuthResourceWithRawResponse
@@ -2390,12 +2441,24 @@ def security_txt(self) -> security_txt.SecurityTXTResourceWithRawResponse:
23902441

23912442
return SecurityTXTResourceWithRawResponse(self._client.security_txt)
23922443

2444+
@cached_property
2445+
def workflows(self) -> workflows.WorkflowsResourceWithRawResponse:
2446+
from .resources.workflows import WorkflowsResourceWithRawResponse
2447+
2448+
return WorkflowsResourceWithRawResponse(self._client.workflows)
2449+
23932450
@cached_property
23942451
def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithRawResponse:
23952452
from .resources.resource_sharing import ResourceSharingResourceWithRawResponse
23962453

23972454
return ResourceSharingResourceWithRawResponse(self._client.resource_sharing)
23982455

2456+
@cached_property
2457+
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResourceWithRawResponse:
2458+
from .resources.leaked_credential_checks import LeakedCredentialChecksResourceWithRawResponse
2459+
2460+
return LeakedCredentialChecksResourceWithRawResponse(self._client.leaked_credential_checks)
2461+
23992462
@cached_property
24002463
def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawResponse:
24012464
from .resources.content_scanning import ContentScanningResourceWithRawResponse
@@ -2607,6 +2670,12 @@ def logpush(self) -> logpush.AsyncLogpushResourceWithRawResponse:
26072670

26082671
return AsyncLogpushResourceWithRawResponse(self._client.logpush)
26092672

2673+
@cached_property
2674+
def logs(self) -> logs.AsyncLogsResourceWithRawResponse:
2675+
from .resources.logs import AsyncLogsResourceWithRawResponse
2676+
2677+
return AsyncLogsResourceWithRawResponse(self._client.logs)
2678+
26102679
@cached_property
26112680
def origin_tls_client_auth(self) -> origin_tls_client_auth.AsyncOriginTLSClientAuthResourceWithRawResponse:
26122681
from .resources.origin_tls_client_auth import AsyncOriginTLSClientAuthResourceWithRawResponse
@@ -2951,12 +3020,24 @@ def security_txt(self) -> security_txt.AsyncSecurityTXTResourceWithRawResponse:
29513020

29523021
return AsyncSecurityTXTResourceWithRawResponse(self._client.security_txt)
29533022

3023+
@cached_property
3024+
def workflows(self) -> workflows.AsyncWorkflowsResourceWithRawResponse:
3025+
from .resources.workflows import AsyncWorkflowsResourceWithRawResponse
3026+
3027+
return AsyncWorkflowsResourceWithRawResponse(self._client.workflows)
3028+
29543029
@cached_property
29553030
def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithRawResponse:
29563031
from .resources.resource_sharing import AsyncResourceSharingResourceWithRawResponse
29573032

29583033
return AsyncResourceSharingResourceWithRawResponse(self._client.resource_sharing)
29593034

3035+
@cached_property
3036+
def leaked_credential_checks(self) -> leaked_credential_checks.AsyncLeakedCredentialChecksResourceWithRawResponse:
3037+
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResourceWithRawResponse
3038+
3039+
return AsyncLeakedCredentialChecksResourceWithRawResponse(self._client.leaked_credential_checks)
3040+
29603041
@cached_property
29613042
def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithRawResponse:
29623043
from .resources.content_scanning import AsyncContentScanningResourceWithRawResponse
@@ -3168,6 +3249,12 @@ def logpush(self) -> logpush.LogpushResourceWithStreamingResponse:
31683249

31693250
return LogpushResourceWithStreamingResponse(self._client.logpush)
31703251

3252+
@cached_property
3253+
def logs(self) -> logs.LogsResourceWithStreamingResponse:
3254+
from .resources.logs import LogsResourceWithStreamingResponse
3255+
3256+
return LogsResourceWithStreamingResponse(self._client.logs)
3257+
31713258
@cached_property
31723259
def origin_tls_client_auth(self) -> origin_tls_client_auth.OriginTLSClientAuthResourceWithStreamingResponse:
31733260
from .resources.origin_tls_client_auth import OriginTLSClientAuthResourceWithStreamingResponse
@@ -3512,12 +3599,24 @@ def security_txt(self) -> security_txt.SecurityTXTResourceWithStreamingResponse:
35123599

35133600
return SecurityTXTResourceWithStreamingResponse(self._client.security_txt)
35143601

3602+
@cached_property
3603+
def workflows(self) -> workflows.WorkflowsResourceWithStreamingResponse:
3604+
from .resources.workflows import WorkflowsResourceWithStreamingResponse
3605+
3606+
return WorkflowsResourceWithStreamingResponse(self._client.workflows)
3607+
35153608
@cached_property
35163609
def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithStreamingResponse:
35173610
from .resources.resource_sharing import ResourceSharingResourceWithStreamingResponse
35183611

35193612
return ResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)
35203613

3614+
@cached_property
3615+
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResourceWithStreamingResponse:
3616+
from .resources.leaked_credential_checks import LeakedCredentialChecksResourceWithStreamingResponse
3617+
3618+
return LeakedCredentialChecksResourceWithStreamingResponse(self._client.leaked_credential_checks)
3619+
35213620
@cached_property
35223621
def content_scanning(self) -> content_scanning.ContentScanningResourceWithStreamingResponse:
35233622
from .resources.content_scanning import ContentScanningResourceWithStreamingResponse
@@ -3731,6 +3830,12 @@ def logpush(self) -> logpush.AsyncLogpushResourceWithStreamingResponse:
37313830

37323831
return AsyncLogpushResourceWithStreamingResponse(self._client.logpush)
37333832

3833+
@cached_property
3834+
def logs(self) -> logs.AsyncLogsResourceWithStreamingResponse:
3835+
from .resources.logs import AsyncLogsResourceWithStreamingResponse
3836+
3837+
return AsyncLogsResourceWithStreamingResponse(self._client.logs)
3838+
37343839
@cached_property
37353840
def origin_tls_client_auth(self) -> origin_tls_client_auth.AsyncOriginTLSClientAuthResourceWithStreamingResponse:
37363841
from .resources.origin_tls_client_auth import AsyncOriginTLSClientAuthResourceWithStreamingResponse
@@ -4081,12 +4186,26 @@ def security_txt(self) -> security_txt.AsyncSecurityTXTResourceWithStreamingResp
40814186

40824187
return AsyncSecurityTXTResourceWithStreamingResponse(self._client.security_txt)
40834188

4189+
@cached_property
4190+
def workflows(self) -> workflows.AsyncWorkflowsResourceWithStreamingResponse:
4191+
from .resources.workflows import AsyncWorkflowsResourceWithStreamingResponse
4192+
4193+
return AsyncWorkflowsResourceWithStreamingResponse(self._client.workflows)
4194+
40844195
@cached_property
40854196
def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithStreamingResponse:
40864197
from .resources.resource_sharing import AsyncResourceSharingResourceWithStreamingResponse
40874198

40884199
return AsyncResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)
40894200

4201+
@cached_property
4202+
def leaked_credential_checks(
4203+
self,
4204+
) -> leaked_credential_checks.AsyncLeakedCredentialChecksResourceWithStreamingResponse:
4205+
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResourceWithStreamingResponse
4206+
4207+
return AsyncLeakedCredentialChecksResourceWithStreamingResponse(self._client.leaked_credential_checks)
4208+
40904209
@cached_property
40914210
def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithStreamingResponse:
40924211
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)