Libosinfo.InstallConfigParam¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Parameter name |
||
r |
Parameter policy |
||
r/w |
Parameter Value Mapping |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Libosinfo.InstallConfigParam(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(name)¶
- Parameters:
name (
str
) – the configuration parameter name- Returns:
the new configuration parameter
- Return type:
Construct a new configuration parameter for an
Libosinfo.InstallScript
.New in version 0.2.0.
- get_policy()¶
- Returns:
the policy of the configuration parameter
- Return type:
New in version 0.2.0.
- get_value_map()¶
- Returns:
The data map used to transform values set for this parameter to OS-specific values, or
None
.- Return type:
New in version 0.2.8.
- is_optional()¶
-
New in version 0.2.1.
- is_required()¶
-
New in version 0.2.1.
- set_value_map(datamap)¶
- Parameters:
datamap (
Libosinfo.Datamap
) – aLibosinfo.Datamap
to transform values this parameter is set to, orNone
to disable transformations for this parameter
After a call to
Libosinfo.InstallConfigParam.set_value_map
(), datamap will be used to transform values set for this parameter to OS-specific values. ANone
datamap will disable transformations.New in version 0.2.8.
Property Details¶
- Libosinfo.InstallConfigParam.props.name¶
- Name:
name
- Type:
- Default Value:
- Flags:
The name of the configuration parameter.
- Libosinfo.InstallConfigParam.props.policy¶
- Name:
policy
- Type:
- Default Value:
- Flags:
The policy of the configuration parameter.
- Libosinfo.InstallConfigParam.props.value_map¶
- Name:
value-map
- Type:
- Default Value:
- Flags:
The mapping between generic values and OS-specific values for this configuration parameter