:right-sidebar: True Ref =================================================================== .. currentmodule:: gi.repository.Flatpak .. class:: Ref(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Subclasses: :class:`~gi.repository.Flatpak.BundleRef`, :class:`~gi.repository.Flatpak.InstalledRef`, :class:`~gi.repository.Flatpak.RelatedRef`, :class:`~gi.repository.Flatpak.RemoteRef` :Constructors: :: Ref(**properties) Methods ------- .. rst-class:: interim-class .. class:: Ref :no-index: .. method:: get_arch() -> str Gets the arch or the ref. .. method:: get_branch() -> str Gets the branch of the ref. .. method:: get_collection_id() -> str Gets the collection ID of the ref. .. method:: get_commit() -> str Gets the commit of the ref. .. method:: get_kind() -> ~gi.repository.Flatpak.RefKind Gets the kind of artifact that this ref refers to. .. method:: get_name() -> str Gets the name of the ref. .. classmethod:: parse() -> ~gi.repository.Flatpak.Ref Tries to parse a full ref name and return a :obj:`~gi.repository.Flatpak.Ref` (without a commit set) or fail if the ref is invalid somehow. Properties ---------- .. rst-class:: interim-class .. class:: Ref :no-index: .. attribute:: props.arch :type: str The type of the None singleton. .. attribute:: props.branch :type: str The type of the None singleton. .. attribute:: props.collection_id :type: str The type of the None singleton. .. attribute:: props.commit :type: str The type of the None singleton. .. attribute:: props.kind :type: ~gi.repository.Flatpak.RefKind The type of the None singleton. .. attribute:: props.name :type: str The type of the None singleton. Fields ------ .. rst-class:: interim-class .. class:: Ref :no-index: .. attribute:: parent