def get_url_map(properties, res_name, project_id):
    ' Creates a UrlMap resource. '
    spec = copy.deepcopy(properties)
    spec['project'] = project_id
    spec['name'] = properties.get('name', res_name)
    update_refs_recursively(spec)
    resource = {'name': res_name, 'type': 'url_map.py', 'properties': spec}
    self_link = '$(ref.{}.selfLink)'.format(res_name)
    return (self_link, [resource], [{'name': 'urlMapName', 'value': '$(ref.{}.name)'.format(res_name)}, {'name': 'urlMapSelfLink', 'value': self_link}])
Creates a UrlMap resource.
def get_url_map(properties, res_name, project_id):
    '  '
    spec = copy.deepcopy(properties)
    spec['project'] = project_id
    spec['name'] = properties.get('name', res_name)
    update_refs_recursively(spec)
    resource = {'name': res_name, 'type': 'url_map.py', 'properties': spec}
    self_link = '$(ref.{}.selfLink)'.format(res_name)
    return (self_link, [resource], [{'name': 'urlMapName', 'value': '$(ref.{}.name)'.format(res_name)}, {'name': 'urlMapSelfLink', 'value': self_link}])