Alias for an action in the system.
| 562 | |
| 563 | |
| 564 | class ActionAliasAPI(BaseAPI, APIUIDMixin): |
| 565 | """ |
| 566 | Alias for an action in the system. |
| 567 | """ |
| 568 | |
| 569 | model = ActionAliasDB |
| 570 | schema = { |
| 571 | "title": "ActionAlias", |
| 572 | "description": "Alias for an action.", |
| 573 | "type": "object", |
| 574 | "properties": { |
| 575 | "id": { |
| 576 | "description": "The unique identifier for the action alias.", |
| 577 | "type": "string", |
| 578 | }, |
| 579 | "ref": { |
| 580 | "description": ( |
| 581 | "System computed user friendly reference for the alias. " |
| 582 | "Provided value will be overridden by computed value." |
| 583 | ), |
| 584 | "type": "string", |
| 585 | }, |
| 586 | "uid": {"type": "string"}, |
| 587 | "name": { |
| 588 | "type": "string", |
| 589 | "description": "Name of the action alias.", |
| 590 | "required": True, |
| 591 | }, |
| 592 | "pack": { |
| 593 | "description": "The content pack this actionalias belongs to.", |
| 594 | "type": "string", |
| 595 | "required": True, |
| 596 | }, |
| 597 | "description": { |
| 598 | "type": "string", |
| 599 | "description": "Description of the action alias.", |
| 600 | "default": None, |
| 601 | }, |
| 602 | "enabled": { |
| 603 | "description": "Flag indicating of action alias is enabled.", |
| 604 | "type": "boolean", |
| 605 | "default": True, |
| 606 | }, |
| 607 | "action_ref": { |
| 608 | "type": "string", |
| 609 | "description": "Reference to the aliased action.", |
| 610 | "required": True, |
| 611 | }, |
| 612 | "formats": { |
| 613 | "type": "array", |
| 614 | "items": { |
| 615 | "anyOf": [ |
| 616 | {"type": "string"}, |
| 617 | { |
| 618 | "type": "object", |
| 619 | "properties": { |
| 620 | "display": {"type": "string"}, |
| 621 | "representation": { |
no outgoing calls
no test coverage detected