(self)
| 9773 | return AgentRegistryLogCapture(enabled, open_error, open_error_reason, path) |
| 9774 | |
| 9775 | def to_dict(self) -> dict: |
| 9776 | result: dict = {} |
| 9777 | result["enabled"] = from_bool(self.enabled) |
| 9778 | if self.open_error is not None: |
| 9779 | result["openError"] = from_union([from_str, from_none], self.open_error) |
| 9780 | if self.open_error_reason is not None: |
| 9781 | result["openErrorReason"] = from_union([lambda x: to_enum(AgentRegistryLogCaptureOpenErrorReason, x), from_none], self.open_error_reason) |
| 9782 | if self.path is not None: |
| 9783 | result["path"] = from_union([from_str, from_none], self.path) |
| 9784 | return result |
| 9785 | |
| 9786 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 9787 | @dataclass |
nothing calls this directly
no test coverage detected