def fix_uris(self, host_url):
        ret_val = copy.deepcopy(self)
        ret_val.uri = uris.TYPE_DEF_URI_STR % (host_url, ret_val.uri)

        # 'inherits_from' is optional
        if ret_val.inherits_from:
            for ih_link in ret_val.inherits_from:
                ih_link.href = uris.TYPE_DEF_URI_STR % (host_url, ih_link.href)

        # 'attribute_definition_links' is required
        for ad_link in ret_val.attribute_definition_links:
            ad_link.fix_uris(host_url)

        return ret_val
Get cost classes from configuration.
dataset/ETHPy150Open openstack/solum/solum/api/controllers/camp/v1_1/datamodel/type_definitions.py/TypeDefinition.fix_uris--crossover with--dataset/ETHPy150Open openstack/nova-solver-scheduler/nova_solverscheduler/scheduler/solvers/__init__.py/BaseHostSolver._get_cost_classes