here.content.utils.hmc_external_references module
here.content.utils.hmc_external_references module
Provides access to HMC external references
class here.content.utils.hmc_external_references.HMCExternalReferences
Bases: object
Provides access to HMC external references
classmethod check_catalog_access() bool
Verifies if the user has access to the HERE External-Reference catalog
classmethod pvid_to_segment(partition_id: str | int, pvid: str | int) Ref
Provides segment reference from HMC for the provided link PVID.
Parameters:
-
partition_id – id of the partition containing the link PVID.
-
pvid – PVID of the link to be mapped to segment reference.
Returns:
segment reference for the provided link pvid.
classmethod segment_to_pvid(partition_id: str | int, segment_ref: Ref) str | int | None
Provides link PVID for the segment reference from HMC .
Parameters:
-
partition_id – id of the partition containing the link PVID.
-
segment_ref – segment reference to be mapped to link PVID.
Returns:
link PVID for the provided segment ref.