AppStreamGlib.Bundle

g AppStreamGlib.Bundle AppStreamGlib.Bundle GObject.Object GObject.Object GObject.Object->AppStreamGlib.Bundle

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

kind_from_string (kind)

class

kind_to_string (kind)

class

new ()

get_id ()

get_kind ()

get_runtime ()

get_sdk ()

set_id (id)

set_kind (kind)

set_runtime (runtime)

set_sdk (sdk)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class AppStreamGlib.Bundle(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

AppStreamGlib.BundleClass

classmethod kind_from_string(kind)[source]
Parameters:

kind (str) – the string.

Returns:

a AppStreamGlib.BundleKind, or AppStreamGlib.BundleKind.UNKNOWN for unknown.

Return type:

AppStreamGlib.BundleKind

Converts the text representation to an enumerated value.

New in version 0.3.5.

classmethod kind_to_string(kind)[source]
Parameters:

kind (AppStreamGlib.BundleKind) – the AppStreamGlib.BundleKind.

Returns:

string version of kind

Return type:

str

Converts the enumerated value to an text representation.

New in version 0.3.5.

classmethod new()[source]
Returns:

a AppStreamGlib.Bundle

Return type:

AppStreamGlib.Bundle

Creates a new AppStreamGlib.Bundle.

New in version 0.3.5.

get_id()[source]
Returns:

ID, e.g. “foobar-1.0.2”

Return type:

str

Gets the ID for this bundle.

New in version 0.3.5.

get_kind()[source]
Returns:

the AppStreamGlib.BundleKind

Return type:

AppStreamGlib.BundleKind

Gets the bundle kind.

New in version 0.3.5.

get_runtime()[source]
Returns:

Runtime identifier, e.g. “org.gnome.Platform/i386/master”

Return type:

str

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:

str

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) – the AppStreamGlib.BundleKind, e.g. AppStreamGlib.BundleKind.FLATPAK.

Sets the bundle kind.

New in version 0.3.5.

set_runtime(runtime)[source]
Parameters:

runtime (str) – the URL.

Sets the runtime required for this bundle.

New in version 0.5.10.

set_sdk(sdk)[source]
Parameters:

sdk (str) – the URL.

Sets the SDK for this bundle.

New in version 0.5.10.