Skip to content

Commit a4b55b1

Browse files
chore(api): upload stainless config from cloudflare-config
1 parent 5ea1f95 commit a4b55b1

42 files changed

Lines changed: 5793 additions & 2 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1781
1+
configured_endpoints: 1791
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0658ffdc63aa0d55f5c8e270bc9c40632a48795a5ce98f2bb1cbf4816f300b06.yml
33
openapi_spec_hash: a2941e95e7db3e393daf9a949913a239
4-
config_hash: b9d4fdd8e697af382ae0ca080ed71364
4+
config_hash: 7c3cbd6dda654becf4764fb52b4bd6af

api.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7247,6 +7247,70 @@ Methods:
72477247
- <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>
72487248
- <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>
72497249

7250+
### Bots
7251+
7252+
#### Summary
7253+
7254+
Types:
7255+
7256+
```python
7257+
from cloudflare.types.radar.ai.bots import (
7258+
SummarySummaryResponse,
7259+
SummaryTimeseriesResponse,
7260+
SummaryTimeseriesGroupsResponse,
7261+
)
7262+
```
7263+
7264+
Methods:
7265+
7266+
- <code title="get /radar/ai/bots/summary/{dimension}">client.radar.ai.bots.summary.<a href="./src/cloudflare/resources/radar/ai/bots/summary.py">summary</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ai/bots/summary_summary_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/bots/summary_summary_response.py">SummarySummaryResponse</a></code>
7267+
- <code title="get /radar/ai/bots/timeseries">client.radar.ai.bots.summary.<a href="./src/cloudflare/resources/radar/ai/bots/summary.py">timeseries</a>(\*\*<a href="src/cloudflare/types/radar/ai/bots/summary_timeseries_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/bots/summary_timeseries_response.py">SummaryTimeseriesResponse</a></code>
7268+
- <code title="get /radar/ai/bots/timeseries_groups/{dimension}">client.radar.ai.bots.summary.<a href="./src/cloudflare/resources/radar/ai/bots/summary.py">timeseries_groups</a>(dimension, \*\*<a href="src/cloudflare/types/radar/ai/bots/summary_timeseries_groups_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/ai/bots/summary_timeseries_groups_response.py">SummaryTimeseriesGroupsResponse</a></code>
7269+
7270+
## Ct
7271+
7272+
Types:
7273+
7274+
```python
7275+
from cloudflare.types.radar import (
7276+
CtSummaryResponse,
7277+
CtTimeseriesResponse,
7278+
CtTimeseriesGroupsResponse,
7279+
)
7280+
```
7281+
7282+
Methods:
7283+
7284+
- <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>
7285+
- <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>
7286+
- <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>
7287+
7288+
### Authorities
7289+
7290+
Types:
7291+
7292+
```python
7293+
from cloudflare.types.radar.ct import AuthorityListResponse, AuthorityGetResponse
7294+
```
7295+
7296+
Methods:
7297+
7298+
- <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>
7299+
- <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>
7300+
7301+
### Logs
7302+
7303+
Types:
7304+
7305+
```python
7306+
from cloudflare.types.radar.ct import LogListResponse, LogGetResponse
7307+
```
7308+
7309+
Methods:
7310+
7311+
- <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>
7312+
- <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>
7313+
72507314
## Annotations
72517315

72527316
Types:

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
@@ -8,6 +8,14 @@
88
AIResourceWithStreamingResponse,
99
AsyncAIResourceWithStreamingResponse,
1010
)
11+
from .bots import (
12+
BotsResource,
13+
AsyncBotsResource,
14+
BotsResourceWithRawResponse,
15+
AsyncBotsResourceWithRawResponse,
16+
BotsResourceWithStreamingResponse,
17+
AsyncBotsResourceWithStreamingResponse,
18+
)
1119
from .inference import (
1220
InferenceResource,
1321
AsyncInferenceResource,
@@ -38,6 +46,12 @@
3846
"AsyncInferenceResourceWithRawResponse",
3947
"InferenceResourceWithStreamingResponse",
4048
"AsyncInferenceResourceWithStreamingResponse",
49+
"BotsResource",
50+
"AsyncBotsResource",
51+
"BotsResourceWithRawResponse",
52+
"AsyncBotsResourceWithRawResponse",
53+
"BotsResourceWithStreamingResponse",
54+
"AsyncBotsResourceWithStreamingResponse",
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
@@ -2,6 +2,14 @@
22

33
from __future__ import annotations
44

5+
from .bots.bots import (
6+
BotsResource,
7+
AsyncBotsResource,
8+
BotsResourceWithRawResponse,
9+
AsyncBotsResourceWithRawResponse,
10+
BotsResourceWithStreamingResponse,
11+
AsyncBotsResourceWithStreamingResponse,
12+
)
513
from ...._compat import cached_property
614
from .to_markdown import (
715
ToMarkdownResource,
@@ -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 bots(self) -> BotsResource:
46+
return BotsResource(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 bots(self) -> AsyncBotsResource:
79+
return AsyncBotsResource(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 bots(self) -> BotsResourceWithRawResponse:
115+
return BotsResourceWithRawResponse(self._ai.bots)
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 bots(self) -> AsyncBotsResourceWithRawResponse:
132+
return AsyncBotsResourceWithRawResponse(self._ai.bots)
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 bots(self) -> BotsResourceWithStreamingResponse:
149+
return BotsResourceWithStreamingResponse(self._ai.bots)
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 bots(self) -> AsyncBotsResourceWithStreamingResponse:
166+
return AsyncBotsResourceWithStreamingResponse(self._ai.bots)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .bots import (
4+
BotsResource,
5+
AsyncBotsResource,
6+
BotsResourceWithRawResponse,
7+
AsyncBotsResourceWithRawResponse,
8+
BotsResourceWithStreamingResponse,
9+
AsyncBotsResourceWithStreamingResponse,
10+
)
11+
from .summary import (
12+
SummaryResource,
13+
AsyncSummaryResource,
14+
SummaryResourceWithRawResponse,
15+
AsyncSummaryResourceWithRawResponse,
16+
SummaryResourceWithStreamingResponse,
17+
AsyncSummaryResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"SummaryResource",
22+
"AsyncSummaryResource",
23+
"SummaryResourceWithRawResponse",
24+
"AsyncSummaryResourceWithRawResponse",
25+
"SummaryResourceWithStreamingResponse",
26+
"AsyncSummaryResourceWithStreamingResponse",
27+
"BotsResource",
28+
"AsyncBotsResource",
29+
"BotsResourceWithRawResponse",
30+
"AsyncBotsResourceWithRawResponse",
31+
"BotsResourceWithStreamingResponse",
32+
"AsyncBotsResourceWithStreamingResponse",
33+
]
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from .summary import (
6+
SummaryResource,
7+
AsyncSummaryResource,
8+
SummaryResourceWithRawResponse,
9+
AsyncSummaryResourceWithRawResponse,
10+
SummaryResourceWithStreamingResponse,
11+
AsyncSummaryResourceWithStreamingResponse,
12+
)
13+
from ....._compat import cached_property
14+
from ....._resource import SyncAPIResource, AsyncAPIResource
15+
16+
__all__ = ["BotsResource", "AsyncBotsResource"]
17+
18+
19+
class BotsResource(SyncAPIResource):
20+
@cached_property
21+
def summary(self) -> SummaryResource:
22+
return SummaryResource(self._client)
23+
24+
@cached_property
25+
def with_raw_response(self) -> BotsResourceWithRawResponse:
26+
"""
27+
This property can be used as a prefix for any HTTP method call to return
28+
the raw response object instead of the parsed content.
29+
30+
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
31+
"""
32+
return BotsResourceWithRawResponse(self)
33+
34+
@cached_property
35+
def with_streaming_response(self) -> BotsResourceWithStreamingResponse:
36+
"""
37+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
38+
39+
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
40+
"""
41+
return BotsResourceWithStreamingResponse(self)
42+
43+
44+
class AsyncBotsResource(AsyncAPIResource):
45+
@cached_property
46+
def summary(self) -> AsyncSummaryResource:
47+
return AsyncSummaryResource(self._client)
48+
49+
@cached_property
50+
def with_raw_response(self) -> AsyncBotsResourceWithRawResponse:
51+
"""
52+
This property can be used as a prefix for any HTTP method call to return
53+
the raw response object instead of the parsed content.
54+
55+
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
56+
"""
57+
return AsyncBotsResourceWithRawResponse(self)
58+
59+
@cached_property
60+
def with_streaming_response(self) -> AsyncBotsResourceWithStreamingResponse:
61+
"""
62+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
63+
64+
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
65+
"""
66+
return AsyncBotsResourceWithStreamingResponse(self)
67+
68+
69+
class BotsResourceWithRawResponse:
70+
def __init__(self, bots: BotsResource) -> None:
71+
self._bots = bots
72+
73+
@cached_property
74+
def summary(self) -> SummaryResourceWithRawResponse:
75+
return SummaryResourceWithRawResponse(self._bots.summary)
76+
77+
78+
class AsyncBotsResourceWithRawResponse:
79+
def __init__(self, bots: AsyncBotsResource) -> None:
80+
self._bots = bots
81+
82+
@cached_property
83+
def summary(self) -> AsyncSummaryResourceWithRawResponse:
84+
return AsyncSummaryResourceWithRawResponse(self._bots.summary)
85+
86+
87+
class BotsResourceWithStreamingResponse:
88+
def __init__(self, bots: BotsResource) -> None:
89+
self._bots = bots
90+
91+
@cached_property
92+
def summary(self) -> SummaryResourceWithStreamingResponse:
93+
return SummaryResourceWithStreamingResponse(self._bots.summary)
94+
95+
96+
class AsyncBotsResourceWithStreamingResponse:
97+
def __init__(self, bots: AsyncBotsResource) -> None:
98+
self._bots = bots
99+
100+
@cached_property
101+
def summary(self) -> AsyncSummaryResourceWithStreamingResponse:
102+
return AsyncSummaryResourceWithStreamingResponse(self._bots.summary)

0 commit comments

Comments
 (0)