Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 22, 2024
1 parent dc9f277 commit 8b4c1a0
Show file tree
Hide file tree
Showing 500 changed files with 1,305 additions and 1,198 deletions.
440 changes: 234 additions & 206 deletions api.md

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions src/cloudflare/resources/accounts/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
RolesWithStreamingResponse,
AsyncRolesWithStreamingResponse,
)
from ...types import (
AccountGetResponse,
AccountUpdateResponse,
account_list_params,
account_update_params,
)
from .members import (
Members,
AsyncMembers,
Expand Down Expand Up @@ -48,6 +42,7 @@
AsyncPaginator,
make_request_options,
)
from ...types.accounts import AccountGetResponse, AccountUpdateResponse, account_list_params, account_update_params

__all__ = ["Accounts", "AsyncAccounts"]

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/audit_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import httpx

from ..types import audit_log_list_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import maybe_transform
from .._compat import cached_property
Expand All @@ -25,6 +24,7 @@
make_request_options,
)
from ..types.shared import AuditLog
from ..types.audit_logs import audit_log_list_params

__all__ = ["AuditLogs", "AsyncAuditLogs"]

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/bot_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import httpx

from ..types import BotManagementGetResponse, BotManagementUpdateResponse, bot_management_update_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
required_args,
Expand All @@ -26,6 +25,7 @@
from .._base_client import (
make_request_options,
)
from ..types.bot_management import BotManagementGetResponse, BotManagementUpdateResponse, bot_management_update_params

__all__ = ["BotManagement", "AsyncBotManagement"]

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/brand_protection.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import httpx

from ..types import Info, Submit, brand_protection_submit_params, brand_protection_url_info_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
Expand All @@ -24,6 +23,7 @@
from .._base_client import (
make_request_options,
)
from ..types.brand_protection import Info, Submit, brand_protection_submit_params, brand_protection_url_info_params

__all__ = ["BrandProtection", "AsyncBrandProtection"]

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/cache/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import httpx

from ...types import CachePurgeResponse, cache_purge_params
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
required_args,
Expand All @@ -30,6 +29,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ...types.cache import CachePurgeResponse, cache_purge_params
from .cache_reserve import (
CacheReserveResource,
AsyncCacheReserveResource,
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import httpx

from ..types import CallsApp, CallsAppWithSecret, call_create_params, call_update_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
Expand All @@ -22,6 +21,7 @@
)
from .._wrappers import ResultWrapper
from ..pagination import SyncSinglePage, AsyncSinglePage
from ..types.calls import CallsApp, CallsAppWithSecret, call_create_params, call_update_params
from .._base_client import (
AsyncPaginator,
make_request_options,
Expand Down
6 changes: 5 additions & 1 deletion src/cloudflare/resources/client_certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import httpx

from ..types import ClientCertificate, client_certificate_list_params, client_certificate_create_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
Expand All @@ -27,6 +26,11 @@
AsyncPaginator,
make_request_options,
)
from ..types.client_certificates import (
ClientCertificate,
client_certificate_list_params,
client_certificate_create_params,
)

__all__ = ["ClientCertificates", "AsyncClientCertificates"]

Expand Down
26 changes: 13 additions & 13 deletions src/cloudflare/resources/custom_certificates/custom_certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,6 @@

import httpx

from ...types import (
BundleMethod,
CustomCertificate,
GeoRestrictionsParam,
CustomCertificateGetResponse,
CustomCertificateEditResponse,
CustomCertificateCreateResponse,
CustomCertificateDeleteResponse,
custom_certificate_edit_params,
custom_certificate_list_params,
custom_certificate_create_params,
custom_certificate_delete_params,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
Expand Down Expand Up @@ -47,6 +34,19 @@
AsyncPaginator,
make_request_options,
)
from ...types.custom_hostnames import BundleMethod
from ...types.custom_certificates import (
CustomCertificate,
GeoRestrictionsParam,
CustomCertificateGetResponse,
CustomCertificateEditResponse,
CustomCertificateCreateResponse,
CustomCertificateDeleteResponse,
custom_certificate_edit_params,
custom_certificate_list_params,
custom_certificate_create_params,
custom_certificate_delete_params,
)

__all__ = ["CustomCertificates", "AsyncCustomCertificates"]

Expand Down
22 changes: 11 additions & 11 deletions src/cloudflare/resources/custom_hostnames/custom_hostnames.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@

import httpx

from ...types import (
CustomHostnameGetResponse,
CustomHostnameEditResponse,
CustomHostnameListResponse,
CustomHostnameCreateResponse,
CustomHostnameDeleteResponse,
custom_hostname_edit_params,
custom_hostname_list_params,
custom_hostname_create_params,
custom_hostname_delete_params,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
Expand Down Expand Up @@ -45,6 +34,17 @@
FallbackOriginWithStreamingResponse,
AsyncFallbackOriginWithStreamingResponse,
)
from ...types.custom_hostnames import (
CustomHostnameGetResponse,
CustomHostnameEditResponse,
CustomHostnameListResponse,
CustomHostnameCreateResponse,
CustomHostnameDeleteResponse,
custom_hostname_edit_params,
custom_hostname_list_params,
custom_hostname_create_params,
custom_hostname_delete_params,
)

