(self, tenant_id, prefix_map, base_uri)
Get all the :obj:`mimic.catalog.Entry` objects for the given tenant ID,
        populating a mapping of :obj:`mimic.catalog.Entry` to URI prefixes (as
        described by :pyobj:`MimicCore.uri_for_service`) for that entry.

        :param unicode tenant_id: A fictional tenant ID.
        :param dict prefix_map: a mapping of entries to uris
        :param str base_uri: the base uri to use instead of the default - most
            likely comes from a request URI

        :return: The full URI locating the service for that region
Get all the :obj:`mimic.catalog.Entry` objects for the given tenant ID,
        populating a mapping of :obj:`mimic.catalog.Entry` to URI prefixes (as
        described by :pyobj:`MimicCore.uri_for_service`) for that entry.
Get all the : obj : mimic . catalog . Entry objects for the given tenant ID populating a mapping of : obj : mimic . catalog . Entry to URI prefixes ( as described by : pyobj : MimicCore . uri_for_service ) for that entry .
def entries_for_tenant(self, tenant_id, prefix_map, base_uri):
        """
        Get all the :obj:`mimic.catalog.Entry` objects for the given tenant ID,
        populating a mapping of :obj:`mimic.catalog.Entry` to URI prefixes (as
        described by :pyobj:`MimicCore.uri_for_service`) for that entry.

        :param unicode tenant_id: A fictional tenant ID.
        :param dict prefix_map: a mapping of entries to uris
        :param str base_uri: the base uri to use instead of the default - most
            likely comes from a request URI

        :return: The full URI locating the service for that region
        """
        # Return all the external APIs
        for service_id, api in self._uuid_to_api_external.items():
            for entry in api.catalog_entries(tenant_id):
                for endpoint in entry.endpoints:
                    prefix_map[endpoint] = api.uri_for_service(
                        endpoint.region, service_id
                    )
                yield entry

        # Return all the internal APIs
        for service_id, api in self._uuid_to_api_internal.items():
            for entry in api.catalog_entries(tenant_id):
                for endpoint in entry.endpoints:
                    prefix_map[endpoint] = self.uri_for_service(
                        endpoint.region, service_id, base_uri
                    )
                yield entry
def entries_for_tenant ( self , tenant_id , prefix_map , base_uri ) : # Return all the external APIs for service_id , api in self . _uuid_to_api_external . items ( ) : for entry in api . catalog_entries ( tenant_id ) : for endpoint in entry . endpoints : prefix_map [ endpoint ] = api . uri_for_service ( endpoint . region , service_id ) yield entry # Return all the internal APIs for service_id , api in self . _uuid_to_api_internal . items ( ) : for entry in api . catalog_entries ( tenant_id ) : for endpoint in entry . endpoints : prefix_map [ endpoint ] = self . uri_for_service ( endpoint . region , service_id , base_uri ) yield entry