@classmethod
    def from_config_dict(cls, name, obj):
        if 'pool' not in obj:
            log_msg = ('"{}" is missing a mandatory parameter "pool"'
                       .format(name))
            LOG.error(log_msg)
            raise Error(log_msg)
         
        if 'ttl' not in obj:
            log_msg = ('"{}" is missing a mandatory parameter "ttl"'
                       .format(name))
            LOG.error(log_msg)
            raise Error(log_msg)
 
        return cls(name=name, pool_name=obj['pool'], ttl=obj['ttl'])
Build a GlobalName object from a config dict.
dataset/ETHPy150Open polaris-gslb/polaris-gslb/polaris_health/state/globalname.py/GlobalName.from_config_dict