Skip to content

Commit 8b4c1a0

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#332)
1 parent dc9f277 commit 8b4c1a0

File tree

500 files changed

+1305
-1198
lines changed

Some content is hidden

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

500 files changed

+1305
-1198
lines changed

api.md

+234-206
Large diffs are not rendered by default.

src/cloudflare/resources/accounts/accounts.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515
RolesWithStreamingResponse,
1616
AsyncRolesWithStreamingResponse,
1717
)
18-
from ...types import (
19-
AccountGetResponse,
20-
AccountUpdateResponse,
21-
account_list_params,
22-
account_update_params,
23-
)
2418
from .members import (
2519
Members,
2620
AsyncMembers,
@@ -48,6 +42,7 @@
4842
AsyncPaginator,
4943
make_request_options,
5044
)
45+
from ...types.accounts import AccountGetResponse, AccountUpdateResponse, account_list_params, account_update_params
5146

5247
__all__ = ["Accounts", "AsyncAccounts"]
5348

src/cloudflare/resources/audit_logs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import httpx
1010

11-
from ..types import audit_log_list_params
1211
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1312
from .._utils import maybe_transform
1413
from .._compat import cached_property
@@ -25,6 +24,7 @@
2524
make_request_options,
2625
)
2726
from ..types.shared import AuditLog
27+
from ..types.audit_logs import audit_log_list_params
2828

2929
__all__ = ["AuditLogs", "AsyncAuditLogs"]
3030

src/cloudflare/resources/bot_management.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import httpx
99

