# Path: aodh/utils.py
# def get_func_valid_keys(func):
#     return inspect.getfullargspec(func)[0]


import copy
import aodh
from aodh.utils import get_func_valid_keys
    return dict_to_update


class Model(object):
    """base class for storage api models."""

    def __init__(self, **kwds):
        self.fields = list(kwds)
        for k, v in kwds.items():
            setattr(self, k, v)

    def as_dict(self):
        d = {}
        for f in self.fields:
            v = getattr(self, f)
            if isinstance(v, Model):
                v = v.as_dict()
            elif isinstance(v, list) and v and isinstance(v[0], Model):
                v = [sub.as_dict() for sub in v]
            d[f] = v
        return d

    def __eq__(self, other):
        return self.as_dict() == other.as_dict()

    def __ne__(self, other):
        return not self.__eq__(other)

    @classmethod
    def get_field_names(cls):

# Path: aodh/utils.py
# def get_func_valid_keys(func):
#     return inspect.getfullargspec(func)[0]


# Path: aodh/storage/base.py
import copy
import aodh
from aodh.utils import get_func_valid_keys

    return dict_to_update


class Model(object):
    """base class for storage api models."""

    def __init__(self, **kwds):
        self.fields = list(kwds)
        for k, v in kwds.items():
            setattr(self, k, v)

    def as_dict(self):
        d = {}
        for f in self.fields:
            v = getattr(self, f)
            if isinstance(v, Model):
                v = v.as_dict()
            elif isinstance(v, list) and v and isinstance(v[0], Model):
                v = [sub.as_dict() for sub in v]
            d[f] = v
        return d

    def __eq__(self, other):
        return self.as_dict() == other.as_dict()

    def __ne__(self, other):
        return not self.__eq__(other)

    @classmethod
    def get_field_names(cls):

        fields = get_func_valid_keys(cls.__init__)