"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""

from __future__ import annotations
import dataclasses
import requests as requests_http
from ..shared import routes as shared_routes
from typing import Optional



@dataclasses.dataclass
class UpdateRouteObjectRequest:
    id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }})
    r"""There is only one route entity and it should be accessed with id: default."""
    routes: Optional[shared_routes.Routes] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }})
    r"""Routes object"""
    




@dataclasses.dataclass
class UpdateRouteObjectResponse:
    content_type: str = dataclasses.field()
    status_code: int = dataclasses.field()
    raw_response: Optional[requests_http.Response] = dataclasses.field(default=None)
    routes: Optional[shared_routes.Routes] = dataclasses.field(default=None)
    r"""a list of Routes objects"""
    

