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.ServiceLevel
object. This object must be freed withGObject.Object.unref
().- Return type:
New in version 2.0.
- copy()¶
- Returns:
The copied
Modulemd.ServiceLevel
object.- Return type:
Create a copy of this
Modulemd.ServiceLevel
object.New in version 2.0.
- equals(self_2)¶
- Parameters:
self_2 (
Modulemd.ServiceLevel
) – AModulemd.ServiceLevel
object.- Returns:
True
if both the dates are eitherNone
or valid,False
otherwise.- 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
None
if 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.Date
passed 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