Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 22, 2024
1 parent b4fbc33 commit 4964d0e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4086,7 +4086,7 @@ Methods:
Types:

```python
from cloudflare.types.request_tracers import Trace, TraceCreateResponse
from cloudflare.types.request_tracers import RequestTracerTrace, TraceCreateResponse
```

Methods:
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/types/request_tracers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

from __future__ import annotations

from .trace import Trace as Trace
from .trace_create_params import TraceCreateParams as TraceCreateParams
from .request_tracer_trace import RequestTracerTrace as RequestTracerTrace
from .trace_create_response import TraceCreateResponse as TraceCreateResponse
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
from ..._compat import PYDANTIC_V2
from ..._models import BaseModel

__all__ = ["Trace", "TraceItem"]
__all__ = ["RequestTracerTrace", "RequestTracerTraceItem"]


class TraceItem(BaseModel):
class RequestTracerTraceItem(BaseModel):
action: Optional[str] = None
"""If step type is rule, then action performed by this rule"""

Expand All @@ -35,15 +35,15 @@ class TraceItem(BaseModel):
step_name: Optional[str] = None
"""Tracing step identifying name"""

trace: Optional[Trace] = None
trace: Optional[RequestTracerTrace] = None

type: Optional[str] = None
"""Tracing step type"""


Trace = List[TraceItem]
RequestTracerTrace = List[RequestTracerTraceItem]

if PYDANTIC_V2:
TraceItem.model_rebuild()
RequestTracerTraceItem.model_rebuild()
else:
TraceItem.update_forward_refs() # type: ignore
RequestTracerTraceItem.update_forward_refs() # type: ignore
4 changes: 2 additions & 2 deletions src/cloudflare/types/request_tracers/trace_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class TraceCreateResponse(BaseModel):
status_code: Optional[int] = None
"""HTTP Status code of zone response"""

trace: Optional["Trace"] = None
trace: Optional["RequestTracerTrace"] = None


from .trace import Trace
from .request_tracer_trace import RequestTracerTrace

if PYDANTIC_V2:
TraceCreateResponse.model_rebuild()
Expand Down

0 comments on commit 4964d0e

Please sign in to comment.