__all__ = ["CustomHostnames", "AsyncCustomHostnames"]

Expand Down
20 changes: 10 additions & 10 deletions src/cloudflare/resources/custom_nameservers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@

import httpx

from ..types import (
CustomNameserver,
CustomNameserverGetResponse,
CustomNameserverDeleteResponse,
CustomNameserverVerifyResponse,
CustomNameserverAvailabiltyResponse,
custom_nameserver_create_params,
custom_nameserver_delete_params,
custom_nameserver_verify_params,
)
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
Expand All @@ -33,6 +23,16 @@
from .._base_client import (
make_request_options,
)
from ..types.custom_nameservers import (
CustomNameserver,
CustomNameserverGetResponse,
CustomNameserverDeleteResponse,
CustomNameserverVerifyResponse,
CustomNameserverAvailabiltyResponse,
custom_nameserver_create_params,
custom_nameserver_delete_params,
custom_nameserver_verify_params,
)

__all__ = ["CustomNameservers", "AsyncCustomNameservers"]

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/d1/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

import httpx

from ...types import D1
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ...types.d1 import (
D1,
DatabaseListResponse,
DatabaseQueryResponse,
DatabaseCreateResponse,
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/dnssec.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import httpx

from ..types import DNSSEC, DNSSECDeleteResponse, dnssec_edit_params, dnssec_delete_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
Expand All @@ -25,6 +24,7 @@
from .._base_client import (
make_request_options,
)
from ..types.dnssec import DNSSEC, DNSSECDeleteResponse, dnssec_edit_params, dnssec_delete_params

__all__ = ["DNSSECResource", "AsyncDNSSECResource"]

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/email_routing/email_routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
RulesWithStreamingResponse,
AsyncRulesWithStreamingResponse,
)
from ...types import Settings, email_routing_enable_params, email_routing_disable_params
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
Expand All @@ -49,6 +48,7 @@
from ..._base_client import (
make_request_options,
)
from ...types.email_routing import Settings, email_routing_enable_params, email_routing_disable_params

__all__ = ["EmailRouting", "AsyncEmailRouting"]

Expand Down
16 changes: 8 additions & 8 deletions src/cloudflare/resources/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@

import httpx

from ..types import (
FirewallFilter,
FilterCreateResponse,
filter_list_params,
filter_create_params,
filter_delete_params,
filter_update_params,
)
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
Expand All @@ -33,6 +25,14 @@
AsyncPaginator,
make_request_options,
)
from ..types.filters import (
FirewallFilter,
FilterCreateResponse,
filter_list_params,
filter_create_params,
filter_delete_params,
filter_update_params,
)

__all__ = ["Filters", "AsyncFilters"]

Expand Down
22 changes: 11 additions & 11 deletions src/cloudflare/resources/healthchecks/healthchecks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@

import httpx

from ...types import (
CheckRegion,
Healthcheck,
TCPConfigurationParam,
HTTPConfigurationParam,
HealthcheckDeleteResponse,
healthcheck_edit_params,
healthcheck_create_params,
healthcheck_delete_params,
healthcheck_update_params,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
Expand Down Expand Up @@ -44,6 +33,17 @@
AsyncPaginator,
make_request_options,
)
from ...types.healthchecks import (
CheckRegion,
Healthcheck,
TCPConfigurationParam,
HTTPConfigurationParam,
HealthcheckDeleteResponse,
healthcheck_edit_params,
healthcheck_create_params,
healthcheck_delete_params,
healthcheck_update_params,
)

__all__ = ["Healthchecks", "AsyncHealthchecks"]

Expand Down
16 changes: 9 additions & 7 deletions src/cloudflare/resources/healthchecks/previews.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@

import httpx

from ...types import (
CheckRegion,
Healthcheck,
TCPConfigurationParam,
HTTPConfigurationParam,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
Expand All @@ -29,7 +23,15 @@
from ..._base_client import (
make_request_options,
)
from ...types.healthchecks import PreviewDeleteResponse, preview_create_params, preview_delete_params
from ...types.healthchecks import (
CheckRegion,
Healthcheck,
PreviewDeleteResponse,
TCPConfigurationParam,
HTTPConfigurationParam,
preview_create_params,
preview_delete_params,
)

__all__ = ["Previews", "AsyncPreviews"]

Expand Down
10 changes: 8 additions & 2 deletions src/cloudflare/resources/hyperdrive/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import httpx

from ...types import Hyperdrive, ConfigurationParam
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
Expand All @@ -26,7 +25,14 @@
AsyncPaginator,
make_request_options,
)
from ...types.hyperdrive import ConfigDeleteResponse, config_edit_params, config_create_params, config_update_params
from ...types.hyperdrive import (
Hyperdrive,
ConfigurationParam,
ConfigDeleteResponse,
config_edit_params,
config_create_params,
config_update_params,
)

__all__ = ["Configs", "AsyncConfigs"]

Expand Down
Loading

0 comments on commit 8b4c1a0

Please sign in to comment.