Fwupd.Request¶
- Subclasses:
- None 
Methods¶
- Inherited:
- Structs:
| class | 
 | 
| class | 
 | 
| class | 
 | 
| class | 
 | 
| class | 
 | 
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
- Inherited:
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| r/w | |||
| r/w | |||
| r/w | |||
| r/w | |||
| r/w | |||
| r/w | 
Signals¶
- Inherited:
| Name | Short Description | 
|---|---|
| The  | 
Fields¶
- Inherited:
| Name | Type | Access | Description | 
|---|---|---|---|
| parent_instance | r | 
Class Details¶
- class Fwupd.Request(**kwargs)¶
- Bases:
- Abstract:
- No 
- Structure:
 - A user request from the device. - See also: [class`FwupdDevice`] - classmethod flag_from_string(flag)[source]¶
- Parameters:
- Returns:
- enumerated value 
- Return type:
 - Converts a string to an enumerated request flag. - New in version 1.8.6. 
 - classmethod flag_to_string(flag)[source]¶
- Parameters:
- flag ( - Fwupd.RequestFlags) – a request flag, e.g.- Fwupd.RequestFlags.NONE
- Returns:
- identifier string 
- Return type:
 - Converts an enumerated request flag to a string. - New in version 1.8.6. 
 - classmethod kind_from_string(kind)[source]¶
- Parameters:
- Returns:
- enumerated value 
- Return type:
 - Converts a string to an enumerated update message kind. - New in version 1.6.2. 
 - classmethod kind_to_string(kind)[source]¶
- Parameters:
- kind ( - Fwupd.RequestKind) – a update message kind, e.g.- Fwupd.RequestKind.IMMEDIATE
- Returns:
- identifier string 
- Return type:
 - Converts an enumerated update message kind to a string. - New in version 1.6.2. 
 - classmethod new()[source]¶
- Returns:
- a new - Fwupd.Request
- Return type:
 - Creates a new request. - New in version 1.6.2. 
 - add_flag(flag)[source]¶
- Parameters:
- flag ( - Fwupd.RequestFlags) – the- Fwupd.RequestFlags
 - Adds a specific flag to the request. - New in version 1.8.6. 
 - emit_invalidate()[source]¶
- Emits an - invalidatesignal to signify that the request is no longer valid, and any visible UI components should be hidden.- New in version 1.9.17. 
 - get_created()[source]¶
- Returns:
- the UNIX time, or 0 if unset 
- Return type:
 - Gets when the request was created. - New in version 1.6.2. 
 - get_flags()[source]¶
- Returns:
- request flags, or 0 if unset 
- Return type:
 - Gets the request flags. - New in version 1.8.6. 
 - get_kind()[source]¶
- Returns:
- the kind value, e.g. %FWUPD_STATUS_REQUEST_WRITE 
- Return type:
 - Returns what the request is currently doing. - New in version 1.6.2. 
 - get_message()[source]¶
- 
Gets the update message, generating a generic one using the request ID if possible. New in version 1.6.2. 
 - has_flag(flag)[source]¶
- Parameters:
- flag ( - Fwupd.RequestFlags) – the- Fwupd.RequestFlags
- Returns:
- Trueif the flag is set
- Return type:
 - Finds if the request has a specific flag. - New in version 1.8.6. 
 - remove_flag(flag)[source]¶
- Parameters:
- flag ( - Fwupd.RequestFlags) – the- Fwupd.RequestFlags
 - Removes a specific flag from the request. - New in version 1.8.6. 
 - set_created(created)[source]¶
- Parameters:
- created ( - int) – the UNIX time
 - Sets when the request was created. - New in version 1.6.2. 
 - set_device_id(device_id)[source]¶
- 
Sets the device_id that created the request. New in version 1.6.2. 
 - set_flags(flags)[source]¶
- Parameters:
- flags ( - Fwupd.RequestFlags) – request flags, e.g.- Fwupd.RequestFlags.NONE
 - Sets the request flags. - New in version 1.8.6. 
 - set_kind(kind)[source]¶
- Parameters:
- kind ( - Fwupd.RequestKind) – the kind value, e.g. %FWUPD_STATUS_REQUEST_WRITE
 - Sets what the request is currently doing. - New in version 1.6.2. 
 - do_invalidate() virtual¶
 
Signal Details¶
- Fwupd.Request.signals.invalidate(request)¶
- Signal Name:
- invalidate
- Flags:
- Parameters:
- request ( - Fwupd.Request) – The object which received the signal
 - The - ::invalidatesignal is emitted when the request is no longer valid, and any visible UI components should be hidden.- New in version 1.9.17. 
Property Details¶
- Fwupd.Request.props.device_id¶
- 
The device ID for the request. New in version 1.8.2. 
- Fwupd.Request.props.flags¶
- 
The flags for the request. New in version 1.8.6. 
- Fwupd.Request.props.id¶
- 
The request identifier. New in version 1.6.2. 
- Fwupd.Request.props.image¶
- 
The image link for the request. New in version 1.6.2. 
- Fwupd.Request.props.kind¶
- 
The kind of the request. New in version 1.6.2.