Exemple #1
0
class User(Model):
    info = fields.Model(UserInfo)
    enabled = fields.Boolean(default=True)
    state = fields.Enum(UserState, default=UserState.Ready)
Exemple #2
0
 class SimpleBoolModel(Model):
     enabled = fields.Boolean()
Exemple #3
0
 class SimpleMergeModel(Model):
     name = fields.String()
     enabled = fields.Boolean(default=True)
Exemple #4
0
class ClusterConfiguration(aztk.models.ClusterConfiguration):
    spark_configuration = fields.Model(SparkConfiguration, default=None)
    worker_on_master = fields.Boolean(default=True)