

def validate(self):
    if ('type' in mon_type.resource):
        mon_type = self.resource['type']
        if (mon_type not in ['PING', 'TCP', 'HTTP', 'HTTPS']):
            raise ValueError('The type attribute must be either PING, TCP, HTTP or HTTPS')
    return True

dataset/ETHPy150Open cloudtools/troposphere/troposphere/openstack/neutron.py HealthMonitor.validate/VarMisuse@14/17 `self`->`mon_type`