Skip to content

Commit 385fea6

Browse files
feat: feat(r2_data_catalog): Configure SDKs/Terraform to use R2 Data Catalog routes
* feat(r2_data_catalog): Configure SDKs/Terraform to use R2 Data Catalog routes
1 parent bd43151 commit 385fea6

File tree

134 files changed

+17952
-4
lines changed

Some content is hidden

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

134 files changed

+17952
-4
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1875
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e425e4abe3f3161feed50a8cd861dd25c6ec32ee162b4eb4d225c4e5cb7b3ca9.yml
3-
openapi_spec_hash: 955676955a801dbe5084d8ffe2730791
4-
config_hash: 11d91f2aa4a7f5ff6a0d863f572946ad
1+
configured_endpoints: 1923
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d01829c5ff74f82c372d7c132f3c9adcef9a7ac392e1dc7ff431f3397c94b6fb.yml
3+
openapi_spec_hash: 36f226c48f0fda588903ef75a766ccb1
4+
config_hash: bfa05f973c1b1797df33a05f942d5fac

api.md

Lines changed: 300 additions & 0 deletions
Large diffs are not rendered by default.

src/cloudflare/_client.py

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@
103103
bot_management,
104104
cloudforce_one,
105105
dcv_delegation,
106+
email_security,
106107
load_balancers,
107108
cloud_connector,
108109
durable_objects,
110+
r2_data_catalog,
109111
request_tracers,
110112
security_center,
111113
brand_protection,
@@ -207,13 +209,15 @@
207209
from .resources.secrets_store.secrets_store import SecretsStoreResource, AsyncSecretsStoreResource
208210
from .resources.waiting_rooms.waiting_rooms import WaitingRoomsResource, AsyncWaitingRoomsResource
209211
from .resources.cloudforce_one.cloudforce_one import CloudforceOneResource, AsyncCloudforceOneResource
212+
from .resources.email_security.email_security import EmailSecurityResource, AsyncEmailSecurityResource
210213
from .resources.load_balancers.load_balancers import LoadBalancersResource, AsyncLoadBalancersResource
211214
from .resources.origin_post_quantum_encryption import (
212215
OriginPostQuantumEncryptionResource,
213216
AsyncOriginPostQuantumEncryptionResource,
214217
)
215218
from .resources.cloud_connector.cloud_connector import CloudConnectorResource, AsyncCloudConnectorResource
216219
from .resources.durable_objects.durable_objects import DurableObjectsResource, AsyncDurableObjectsResource
220+
from .resources.r2_data_catalog.r2_data_catalog import R2DataCatalogResource, AsyncR2DataCatalogResource
217221
from .resources.request_tracers.request_tracers import RequestTracersResource, AsyncRequestTracersResource
218222
from .resources.security_center.security_center import SecurityCenterResource, AsyncSecurityCenterResource
219223
from .resources.brand_protection.brand_protection import BrandProtectionResource, AsyncBrandProtectionResource
@@ -461,6 +465,12 @@ def dns(self) -> DNSResource:
461465

462466
return DNSResource(self)
463467

468+
@cached_property
469+
def email_security(self) -> EmailSecurityResource:
470+
from .resources.email_security import EmailSecurityResource
471+
472+
return EmailSecurityResource(self)
473+
464474
@cached_property
465475
def email_routing(self) -> EmailRoutingResource:
466476
from .resources.email_routing import EmailRoutingResource
@@ -713,6 +723,12 @@ def r2(self) -> R2Resource:
713723

714724
return R2Resource(self)
715725

726+
@cached_property
727+
def r2_data_catalog(self) -> R2DataCatalogResource:
728+
from .resources.r2_data_catalog import R2DataCatalogResource
729+
730+
return R2DataCatalogResource(self)
731+
716732
@cached_property
717733
def workers_for_platforms(self) -> WorkersForPlatformsResource:
718734
from .resources.workers_for_platforms import WorkersForPlatformsResource
@@ -1305,6 +1321,12 @@ def dns(self) -> AsyncDNSResource:
13051321

13061322
return AsyncDNSResource(self)
13071323

1324+
@cached_property
1325+
def email_security(self) -> AsyncEmailSecurityResource:
1326+
from .resources.email_security import AsyncEmailSecurityResource
1327+
1328+
return AsyncEmailSecurityResource(self)
1329+
13081330
@cached_property
13091331
def email_routing(self) -> AsyncEmailRoutingResource:
13101332
from .resources.email_routing import AsyncEmailRoutingResource
@@ -1557,6 +1579,12 @@ def r2(self) -> AsyncR2Resource:
15571579

15581580
return AsyncR2Resource(self)
15591581

