Pending command request ID and an optional error if the client handler failed.
| 914 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 915 | @dataclass |
| 916 | class CommandsHandlePendingCommandRequest: |
| 917 | """Pending command request ID and an optional error if the client handler failed.""" |
| 918 | |
| 919 | request_id: str |
| 920 | """Request ID from the command invocation event""" |
| 921 | |
| 922 | error: str | None = None |
| 923 | """Error message if the command handler failed""" |
| 924 | |
| 925 | @staticmethod |
| 926 | def from_dict(obj: Any) -> 'CommandsHandlePendingCommandRequest': |
| 927 | assert isinstance(obj, dict) |
| 928 | request_id = from_str(obj.get("requestId")) |
| 929 | error = from_union([from_str, from_none], obj.get("error")) |
| 930 | return CommandsHandlePendingCommandRequest(request_id, error) |
| 931 | |
| 932 | def to_dict(self) -> dict: |
| 933 | result: dict = {} |
| 934 | result["requestId"] = from_str(self.request_id) |
| 935 | if self.error is not None: |
| 936 | result["error"] = from_union([from_str, from_none], self.error) |
| 937 | return result |
| 938 | |
| 939 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 940 | @dataclass |
no outgoing calls
searching dependent graphs…