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: 1397
configured_endpoints: 1401
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f3a5920b5590a1e7f4df129cc299fe3d4aaa7bf4ef6915b015dd898b1a1813c.yml
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ import os
from cloudflare import Cloudflare

client = Cloudflare(
# This is the default and can be omitted
api_email=os.environ.get("CLOUDFLARE_EMAIL"),
# This is the default and can be omitted
api_key=os.environ.get("CLOUDFLARE_API_KEY"),
api_email=os.environ.get("CLOUDFLARE_EMAIL"), # This is the default and can be omitted
api_key=os.environ.get("CLOUDFLARE_API_KEY"), # This is the default and can be omitted
)

zone = client.zones.create(
Expand All @@ -57,10 +55,8 @@ import asyncio
from cloudflare import AsyncCloudflare

client = AsyncCloudflare(
# This is the default and can be omitted
api_email=os.environ.get("CLOUDFLARE_EMAIL"),
# This is the default and can be omitted
api_key=os.environ.get("CLOUDFLARE_API_KEY"),
api_email=os.environ.get("CLOUDFLARE_EMAIL"), # This is the default and can be omitted
api_key=os.environ.get("CLOUDFLARE_API_KEY"), # This is the default and can be omitted
)


Expand Down
132 changes: 94 additions & 38 deletions api.md

Large diffs are not rendered by default.

94 changes: 26 additions & 68 deletions src/cloudflare/resources/zero_trust/devices/policies/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .excludes import (
ExcludesResource,
AsyncExcludesResource,
ExcludesResourceWithRawResponse,
AsyncExcludesResourceWithRawResponse,
ExcludesResourceWithStreamingResponse,
AsyncExcludesResourceWithStreamingResponse,
from .custom import (
CustomResource,
AsyncCustomResource,
CustomResourceWithRawResponse,
AsyncCustomResourceWithRawResponse,
CustomResourceWithStreamingResponse,
AsyncCustomResourceWithStreamingResponse,
)
from .includes import (
IncludesResource,
AsyncIncludesResource,
IncludesResourceWithRawResponse,
AsyncIncludesResourceWithRawResponse,
IncludesResourceWithStreamingResponse,
AsyncIncludesResourceWithStreamingResponse,
from .default import (
DefaultResource,
AsyncDefaultResource,
DefaultResourceWithRawResponse,
AsyncDefaultResourceWithRawResponse,
DefaultResourceWithStreamingResponse,
AsyncDefaultResourceWithStreamingResponse,
)
from .policies import (
PoliciesResource,
Expand All @@ -24,62 +24,20 @@
PoliciesResourceWithStreamingResponse,
AsyncPoliciesResourceWithStreamingResponse,
)
from .certificates import (
CertificatesResource,
AsyncCertificatesResource,
CertificatesResourceWithRawResponse,
AsyncCertificatesResourceWithRawResponse,
CertificatesResourceWithStreamingResponse,
AsyncCertificatesResourceWithStreamingResponse,
)
from .default_policy import (
DefaultPolicyResource,
AsyncDefaultPolicyResource,
DefaultPolicyResourceWithRawResponse,
AsyncDefaultPolicyResourceWithRawResponse,
DefaultPolicyResourceWithStreamingResponse,
AsyncDefaultPolicyResourceWithStreamingResponse,
)
from .fallback_domains import (
FallbackDomainsResource,
AsyncFallbackDomainsResource,
FallbackDomainsResourceWithRawResponse,
AsyncFallbackDomainsResourceWithRawResponse,
FallbackDomainsResourceWithStreamingResponse,
AsyncFallbackDomainsResourceWithStreamingResponse,
)

__all__ = [
"CertificatesResource",
"AsyncCertificatesResource",
"CertificatesResourceWithRawResponse",
"AsyncCertificatesResourceWithRawResponse",
"CertificatesResourceWithStreamingResponse",
"AsyncCertificatesResourceWithStreamingResponse",
"DefaultPolicyResource",
"AsyncDefaultPolicyResource",
"DefaultPolicyResourceWithRawResponse",
"AsyncDefaultPolicyResourceWithRawResponse",
"DefaultPolicyResourceWithStreamingResponse",
"AsyncDefaultPolicyResourceWithStreamingResponse",
"ExcludesResource",
"AsyncExcludesResource",
"ExcludesResourceWithRawResponse",
"AsyncExcludesResourceWithRawResponse",
"ExcludesResourceWithStreamingResponse",
"AsyncExcludesResourceWithStreamingResponse",
"FallbackDomainsResource",
"AsyncFallbackDomainsResource",
"FallbackDomainsResourceWithRawResponse",
"AsyncFallbackDomainsResourceWithRawResponse",
"FallbackDomainsResourceWithStreamingResponse",
"AsyncFallbackDomainsResourceWithStreamingResponse",
"IncludesResource",
"AsyncIncludesResource",
"IncludesResourceWithRawResponse",
"AsyncIncludesResourceWithRawResponse",
"IncludesResourceWithStreamingResponse",
"AsyncIncludesResourceWithStreamingResponse",
"DefaultResource",
"AsyncDefaultResource",
"DefaultResourceWithRawResponse",
"AsyncDefaultResourceWithRawResponse",
"DefaultResourceWithStreamingResponse",
"AsyncDefaultResourceWithStreamingResponse",
"CustomResource",
"AsyncCustomResource",
"CustomResourceWithRawResponse",
"AsyncCustomResourceWithRawResponse",
"CustomResourceWithStreamingResponse",
"AsyncCustomResourceWithStreamingResponse",
"PoliciesResource",
"AsyncPoliciesResource",
"PoliciesResourceWithRawResponse",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .custom import (
CustomResource,
AsyncCustomResource,
CustomResourceWithRawResponse,
AsyncCustomResourceWithRawResponse,
CustomResourceWithStreamingResponse,
AsyncCustomResourceWithStreamingResponse,
)
from .excludes import (
ExcludesResource,
AsyncExcludesResource,
ExcludesResourceWithRawResponse,
AsyncExcludesResourceWithRawResponse,
ExcludesResourceWithStreamingResponse,
AsyncExcludesResourceWithStreamingResponse,
)
from .includes import (
IncludesResource,
AsyncIncludesResource,
IncludesResourceWithRawResponse,
AsyncIncludesResourceWithRawResponse,
IncludesResourceWithStreamingResponse,
AsyncIncludesResourceWithStreamingResponse,
)
from .fallback_domains import (
FallbackDomainsResource,
AsyncFallbackDomainsResource,
FallbackDomainsResourceWithRawResponse,
AsyncFallbackDomainsResourceWithRawResponse,
FallbackDomainsResourceWithStreamingResponse,
AsyncFallbackDomainsResourceWithStreamingResponse,
)

__all__ = [
"ExcludesResource",
"AsyncExcludesResource",
"ExcludesResourceWithRawResponse",
"AsyncExcludesResourceWithRawResponse",
"ExcludesResourceWithStreamingResponse",
"AsyncExcludesResourceWithStreamingResponse",
"IncludesResource",
"AsyncIncludesResource",
"IncludesResourceWithRawResponse",
"AsyncIncludesResourceWithRawResponse",
"IncludesResourceWithStreamingResponse",
"AsyncIncludesResourceWithStreamingResponse",
"FallbackDomainsResource",
"AsyncFallbackDomainsResource",
"FallbackDomainsResourceWithRawResponse",
"AsyncFallbackDomainsResourceWithRawResponse",
"FallbackDomainsResourceWithStreamingResponse",
"AsyncFallbackDomainsResourceWithStreamingResponse",
"CustomResource",
"AsyncCustomResource",
"CustomResourceWithRawResponse",
"AsyncCustomResourceWithRawResponse",
"CustomResourceWithStreamingResponse",
"AsyncCustomResourceWithStreamingResponse",
]
Loading