Modulemd.Defaults¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
The metadata version of this Defaults object. Read-only. |
||
r/w/co |
The name of the module to which these defaults apply. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Modulemd.Defaults(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- classmethod new(version, module_name)¶
- Parameters:
- Returns:
A newly created
Modulemd.Defaultssubtype of the requested version.- Return type:
Create a new
Modulemd.Defaults.New in version 2.0.
- copy()¶
- Returns:
A newly-allocated copy of self.
- Return type:
New in version 2.0.
- equals(self_2)¶
- Parameters:
self_2 (
Modulemd.Defaults) – AModulemd.Defaultsobject- Returns:
Trueif both self and self_2 contain equal values,Falseif they differed.- Return type:
New in version 2.2.
- get_mdversion()¶
- Returns:
The metadata version of this defaults object.
- Return type:
New in version 2.0.
- get_modified()¶
- Returns:
The last modified time represented as a 64-bit integer (such as 201807011200)
- Return type:
New in version 2.0.
- get_module_name()¶
- Returns:
The name of the module to which these defaults apply.
- Return type:
New in version 2.0.
- set_modified(modified)¶
- Parameters:
modified (
int) – The last modified time represented as a 64-bit integer (such as 201807011200)
New in version 2.0.
- upgrade(mdversion)¶
- Parameters:
mdversion (
int) – The version to upgrade to.- Raises:
- Returns:
A newly-allocated copy of self upgraded to the requested defaults version.
Noneif the upgrade cannot be performed and sets error appropriately. This function does not modify self.- Return type:
New in version 2.0.
- validate()¶
- Raises:
- Returns:
Trueif validation passed,Falseand sets error appropriately if validation failed.- Return type:
New in version 2.0.
- do_copy() virtual¶
- Returns:
A newly-allocated copy of self.
- Return type:
New in version 2.0.
- do_equals(self_2) virtual¶
- Parameters:
self_2 (
Modulemd.Defaults) – AModulemd.Defaultsobject- Returns:
Trueif both self_1 and self_2 contain equal values,Falseif they differed.- Return type:
New in version 2.2.
- do_get_mdversion() virtual¶
- Returns:
The metadata version of this defaults object.
- Return type:
New in version 2.0.
Property Details¶
- Modulemd.Defaults.props.mdversion¶
-
The metadata version of this Defaults object. Read-only.
- Modulemd.Defaults.props.module_name¶
- Name:
module-name- Type:
- Default Value:
'__NAME_UNSET__'- Flags:
The name of the module to which these defaults apply.