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.

parse(ref: str) Ref

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

Parameters:

ref – A string ref name, such as “app/org.test.App/x86_64/master”

Properties

class Ref
props.arch: str
props.branch: str
props.collection_id: str
props.commit: str
props.kind: RefKind
props.name: str

Fields

class Ref
parent