AppStreamGlib.Bundle¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStreamGlib.Bundle(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod kind_from_string(kind)[source]¶
- Parameters:
kind (
str
) – the string.- Returns:
a
AppStreamGlib.BundleKind
, orAppStreamGlib.BundleKind.UNKNOWN
for unknown.- Return type:
Converts the text representation to an enumerated value.
New in version 0.3.5.
- classmethod kind_to_string(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.BundleKind
) – theAppStreamGlib.BundleKind
.- Returns:
string version of kind
- Return type:
Converts the enumerated value to an text representation.
New in version 0.3.5.
- classmethod new()[source]¶
- Returns:
- Return type:
Creates a new
AppStreamGlib.Bundle
.New in version 0.3.5.
- get_id()[source]¶
- Returns:
ID, e.g. “foobar-1.0.2”
- Return type:
Gets the ID for this bundle.
New in version 0.3.5.
- get_runtime()[source]¶
- Returns:
Runtime identifier, e.g. “org.gnome.Platform/i386/master”
- Return type:
Gets the runtime required for this bundle.
New in version 0.5.10.
- get_sdk()[source]¶
- Returns:
SDK identifier, e.g. “org.gnome.Sdk/i386/master”
- Return type:
Gets the SDK for this bundle.
New in version 0.5.10.
- set_id(id)[source]¶
- Parameters:
id (
str
) – the URL.
Sets the ID for this bundle.
New in version 0.3.5.
- set_kind(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.BundleKind
) – theAppStreamGlib.BundleKind
, e.g.AppStreamGlib.BundleKind.FLATPAK
.
Sets the bundle kind.
New in version 0.3.5.