Package comodit_client :: Package api :: Module compliance :: Class ComplianceError

Class ComplianceError


Compliance error entity. A compliance error represents the fact that a system resource has diverged from what is defined in ComodIT by the applications (in fact, their entities) installed on a particular host.

Instance Methods
 
__init__(self, collection, json_data=None)
Creates an instance of entity.

Inherited from entity.Entity: create, delete, dump, load, refresh, rename, show, update

Inherited from util.json_wrapper.JsonWrapper: dump_json, get_json, get_real_json, load_json, print_json, set_json

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
string application
The application name.
string resource_type
Associated resource type (as provided by ComodIT).
string type_collection
Associated resource collection.
string res_name
The resource's name.
string identifier
Identifier of the entity.
State current_state
The resource's current state.
State expected_state
The resource's expected state (as defined by ComodIT).

Inherited from entity.Entity: client, description, label, name, url, uuid

Inherited from object: __class__

Method Details

__init__(self, collection, json_data=None)
(Constructor)

 

Creates an instance of entity. Note that Entity class should never be instantiated directly.

Parameters:
  • collection - A collection.
  • json_data - A JSON representation of entity's state.
Overrides: object.__init__
(inherited documentation)

Property Details

application

The application name.

Get Method:
unreachable.application(self) - The application name.
Type:
string

resource_type

Associated resource type (as provided by ComodIT). Possible values are serviceResource, fileResource, packageResource, userResource, groupResource, repoResource.

Get Method:
unreachable.resource_type(self) - Associated resource type (as provided by ComodIT).
Type:
string

type_collection

Associated resource collection. Possible values are services, files, packages, users, groups or repos.

Get Method:
unreachable.type_collection(self) - Associated resource collection.
Type:
string

res_name

The resource's name.

Get Method:
unreachable.res_name(self) - The resource's name.
Type:
string

identifier

Identifier of the entity. The identifier is unique in entity's collection and can therefore be used to get the entity. This value is generally entity's name but may also be the UUID or another field depending on entity type.

Get Method:
unreachable.identifier(self)
Type:
string

current_state

The resource's current state.

Get Method:
unreachable.current_state(self) - The resource's current state.
Type:
State

expected_state

The resource's expected state (as defined by ComodIT).

Get Method:
unreachable.expected_state(self) - The resource's expected state (as defined by ComodIT).
Type:
State