Skip to content

Commit

Permalink
feat(zero_trust_device): reshuffle structure to allow use of custom a…
Browse files Browse the repository at this point in the history
…nd default (#2137)
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 11, 2024
1 parent b132a0d commit e323e62
Show file tree
Hide file tree
Showing 67 changed files with 4,245 additions and 2,112 deletions.
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 @@ -26,10 +26,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 @@ -55,10 +53,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

0 comments on commit e323e62

Please sign in to comment.