Fwupd.Report¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
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(val)[source]¶
- Parameters:
- Returns:
enumerated value
- Return type:
Converts a string to an enumerated value.
Added in version 1.9.1.
- classmethod flag_to_string(val)[source]¶
- Parameters:
val (
Fwupd.ReportFlags) – value, e.g.Fwupd.ReportFlags.FROM_OEM- Returns:
identifier string
- Return type:
Converts an enumerated value to a string.
Added in version 1.9.1.
- classmethod new()[source]¶
- Returns:
a new
Fwupd.Report- Return type:
Creates a new report.
Added in version 1.8.8.
- add_flag(flag)[source]¶
- Parameters:
flag (
Fwupd.ReportFlags) – theFwupd.ReportFlags
Adds a specific report flag to the report.
Added 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.
Added in version 1.8.8.
- get_device_name()[source]¶
-
Gets the name of the device the update was performed on.
Added in version 1.8.8.
- get_flags()[source]¶
- Returns:
report flags, or 0 if unset
- Return type:
Gets the report flags.
Added 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.
Added in version 1.8.8.
- get_version_old()[source]¶
-
Gets the old version, i.e. what the upser was upgrading *from*.
Added in version 1.8.8.
- has_flag(flag)[source]¶
- Parameters:
flag (
Fwupd.ReportFlags) – a report flag- Returns:
Trueif the flag is set- Return type:
Finds if the report has a specific report flag.
Added in version 1.9.1.
- remove_flag(flag)[source]¶
- Parameters:
flag (
Fwupd.ReportFlags) – a report flag
Removes a specific report flag from the report.
Added in version 1.9.1.
- set_created(created)[source]¶
- Parameters:
created (
int) – UTC timestamp in UNIX format
Sets when the report was created.
Added in version 1.8.8.
- set_device_name(device_name)[source]¶
-
Sets the name of the device the update was performed on.
Added in version 1.8.8.
- set_flags(flags)[source]¶
- Parameters:
flags (
int) – report flags, e.g.Fwupd.ReportFlags.FROM_OEM
Sets the report flags.
Added in version 1.9.1.