def __init__(self, url=None, image=None, requirements=None, code=None, spec=None, kind=None, name=None):
    self.url = url
    self.kind = kind
    self.image = image
    self.requirements = requirements
    self.name = name
    if hasattr(spec, 'to_dict'):
        spec = spec.to_dict()
    self.spec = spec
    self.code = code
    self._function = None
    self._address = None
def __init__(self, url=None, image=None, requirements=None, code=None, spec=None, kind=None, name=None):
    self.url = url
    self.kind = kind
    self.image = image
    self.requirements = requirements
    self.name = name
    if hasattr(spec, 'to_dict'):
        spec = spec.to_dict()
    self.spec = spec
    self.code = code
    self._function = None
    self._address = None