plexus.cli.shared.identifier_resolution module
Shared functions for resolving identifiers to IDs.
- async plexus.cli.shared.identifier_resolution.resolve_data_source(client, identifier: str)
Resolve a DataSource identifier to a DataSource object.
- Args:
client: The API client identifier: The identifier to resolve (ID, key, or name)
- Returns:
The DataSource object if found, None otherwise
- plexus.cli.shared.identifier_resolution.resolve_item_identifier(client, identifier: str, account_id: str = None)
Resolve an item identifier to its ID.
- plexus.cli.shared.identifier_resolution.resolve_item_reference(client, identifier: str, account_id: str = None) → Tuple[str, str] | None
Resolve an item identifier to its item ID and resolution source.
- Args:
client: The API client identifier: The identifier to resolve (ID or any identifier value) account_id: Optional account ID to limit search scope
- Returns:
Tuple of (item_id, resolution_source) if found, None otherwise
- plexus.cli.shared.identifier_resolution.resolve_score_identifier(client, scorecard_id: str, identifier: str)
Resolve a score identifier to its ID within a specific scorecard.
- Args:
client: The API client scorecard_id: The ID of the scorecard containing the score identifier: The identifier to resolve (ID, name, key, or external ID)
- Returns:
The score ID if found, None otherwise
- plexus.cli.shared.identifier_resolution.resolve_scorecard_identifier(client, identifier)
Resolve a scorecard identifier to its ID.