Esempio n. 1
0
class BIAggregationFunctionBestSchema(Schema):
    type = ReqConstant(BIAggregationFunctionBest.type())
    count = ReqInteger(default=1)
    restrict_state = ReqInteger(default=2, validate=validate.OneOf([
        0,
        1,
        2,
    ]))
class BIAggregationFunctionWorstSchema(Schema):
    type = ReqConstant(BIAggregationFunctionWorst.type())
    count = ReqInteger(dump_default=1, example=2)
    restrict_state = ReqInteger(
        dump_default=2,
        validate=validate.OneOf([
            0,
            1,
            2,
        ]),
    )
Esempio n. 3
0
class BINodeVisHierarchyStyleConfigSchema(Schema):
    layer_height = ReqInteger(default=80, example=85)
    node_size = ReqInteger(default=25, example=40)
    rotation = ReqInteger(default=270, example=180)
Esempio n. 4
0
class BINodeVisRadialStyleConfigSchema(Schema):
    degree = ReqInteger(default=80)
    radius = ReqInteger(default=25)
    rotation = ReqInteger(default=270)
Esempio n. 5
0
class BIAggregationFunctionCountSettings(Schema):
    type = ReqString(default="count",
                     validate=validate.OneOf(["count", "percentage"]))
    value = ReqInteger(default=1)
Esempio n. 6
0
class BINodeVisHierarchyStyleSchema(Schema):
    type = ReqConstant("hierarchy")
    layer_height = ReqInteger(default=80, example=85)
    node_size = ReqInteger(default=25, example=40)
    rotation = ReqInteger(default=270, example=180)
Esempio n. 7
0
class BINodeVisRadialStyleSchema(Schema):
    type = ReqConstant("radial")
    degree = ReqInteger()
    radius = ReqInteger()
    rotation = ReqInteger()