Modulemd.ServiceLevel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
A human-readable name for this servicelevel |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Modulemd.ServiceLevel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(name)¶
- Parameters:
name (
str) – The name of the service level.- Returns:
A newly-allocated
Modulemd.ServiceLevelobject. This object must be freed withGObject.Object.unref().- Return type:
New in version 2.0.
- copy()¶
- Returns:
The copied
Modulemd.ServiceLevelobject.- Return type:
Create a copy of this
Modulemd.ServiceLevelobject.New in version 2.0.
- equals(self_2)¶
- Parameters:
self_2 (
Modulemd.ServiceLevel) – AModulemd.ServiceLevelobject.- Returns:
Trueif both the dates are eitherNoneor valid,Falseotherwise.- Return type:
New in version 2.2.
- get_eol()¶
-
New in version 2.0.
- get_eol_as_string()¶
- Returns:
The end date of the service level as a string of the form “YYYY-MM-DD” or
Noneif the date is unset or invalid.- Return type:
New in version 2.0.
- get_name()¶
- Returns:
The name of this service level. This is a pointer to the internal memory location and must not be freed.
- Return type:
Get the name of this service level.
New in version 2.0.
- remove_eol()¶
Remove the EOL from this Service Level.
New in version 2.0.
- set_eol(date)¶
-
Sets the end date of the service level. If the
GLib.Datepassed in is invalid orNone, the EOL will be unset.New in version 2.0.
- set_eol_ymd(year, month, day)¶
- Parameters:
year (
int) – The year this service level ends.month (
GLib.DateMonth) – The month this service level ends.day (
int) – The day of the month this service level ends.
New in version 2.0.
Property Details¶
- Modulemd.ServiceLevel.props.name¶
- Name:
name- Type:
- Default Value:
'__NAME_UNSET__'- Flags:
A human-readable name for this servicelevel