Ref#

class Ref(**properties: Any)#

Superclasses: Object

Subclasses: BundleRef, InstalledRef, RelatedRef, RemoteRef

Constructors:

Ref(**properties)

Methods#

class Ref
get_arch() str#

Gets the arch or the ref.

get_branch() str#

Gets the branch of the ref.

get_collection_id() str#

Gets the collection ID of the ref.

get_commit() str#

Gets the commit of the ref.

get_kind() RefKind#

Gets the kind of artifact that this ref refers to.

get_name() str#

Gets the name of the ref.

classmethod parse() Ref#

Tries to parse a full ref name and return a Ref (without a commit set) or fail if the ref is invalid somehow.

Properties#

class Ref
props.arch: str#

The type of the None singleton.

props.branch: str#

The type of the None singleton.

props.collection_id: str#

The type of the None singleton.

props.commit: str#

The type of the None singleton.

props.kind: RefKind#

The type of the None singleton.

props.name: str#

The type of the None singleton.

Fields#

class Ref
parent#