10-
from ..types import BotManagementGetResponse, BotManagementUpdateResponse, bot_management_update_params
1110
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1211
from .._utils import (
1312
required_args,
@@ -26,6 +25,7 @@
2625
from .._base_client import (
2726
make_request_options,
2827
)
28+
from ..types.bot_management import BotManagementGetResponse, BotManagementUpdateResponse, bot_management_update_params
2929

3030
__all__ = ["BotManagement", "AsyncBotManagement"]
3131

src/cloudflare/resources/brand_protection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import httpx
88

9-
from ..types import Info, Submit, brand_protection_submit_params, brand_protection_url_info_params
109
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1110
from .._utils import (
1211
maybe_transform,
@@ -24,6 +23,7 @@
2423
from .._base_client import (
2524
make_request_options,
2625
)
26+
from ..types.brand_protection import Info, Submit, brand_protection_submit_params, brand_protection_url_info_params
2727

2828
__all__ = ["BrandProtection", "AsyncBrandProtection"]
2929

src/cloudflare/resources/cache/cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import httpx
88

9-
from ...types import CachePurgeResponse, cache_purge_params
109
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1110
from ..._utils import (
1211
required_args,
@@ -30,6 +29,7 @@
3029
async_to_streamed_response_wrapper,
3130
)
3231
from ..._wrappers import ResultWrapper
32+
from ...types.cache import CachePurgeResponse, cache_purge_params
3333
from .cache_reserve import (
3434
CacheReserveResource,
3535
AsyncCacheReserveResource,

src/cloudflare/resources/calls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import httpx
88

9-
from ..types import CallsApp, CallsAppWithSecret, call_create_params, call_update_params
109
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1110
from .._utils import (
1211
maybe_transform,
@@ -22,6 +21,7 @@
2221
)
2322
from .._wrappers import ResultWrapper
2423
from ..pagination import SyncSinglePage, AsyncSinglePage
24+
from ..types.calls import CallsApp, CallsAppWithSecret, call_create_params, call_update_params
2525
from .._base_client import (
2626
AsyncPaginator,
2727
make_request_options,

src/cloudflare/resources/client_certificates.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import httpx
99

10-
from ..types import ClientCertificate, client_certificate_list_params, client_certificate_create_params
1110
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1211
from .._utils import (
1312
maybe_transform,
@@ -27,6 +26,11 @@
2726
AsyncPaginator,
2827
make_request_options,
2928
)
29+
from ..types.client_certificates import (
30+
ClientCertificate,
31+
client_certificate_list_params,
32+
client_certificate_create_params,
33+
)
3034

3135
__all__ = ["ClientCertificates", "AsyncClientCertificates"]
3236

src/cloudflare/resources/custom_certificates/custom_certificates.py

+13-13
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,6 @@
77

88
import httpx
99

10-
from ...types import (
11-
BundleMethod,
12-
CustomCertificate,
13-
GeoRestrictionsParam,
14-
CustomCertificateGetResponse,
15-
CustomCertificateEditResponse,
16-
CustomCertificateCreateResponse,
17-
CustomCertificateDeleteResponse,
18-
custom_certificate_edit_params,
19-
custom_certificate_list_params,
20-
custom_certificate_create_params,
21-
custom_certificate_delete_params,
22-
)
2310
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
2411
from ..._utils import (
2512
maybe_transform,
@@ -47,6 +34,19 @@
4734
AsyncPaginator,
4835
make_request_options,
4936
)
37+
from ...types.custom_hostnames import BundleMethod
38+
from ...types.custom_certificates import (
39+
CustomCertificate,
40+
GeoRestrictionsParam,
41+
CustomCertificateGetResponse,
42+
CustomCertificateEditResponse,
43+
CustomCertificateCreateResponse,
44+
CustomCertificateDeleteResponse,
45+
custom_certificate_edit_params,
46+
custom_certificate_list_params,
47+
custom_certificate_create_params,
48+
custom_certificate_delete_params,
49+
)
5050

5151
__all__ = ["CustomCertificates", "AsyncCustomCertificates"]
5252

src/cloudflare/resources/custom_hostnames/custom_hostnames.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@
77

88
import httpx
99

10-
from ...types import (
11-
CustomHostnameGetResponse,
12-
CustomHostnameEditResponse,
13-
CustomHostnameListResponse,
14-
CustomHostnameCreateResponse,
15-
CustomHostnameDeleteResponse,
16-
custom_hostname_edit_params,
17-
custom_hostname_list_params,
18-
custom_hostname_create_params,
19-
custom_hostname_delete_params,
20-
)
2110
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
2211
from ..._utils import (
2312
maybe_transform,
@@ -45,6 +34,17 @@
4534
FallbackOriginWithStreamingResponse,
4635
AsyncFallbackOriginWithStreamingResponse,
4736
)
37+
from ...types.custom_hostnames import (
38+
CustomHostnameGetResponse,
39+
CustomHostnameEditResponse,
40+
CustomHostnameListResponse,
41+
CustomHostnameCreateResponse,
42+
CustomHostnameDeleteResponse,
43+
custom_hostname_edit_params,
44+
custom_hostname_list_params,
45+
custom_hostname_create_params,
46+
custom_hostname_delete_params,
47+
)
4848

4949
__all__ = ["CustomHostnames", "AsyncCustomHostnames"]
5050

src/cloudflare/resources/custom_nameservers.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,6 @@
66

77
import httpx
88

9-
from ..types import (
10-
CustomNameserver,
11-
CustomNameserverGetResponse,
12-
CustomNameserverDeleteResponse,
13-
CustomNameserverVerifyResponse,
14-
CustomNameserverAvailabiltyResponse,
15-
custom_nameserver_create_params,
16-
custom_nameserver_delete_params,
17-
custom_nameserver_verify_params,
18-
)
199
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
2010
from .._utils import (
2111
maybe_transform,
@@ -33,6 +23,16 @@
3323
from .._base_client import (
3424
make_request_options,
3525
)
26+
from ..types.custom_nameservers import (
27+
CustomNameserver,
28+
CustomNameserverGetResponse,
29+
CustomNameserverDeleteResponse,
30+
CustomNameserverVerifyResponse,
31+
CustomNameserverAvailabiltyResponse,
32+
custom_nameserver_create_params,
33+
custom_nameserver_delete_params,
34+
custom_nameserver_verify_params,
35+
)
3636

3737
__all__ = ["CustomNameservers", "AsyncCustomNameservers"]
3838

src/cloudflare/resources/d1/database.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
import httpx
88

9-
from ...types import D1
109
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1110
from ..._utils import (
1211
maybe_transform,
1312
async_maybe_transform,
1413
)
1514
from ..._compat import cached_property
1615
from ...types.d1 import (
16+
D1,
1717
DatabaseListResponse,
1818
DatabaseQueryResponse,
1919
DatabaseCreateResponse,

src/cloudflare/resources/dnssec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import httpx
99

10-
from ..types import DNSSEC, DNSSECDeleteResponse, dnssec_edit_params, dnssec_delete_params
1110
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1211
from .._utils import (
1312
maybe_transform,
@@ -25,6 +24,7 @@
2524
from .._base_client import (
2625
make_request_options,
2726
)
27+
from ..types.dnssec import DNSSEC, DNSSECDeleteResponse, dnssec_edit_params, dnssec_delete_params
2828

2929
__all__ = ["DNSSECResource", "AsyncDNSSECResource"]
3030

src/cloudflare/resources/email_routing/email_routing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
RulesWithStreamingResponse,
2323
AsyncRulesWithStreamingResponse,
2424
)
25-
from ...types import Settings, email_routing_enable_params, email_routing_disable_params
2625
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
2726
from ..._utils import (
2827
maybe_transform,
@@ -49,6 +48,7 @@
4948
from ..._base_client import (
5049
make_request_options,
5150
)
51+
from ...types.email_routing import Settings, email_routing_enable_params, email_routing_disable_params
5252

5353
__all__ = ["EmailRouting", "AsyncEmailRouting"]
5454

src/cloudflare/resources/filters.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66

77
import httpx
88

9-
from ..types import (
10-
FirewallFilter,
11-
FilterCreateResponse,
12-
filter_list_params,
13-
filter_create_params,
14-
filter_delete_params,
15-
filter_update_params,
16-
)
179
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1810
from .._utils import (
1911
maybe_transform,
@@ -33,6 +25,14 @@
3325
AsyncPaginator,
3426
make_request_options,
3527
)
28+
from ..types.filters import (
29+
FirewallFilter,
30+
FilterCreateResponse,
31+
filter_list_params,
32+
filter_create_params,
33+
filter_delete_params,
34+
filter_update_params,
35+
)
3636

3737
__all__ = ["Filters", "AsyncFilters"]
3838

src/cloudflare/resources/healthchecks/healthchecks.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@
66

77
import httpx
88

9-
from ...types import (
10-
CheckRegion,
11-
Healthcheck,
12-
TCPConfigurationParam,
13-
HTTPConfigurationParam,
14-
HealthcheckDeleteResponse,
15-
healthcheck_edit_params,
16-
healthcheck_create_params,
17-
healthcheck_delete_params,
18-
healthcheck_update_params,
19-
)
209
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
2110
from ..._utils import (
2211
maybe_transform,
@@ -44,6 +33,17 @@
4433
AsyncPaginator,
4534
make_request_options,
4635
)
36+
from ...types.healthchecks import (
37+
CheckRegion,
38+
Healthcheck,
39+
TCPConfigurationParam,
40+
HTTPConfigurationParam,
41+
HealthcheckDeleteResponse,
42+
healthcheck_edit_params,
43+
healthcheck_create_params,
44+
healthcheck_delete_params,
45+
healthcheck_update_params,
46+
)
4747

4848
__all__ = ["Healthchecks", "AsyncHealthchecks"]
4949

src/cloudflare/resources/healthchecks/previews.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66

77
import httpx
88

9-
from ...types import (
10-
CheckRegion,
11-
Healthcheck,
12-
TCPConfigurationParam,
13-
HTTPConfigurationParam,
14-
)
159
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1610
from ..._utils import (
1711
maybe_transform,
@@ -29,7 +23,15 @@
2923
from ..._base_client import (
3024
make_request_options,
3125
)
32-
from ...types.healthchecks import PreviewDeleteResponse, preview_create_params, preview_delete_params
26+
from ...types.healthchecks import (
27+
CheckRegion,
28+
Healthcheck,
29+
PreviewDeleteResponse,
30+
TCPConfigurationParam,
31+
HTTPConfigurationParam,
32+
preview_create_params,
33+
preview_delete_params,
34+
)
3335

3436
__all__ = ["Previews", "AsyncPreviews"]
3537

src/cloudflare/resources/hyperdrive/configs.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import httpx
88

9-
from ...types import Hyperdrive, ConfigurationParam
109
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1110
from ..._utils import (
1211
maybe_transform,
@@ -26,7 +25,14 @@
2625
AsyncPaginator,
2726
make_request_options,
2827
)
29-
from ...types.hyperdrive import ConfigDeleteResponse, config_edit_params, config_create_params, config_update_params
28+
from ...types.hyperdrive import (
29+
Hyperdrive,
30+
ConfigurationParam,
31+
ConfigDeleteResponse,
32+
config_edit_params,
33+
config_create_params,
34+
config_update_params,
35+
)
3036

3137
__all__ = ["Configs", "AsyncConfigs"]
3238

0 commit comments

Comments
 (0)