def assert_type(self):
    if (self.code is not None):
        for value in self.code:
            if ((value is not None) and (value.lower() not in ['read', 'vread', 'update', 'patch', 'delete', 'history-instance', 'history-type', 'create', 'search-type'])):
                raise ValueError('"{}" does not match possible values: {}'.format(value, 'read, vread, update, patch, delete, history-instance, history-type, create, search-type'))
def assert_type(self):
    if (self.code is not None):
        for value in self.code:
            if ((value is not None) and (value.lower() not in ['read', 'vread', 'update', 'patch', 'delete', 'history-instance', 'history-type', 'create', 'search-type'])):
                raise ValueError('"{}" does not match possible values: {}'.format(value, 'read, vread, update, patch, delete, history-instance, history-type, create, search-type'))