pyanaconda.modules.subscription.subscription_interface

Classes

RetrieveOrganizationsTaskInterface

The interface for a organization data parsing task.

SubscriptionInterface

DBus interface for the Subscription service.

Module Contents

class pyanaconda.modules.subscription.subscription_interface.RetrieveOrganizationsTaskInterface[source]

Bases: pyanaconda.modules.common.task.TaskInterface

The interface for a organization data parsing task.

Such a task returns a list of organization data objects.

static convert_result(value)[source]

Convert the list of org data DBus structs.

Convert list of org data DBus structs to variant. :param value: a validation report :return: a variant with the structure

Return type:

Variant

class pyanaconda.modules.subscription.subscription_interface.SubscriptionInterface[source]

Bases: pyanaconda.modules.common.base.KickstartModuleInterface

DBus interface for the Subscription service.

connect_signals()[source]

Connect the signals.

GetValidRoles()[source]

Return all valid system purpose roles.

These are OS release specific, but could look like this:

“Red Hat Enterprise Linux Server” “Red Hat Enterprise Linux Workstation” “Red Hat Enterprise Linux Compute Node”

Return type:

List[Str]

GetValidSLAs()[source]

Return all valid system purpose SLAs.

These are OS release specific, but could look like this:

“Premium” “Standard” “Self-Support”

Return type:

List[Str]

GetValidUsageTypes()[source]

List all valid system purpose usage types.

These are OS release specific, but could look like this:

“Production”, “Development/Test”, “Disaster Recovery”

Return type:

List[Str]

property SystemPurposeData: Structure[source]

Return DBus structure holding current system purpose data.

Return type:

Structure

SetSystemPurposeWithTask()[source]

Set system purpose for the installed system with an installation task.

Returns:

a DBus path of an installation task

Return type:

ObjPath

property SubscriptionRequest: Structure[source]

Return DBus structure holding current subscription request.

Subscription request holds data necessary for a successful subscription attempt.

Return type:

Structure

property InsightsEnabled: Int[source]

Connect the target system to Red Hat Insights.

Return type:

Int

property IsRegistered: Bool[source]

Report if the system is registered.

Return type:

Bool

property IsRegisteredToSatellite: Bool[source]

Report if the system is registered to a Satellite instance.

Return type:

Bool

property IsSimpleContentAccessEnabled: Bool[source]

Report if Simple Content Access is enabled.

Return type:

Bool

property IsSubscriptionAttached: Bool[source]

Report if an entitlement has been successfully attached.

Return type:

Bool

SetRHSMConfigWithTask()[source]

Set RHSM configuration with a runtime DBus task.

Returns:

a DBus path of an installation task

Return type:

ObjPath

UnregisterWithTask()[source]

Unregister using a runtime DBus task.

Returns:

a DBus path of an installation task

Return type:

ObjPath

RegisterAndSubscribeWithTask()[source]

Register and subscribe with a runtime DBus task.

Returns:

a DBus path of a runtime task

Return type:

ObjPath

RetrieveOrganizationsWithTask()[source]

Get organization data using a runtime DBus task.

Returns:

a DBus path of a runtime task

Return type:

ObjPath