Package comodit_client :: Package api :: Module contexts :: Class AbstractContext

Class AbstractContext


Base class of all contexts. A context is a container for the settings configuring an entity when associated to a host. Note that a context cannot be renamed nor updated. In order to change the configuration of an entity, settings should be modified directly.

Instance Methods

Inherited from settings.HasSettings: add_link_setting, add_property_setting, add_setting, add_simple_setting, get_setting, settings

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 organization
The name of the organization owning the host this context is attached to.
string environment
The name of the environment owning the host this context is attached to.
string host
The name of the host this context is attached to.

Inherited from settings.HasSettings: settings_f

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

Inherited from object: __class__

Property Details

organization

The name of the organization owning the host this context is attached to.

Get Method:
unreachable.organization(self) - The name of the organization owning the host this context is attached to.
Type:
string

environment

The name of the environment owning the host this context is attached to.

Get Method:
unreachable.environment(self) - The name of the environment owning the host this context is attached to.
Type:
string

host

The name of the host this context is attached to.

Get Method:
unreachable.host(self) - The name of the host this context is attached to.
Type:
string