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, app_name, res_type, res_name)
Creates a compliance error given identification data i.e.

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

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

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, app_name, res_type, res_name)
(Constructor)

 

Creates a compliance error given identification data i.e. an application name, a resource type (services, files, packages, users, groups or repos) and a resource name. A call to refresh will fill remaining fields of this compliance error.

Parameters:
  • collection (ComplianceCollection) - Compliance errors collection.
  • app_name (string) - The application name.
  • res_type (string) - The resource type.
  • res_name (string) - The resource name.
Overrides: object.__init__

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