Convert configuration to dictionary. Returns: Dictionary representation of the configuration
(self)
| 111 | ) |
| 112 | |
| 113 | def to_dict(self) -> Dict[str, Any]: |
| 114 | """ |
| 115 | Convert configuration to dictionary. |
| 116 | |
| 117 | Returns: |
| 118 | Dictionary representation of the configuration |
| 119 | """ |
| 120 | return { |
| 121 | "enabled": self.enabled, |
| 122 | "transport_type": self.transport_type, |
| 123 | "transport_url": self.transport_url, |
| 124 | "transport_endpoint": self.transport_endpoint, |
| 125 | "api_key": self.api_key, |
| 126 | "namespace": self.namespace, |
| 127 | "producer": self.producer, |
| 128 | "emit_on_apply": self.emit_on_apply, |
| 129 | "emit_on_materialize": self.emit_on_materialize, |
| 130 | "additional_config": self.additional_config, |
| 131 | } |
| 132 | |
| 133 | def get_transport_config(self) -> Optional[Dict[str, Any]]: |
| 134 | """ |
no outgoing calls