Libosinfo.Deployment

g GObject.Object GObject.Object Libosinfo.Entity Libosinfo.Entity GObject.Object->Libosinfo.Entity Libosinfo.Deployment Libosinfo.Deployment Libosinfo.Entity->Libosinfo.Deployment

Subclasses:

None

Methods

Inherited:

Libosinfo.Entity (15), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (id, os, platform)

add_device (dev)

get_device_links (filter)

get_devices (filter)

get_os ()

get_platform ()

get_preferred_device (filter)

get_preferred_device_link (filter)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Libosinfo.Entity (1)

Name

Type

Flags

Short Description

os

Libosinfo.Os

r/w/co

Operating system

platform

Libosinfo.Platform

r/w/co

Virtualization platform

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Libosinfo.Entity

r

Class Details

class Libosinfo.Deployment(**kwargs)
Bases:

Libosinfo.Entity

Abstract:

No

Structure:

Libosinfo.DeploymentClass

classmethod new(id, os, platform)
Parameters:
Returns:

A deployment entity

Return type:

Libosinfo.Deployment

Create a new deployment entity

add_device(dev)
Parameters:

dev (Libosinfo.Device) – the device to associate

Returns:

the device association

Return type:

Libosinfo.DeviceLink

Associate a device with a deployment. The returned Libosinfo.DeviceLink can be used to record extra metadata against the link

Parameters:

filter (Libosinfo.Filter or None) – an optional filter

Returns:

a list of Libosinfo.Device entities

Return type:

Libosinfo.DeviceLinkList

Retrieve all the associated devices matching the filter. The filter matches against the link, not the device.

get_devices(filter)
Parameters:

filter (Libosinfo.Filter or None) – an optional filter

Returns:

a list of Libosinfo.Device entities

Return type:

Libosinfo.DeviceList

Retrieve all the associated devices matching the filter. The filter matches against the device, not the link.

get_os()
Returns:

an OS, or None

Return type:

Libosinfo.Os

Get the operating system for the deployment

get_platform()
Returns:

a platform, or None

Return type:

Libosinfo.Platform

Get the platform for the deployment

get_preferred_device(filter)
Parameters:

filter (Libosinfo.Filter or None) – a device metadata filter

Returns:

a device, or None

Return type:

Libosinfo.Device

Get the preferred device matching a given filter

Parameters:

filter (Libosinfo.Filter or None) – a device metadata filter

Returns:

a device, or None

Return type:

Libosinfo.DeviceLink

Get the preferred device link matching a given filter and platform. The filter matches against attributes on the link, not the device.

Property Details

Libosinfo.Deployment.props.os
Name:

os

Type:

Libosinfo.Os

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The operating system to be deployed

Libosinfo.Deployment.props.platform
Name:

platform

Type:

Libosinfo.Platform

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The platform to deploy on