Skip to main content

Client.get_path_and_version_id(api_name: str, /, *, denied_version_ids: Set[str] = frozenset({}), path_type: Literal[‘rest’, ‘ws’] = ‘rest’) → tuple[str, str]

Client.get_path_and_version_id(api_name: str, /, *, allowed_version_ids: Sequence[VersionIdT_co], denied_version_ids: Set[str] = frozenset({}), path_type: Literal[‘rest’, ‘ws’] = ‘rest’) → tuple[str, VersionIdT_co]

Return the matching (path, version_id). If allowed_version_ids is not None, the server versions will be iterated following the order of its elements.

Example

See also: http_client for an example of how this method can be used.