"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from .v3_escalationpolicies_escalationpolicyresponse import (
    V3EscalationPoliciesEscalationPolicyResponse,
    V3EscalationPoliciesEscalationPolicyResponseTypedDict,
)
import io
import pydantic
from squadcast.types import BaseModel
from squadcast.utils import FieldMetadata, PathParamMetadata, RequestMetadata
from typing import IO, Union
from typing_extensions import Annotated, TypedDict


class EscalationPoliciesUpdateEscalationPolicyRequestTypedDict(TypedDict):
    escalation_policy_id: str
    r"""(Required) escalation policy ID"""
    v3_escalation_policies_update_escalation_policy_request: Union[
        bytes, IO[bytes], io.BufferedReader
    ]


class EscalationPoliciesUpdateEscalationPolicyRequest(BaseModel):
    escalation_policy_id: Annotated[
        str,
        pydantic.Field(alias="escalationPolicyID"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]
    r"""(Required) escalation policy ID"""

    v3_escalation_policies_update_escalation_policy_request: Annotated[
        Union[bytes, IO[bytes], io.BufferedReader],
        FieldMetadata(request=RequestMetadata(media_type="text/plain")),
    ]


class EscalationPoliciesUpdateEscalationPolicyResponseTypedDict(TypedDict):
    r"""The request has succeeded."""

    data: V3EscalationPoliciesEscalationPolicyResponseTypedDict
    r"""Represents an Escalation Policy in the system."""


class EscalationPoliciesUpdateEscalationPolicyResponse(BaseModel):
    r"""The request has succeeded."""

    data: V3EscalationPoliciesEscalationPolicyResponse
    r"""Represents an Escalation Policy in the system."""
