Package comodit_client :: Package api :: Module compliance :: Class ComplianceCollection

Class ComplianceCollection


Compliance errors collection. Errors may be fetched and removed but cannot be updated.

Instance Methods
ComplianceError
get(self, identifier='', parameters={})
Retrieves a particular compliance error of this collection.
 
rebuild(self)

Inherited from collection.Collection: __init__, __iter__, clear, delete, list, refresh

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

get(self, identifier='', parameters={})

 

Retrieves a particular compliance error of this collection.

Parameters:
  • identifier (string) - The identifier of the entity to retrieve. It must have the following form: 'applications/app_name/collection/id' where app_name is the name of an application installed on the host, collection on of (services, files, packages, users, groups, repos) and id the name of the application's resource.
  • parameters (dict of strings) - Query parameters to send to ComodIT server.
Returns: ComplianceError
A compliance error representation.
Raises:
Overrides: collection.Collection.get