# generated by datamodel-codegen:
#   filename:  Cpty/CptyStatusRequest.json

from __future__ import annotations
from architect_py.grpc.models.Cpty.CptyStatus import CptyStatus

from typing import Optional

from msgspec import Struct


class CptyStatusRequest(Struct, omit_defaults=True):
    kind: str
    instance: Optional[str] = None

    # Constructor that takes all field titles as arguments for convenience
    @classmethod
    def new(
        cls,
        kind: str,
        instance: Optional[str] = None,
    ):
        return cls(
            kind,
            instance,
        )

    def __str__(self) -> str:
        return f"CptyStatusRequest(kind={self.kind},instance={self.instance})"

    @staticmethod
    def get_response_type():
        return CptyStatus

    @staticmethod
    def get_unannotated_response_type():
        return CptyStatus

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

    @staticmethod
    def get_rpc_method():
        return "unary"
