Skip to content

Commit 4f697b3

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat: OpenAPI spec update via Stainless API (#71)
1 parent c5ce2f3 commit 4f697b3

File tree

4 files changed

+66
-65
lines changed

4 files changed

+66
-65
lines changed

api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4829,7 +4829,7 @@ Methods:
48294829
Types:
48304830

48314831
```python
4832-
from cloudflare.types.request_tracers import HhgJaXcvTrace, TraceCreateResponse
4832+
from cloudflare.types.request_tracers import TraceCreateResponse
48334833
```
48344834

48354835
Methods:

src/cloudflare/types/request_tracers/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
from __future__ import annotations
44

5-
from .hhg_ja_xcv_trace import HhgJaXcvTrace as HhgJaXcvTrace
65
from .trace_create_params import TraceCreateParams as TraceCreateParams
76
from .trace_create_response import TraceCreateResponse as TraceCreateResponse

src/cloudflare/types/request_tracers/hhg_ja_xcv_trace.py

-49
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,76 @@
11
# File generated from our OpenAPI spec by Stainless.
22

3-
from __future__ import annotations
3+
from typing import List, Optional
44

5-
from typing import Optional
6-
7-
from ..._compat import PYDANTIC_V2
85
from ..._models import BaseModel
96

10-
__all__ = ["TraceCreateResponse"]
7+
__all__ = ["TraceCreateResponse", "Trace", "TraceTrace"]
118

129

13-
class TraceCreateResponse(BaseModel):
14-
status_code: Optional[int] = None
15-
"""HTTP Status code of zone response"""
10+
class TraceTrace(BaseModel):
11+
action: Optional[str] = None
12+
"""If step type is rule, then action performed by this rule"""
13+
14+
action_parameters: Optional[object] = None
15+
"""If step type is rule, then action parameters of this rule as JSON"""
16+
17+
description: Optional[str] = None
18+
"""If step type is rule or ruleset, the description of this entity"""
19+
20+
expression: Optional[str] = None
21+
"""If step type is rule, then expression used to match for this rule"""
22+
23+
kind: Optional[str] = None
24+
"""If step type is ruleset, then kind of this ruleset"""
25+
26+
matched: Optional[bool] = None
27+
"""Whether tracing step affected tracing request/response"""
28+
29+
name: Optional[str] = None
30+
"""If step type is ruleset, then name of this ruleset"""
31+
32+
step_name: Optional[str] = None
33+
"""Tracing step identifying name"""
34+
35+
trace: Optional[object] = None
36+
37+
type: Optional[str] = None
38+
"""Tracing step type"""
1639

17-
trace: Optional["HhgJaXcvTrace"] = None
1840

41+
class Trace(BaseModel):
42+
action: Optional[str] = None
43+
"""If step type is rule, then action performed by this rule"""
1944

20-
from .hhg_ja_xcv_trace import HhgJaXcvTrace
45+
action_parameters: Optional[object] = None
46+
"""If step type is rule, then action parameters of this rule as JSON"""
47+
48+
description: Optional[str] = None
49+
"""If step type is rule or ruleset, the description of this entity"""
50+
51+
expression: Optional[str] = None
52+
"""If step type is rule, then expression used to match for this rule"""
53+
54+
kind: Optional[str] = None
55+
"""If step type is ruleset, then kind of this ruleset"""
56+
57+
matched: Optional[bool] = None
58+
"""Whether tracing step affected tracing request/response"""
59+
60+
name: Optional[str] = None
61+
"""If step type is ruleset, then name of this ruleset"""
62+
63+
step_name: Optional[str] = None
64+
"""Tracing step identifying name"""
65+
66+
trace: Optional[List[TraceTrace]] = None
67+
68+
type: Optional[str] = None
69+
"""Tracing step type"""
70+
71+
72+
class TraceCreateResponse(BaseModel):
73+
status_code: Optional[int] = None
74+
"""HTTP Status code of zone response"""
2175

22-
if PYDANTIC_V2:
23-
TraceCreateResponse.model_rebuild()
24-
else:
25-
TraceCreateResponse.update_forward_refs() # type: ignore
76+
trace: Optional[List[Trace]] = None

0 commit comments

Comments
 (0)