Modulemd.ComponentModule

g GObject.Object GObject.Object Modulemd.Component Modulemd.Component GObject.Object->Modulemd.Component Modulemd.ComponentModule Modulemd.ComponentModule Modulemd.Component->Modulemd.ComponentModule

Subclasses:

None

Methods

Inherited:

Modulemd.Component (15), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (key)

get_ref ()

get_repository ()

set_ref (ref)

set_repository (repository)

Virtual Methods

Inherited:

Modulemd.Component (5), GObject.Object (7)

Properties

Inherited:

Modulemd.Component (4)

Name

Type

Flags

Short Description

ref

str

r/w

The commit ID in the SCM repository.

repository

str

r/w

The URI of the SCM repository.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Modulemd.ComponentModule(**kwargs)
Bases:

Modulemd.Component

Abstract:

No

Structure:

Modulemd.ComponentModuleClass

classmethod new(key)
Parameters:

key (str) – The key of this module component. Used when looking up components from a Modulemd.ModuleStream.

Returns:

A newly-allocated Modulemd.ComponentModule object.

Return type:

Modulemd.ComponentModule

New in version 2.0.

get_ref()
Returns:

The commit ID in the SCM repository.

Return type:

str

New in version 2.0.

get_repository()
Returns:

The URI of the SCM repository.

Return type:

str

New in version 2.0.

set_ref(ref)
Parameters:

ref (str or None) – The commit ID in the SCM repository.

New in version 2.0.

set_repository(repository)
Parameters:

repository (str or None) – The URI of the SCM repository.

New in version 2.0.

Property Details

Modulemd.ComponentModule.props.ref
Name:

ref

Type:

str

Default Value:

'__UNSET_COMPONENT_MODULE__'

Flags:

READABLE, WRITABLE

The commit ID in the SCM repository.

Modulemd.ComponentModule.props.repository
Name:

repository

Type:

str

Default Value:

'__UNSET_COMPONENT_MODULE__'

Flags:

READABLE, WRITABLE

The URI of the SCM repository.