Flatpak.Ref¶
- Subclasses:
Flatpak.BundleRef
,Flatpak.InstalledRef
,Flatpak.RelatedRef
,Flatpak.RemoteRef
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The architecture of the application or runtime |
||
r/w/co |
The branch of the application or runtime |
||
r/w/co |
The collection ID |
||
r/w/co |
The commit |
||
r/w/co |
The kind of artifact |
||
r/w/co |
The name of the application or runtime |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Flatpak.Ref(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod parse(ref)¶
- Parameters:
ref (
str
) – A string ref name, such as “app/org.test.App/x86_64/master”- Raises:
- Returns:
an
Flatpak.Ref
, orNone
- Return type:
Tries to parse a full ref name and return a
Flatpak.Ref
(without a commit set) or fail if the ref is invalid somehow.
- format_ref()¶
- Returns:
string representation
- Return type:
Convert an
Flatpak.Ref
object into a string representation that can be parsed byFlatpak.Ref.parse
().
- format_ref_cached()¶
- Returns:
string representation
- Return type:
Like
Flatpak.Ref.format_ref
() but this returns the same string each time it’s called rather than allocating a new one.New in version 1.9.1.
- get_kind()¶
- Returns:
the kind of artifact
- Return type:
Gets the kind of artifact that this ref refers to.
Property Details¶
- Flatpak.Ref.props.arch¶
- Name:
arch
- Type:
- Default Value:
- Flags:
The architecture of the application or runtime
- Flatpak.Ref.props.branch¶
- Name:
branch
- Type:
- Default Value:
- Flags:
The branch of the application or runtime
- Flatpak.Ref.props.collection_id¶
- Name:
collection-id
- Type:
- Default Value:
- Flags:
The collection ID
- Flatpak.Ref.props.commit¶
- Name:
commit
- Type:
- Default Value:
- Flags:
The commit
- Flatpak.Ref.props.kind¶
- Name:
kind
- Type:
- Default Value:
- Flags:
The kind of artifact