# generated by datamodel-codegen:
#   filename:  OptionsMarketdata/OptionsWrapsRequest.json

from __future__ import annotations
from architect_py.grpc.models.OptionsMarketdata.OptionsWraps import OptionsWraps

from msgspec import Struct


class OptionsWrapsRequest(Struct, omit_defaults=True):
    underlying: str

    # Constructor that takes all field titles as arguments for convenience
    @classmethod
    def new(
        cls,
        underlying: str,
    ):
        return cls(
            underlying,
        )

    def __str__(self) -> str:
        return f"OptionsWrapsRequest(underlying={self.underlying})"

    @staticmethod
    def get_response_type():
        return OptionsWraps

    @staticmethod
    def get_unannotated_response_type():
        return OptionsWraps

    @staticmethod
    def get_route() -> str:
        return "/json.architect.OptionsMarketdata/OptionsWraps"

    @staticmethod
    def get_rpc_method():
        return "unary"
