def get_endpoint(self, datacenter=None, network=None):
        """Get a message queue endpoint based on datacenter/network type.

        :param datacenter: datacenter code
        :param network: network ('public' or 'private')
        """
        if datacenter is None:
            datacenter = 'dal05'
        if network is None:
            network = 'public'
        try:
            host = ENDPOINTS[datacenter][network]
            return "https://%s" % host
        except __HOLE__:
            raise TypeError('Invalid endpoint %s/%s'
                            % (datacenter, network))
dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/managers/messaging.py/MessagingManager.get_endpoint