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

from __future__ import annotations
from .v3_services_iagconfigrequest import (
    V3ServicesIAGConfigRequest,
    V3ServicesIAGConfigRequestTypedDict,
)
import pydantic
from squadcast.types import BaseModel
from squadcast.utils import FieldMetadata, PathParamMetadata, RequestMetadata
from typing_extensions import Annotated, TypedDict


class ServicesCreateOrUpdateIAGConfigRequestTypedDict(TypedDict):
    service_id: str
    v3_services_iag_config_request: V3ServicesIAGConfigRequestTypedDict


class ServicesCreateOrUpdateIAGConfigRequest(BaseModel):
    service_id: Annotated[
        str,
        pydantic.Field(alias="serviceID"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]

    v3_services_iag_config_request: Annotated[
        V3ServicesIAGConfigRequest,
        FieldMetadata(request=RequestMetadata(media_type="application/json")),
    ]


class ServicesCreateOrUpdateIAGConfigDataTypedDict(TypedDict):
    msg: str


class ServicesCreateOrUpdateIAGConfigData(BaseModel):
    msg: str


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

    data: ServicesCreateOrUpdateIAGConfigDataTypedDict


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

    data: ServicesCreateOrUpdateIAGConfigData
