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