Libosinfo.Product

g GObject.Object GObject.Object Libosinfo.Entity Libosinfo.Entity GObject.Object->Libosinfo.Entity Libosinfo.Product Libosinfo.Product Libosinfo.Entity->Libosinfo.Product

Subclasses:

Libosinfo.Os, Libosinfo.Platform

Methods

Inherited:

Libosinfo.Entity (15), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

add_related (relshp, otherproduct)

get_codename ()

get_eol_date ()

get_eol_date_string ()

get_logo ()

get_name ()

get_related (relshp)

get_release_date ()

get_release_date_string ()

get_short_id ()

get_short_id_list ()

get_vendor ()

get_version ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Libosinfo.Entity (1)

Name

Type

Flags

Short Description

codename

str

r

Codename

logo

str

r

URI of the logo

name

str

r

Name

short-id

str

r

Short ID

vendor

str

r

Vendor

version

str

r

Version

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Libosinfo.Entity

r

Class Details

class Libosinfo.Product(**kwargs)
Bases:

Libosinfo.Entity

Abstract:

Yes

Structure:

Libosinfo.ProductClass

Parameters:

Add an association between two products

get_codename()
Returns:

The product’s codename, or None.

Return type:

str

get_eol_date()
Returns:

A GLib.Date representing the product’s EOL date, or None.

Return type:

GLib.Date

New in version 0.2.8.

get_eol_date_string()
Returns:

A string representing the product’s EOL date, or None.

Return type:

str

New in version 0.2.8.

Return type:

str

get_name()
Return type:

str

Parameters:

relshp (Libosinfo.ProductRelationship) – the relationship to query

Returns:

a list of related products

Return type:

Libosinfo.ProductList

Get a list of products satisfying the requested relationship

get_release_date()
Returns:

A GLib.Date representing the product’s release date, or None.

Return type:

GLib.Date

New in version 0.2.8.

get_release_date_string()
Returns:

A string representing the product’s release date, or None.

Return type:

str

New in version 0.2.8.

get_short_id()
Return type:

str

get_short_id_list()
Returns:

the list of short-ids.

Return type:

[str]

Retrieve all the short-ids associated with the product.

New in version 1.5.0.

get_vendor()
Return type:

str

get_version()
Return type:

str

Property Details

Libosinfo.Product.props.codename
Name:

codename

Type:

str

Default Value:

None

Flags:

READABLE

The codename of this product.

Name:

logo

Type:

str

Default Value:

None

Flags:

READABLE

The URI of the logo of the product.

Libosinfo.Product.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE

The name of this product.

Libosinfo.Product.props.short_id
Name:

short-id

Type:

str

Default Value:

None

Flags:

READABLE

The short ID of this product.

Libosinfo.Product.props.vendor
Name:

vendor

Type:

str

Default Value:

None

Flags:

READABLE

The Vendor of this product.

Libosinfo.Product.props.version
Name:

version

Type:

str

Default Value:

None

Flags:

READABLE

The version of the product.