(self, region, service_id, base_uri)
return str(URLPath.fromString(base_uri)
                   .child(b"mimicking").child(service_id.encode("utf-8"))
                   .child(region.encode("utf-8")).child(b""))
Generate a URI prefix for a given region and service ID.

        Each plugin loaded into mimic generates a list of catalog entries; each
        catalog entry has a list of endpoints.  Each endpoint has a URI
        associated with it, which we call a "URI prefix", because the endpoint
        will have numerous other URIs beneath it in the hierarchy, generally
        starting with a version number and tenant ID.  The URI prefixes
        generated for this function point to the top of the endpoint's
        hierarchy, not including any tenant information.

        :param unicode region: the name of the region that the service resource
            exists within.
        :param unicode service_id: the UUID for the service for the specified
            region
        :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
        :rtype: ``str``
Generate a URI prefix for a given region and service ID.
Generate a URI prefix for a given region and service ID .
def uri_for_service(self, region, service_id, base_uri):
        """
        Generate a URI prefix for a given region and service ID.

        Each plugin loaded into mimic generates a list of catalog entries; each
        catalog entry has a list of endpoints.  Each endpoint has a URI
        associated with it, which we call a "URI prefix", because the endpoint
        will have numerous other URIs beneath it in the hierarchy, generally
        starting with a version number and tenant ID.  The URI prefixes
        generated for this function point to the top of the endpoint's
        hierarchy, not including any tenant information.

        :param unicode region: the name of the region that the service resource
            exists within.
        :param unicode service_id: the UUID for the service for the specified
            region
        :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
        :rtype: ``str``
        """
        return str(URLPath.fromString(base_uri)
                   .child(b"mimicking").child(service_id.encode("utf-8"))
                   .child(region.encode("utf-8")).child(b""))
def uri_for_service ( self , region , service_id , base_uri ) : return str ( URLPath . fromString ( base_uri ) . child ( b"mimicking" ) . child ( service_id . encode ( "utf-8" ) ) . child ( region . encode ( "utf-8" ) ) . child ( b"" ) )