Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1617
configured_endpoints: 1650
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ed9f898b31619623e50d660d04beca50e44987bfd3eb3a6ff98d3bca2a9c569.yml
136 changes: 136 additions & 0 deletions api.md

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
keyless_certificates,
network_interconnects,
workers_for_platforms,
magic_cloud_networking,
origin_ca_certificates,
origin_tls_client_auth,
certificate_authorities,
Expand Down Expand Up @@ -227,6 +228,10 @@
WorkersForPlatformsResource,
AsyncWorkersForPlatformsResource,
)
from .resources.magic_cloud_networking.magic_cloud_networking import (
MagicCloudNetworkingResource,
AsyncMagicCloudNetworkingResource,
)
from .resources.origin_tls_client_auth.origin_tls_client_auth import (
OriginTLSClientAuthResource,
AsyncOriginTLSClientAuthResource,
Expand Down Expand Up @@ -629,6 +634,12 @@ def magic_network_monitoring(self) -> MagicNetworkMonitoringResource:

return MagicNetworkMonitoringResource(self)

@cached_property
def magic_cloud_networking(self) -> MagicCloudNetworkingResource:
from .resources.magic_cloud_networking import MagicCloudNetworkingResource

return MagicCloudNetworkingResource(self)

@cached_property
def network_interconnects(self) -> NetworkInterconnectsResource:
from .resources.network_interconnects import NetworkInterconnectsResource
Expand Down Expand Up @@ -1430,6 +1441,12 @@ def magic_network_monitoring(self) -> AsyncMagicNetworkMonitoringResource:

return AsyncMagicNetworkMonitoringResource(self)

@cached_property
def magic_cloud_networking(self) -> AsyncMagicCloudNetworkingResource:
from .resources.magic_cloud_networking import AsyncMagicCloudNetworkingResource

return AsyncMagicCloudNetworkingResource(self)

@cached_property
def network_interconnects(self) -> AsyncNetworkInterconnectsResource:
from .resources.network_interconnects import AsyncNetworkInterconnectsResource
Expand Down Expand Up @@ -2164,6 +2181,12 @@ def magic_network_monitoring(self) -> magic_network_monitoring.MagicNetworkMonit

return MagicNetworkMonitoringResourceWithRawResponse(self._client.magic_network_monitoring)

@cached_property
def magic_cloud_networking(self) -> magic_cloud_networking.MagicCloudNetworkingResourceWithRawResponse:
from .resources.magic_cloud_networking import MagicCloudNetworkingResourceWithRawResponse

return MagicCloudNetworkingResourceWithRawResponse(self._client.magic_cloud_networking)

@cached_property
def network_interconnects(self) -> network_interconnects.NetworkInterconnectsResourceWithRawResponse:
from .resources.network_interconnects import NetworkInterconnectsResourceWithRawResponse
Expand Down Expand Up @@ -2719,6 +2742,12 @@ def magic_network_monitoring(self) -> magic_network_monitoring.AsyncMagicNetwork

return AsyncMagicNetworkMonitoringResourceWithRawResponse(self._client.magic_network_monitoring)

@cached_property
def magic_cloud_networking(self) -> magic_cloud_networking.AsyncMagicCloudNetworkingResourceWithRawResponse:
from .resources.magic_cloud_networking import AsyncMagicCloudNetworkingResourceWithRawResponse

return AsyncMagicCloudNetworkingResourceWithRawResponse(self._client.magic_cloud_networking)

@cached_property
def network_interconnects(self) -> network_interconnects.AsyncNetworkInterconnectsResourceWithRawResponse:
from .resources.network_interconnects import AsyncNetworkInterconnectsResourceWithRawResponse
Expand Down Expand Up @@ -3274,6 +3303,12 @@ def magic_network_monitoring(self) -> magic_network_monitoring.MagicNetworkMonit

return MagicNetworkMonitoringResourceWithStreamingResponse(self._client.magic_network_monitoring)

@cached_property
def magic_cloud_networking(self) -> magic_cloud_networking.MagicCloudNetworkingResourceWithStreamingResponse:
from .resources.magic_cloud_networking import MagicCloudNetworkingResourceWithStreamingResponse

return MagicCloudNetworkingResourceWithStreamingResponse(self._client.magic_cloud_networking)

@cached_property
def network_interconnects(self) -> network_interconnects.NetworkInterconnectsResourceWithStreamingResponse:
from .resources.network_interconnects import NetworkInterconnectsResourceWithStreamingResponse
Expand Down Expand Up @@ -3833,6 +3868,12 @@ def magic_network_monitoring(

return AsyncMagicNetworkMonitoringResourceWithStreamingResponse(self._client.magic_network_monitoring)

@cached_property
def magic_cloud_networking(self) -> magic_cloud_networking.AsyncMagicCloudNetworkingResourceWithStreamingResponse:
from .resources.magic_cloud_networking import AsyncMagicCloudNetworkingResourceWithStreamingResponse

return AsyncMagicCloudNetworkingResourceWithStreamingResponse(self._client.magic_cloud_networking)

@cached_property
def network_interconnects(self) -> network_interconnects.AsyncNetworkInterconnectsResourceWithStreamingResponse:
from .resources.network_interconnects import AsyncNetworkInterconnectsResourceWithStreamingResponse
Expand Down
75 changes: 75 additions & 0 deletions src/cloudflare/resources/magic_cloud_networking/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .on_ramps import (
OnRampsResource,
AsyncOnRampsResource,
OnRampsResourceWithRawResponse,
AsyncOnRampsResourceWithRawResponse,
OnRampsResourceWithStreamingResponse,
AsyncOnRampsResourceWithStreamingResponse,
)
from .resources import (
ResourcesResource,
AsyncResourcesResource,
ResourcesResourceWithRawResponse,
AsyncResourcesResourceWithRawResponse,
ResourcesResourceWithStreamingResponse,
AsyncResourcesResourceWithStreamingResponse,
)
from .catalog_syncs import (
CatalogSyncsResource,
AsyncCatalogSyncsResource,
CatalogSyncsResourceWithRawResponse,
AsyncCatalogSyncsResourceWithRawResponse,
CatalogSyncsResourceWithStreamingResponse,
AsyncCatalogSyncsResourceWithStreamingResponse,
)
from .cloud_integrations import (
CloudIntegrationsResource,
AsyncCloudIntegrationsResource,
CloudIntegrationsResourceWithRawResponse,
AsyncCloudIntegrationsResourceWithRawResponse,
CloudIntegrationsResourceWithStreamingResponse,
AsyncCloudIntegrationsResourceWithStreamingResponse,
)
from .magic_cloud_networking import (
MagicCloudNetworkingResource,
AsyncMagicCloudNetworkingResource,
MagicCloudNetworkingResourceWithRawResponse,
AsyncMagicCloudNetworkingResourceWithRawResponse,
MagicCloudNetworkingResourceWithStreamingResponse,
AsyncMagicCloudNetworkingResourceWithStreamingResponse,
)

__all__ = [
"CatalogSyncsResource",
"AsyncCatalogSyncsResource",
"CatalogSyncsResourceWithRawResponse",
"AsyncCatalogSyncsResourceWithRawResponse",
"CatalogSyncsResourceWithStreamingResponse",
"AsyncCatalogSyncsResourceWithStreamingResponse",
"OnRampsResource",
"AsyncOnRampsResource",
"OnRampsResourceWithRawResponse",
"AsyncOnRampsResourceWithRawResponse",
"OnRampsResourceWithStreamingResponse",
"AsyncOnRampsResourceWithStreamingResponse",
"CloudIntegrationsResource",
"AsyncCloudIntegrationsResource",
"CloudIntegrationsResourceWithRawResponse",
"AsyncCloudIntegrationsResourceWithRawResponse",
"CloudIntegrationsResourceWithStreamingResponse",
"AsyncCloudIntegrationsResourceWithStreamingResponse",
"ResourcesResource",
"AsyncResourcesResource",
"ResourcesResourceWithRawResponse",
"AsyncResourcesResourceWithRawResponse",
"ResourcesResourceWithStreamingResponse",
"AsyncResourcesResourceWithStreamingResponse",
"MagicCloudNetworkingResource",
"AsyncMagicCloudNetworkingResource",
"MagicCloudNetworkingResourceWithRawResponse",
"AsyncMagicCloudNetworkingResourceWithRawResponse",
"MagicCloudNetworkingResourceWithStreamingResponse",
"AsyncMagicCloudNetworkingResourceWithStreamingResponse",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .catalog_syncs import (
CatalogSyncsResource,
AsyncCatalogSyncsResource,
CatalogSyncsResourceWithRawResponse,
AsyncCatalogSyncsResourceWithRawResponse,
CatalogSyncsResourceWithStreamingResponse,
AsyncCatalogSyncsResourceWithStreamingResponse,
)
from .prebuilt_policies import (
PrebuiltPoliciesResource,
AsyncPrebuiltPoliciesResource,
PrebuiltPoliciesResourceWithRawResponse,
AsyncPrebuiltPoliciesResourceWithRawResponse,
PrebuiltPoliciesResourceWithStreamingResponse,
AsyncPrebuiltPoliciesResourceWithStreamingResponse,
)

__all__ = [
"PrebuiltPoliciesResource",
"AsyncPrebuiltPoliciesResource",
"PrebuiltPoliciesResourceWithRawResponse",
"AsyncPrebuiltPoliciesResourceWithRawResponse",
"PrebuiltPoliciesResourceWithStreamingResponse",
"AsyncPrebuiltPoliciesResourceWithStreamingResponse",
"CatalogSyncsResource",
"AsyncCatalogSyncsResource",
"CatalogSyncsResourceWithRawResponse",
"AsyncCatalogSyncsResourceWithRawResponse",
"CatalogSyncsResourceWithStreamingResponse",
"AsyncCatalogSyncsResourceWithStreamingResponse",
]
Loading