Skip to content

Commit 5d19869

Browse files
chore(api): update composite API spec
1 parent aa1460b commit 5d19869

File tree

276 files changed

+1607
-23581
lines changed

Some content is hidden

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

276 files changed

+1607
-23581
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1859
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-183f02e6e260ed61a48914917bf37884af04c54306709f2a111c72c9beb224f9.yml
3-
openapi_spec_hash: 6c8c8ec5c3b2a86d66b6599fec576d51
1+
configured_endpoints: 1819
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cceecd20dfd89884f795e75b433848994bed610b79802c65104f0c70d3ada54e.yml
3+
openapi_spec_hash: c33c0e26e48c004c1781a36748d0144c
44
config_hash: e16fca6aff930b2279d586d92022f7d1

api.md

Lines changed: 34 additions & 285 deletions
Large diffs are not rendered by default.

src/cloudflare/_client.py

Lines changed: 0 additions & 157 deletions
Large diffs are not rendered by default.

src/cloudflare/resources/abuse_reports.py

Lines changed: 0 additions & 1869 deletions
This file was deleted.

src/cloudflare/resources/accounts/accounts.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def update(
165165
id: str,
166166
name: str,
167167
type: Literal["standard", "enterprise"],
168-
managed_by: account_update_params.ManagedBy | Omit = omit,
169168
settings: account_update_params.Settings | Omit = omit,
170169
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
171170
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -184,8 +183,6 @@ def update(
184183
185184
name: Account name
186185
187-
managed_by: Parent container details
188-
189186
settings: Account settings
190187
191188
extra_headers: Send extra headers
@@ -205,7 +202,6 @@ def update(
205202
"id": id,
206203
"name": name,
207204
"type": type,
208-
"managed_by": managed_by,
209205
"settings": settings,
210206
},
211207
account_update_params.AccountUpdateParams,
@@ -455,7 +451,6 @@ async def update(
455451
id: str,
456452
name: str,
457453
type: Literal["standard", "enterprise"],
458-
managed_by: account_update_params.ManagedBy | Omit = omit,
459454
settings: account_update_params.Settings | Omit = omit,
460455
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
461456
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -474,8 +469,6 @@ async def update(
474469
475470
name: Account name
476471
477-
managed_by: Parent container details
478-
479472
settings: Account settings
480473
481474
extra_headers: Send extra headers
@@ -495,7 +488,6 @@ async def update(
495488
"id": id,
496489
"name": name,
497490
"type": type,
498-
"managed_by": managed_by,
499491
"settings": settings,
500492
},
501493
account_update_params.AccountUpdateParams,

src/cloudflare/resources/api_gateway/configurations.py

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
from __future__ import annotations
44

5-
from typing import Type, Iterable, cast
5+
from typing import List, Type, Iterable, cast
6+
from typing_extensions import Literal
67

78
import httpx
89

9-
from ..._types import Body, Query, Headers, NotGiven, not_given
10+
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
1011
from ..._utils import maybe_transform, async_maybe_transform
1112
from ..._compat import cached_property
1213
from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -18,8 +19,9 @@
1819
)
1920
from ..._wrappers import ResultWrapper
2021
from ..._base_client import make_request_options
21-
from ...types.api_gateway import configuration_update_params
22+
from ...types.api_gateway import configuration_get_params, configuration_update_params
2223
from ...types.api_gateway.configuration import Configuration
24+
from ...types.api_gateway.configuration_update_response import ConfigurationUpdateResponse
2325

2426
__all__ = ["ConfigurationsResource", "AsyncConfigurationsResource"]
2527

@@ -55,9 +57,9 @@ def update(
5557
extra_query: Query | None = None,
5658
extra_body: Body | None = None,
5759
timeout: float | httpx.Timeout | None | NotGiven = not_given,
58-
) -> Configuration:
60+
) -> ConfigurationUpdateResponse:
5961
"""
60-
Update configuration properties
62+
Set configuration properties
6163
6264
Args:
6365
zone_id: Identifier.
@@ -79,19 +81,16 @@ def update(
7981
configuration_update_params.ConfigurationUpdateParams,
8082
),
8183
options=make_request_options(
82-
extra_headers=extra_headers,
83-
extra_query=extra_query,
84-
extra_body=extra_body,
85-
timeout=timeout,
86-
post_parser=ResultWrapper[Configuration]._unwrapper,
84+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
8785
),
88-
cast_to=cast(Type[Configuration], ResultWrapper[Configuration]),
86+
cast_to=ConfigurationUpdateResponse,
8987
)
9088

9189
def get(
9290
self,
9391
*,
9492
zone_id: str,
93+
properties: List[Literal["auth_id_characteristics"]] | Omit = omit,
9594
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9695
# The extra values given here take precedence over values defined on the client or passed to this method.
9796
extra_headers: Headers | None = None,
@@ -105,6 +104,8 @@ def get(
105104
Args:
106105
zone_id: Identifier.
107106
107+
properties: Requests information about certain properties.
108+
108109
extra_headers: Send extra headers
109110
110111
extra_query: Add additional query parameters to the request
@@ -122,6 +123,7 @@ def get(
122123
extra_query=extra_query,
123124
extra_body=extra_body,
124125
timeout=timeout,
126+
query=maybe_transform({"properties": properties}, configuration_get_params.ConfigurationGetParams),
125127
post_parser=ResultWrapper[Configuration]._unwrapper,
126128
),
127129
cast_to=cast(Type[Configuration], ResultWrapper[Configuration]),
@@ -159,9 +161,9 @@ async def update(
159161
extra_query: Query | None = None,
160162
extra_body: Body | None = None,
161163
timeout: float | httpx.Timeout | None | NotGiven = not_given,
162-
) -> Configuration:
164+
) -> ConfigurationUpdateResponse:
163165
"""
164-
Update configuration properties
166+
Set configuration properties
165167
166168
Args:
167169
zone_id: Identifier.
@@ -183,19 +185,16 @@ async def update(
183185
configuration_update_params.ConfigurationUpdateParams,
184186
),
185187
options=make_request_options(
186-
extra_headers=extra_headers,
187-
extra_query=extra_query,
188-
extra_body=extra_body,
189-
timeout=timeout,
190-
post_parser=ResultWrapper[Configuration]._unwrapper,
188+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
191189
),
192-
cast_to=cast(Type[Configuration], ResultWrapper[Configuration]),
190+
cast_to=ConfigurationUpdateResponse,
193191
)
194192

195193
async def get(
196194
self,
197195
*,
198196
zone_id: str,
197+
properties: List[Literal["auth_id_characteristics"]] | Omit = omit,
199198
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
200199
# The extra values given here take precedence over values defined on the client or passed to this method.
201200
extra_headers: Headers | None = None,
@@ -209,6 +208,8 @@ async def get(
209208
Args:
210209
zone_id: Identifier.
211210
211+
properties: Requests information about certain properties.
212+
212213
extra_headers: Send extra headers
213214
214215
extra_query: Add additional query parameters to the request
@@ -226,6 +227,9 @@ async def get(
226227
extra_query=extra_query,
227228
extra_body=extra_body,
228229
timeout=timeout,
230+
query=await async_maybe_transform(
231+
{"properties": properties}, configuration_get_params.ConfigurationGetParams
232+
),
229233
post_parser=ResultWrapper[Configuration]._unwrapper,
230234
),
231235
cast_to=cast(Type[Configuration], ResultWrapper[Configuration]),

src/cloudflare/resources/cloudforce_one/threat_events/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,6 @@
7272
ThreatEventsResourceWithStreamingResponse,
7373
AsyncThreatEventsResourceWithStreamingResponse,
7474
)
75-
from .indicator_types import (
76-
IndicatorTypesResource,
77-
AsyncIndicatorTypesResource,
78-
IndicatorTypesResourceWithRawResponse,
79-
AsyncIndicatorTypesResourceWithRawResponse,
80-
IndicatorTypesResourceWithStreamingResponse,
81-
AsyncIndicatorTypesResourceWithStreamingResponse,
82-
)
8375
from .target_industries import (
8476
TargetIndustriesResource,
8577
AsyncTargetIndustriesResource,
@@ -114,12 +106,6 @@
114106
"AsyncDatasetsResourceWithRawResponse",
115107
"DatasetsResourceWithStreamingResponse",
116108
"AsyncDatasetsResourceWithStreamingResponse",
117-
"IndicatorTypesResource",
118-
"AsyncIndicatorTypesResource",
119-
"IndicatorTypesResourceWithRawResponse",
120-
"AsyncIndicatorTypesResourceWithRawResponse",
121-
"IndicatorTypesResourceWithStreamingResponse",
122-
"AsyncIndicatorTypesResourceWithStreamingResponse",
123109
"RawResource",
124110
"AsyncRawResource",
125111
"RawResourceWithRawResponse",

0 commit comments

Comments
 (0)