Package comodit_client :: Package api :: Module host :: Class Change

Class Change


A host's change. A change is a group of ordered tasks that must be applied to a host to bring it in a new state. For instance, installing an application on a host implies that a change is queued, the change being composed of tasks such as the installation of a package, the update of configuration files, etc. Note that a change is read-only, it cannot be updated, but it may be deleted.

Instance Methods
bool
are_tasks_pending(self)
Tells if tasks of this change are still pending.

Inherited from entity.Entity: __init__, 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 identifier
Identifier of the entity.
string name
Name of this entity.
string label
A very short description of the entity.
int order_num
The order number of this change.
list of Task tasks
The tasks associated to this change.

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

Inherited from object: __class__

Method Details

are_tasks_pending(self)

 

Tells if tasks of this change are still pending.

Returns: bool
True if tasks are still pending, false otherwise.

Property Details

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

name

Name of this entity.

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

label

A very short description of the entity. This value generally includes entity's identifier.

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

order_num

The order number of this change.

Get Method:
unreachable.order_num(self) - The order number of this change.
Type:
int

tasks

The tasks associated to this change.

Get Method:
unreachable.tasks(self) - The tasks associated to this change.
Type:
list of Task