Did I find the right examples for you? yes no

All Samples(6)  |  Call(5)  |  Derive(1)  |  Import(0)

src/c/e/ceilometer-HEAD/ceilometer/api/controllers/v2.py   ceilometer(Download)
    """
 
    period = wsme.wsattr(wtypes.IntegerType(minimum=1), default=60)
    "The time range in seconds over which query"
 
    "The statistic to compare to the threshold"
 
    evaluation_periods = wsme.wsattr(wtypes.IntegerType(minimum=1), default=1)
    "The number of historical periods to evaluate the threshold"
 
    "Start point of the time constraint, in cron format"
 
    duration = wsme.wsattr(wtypes.IntegerType(minimum=0), mandatory=True)
    "How long the constraint should last, in seconds"
 

src/w/s/WSME-0.6/wsme/tests/test_types.py   WSME(Download)
    def test_validate_integer_type(self):
        v = types.IntegerType(minimum=1, maximum=10)
        v.validate(1)
        v.validate(5)
        v.validate(10)

src/w/s/wsme-HEAD/wsme/tests/test_types.py   wsme(Download)
    def test_validate_integer_type(self):
        v = types.IntegerType(minimum=1, maximum=10)
        v.validate(1)
        v.validate(5)
        v.validate(10)

src/c/l/climate-HEAD/climate/api/v2/controllers/types.py   climate(Download)
class IntegerType(wtypes.IntegerType):
    """A simple integer type. Can validate a value range.
 
    :param minimum: Possible minimum value
    :param maximum: Possible maximum value