def from_inquiry_api(cls, inquiry_api, mask_secrets=False):
        """Allows translation of InquiryAPI directly to InquiryResponseAPI

        This bypasses the DB modeling, since there's no DB model for Inquiries yet.
        """

        return cls(
            id=getattr(inquiry_api, "id", None),
            route=getattr(inquiry_api, "route", None),
            ttl=getattr(inquiry_api, "ttl", None),
            users=getattr(inquiry_api, "users", None),
            roles=getattr(inquiry_api, "roles", None),
            schema=getattr(inquiry_api, "schema", None),
        )
Allows translation of InquiryAPI directly to InquiryResponseAPI

        This bypasses the DB modeling, since there's no DB model for Inquiries yet.
        
st2common/st2common/models/api/inquiry.py