def __init__(self, name, client=None, make_client_context=None, resolver=None):
        assert client is not None or make_client_context is not None,\
        "Must specify either client or make_client_context"
        assert not (client is not None and make_client_context is not None),\
        "Cannot specify both client and make_client_context"
        self.name = name
        if make_client_context:
            self.make_client_context = make_client_context
            self.used_client_context = True
        else:
            @contextmanager
            def noop_cm():
                yield client
            self.make_client_context = noop_cm
            self.used_client_context = False
        self._vclocks = {}
        if resolver:
            self.resolve = resolver
        self.client_id = None
Return a new Bucket for the named bucket, using the given client.
dataset/ETHPy150Open dieseldev/diesel/diesel/protocols/riak.py/Bucket.__init__