(self)
return d
Render this object as a dict of its fields.
Render this object as a dict of its fields.
Render this object as a dict of its fields .
def as_dict(self):
        """Render this object as a dict of its fields."""

        # Override this for old bay values
        d = super(Bay, self).as_dict()

        d['cluster_template_id'] = d['baymodel_id']
        del d['baymodel_id']

        d['create_timeout'] = d['bay_create_timeout']
        del d['bay_create_timeout']

        if 'bay_faults' in d.keys():
            d['faults'] = d['bay_faults']
            del d['bay_faults']

        return d
def as_dict ( self ) : # Override this for old bay values d = super ( Bay , self ) . as_dict ( ) d [ 'cluster_template_id' ] = d [ 'baymodel_id' ] del d [ 'baymodel_id' ] d [ 'create_timeout' ] = d [ 'bay_create_timeout' ] del d [ 'bay_create_timeout' ] if 'bay_faults' in d . keys ( ) : d [ 'faults' ] = d [ 'bay_faults' ] del d [ 'bay_faults' ] return d