@classmethod
    def fromstring(cls, value):
        return getattr(cls, value.upper(), None)
Return the state object attribute that matches the string
dataset/ETHPy150Open apache/libcloud/libcloud/compute/types.py/Type.fromstring