in oss2/models.py [0:0]
def __init__(self,pass_all=None, pass_list=None, remove_list=None, set_list=None):
if pass_list is not None:
if not isinstance(pass_list, list):
raise ClientError('The type of pass_list should be list.')
if len(pass_list) > 10:
raise ClientError('The capacity of pass_list should not > 10!')
if remove_list is not None:
if not isinstance(remove_list, list):
raise ClientError('The type of remove_list should be list.')
if len(remove_list) > 10:
raise ClientError('The capacity of remove_list should not > 10!')
if set_list is not None:
if not isinstance(set_list, list):
raise ClientError('The type of set_list should be list.')
if len(set_list) > 10:
raise ClientError('The capacity of set_list should not > 10!')
self.pass_all = pass_all
self.pass_list = pass_list or []
self.remove_list = remove_list or []
self.set_list = set_list or []