def __init__(self, address, name, shared_access_key_name=None,<EOL>shared_access_key_value=None, debug=False, **kwargs):
self.container_id = "<STR_LIT>" + str(uuid.uuid4())[:<NUM_LIT:8>]<EOL>self.address = urlparse(address)<EOL>self.name = name<EOL>self.debug = debug<EOL>self.encoding = '<STR_LIT>'<EOL>self.connection = None<EOL>self.entity = kwargs.get('<STR_LIT>')<EOL>self.properties = dict(self.entity) if self.entity else {}<EOL>self.requires_session = self.properties.get('<STR_LIT>', False)<EOL>namespace, _, host_base = self.address.hostname.partition('<STR_LIT:.>')<EOL>url_username = unquote_plus(self.address.username) if self.address.username else None<EOL>shared_access_key_name = shared_access_key_name or url_username<EOL>url_password = unquote_plus(self.address.password) if self.address.password else None<EOL>shared_access_key_value = shared_access_key_value or url_password<EOL>if not shared_access_key_name or not shared_access_key_value:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self.entity_uri = "<STR_LIT>".format(self.address.hostname, self.address.path)<EOL>self.auth_config = {<EOL>'<STR_LIT>': "<STR_LIT>".format(self.address.hostname, self.address.path),<EOL>'<STR_LIT>': shared_access_key_name,<EOL>'<STR_LIT>': shared_access_key_value}<EOL>self.mgmt_client = kwargs.get('<STR_LIT>') or ServiceBusService(<EOL>service_namespace=namespace,<EOL>shared_access_key_name=shared_access_key_name,<EOL>shared_access_key_value=shared_access_key_value,<EOL>host_base="<STR_LIT:.>" + host_base)<EOL>
Construct a new Client to interact with the named Service Bus entity.

        :param address: The full URI of the Service Bus namespace. This can optionally
         include URL-encoded access name and key.
        :type address: str
        :param name: The name of the entity to which the Client will connect.
        :type name: str
        :param shared_access_key_name: The name of the shared access policy. This must be supplied
         if not encoded into the address.
        :type shared_access_key_name: str
        :param shared_access_key_value: The shared access key. This must be supplied if not encoded
         into the address.
        :type shared_access_key_value: str
        :param debug: Whether to output network trace logs to the logger. Default is `False`.
        :type debug: bool