

def __init__(self, *args, **kwargs):
    self.meta = self.meta.copy()
    if (kwargs.get('client') is not None):
        self.meta.client = kwargs.get('client')
    else:
        self.meta.client = boto3.client(self.meta.service_name)
    for (i, value) in enumerate(args):
        setattr(self, ('_' + self.meta.identifiers[i]), value)
    for (name, value) in kwargs.items():
        if (name == 'client'):
            continue
        if (name not in self.meta.identifiers):
            raise ValueError('Unknown keyword argument: {0}'.format(name))
        setattr(self, ('_' + name), value)
    for identifier in self.meta.identifiers:
        if (getattr(self, identifier) is None):
            raise ValueError('Required parameter {0} not set'.format(identifier))

dataset/ETHPy150Open boto/boto3/boto3/resources/base.py ServiceResource.__init__/original