1582+
@cached_property
1583+
def r2_data_catalog(self) -> AsyncR2DataCatalogResource:
1584+
from .resources.r2_data_catalog import AsyncR2DataCatalogResource
1585+
1586+
return AsyncR2DataCatalogResource(self)
1587+
15601588
@cached_property
15611589
def workers_for_platforms(self) -> AsyncWorkersForPlatformsResource:
15621590
from .resources.workers_for_platforms import AsyncWorkersForPlatformsResource
@@ -2077,6 +2105,12 @@ def dns(self) -> dns.DNSResourceWithRawResponse:
20772105

20782106
return DNSResourceWithRawResponse(self._client.dns)
20792107

2108+
@cached_property
2109+
def email_security(self) -> email_security.EmailSecurityResourceWithRawResponse:
2110+
from .resources.email_security import EmailSecurityResourceWithRawResponse
2111+
2112+
return EmailSecurityResourceWithRawResponse(self._client.email_security)
2113+
20802114
@cached_property
20812115
def email_routing(self) -> email_routing.EmailRoutingResourceWithRawResponse:
20822116
from .resources.email_routing import EmailRoutingResourceWithRawResponse
@@ -2329,6 +2363,12 @@ def r2(self) -> r2.R2ResourceWithRawResponse:
23292363

23302364
return R2ResourceWithRawResponse(self._client.r2)
23312365

2366+
@cached_property
2367+
def r2_data_catalog(self) -> r2_data_catalog.R2DataCatalogResourceWithRawResponse:
2368+
from .resources.r2_data_catalog import R2DataCatalogResourceWithRawResponse
2369+
2370+
return R2DataCatalogResourceWithRawResponse(self._client.r2_data_catalog)
2371+
23322372
@cached_property
23332373
def workers_for_platforms(self) -> workers_for_platforms.WorkersForPlatformsResourceWithRawResponse:
23342374
from .resources.workers_for_platforms import WorkersForPlatformsResourceWithRawResponse
@@ -2668,6 +2708,12 @@ def dns(self) -> dns.AsyncDNSResourceWithRawResponse:
26682708

26692709
return AsyncDNSResourceWithRawResponse(self._client.dns)
26702710

2711+
@cached_property
2712+
def email_security(self) -> email_security.AsyncEmailSecurityResourceWithRawResponse:
2713+
from .resources.email_security import AsyncEmailSecurityResourceWithRawResponse
2714+
2715+
return AsyncEmailSecurityResourceWithRawResponse(self._client.email_security)
2716+
26712717
@cached_property
26722718
def email_routing(self) -> email_routing.AsyncEmailRoutingResourceWithRawResponse:
26732719
from .resources.email_routing import AsyncEmailRoutingResourceWithRawResponse
@@ -2920,6 +2966,12 @@ def r2(self) -> r2.AsyncR2ResourceWithRawResponse:
29202966

29212967
return AsyncR2ResourceWithRawResponse(self._client.r2)
29222968

2969+
@cached_property
2970+
def r2_data_catalog(self) -> r2_data_catalog.AsyncR2DataCatalogResourceWithRawResponse:
2971+
from .resources.r2_data_catalog import AsyncR2DataCatalogResourceWithRawResponse
2972+
2973+
return AsyncR2DataCatalogResourceWithRawResponse(self._client.r2_data_catalog)
2974+
29232975
@cached_property
29242976
def workers_for_platforms(self) -> workers_for_platforms.AsyncWorkersForPlatformsResourceWithRawResponse:
29252977
from .resources.workers_for_platforms import AsyncWorkersForPlatformsResourceWithRawResponse
@@ -3259,6 +3311,12 @@ def dns(self) -> dns.DNSResourceWithStreamingResponse:
32593311

32603312
return DNSResourceWithStreamingResponse(self._client.dns)
32613313

3314+
@cached_property
3315+
def email_security(self) -> email_security.EmailSecurityResourceWithStreamingResponse:
3316+
from .resources.email_security import EmailSecurityResourceWithStreamingResponse
3317+
3318+
return EmailSecurityResourceWithStreamingResponse(self._client.email_security)
3319+
32623320
@cached_property
32633321
def email_routing(self) -> email_routing.EmailRoutingResourceWithStreamingResponse:
32643322
from .resources.email_routing import EmailRoutingResourceWithStreamingResponse
@@ -3511,6 +3569,12 @@ def r2(self) -> r2.R2ResourceWithStreamingResponse:
35113569

35123570
return R2ResourceWithStreamingResponse(self._client.r2)
35133571

