Skip to content

Commit 6464b31

Browse files
chore(api): upload stainless config from cloudflare-config
1 parent 2bf6eee commit 6464b31

49 files changed

Lines changed: 5694 additions & 23 deletions

Some content is hidden

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

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1781
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-97d96a216e844ce5d0e2fcaea34f8e35db45dea86068bd95a88d3bb33a6f0c0d.yml
1+
configured_endpoints: 1791
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-49375f41281b35f1b625e078e2905d704bee269f9bc2854ee6560013dd7e10d1.yml
33
openapi_spec_hash: 4fa5e37d0d49108f256d15dde5edef42
4-
config_hash: 242134bf2dc570f5555bf479c40a42d0
4+
config_hash: 066949474762c52657970040c532cfca

api.md

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2531,6 +2531,7 @@ Types:
25312531

25322532
```python
25332533
from cloudflare.types.kv import (
2534+
Any,
25342535
Namespace,
25352536
NamespaceDeleteResponse,
25362537
NamespaceBulkDeleteResponse,
@@ -2574,7 +2575,7 @@ Methods:
25742575

25752576
Methods:
25762577

2577-
- <code title="get /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/metadata/{key_name}">client.kv.namespaces.metadata.<a href="./src/cloudflare/resources/kv/namespaces/metadata.py">get</a>(key_name, \*, account_id, namespace_id) -> object</code>
2578+
- <code title="get /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/metadata/{key_name}">client.kv.namespaces.metadata.<a href="./src/cloudflare/resources/kv/namespaces/metadata.py">get</a>(key_name, \*, account_id, namespace_id) -> <a href="./src/cloudflare/types/kv/any.py">object</a></code>
25782579

25792580
### Values
25802581

@@ -7246,6 +7247,68 @@ Methods:
72467247
- <code title="get /radar/ai/inference/timeseries_groups/model">client.radar.ai.inference.timeseries_groups.summary.<a href="./src/cloudflare/resources/radar/ai/inference/timeseries_groups/summary.py">model</a>(\*\*<a href="src/cloudflare/types/radar/ai/inference/timeseries_groups/summary_model_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/inference/timeseries_groups/summary_model_response.py">SummaryModelResponse</a></code>
72477248
- <code title="get /radar/ai/inference/timeseries_groups/task">client.radar.ai.inference.timeseries_groups.summary.<a href="./src/cloudflare/resources/radar/ai/inference/timeseries_groups/summary.py">task</a>(\*\*<a href="src/cloudflare/types/radar/ai/inference/timeseries_groups/summary_task_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/inference/timeseries_groups/summary_task_response.py">SummaryTaskResponse</a></code>
72487249

7250+
### TimeseriesGroups
7251+
7252+
Types:
7253+
7254+
```python
7255+
from cloudflare.types.radar.ai import (
7256+
TimeseriesGroupSummaryResponse,
7257+
TimeseriesGroupTimeseriesResponse,
7258+
TimeseriesGroupTimeseriesGroupsResponse,
7259+
)
7260+
```
7261+
7262+
Methods:
7263+
7264+
- <code title="get /radar/ai/bots/summary/{dimension}">client.radar.ai.timeseries_groups.<a href="./src/cloudflare/resources/radar/ai/timeseries_groups.py">summary</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ai/timeseries_group_summary_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/timeseries_group_summary_response.py">TimeseriesGroupSummaryResponse</a></code>
7265+
- <code title="get /radar/ai/bots/timeseries">client.radar.ai.timeseries_groups.<a href="./src/cloudflare/resources/radar/ai/timeseries_groups.py">timeseries</a>(\*\*<a href="src/cloudflare/types/radar/ai/timeseries_group_timeseries_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/timeseries_group_timeseries_response.py">TimeseriesGroupTimeseriesResponse</a></code>
7266+
- <code title="get /radar/ai/bots/timeseries_groups/{dimension}">client.radar.ai.timeseries_groups.<a href="./src/cloudflare/resources/radar/ai/timeseries_groups.py">timeseries_groups</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ai/timeseries_group_timeseries_groups_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/timeseries_group_timeseries_groups_response.py">TimeseriesGroupTimeseriesGroupsResponse</a></code>
7267+
7268+
## Ct
7269+
7270+
Types:
7271+
7272+
```python
7273+
from cloudflare.types.radar import (
7274+
CtSummaryResponse,
7275+
CtTimeseriesResponse,
7276+
CtTimeseriesGroupsResponse,
7277+
)
7278+
```
7279+
7280+
Methods:
7281+
7282+
- <code title="get /radar/ct/summary/{dimension}">client.radar.ct.<a href="./src/cloudflare/resources/radar/ct/ct.py">summary</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ct_summary_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct_summary_response.py">CtSummaryResponse</a></code>
7283+
- <code title="get /radar/ct/timeseries">client.radar.ct.<a href="./src/cloudflare/resources/radar/ct/ct.py">timeseries</a>(\*\*<a href="src/cloudflare/types/radar/ct_timeseries_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct_timeseries_response.py">CtTimeseriesResponse</a></code>
7284+
- <code title="get /radar/ct/timeseries_groups/{dimension}">client.radar.ct.<a href="./src/cloudflare/resources/radar/ct/ct.py">timeseries_groups</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ct_timeseries_groups_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct_timeseries_groups_response.py">CtTimeseriesGroupsResponse</a></code>
7285+
7286+
### Authorities
7287+
7288+
Types:
7289+
7290+
```python
7291+
from cloudflare.types.radar.ct import AuthorityListResponse, AuthorityGetResponse
7292+
```
7293+
7294+
Methods:
7295+
7296+
- <code title="get /radar/ct/authorities">client.radar.ct.authorities.<a href="./src/cloudflare/resources/radar/ct/authorities.py">list</a>(\*\*<a href="src/cloudflare/types/radar/ct/authority_list_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct/authority_list_response.py">AuthorityListResponse</a></code>
7297+
- <code title="get /radar/ct/authorities/{ca_slug}">client.radar.ct.authorities.<a href="./src/cloudflare/resources/radar/ct/authorities.py">get</a>(ca_slug, \*\*<a href="src/cloudflare/types/radar/ct/authority_get_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct/authority_get_response.py">AuthorityGetResponse</a></code>
7298+
7299+
### Logs
7300+
7301+
Types:
7302+
7303+
```python
7304+
from cloudflare.types.radar.ct import LogListResponse, LogGetResponse
7305+
```
7306+
7307+
Methods:
7308+
7309+
- <code title="get /radar/ct/logs">client.radar.ct.logs.<a href="./src/cloudflare/resources/radar/ct/logs.py">list</a>(\*\*<a href="src/cloudflare/types/radar/ct/log_list_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct/log_list_response.py">LogListResponse</a></code>
7310+
- <code title="get /radar/ct/logs/{log_slug}">client.radar.ct.logs.<a href="./src/cloudflare/resources/radar/ct/logs.py">get</a>(log_slug, \*\*<a href="src/cloudflare/types/radar/ct/log_get_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ct/log_get_response.py">LogGetResponse</a></code>
7311+
72497312
## Annotations
72507313

72517314
Types:

src/cloudflare/resources/kv/namespaces/values.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
)
2727
from ...._wrappers import ResultWrapper
2828
from ...._base_client import make_request_options
29+
from ....types.kv.any_param import AnyParam
2930
from ....types.kv.namespaces import value_update_params
3031
from ....types.kv.namespaces.value_delete_response import ValueDeleteResponse
3132
from ....types.kv.namespaces.value_update_response import ValueUpdateResponse
@@ -62,7 +63,7 @@ def update(
6263
value: str,
6364
expiration: float | NotGiven = NOT_GIVEN,
6465
expiration_ttl: float | NotGiven = NOT_GIVEN,
65-
metadata: object | NotGiven = NOT_GIVEN,
66+
metadata: AnyParam | NotGiven = NOT_GIVEN,
6667
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6768
# The extra values given here take precedence over values defined on the client or passed to this method.
6869
extra_headers: Headers | None = None,
@@ -96,8 +97,6 @@ def update(
9697
9798
expiration_ttl: Expires the key after a number of seconds. Must be at least 60.
9899
99-
metadata: Associates arbitrary JSON data with a key/value pair.
100-
101100
extra_headers: Send extra headers
102101
103102
extra_query: Add additional query parameters to the request
@@ -276,7 +275,7 @@ async def update(
276275
value: str,
277276
expiration: float | NotGiven = NOT_GIVEN,
278277
expiration_ttl: float | NotGiven = NOT_GIVEN,
279-
metadata: object | NotGiven = NOT_GIVEN,
278+
metadata: AnyParam | NotGiven = NOT_GIVEN,
280279
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
281280
# The extra values given here take precedence over values defined on the client or passed to this method.
282281
extra_headers: Headers | None = None,
@@ -310,8 +309,6 @@ async def update(
310309
311310
expiration_ttl: Expires the key after a number of seconds. Must be at least 60.
312311
313-
metadata: Associates arbitrary JSON data with a key/value pair.
314-
315312
extra_headers: Send extra headers
316313
317314
extra_query: Add additional query parameters to the request

src/cloudflare/resources/radar/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
AIResourceWithStreamingResponse,
99
AsyncAIResourceWithStreamingResponse,
1010
)
11+
from .ct import (
12+
CtResource,
13+
AsyncCtResource,
14+
CtResourceWithRawResponse,
15+
AsyncCtResourceWithRawResponse,
16+
CtResourceWithStreamingResponse,
17+
AsyncCtResourceWithStreamingResponse,
18+
)
1119
from .bgp import (
1220
BGPResource,
1321
AsyncBGPResource,
@@ -176,6 +184,12 @@
176184
"AsyncAIResourceWithRawResponse",
177185
"AIResourceWithStreamingResponse",
178186
"AsyncAIResourceWithStreamingResponse",
187+
"CtResource",
188+
"AsyncCtResource",
189+
"CtResourceWithRawResponse",
190+
"AsyncCtResourceWithRawResponse",
191+
"CtResourceWithStreamingResponse",
192+
"AsyncCtResourceWithStreamingResponse",
179193
"AnnotationsResource",
180194
"AsyncAnnotationsResource",
181195
"AnnotationsResourceWithRawResponse",

src/cloudflare/resources/radar/ai/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
ToMarkdownResourceWithStreamingResponse,
2525
AsyncToMarkdownResourceWithStreamingResponse,
2626
)
27+
from .timeseries_groups import (
28+
TimeseriesGroupsResource,
29+
AsyncTimeseriesGroupsResource,
30+
TimeseriesGroupsResourceWithRawResponse,
31+
AsyncTimeseriesGroupsResourceWithRawResponse,
32+
TimeseriesGroupsResourceWithStreamingResponse,
33+
AsyncTimeseriesGroupsResourceWithStreamingResponse,
34+
)
2735

2836
__all__ = [
2937
"ToMarkdownResource",
@@ -38,6 +46,12 @@
3846
"AsyncInferenceResourceWithRawResponse",
3947
"InferenceResourceWithStreamingResponse",
4048
"AsyncInferenceResourceWithStreamingResponse",
49+
"TimeseriesGroupsResource",
50+
"AsyncTimeseriesGroupsResource",
51+
"TimeseriesGroupsResourceWithRawResponse",
52+
"AsyncTimeseriesGroupsResourceWithRawResponse",
53+
"TimeseriesGroupsResourceWithStreamingResponse",
54+
"AsyncTimeseriesGroupsResourceWithStreamingResponse",
4155
"AIResource",
4256
"AsyncAIResource",
4357
"AIResourceWithRawResponse",

src/cloudflare/resources/radar/ai/ai.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
AsyncToMarkdownResourceWithStreamingResponse,
1313
)
1414
from ...._resource import SyncAPIResource, AsyncAPIResource
15+
from .timeseries_groups import (
16+
TimeseriesGroupsResource,
17+
AsyncTimeseriesGroupsResource,
18+
TimeseriesGroupsResourceWithRawResponse,
19+
AsyncTimeseriesGroupsResourceWithRawResponse,
20+
TimeseriesGroupsResourceWithStreamingResponse,
21+
AsyncTimeseriesGroupsResourceWithStreamingResponse,
22+
)
1523
from .inference.inference import (
1624
InferenceResource,
1725
AsyncInferenceResource,
@@ -33,6 +41,10 @@ def to_markdown(self) -> ToMarkdownResource:
3341
def inference(self) -> InferenceResource:
3442
return InferenceResource(self._client)
3543

44+
@cached_property
45+
def timeseries_groups(self) -> TimeseriesGroupsResource:
46+
return TimeseriesGroupsResource(self._client)
47+
3648
@cached_property
3749
def with_raw_response(self) -> AIResourceWithRawResponse:
3850
"""
@@ -62,6 +74,10 @@ def to_markdown(self) -> AsyncToMarkdownResource:
6274
def inference(self) -> AsyncInferenceResource:
6375
return AsyncInferenceResource(self._client)
6476

77+
@cached_property
78+
def timeseries_groups(self) -> AsyncTimeseriesGroupsResource:
79+
return AsyncTimeseriesGroupsResource(self._client)
80+
6581
@cached_property
6682
def with_raw_response(self) -> AsyncAIResourceWithRawResponse:
6783
"""
@@ -94,6 +110,10 @@ def to_markdown(self) -> ToMarkdownResourceWithRawResponse:
94110
def inference(self) -> InferenceResourceWithRawResponse:
95111
return InferenceResourceWithRawResponse(self._ai.inference)
96112

113+
@cached_property
114+
def timeseries_groups(self) -> TimeseriesGroupsResourceWithRawResponse:
115+
return TimeseriesGroupsResourceWithRawResponse(self._ai.timeseries_groups)
116+
97117

98118
class AsyncAIResourceWithRawResponse:
99119
def __init__(self, ai: AsyncAIResource) -> None:
@@ -107,6 +127,10 @@ def to_markdown(self) -> AsyncToMarkdownResourceWithRawResponse:
107127
def inference(self) -> AsyncInferenceResourceWithRawResponse:
108128
return AsyncInferenceResourceWithRawResponse(self._ai.inference)
109129

130+
@cached_property
131+
def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithRawResponse:
132+
return AsyncTimeseriesGroupsResourceWithRawResponse(self._ai.timeseries_groups)
133+
110134

111135
class AIResourceWithStreamingResponse:
112136
def __init__(self, ai: AIResource) -> None:
@@ -120,6 +144,10 @@ def to_markdown(self) -> ToMarkdownResourceWithStreamingResponse:
120144
def inference(self) -> InferenceResourceWithStreamingResponse:
121145
return InferenceResourceWithStreamingResponse(self._ai.inference)
122146

147+
@cached_property
148+
def timeseries_groups(self) -> TimeseriesGroupsResourceWithStreamingResponse:
149+
return TimeseriesGroupsResourceWithStreamingResponse(self._ai.timeseries_groups)
150+
123151

124152
class AsyncAIResourceWithStreamingResponse:
125153
def __init__(self, ai: AsyncAIResource) -> None:
@@ -132,3 +160,7 @@ def to_markdown(self) -> AsyncToMarkdownResourceWithStreamingResponse:
132160
@cached_property
133161
def inference(self) -> AsyncInferenceResourceWithStreamingResponse:
134162
return AsyncInferenceResourceWithStreamingResponse(self._ai.inference)
163+
164+
@cached_property
165+
def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse:
166+
return AsyncTimeseriesGroupsResourceWithStreamingResponse(self._ai.timeseries_groups)

0 commit comments

Comments
 (0)