Modulemd.ServiceLevel

g GObject.Object GObject.Object Modulemd.ServiceLevel Modulemd.ServiceLevel GObject.Object->Modulemd.ServiceLevel

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (name)

copy ()

equals (self_2)

get_eol ()

get_eol_as_string ()

get_name ()

remove_eol ()

set_eol (date)

set_eol_ymd (year, month, day)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

name

str

r/w/co

A human-readable name for this servicelevel

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Modulemd.ServiceLevel(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Modulemd.ServiceLevelClass

classmethod new(name)
Parameters:

name (str) – The name of the service level.

Returns:

A newly-allocated Modulemd.ServiceLevel object. This object must be freed with GObject.Object.unref().

Return type:

Modulemd.ServiceLevel

New in version 2.0.

copy()
Returns:

The copied Modulemd.ServiceLevel object.

Return type:

Modulemd.ServiceLevel

Create a copy of this Modulemd.ServiceLevel object.

New in version 2.0.

equals(self_2)
Parameters:

self_2 (Modulemd.ServiceLevel) – A Modulemd.ServiceLevel object.

Returns:

True if both the dates are either None or valid, False otherwise.

Return type:

bool

New in version 2.2.

get_eol()
Returns:

The end date of the service level as a GLib.Date.

Return type:

GLib.Date

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:

str or None

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:

str

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)
Parameters:

date (GLib.Date or None) – The date this service level ends.

Sets the end date of the service level. If the GLib.Date passed in is invalid or None, 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:

str

Default Value:

'__NAME_UNSET__'

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

A human-readable name for this servicelevel