def _string_to_record_type(string):
 string = string.upper()
 record_type = getattr(RecordType, string)
 return record_type

def _string_to_record_type ( string ) : string = string . upper ( ) record_type = getattr ( RecordType , string ) return record_type
return a string representation of a dns record type to a libcloud recordtype enum .