def get_repo_by_path(self, path: str) -> Optional[str]:
    "\n        Obtains Repos ID by path\n        :param path: path to a repository\n        :return: Repos ID if it exists, None if doesn't.\n        "
    try:
        result = self._do_api_call(WORKSPACE_GET_STATUS_ENDPOINT, {'path': path}, wrap_http_errors=False)
        if (result.get('object_type', '') == 'REPO'):
            return str(result['object_id'])
    except requests_exceptions.HTTPError as e:
        if (e.response.status_code != 404):
            raise e
    return None
Obtains Repos ID by path
:param path: path to a repository
:return: Repos ID if it exists, None if doesn't.
def get_repo_by_path(self, path: str) -> Optional[str]:
    "\n        Obtains Repos ID by path\n        :param path: path to a repository\n        :return: Repos ID if it exists, None if doesn't.\n        "
    try:
        result = self._do_api_call(WORKSPACE_GET_STATUS_ENDPOINT, {'path': path}, wrap_http_errors=False)
        if (result.get('object_type', ) == 'REPO'):
            return str(result['object_id'])
    except requests_exceptions.HTTPError as e:
        if (e.response.status_code != 404):
            raise e
    return None