Fwupd.Report¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Fwupd.Report(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A firmware report from a vendor.
This is the LVFS formatted report that the fwupd user consumes, NOT the thing that gets uploaded.
See also: [class`FwupdRelease`]
- classmethod flag_from_string(report_flag)[source]¶
- Parameters:
- Returns:
enumerated value
- Return type:
Converts a string to an enumerated report flag.
New in version 1.9.1.
- classmethod flag_to_string(report_flag)[source]¶
- Parameters:
report_flag (
int
) – report flags, e.g.Fwupd.REPORT_FLAG_FROM_OEM
- Returns:
identifier string
- Return type:
Converts an enumerated report flag to a string.
New in version 1.9.1.
- classmethod from_variant(value)[source]¶
- Parameters:
value (
GLib.Variant
) – the serialized data- Returns:
a new
Fwupd.Report
, orNone
if value was invalid- Return type:
Creates a new report using serialized data.
New in version 1.8.8.
- classmethod new()[source]¶
- Returns:
a new
Fwupd.Report
- Return type:
Creates a new report.
New in version 1.8.8.
- add_flag(flag)[source]¶
- Parameters:
flag (
int
) – the #FwupdReportFlags
Adds a specific report flag to the report.
New in version 1.9.1.
- get_created()[source]¶
- Returns:
UTC timestamp in UNIX format, or 0 if unset
- Return type:
Gets when the report was created.
New in version 1.8.8.
- get_device_name()[source]¶
-
Gets the name of the device the update was performed on.
New in version 1.8.8.
- get_flags()[source]¶
- Returns:
report flags, or 0 if unset
- Return type:
Gets the report flags.
New in version 1.9.1.
- get_vendor_id()[source]¶
- Returns:
the vendor ID, or 0 if unset
- Return type:
Gets the vendor identifier. The mapping is only known on the remote server, and this can be useful to filter on different QA teams that work for the same OEM.
New in version 1.8.8.
- get_version_old()[source]¶
-
Gets the old version, i.e. what the upser was upgrading *from*.
New in version 1.8.8.
- remove_flag(flag)[source]¶
- Parameters:
flag (
int
) – a report flag
Removes a specific report flag from the report.
New in version 1.9.1.
- set_created(created)[source]¶
- Parameters:
created (
int
) – UTC timestamp in UNIX format
Sets when the report was created.
New in version 1.8.8.
- set_device_name(device_name)[source]¶
-
Sets the name of the device the update was performed on.
New in version 1.8.8.
- set_flags(flags)[source]¶
- Parameters:
flags (
int
) – report flags, e.g.Fwupd.REPORT_FLAG_FROM_OEM
Sets the report flags.
New in version 1.9.1.
- set_vendor_id(vendor_id)[source]¶
- Parameters:
vendor_id (
int
) – the vendor ID, or 0
Sets the vendor identifier. The mapping is only known on the remote server, and this can be useful to filter on different QA teams that work for the same OEM.
New in version 1.8.8.
- set_version_old(version_old)[source]¶
-
Sets the old version, i.e. what the upser was upgrading *from*.
New in version 1.8.8.
- to_json(builder)[source]¶
- Parameters:
builder (
Json.Builder
) – a JSON builder
Adds a fwupd report to a JSON builder
New in version 1.8.8.