Canvas action invocation parameters.
| 677 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 678 | @dataclass |
| 679 | class CanvasActionInvokeRequest: |
| 680 | """Canvas action invocation parameters.""" |
| 681 | |
| 682 | action_name: str |
| 683 | """Action name to invoke""" |
| 684 | |
| 685 | instance_id: str |
| 686 | """Open canvas instance identifier""" |
| 687 | |
| 688 | input: Any = None |
| 689 | """Action input""" |
| 690 | |
| 691 | @staticmethod |
| 692 | def from_dict(obj: Any) -> 'CanvasActionInvokeRequest': |
| 693 | assert isinstance(obj, dict) |
| 694 | action_name = from_str(obj.get("actionName")) |
| 695 | instance_id = from_str(obj.get("instanceId")) |
| 696 | input = obj.get("input") |
| 697 | return CanvasActionInvokeRequest(action_name, instance_id, input) |
| 698 | |
| 699 | def to_dict(self) -> dict: |
| 700 | result: dict = {} |
| 701 | result["actionName"] = from_str(self.action_name) |
| 702 | result["instanceId"] = from_str(self.instance_id) |
| 703 | if self.input is not None: |
| 704 | result["input"] = self.input |
| 705 | return result |
| 706 | |
| 707 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 708 | @dataclass |
no outgoing calls
searching dependent graphs…