return DaemonDescription.from_json(self.to_json())
@staticmethod
- def yaml_representer(dumper: 'yaml.SafeDumper', data: 'DaemonDescription') -> Any:
+ def yaml_representer(dumper: 'yaml.Dumper', data: 'DaemonDescription') -> yaml.Node:
return dumper.represent_dict(cast(Mapping, data.to_json().items()))
return cls(spec=spec, events=events, **c_status)
@staticmethod
- def yaml_representer(dumper: 'yaml.SafeDumper', data: 'ServiceDescription') -> Any:
+ def yaml_representer(dumper: 'yaml.Dumper', data: 'ServiceDescription') -> yaml.Node:
return dumper.represent_dict(cast(Mapping, data.to_json().items()))
return _cls
@staticmethod
- def yaml_representer(dumper: 'yaml.SafeDumper', data: 'HostDetails') -> Any:
+ def yaml_representer(dumper: 'yaml.Dumper', data: 'HostDetails') -> yaml.Node:
return dumper.represent_dict(cast(Mapping, data.to_json().items()))