3572+
@cached_property
3573+
def r2_data_catalog(self) -> r2_data_catalog.R2DataCatalogResourceWithStreamingResponse:
3574+
from .resources.r2_data_catalog import R2DataCatalogResourceWithStreamingResponse
3575+
3576+
return R2DataCatalogResourceWithStreamingResponse(self._client.r2_data_catalog)
3577+
35143578
@cached_property
35153579
def workers_for_platforms(self) -> workers_for_platforms.WorkersForPlatformsResourceWithStreamingResponse:
35163580
from .resources.workers_for_platforms import WorkersForPlatformsResourceWithStreamingResponse
@@ -3852,6 +3916,12 @@ def dns(self) -> dns.AsyncDNSResourceWithStreamingResponse:
38523916

38533917
return AsyncDNSResourceWithStreamingResponse(self._client.dns)
38543918

3919+
@cached_property
3920+
def email_security(self) -> email_security.AsyncEmailSecurityResourceWithStreamingResponse:
3921+
from .resources.email_security import AsyncEmailSecurityResourceWithStreamingResponse
3922+
3923+
return AsyncEmailSecurityResourceWithStreamingResponse(self._client.email_security)
3924+
38553925
@cached_property
38563926
def email_routing(self) -> email_routing.AsyncEmailRoutingResourceWithStreamingResponse:
38573927
from .resources.email_routing import AsyncEmailRoutingResourceWithStreamingResponse
@@ -4106,6 +4176,12 @@ def r2(self) -> r2.AsyncR2ResourceWithStreamingResponse:
41064176

41074177
return AsyncR2ResourceWithStreamingResponse(self._client.r2)
41084178

4179+
@cached_property
4180+
def r2_data_catalog(self) -> r2_data_catalog.AsyncR2DataCatalogResourceWithStreamingResponse:
4181+
from .resources.r2_data_catalog import AsyncR2DataCatalogResourceWithStreamingResponse
4182+
4183+
return AsyncR2DataCatalogResourceWithStreamingResponse(self._client.r2_data_catalog)
4184+
41094185
@cached_property
41104186
def workers_for_platforms(self) -> workers_for_platforms.AsyncWorkersForPlatformsResourceWithStreamingResponse:
41114187
from .resources.workers_for_platforms import AsyncWorkersForPlatformsResourceWithStreamingResponse
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .settings import (
4+
SettingsResource,
5+
AsyncSettingsResource,
6+
SettingsResourceWithRawResponse,
7+
AsyncSettingsResourceWithRawResponse,
8+
SettingsResourceWithStreamingResponse,
9+
AsyncSettingsResourceWithStreamingResponse,
10+
)
11+
from .investigate import (
12+
InvestigateResource,
13+
AsyncInvestigateResource,
14+
InvestigateResourceWithRawResponse,
15+
AsyncInvestigateResourceWithRawResponse,
16+
InvestigateResourceWithStreamingResponse,
17+
AsyncInvestigateResourceWithStreamingResponse,
18+
)
19+
from .submissions import (
20+
SubmissionsResource,
21+
AsyncSubmissionsResource,
22+
SubmissionsResourceWithRawResponse,
23+
AsyncSubmissionsResourceWithRawResponse,
24+
SubmissionsResourceWithStreamingResponse,
25+
AsyncSubmissionsResourceWithStreamingResponse,
26+
)
27+
from .email_security import (
28+
EmailSecurityResource,
29+
AsyncEmailSecurityResource,
30+
EmailSecurityResourceWithRawResponse,
31+
AsyncEmailSecurityResourceWithRawResponse,
32+
EmailSecurityResourceWithStreamingResponse,
33+
AsyncEmailSecurityResourceWithStreamingResponse,
34+
)
35+
36+
__all__ = [
37+
"InvestigateResource",
38+
"AsyncInvestigateResource",
39+
"InvestigateResourceWithRawResponse",
40+
"AsyncInvestigateResourceWithRawResponse",
41+
"InvestigateResourceWithStreamingResponse",
42+
"AsyncInvestigateResourceWithStreamingResponse",
43+
"SettingsResource",
44+
"AsyncSettingsResource",
45+
"SettingsResourceWithRawResponse",
46+
"AsyncSettingsResourceWithRawResponse",
47+
"SettingsResourceWithStreamingResponse",
48+
"AsyncSettingsResourceWithStreamingResponse",
49+
"SubmissionsResource",
50+
"AsyncSubmissionsResource",
51+
"SubmissionsResourceWithRawResponse",
52+
"AsyncSubmissionsResourceWithRawResponse",
53+
"SubmissionsResourceWithStreamingResponse",
54+
"AsyncSubmissionsResourceWithStreamingResponse",
55+
"EmailSecurityResource",
56+
"AsyncEmailSecurityResource",
57+
"EmailSecurityResourceWithRawResponse",
58+
"AsyncEmailSecurityResourceWithRawResponse",
59+
"EmailSecurityResourceWithStreamingResponse",
60+
"AsyncEmailSecurityResourceWithStreamingResponse",
61+
]

0 commit comments

Comments
 (0)