def resolve_url(properties, seqid, path_type):
    """Resolves a refget request to a cloud storage object url

    Arguments:
        properties (Properties): runtime properties containing cloud storage
            base url, and url paths to sequences and metadata
        seqid (str): Requested sequence (checksum identifier)
        path_type (str): 'sequence' for sequence requests, 
            'metadata' for metadata requests
    
    Returns:
        (str): url pointing to requested object in cloud storage
    """

    path_props = {
        "sequence": "source.sequence_path",
        "metadata": "source.metadata_path"
    }

    base_url = properties.get("source.base_url")
    url_path = properties.get(path_props[path_type])
    template = base_url + url_path
    url = template.format(seqid=seqid)
    return url