diff --git a/api.md b/api.md index c0bd9c00f29..cb165921c35 100644 --- a/api.md +++ b/api.md @@ -4829,7 +4829,7 @@ Methods: Types: ```python -from cloudflare.types.request_tracers import THy7ZvEaTrace, TraceCreateResponse +from cloudflare.types.request_tracers import TraceCreateResponse ``` Methods: diff --git a/src/cloudflare/types/request_tracers/__init__.py b/src/cloudflare/types/request_tracers/__init__.py index 26d411b0ca2..a4276d2691c 100644 --- a/src/cloudflare/types/request_tracers/__init__.py +++ b/src/cloudflare/types/request_tracers/__init__.py @@ -2,6 +2,5 @@ from __future__ import annotations -from .t_hy7_zv_ea_trace import THy7ZvEaTrace as THy7ZvEaTrace from .trace_create_params import TraceCreateParams as TraceCreateParams from .trace_create_response import TraceCreateResponse as TraceCreateResponse diff --git a/src/cloudflare/types/request_tracers/t_hy7_zv_ea_trace.py b/src/cloudflare/types/request_tracers/t_hy7_zv_ea_trace.py deleted file mode 100644 index d4cb9d9ee19..00000000000 --- a/src/cloudflare/types/request_tracers/t_hy7_zv_ea_trace.py +++ /dev/null @@ -1,49 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. - -from __future__ import annotations - -from typing import List, Optional - -from ..._compat import PYDANTIC_V2 -from ..._models import BaseModel - -__all__ = ["THy7ZvEaTrace", "THy7ZvEaTraceItem"] - - -class THy7ZvEaTraceItem(BaseModel): - action: Optional[str] = None - """If step type is rule, then action performed by this rule""" - - action_parameters: Optional[object] = None - """If step type is rule, then action parameters of this rule as JSON""" - - description: Optional[str] = None - """If step type is rule or ruleset, the description of this entity""" - - expression: Optional[str] = None - """If step type is rule, then expression used to match for this rule""" - - kind: Optional[str] = None - """If step type is ruleset, then kind of this ruleset""" - - matched: Optional[bool] = None - """Whether tracing step affected tracing request/response""" - - name: Optional[str] = None - """If step type is ruleset, then name of this ruleset""" - - step_name: Optional[str] = None - """Tracing step identifying name""" - - trace: Optional[THy7ZvEaTrace] = None - - type: Optional[str] = None - """Tracing step type""" - - -THy7ZvEaTrace = List[THy7ZvEaTraceItem] - -if PYDANTIC_V2: - THy7ZvEaTraceItem.model_rebuild() -else: - THy7ZvEaTraceItem.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 3bef910303f..801d9ed8ef7 100644 --- a/src/cloudflare/types/request_tracers/trace_create_response.py +++ b/src/cloudflare/types/request_tracers/trace_create_response.py @@ -1,25 +1,76 @@ # File generated from our OpenAPI spec by Stainless. -from __future__ import annotations +from typing import List, Optional -from typing import Optional - -from ..._compat import PYDANTIC_V2 from ..._models import BaseModel -__all__ = ["TraceCreateResponse"] +__all__ = ["TraceCreateResponse", "Trace", "TraceTrace"] -class TraceCreateResponse(BaseModel): - status_code: Optional[int] = None - """HTTP Status code of zone response""" +class TraceTrace(BaseModel): + action: Optional[str] = None + """If step type is rule, then action performed by this rule""" + + action_parameters: Optional[object] = None + """If step type is rule, then action parameters of this rule as JSON""" + + description: Optional[str] = None + """If step type is rule or ruleset, the description of this entity""" + + expression: Optional[str] = None + """If step type is rule, then expression used to match for this rule""" + + kind: Optional[str] = None + """If step type is ruleset, then kind of this ruleset""" + + matched: Optional[bool] = None + """Whether tracing step affected tracing request/response""" + + name: Optional[str] = None + """If step type is ruleset, then name of this ruleset""" + + step_name: Optional[str] = None + """Tracing step identifying name""" + + trace: Optional[object] = None + + type: Optional[str] = None + """Tracing step type""" - trace: Optional["THy7ZvEaTrace"] = None +class Trace(BaseModel): + action: Optional[str] = None + """If step type is rule, then action performed by this rule""" -from .t_hy7_zv_ea_trace import THy7ZvEaTrace + action_parameters: Optional[object] = None + """If step type is rule, then action parameters of this rule as JSON""" + + description: Optional[str] = None + """If step type is rule or ruleset, the description of this entity""" + + expression: Optional[str] = None + """If step type is rule, then expression used to match for this rule""" + + kind: Optional[str] = None + """If step type is ruleset, then kind of this ruleset""" + + matched: Optional[bool] = None + """Whether tracing step affected tracing request/response""" + + name: Optional[str] = None + """If step type is ruleset, then name of this ruleset""" + + step_name: Optional[str] = None + """Tracing step identifying name""" + + trace: Optional[List[TraceTrace]] = None + + type: Optional[str] = None + """Tracing step type""" + + +class TraceCreateResponse(BaseModel): + status_code: Optional[int] = None + """HTTP Status code of zone response""" -if PYDANTIC_V2: - TraceCreateResponse.model_rebuild() -else: - TraceCreateResponse.update_forward_refs() # type: ignore + trace: Optional[List[Trace]] = None