'Print validated object as simplified YAML.
Returns:
Object as a simplified YAML string compatible with parsing using the
SafeLoader.'

def ToYAML(self):

    return yaml.dump(self.ToDict(), default_flow_style=False, Dumper=yaml.SafeDumper)
