'Create a URL that refers to a specific version_number.'

def _generate_href(self, version='v3', path=None):

    base_url = self._get_base_url_without_version()
    href = (urllib.parse.urljoin(base_url, version).rstrip('/') + '/')
    if path:
        href += path.lstrip('/')
    return href
