diff --git a/api.md b/api.md index 40717fff0e4..9c9b48a0d56 100644 --- a/api.md +++ b/api.md @@ -4086,7 +4086,7 @@ Methods: Types: ```python -from cloudflare.types.request_tracers import Trace, TraceCreateResponse +from cloudflare.types.request_tracers import RequestTracerTrace, TraceCreateResponse ``` Methods: diff --git a/src/cloudflare/types/request_tracers/__init__.py b/src/cloudflare/types/request_tracers/__init__.py index a1d489d78fa..fb3abea3227 100644 --- a/src/cloudflare/types/request_tracers/__init__.py +++ b/src/cloudflare/types/request_tracers/__init__.py @@ -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 diff --git a/src/cloudflare/types/request_tracers/trace.py b/src/cloudflare/types/request_tracers/request_tracer_trace.py similarity index 78% rename from src/cloudflare/types/request_tracers/trace.py rename to src/cloudflare/types/request_tracers/request_tracer_trace.py index 32e14ff128c..e98038cc66d 100644 --- a/src/cloudflare/types/request_tracers/trace.py +++ b/src/cloudflare/types/request_tracers/request_tracer_trace.py @@ -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""" @@ -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 diff --git a/src/cloudflare/types/request_tracers/trace_create_response.py b/src/cloudflare/types/request_tracers/trace_create_response.py index 3e72c080e9a..2738569266b 100644 --- a/src/cloudflare/types/request_tracers/trace_create_response.py +++ b/src/cloudflare/types/request_tracers/trace_create_response.py @@ -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()