write_yaml_to_object

health_azure.write_yaml_to_object(o, yaml_string, strict=False)[source]

Writes a serialized object in YAML format back into an object, assuming that the attributes of the object and the YAML field names are in sync.

Parameters

strict (bool) – If True, any mismatch of field names will raise a ValueError. If False, only a warning will be

printed. Note that the object may have been modified even if an error is raised. :type o: Any :param o: The object to write to. :type yaml_string: str :param yaml_string: A YAML formatted string with attribute names and values.

Return type

None