Skip to content

Commit f0a6a21

Browse files
feat(magic_cloud_networking): add endpoint mappings (#2550)
1 parent 9a45830 commit f0a6a21

File tree

79 files changed

+22276
-1
lines changed

Some content is hidden

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

79 files changed

+22276
-1
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1617
1+
configured_endpoints: 1650
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ed9f898b31619623e50d660d04beca50e44987bfd3eb3a6ff98d3bca2a9c569.yml

api.md

+136
Large diffs are not rendered by default.

src/cloudflare/_client.py

+41
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
keyless_certificates,
122122
network_interconnects,
123123
workers_for_platforms,
124+
magic_cloud_networking,
124125
origin_ca_certificates,
125126
origin_tls_client_auth,
126127
certificate_authorities,
@@ -227,6 +228,10 @@
227228
WorkersForPlatformsResource,
228229
AsyncWorkersForPlatformsResource,
229230
)
231+
from .resources.magic_cloud_networking.magic_cloud_networking import (
232+
MagicCloudNetworkingResource,
233+
AsyncMagicCloudNetworkingResource,
234+
)
230235
from .resources.origin_tls_client_auth.origin_tls_client_auth import (
231236
OriginTLSClientAuthResource,
232237
AsyncOriginTLSClientAuthResource,
@@ -629,6 +634,12 @@ def magic_network_monitoring(self) -> MagicNetworkMonitoringResource:
629634

630635
return MagicNetworkMonitoringResource(self)
631636

637+
@cached_property
638+
def magic_cloud_networking(self) -> MagicCloudNetworkingResource:
639+
from .resources.magic_cloud_networking import MagicCloudNetworkingResource
640+
641+
return MagicCloudNetworkingResource(self)
642+
632643
@cached_property
633644
def network_interconnects(self) -> NetworkInterconnectsResource:
634645
from .resources.network_interconnects import NetworkInterconnectsResource
@@ -1430,6 +1441,12 @@ def magic_network_monitoring(self) -> AsyncMagicNetworkMonitoringResource:
14301441

14311442
return AsyncMagicNetworkMonitoringResource(self)
14321443

1444+
@cached_property
1445+
def magic_cloud_networking(self) -> AsyncMagicCloudNetworkingResource:
1446+
from .resources.magic_cloud_networking import AsyncMagicCloudNetworkingResource
1447+
1448+
return AsyncMagicCloudNetworkingResource(self)
1449+
14331450
@cached_property
14341451
def network_interconnects(self) -> AsyncNetworkInterconnectsResource:
14351452
from .resources.network_interconnects import AsyncNetworkInterconnectsResource
@@ -2164,6 +2181,12 @@ def magic_network_monitoring(self) -> magic_network_monitoring.MagicNetworkMonit
21642181

21652182
return MagicNetworkMonitoringResourceWithRawResponse(self._client.magic_network_monitoring)
21662183

2184+
@cached_property
2185+
def magic_cloud_networking(self) -> magic_cloud_networking.MagicCloudNetworkingResourceWithRawResponse:
2186+
from .resources.magic_cloud_networking import MagicCloudNetworkingResourceWithRawResponse
2187+
2188+
return MagicCloudNetworkingResourceWithRawResponse(self._client.magic_cloud_networking)
2189+
21672190
@cached_property
21682191
def network_interconnects(self) -> network_interconnects.NetworkInterconnectsResourceWithRawResponse:
21692192
from .resources.network_interconnects import NetworkInterconnectsResourceWithRawResponse
@@ -2719,6 +2742,12 @@ def magic_network_monitoring(self) -> magic_network_monitoring.AsyncMagicNetwork
27192742

27202743
return AsyncMagicNetworkMonitoringResourceWithRawResponse(self._client.magic_network_monitoring)
27212744

2745+
@cached_property
2746+
def magic_cloud_networking(self) -> magic_cloud_networking.AsyncMagicCloudNetworkingResourceWithRawResponse:
2747+
from .resources.magic_cloud_networking import AsyncMagicCloudNetworkingResourceWithRawResponse
2748+
2749+
return AsyncMagicCloudNetworkingResourceWithRawResponse(self._client.magic_cloud_networking)
2750+
27222751
@cached_property
27232752
def network_interconnects(self) -> network_interconnects.AsyncNetworkInterconnectsResourceWithRawResponse:
27242753
from .resources.network_interconnects import AsyncNetworkInterconnectsResourceWithRawResponse
@@ -3274,6 +3303,12 @@ def magic_network_monitoring(self) -> magic_network_monitoring.MagicNetworkMonit
32743303

32753304
return MagicNetworkMonitoringResourceWithStreamingResponse(self._client.magic_network_monitoring)
32763305

3306+
@cached_property
3307+
def magic_cloud_networking(self) -> magic_cloud_networking.MagicCloudNetworkingResourceWithStreamingResponse:
3308+
from .resources.magic_cloud_networking import MagicCloudNetworkingResourceWithStreamingResponse
3309+
3310+
return MagicCloudNetworkingResourceWithStreamingResponse(self._client.magic_cloud_networking)
3311+
32773312
@cached_property
32783313
def network_interconnects(self) -> network_interconnects.NetworkInterconnectsResourceWithStreamingResponse:
32793314
from .resources.network_interconnects import NetworkInterconnectsResourceWithStreamingResponse
@@ -3833,6 +3868,12 @@ def magic_network_monitoring(
38333868

38343869
return AsyncMagicNetworkMonitoringResourceWithStreamingResponse(self._client.magic_network_monitoring)
38353870

3871+
@cached_property
3872+
def magic_cloud_networking(self) -> magic_cloud_networking.AsyncMagicCloudNetworkingResourceWithStreamingResponse:
3873+
from .resources.magic_cloud_networking import AsyncMagicCloudNetworkingResourceWithStreamingResponse
3874+
3875+
return AsyncMagicCloudNetworkingResourceWithStreamingResponse(self._client.magic_cloud_networking)
3876+
38363877
@cached_property
38373878
def network_interconnects(self) -> network_interconnects.AsyncNetworkInterconnectsResourceWithStreamingResponse:
38383879
from .resources.network_interconnects import AsyncNetworkInterconnectsResourceWithStreamingResponse
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .on_ramps import (
4+
OnRampsResource,
5+
AsyncOnRampsResource,
6+
OnRampsResourceWithRawResponse,
7+
AsyncOnRampsResourceWithRawResponse,
8+
OnRampsResourceWithStreamingResponse,
9+
AsyncOnRampsResourceWithStreamingResponse,
10+
)
11+
from .resources import (
12+
ResourcesResource,
13+
AsyncResourcesResource,
14+
ResourcesResourceWithRawResponse,
15+
AsyncResourcesResourceWithRawResponse,
16+
ResourcesResourceWithStreamingResponse,
17+
AsyncResourcesResourceWithStreamingResponse,
18+
)
19+
from .catalog_syncs import (
20+
CatalogSyncsResource,
21+
AsyncCatalogSyncsResource,
22+
CatalogSyncsResourceWithRawResponse,
23+
AsyncCatalogSyncsResourceWithRawResponse,
24+
CatalogSyncsResourceWithStreamingResponse,
25+
AsyncCatalogSyncsResourceWithStreamingResponse,
26+
)
27+
from .cloud_integrations import (
28+
CloudIntegrationsResource,
29+
AsyncCloudIntegrationsResource,
30+
CloudIntegrationsResourceWithRawResponse,
31+
AsyncCloudIntegrationsResourceWithRawResponse,
32+
CloudIntegrationsResourceWithStreamingResponse,
33+
AsyncCloudIntegrationsResourceWithStreamingResponse,
34+
)
35+
from .magic_cloud_networking import (
36+
MagicCloudNetworkingResource,
37+
AsyncMagicCloudNetworkingResource,
38+
MagicCloudNetworkingResourceWithRawResponse,
39+
AsyncMagicCloudNetworkingResourceWithRawResponse,
40+
MagicCloudNetworkingResourceWithStreamingResponse,
41+
AsyncMagicCloudNetworkingResourceWithStreamingResponse,
42+
)
43+
44+
__all__ = [
45+
"CatalogSyncsResource",
46+
"AsyncCatalogSyncsResource",
47+
"CatalogSyncsResourceWithRawResponse",
48+
"AsyncCatalogSyncsResourceWithRawResponse",
49+
"CatalogSyncsResourceWithStreamingResponse",
50+
"AsyncCatalogSyncsResourceWithStreamingResponse",
51+
"OnRampsResource",
52+
"AsyncOnRampsResource",
53+
"OnRampsResourceWithRawResponse",
54+
"AsyncOnRampsResourceWithRawResponse",
55+
"OnRampsResourceWithStreamingResponse",
56+
"AsyncOnRampsResourceWithStreamingResponse",
57+
"CloudIntegrationsResource",
58+
"AsyncCloudIntegrationsResource",
59+
"CloudIntegrationsResourceWithRawResponse",
60+
"AsyncCloudIntegrationsResourceWithRawResponse",
61+
"CloudIntegrationsResourceWithStreamingResponse",
62+
"AsyncCloudIntegrationsResourceWithStreamingResponse",
63+
"ResourcesResource",
64+
"AsyncResourcesResource",
65+
"ResourcesResourceWithRawResponse",
66+
"AsyncResourcesResourceWithRawResponse",
67+
"ResourcesResourceWithStreamingResponse",
68+
"AsyncResourcesResourceWithStreamingResponse",
69+
"MagicCloudNetworkingResource",
70+
"AsyncMagicCloudNetworkingResource",
71+
"MagicCloudNetworkingResourceWithRawResponse",
72+
"AsyncMagicCloudNetworkingResourceWithRawResponse",
73+
"MagicCloudNetworkingResourceWithStreamingResponse",
74+
"AsyncMagicCloudNetworkingResourceWithStreamingResponse",
75+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .catalog_syncs import (
4+
CatalogSyncsResource,
5+
AsyncCatalogSyncsResource,
6+
CatalogSyncsResourceWithRawResponse,
7+
AsyncCatalogSyncsResourceWithRawResponse,
8+
CatalogSyncsResourceWithStreamingResponse,
9+
AsyncCatalogSyncsResourceWithStreamingResponse,
10+
)
11+
from .prebuilt_policies import (
12+
PrebuiltPoliciesResource,
13+
AsyncPrebuiltPoliciesResource,
14+
PrebuiltPoliciesResourceWithRawResponse,
15+
AsyncPrebuiltPoliciesResourceWithRawResponse,
16+
PrebuiltPoliciesResourceWithStreamingResponse,
17+
AsyncPrebuiltPoliciesResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"PrebuiltPoliciesResource",
22+
"AsyncPrebuiltPoliciesResource",
23+
"PrebuiltPoliciesResourceWithRawResponse",
24+
"AsyncPrebuiltPoliciesResourceWithRawResponse",
25+
"PrebuiltPoliciesResourceWithStreamingResponse",
26+
"AsyncPrebuiltPoliciesResourceWithStreamingResponse",
27+
"CatalogSyncsResource",
28+
"AsyncCatalogSyncsResource",
29+
"CatalogSyncsResourceWithRawResponse",
30+
"AsyncCatalogSyncsResourceWithRawResponse",
31+
"CatalogSyncsResourceWithStreamingResponse",
32+
"AsyncCatalogSyncsResourceWithStreamingResponse",
33+
]

0 commit comments

Comments
 (0)