l.h.i.w.IHWDevice(Interface) : interface documentation

Part of lp.hardwaredb.interfaces.webservice View In Hierarchy

Core information to identify a device.
Attribute bus_vendor Undocumented
Int submissions Undocumented
Method getSubmissions List all submissions which mention this device.
Method getOrCreateDeviceClass Return an IHWDeviceClass record or create a new one.
Method removeDeviceClass Add an IHWDeviceClass record.
bus_vendor =
Undocumented
submissions =
Undocumented
@operation_parameters(Reference(IHWDriver, u'A driver used for this device in a submission', u'If specified, the result set is limited to sumbissions made for the given distribution, distroseries or distroarchseries.', False), Reference(IDistribution, u'A Distribution', u'If specified, the result set is limited to sumbissions made for the given distribution.', False), Reference(IDistroSeries, u'A Distribution Series', u'If specified, the result set is limited to sumbissions made for the given distribution series.', False), TextLine(u'A processor architecture', u'If specified, the result set is limited to submissions made for the given architecture.', False), copy_field(IHWSubmission['owner']))
@operation_returns_collection_of(IHWSubmission)
@export_read_operation()
def getSubmissions(driver=None, distribution=None, distroseries=None, architecture=None, owner=None):
List all submissions which mention this device.

Only submissions matching all given criteria are returned. Only one of :distribution: or :distroseries: may be supplied.

ParametersdriverLimit results to devices that use the given IHWDriver.
distributionLimit results to submissions for this IDistribution.
distroseriesLimit results to submissions for this IDistroSeries.
architectureLimit results to submissions for this architecture.
ownerLimit results to submissions from this person.
@operation_parameters(copy_field(IHWDeviceClass['main_class']), copy_field(IHWDeviceClass['sub_class']))
@export_write_operation()
@operation_returns_entry(IHWDeviceClass)
def getOrCreateDeviceClass(main_class, sub_class=None):
Return an IHWDeviceClass record or create a new one.

main_class and sub_class are integers specifying the class of the device, or, in the case of USB devices, the class of an interface.

IHWDeviceClass records must be unique; if this method is called to create a new record with data of an already existing record, the existing record is returned.

Parametersmain_classThe main class to be added.
sub_classThe sub-class to added (otpional).
ReturnsAn IHWDeviceClass record.
@operation_parameters(copy_field(IHWDeviceClass['main_class']), copy_field(IHWDeviceClass['sub_class']))
@export_write_operation()
def removeDeviceClass(main_class, sub_class=None):
Add an IHWDeviceClass record.
Parametersmain_classThe main class to be added.
sub_classThe sub-class to added.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.