Package comodit_client :: Package api :: Module contexts :: Class ApplicationContext

Class ApplicationContext


An application context. An application context is attached to each application installed on a host.

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, load_json, print_json, set_json

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

Properties
string identifier
Identifier of the entity.
string label
A very short description of the entity.
string application
The name of the application this context configures.

Inherited from AbstractContext: environment, host, organization

Inherited from settings.HasSettings: settings_f

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

Inherited from object: __class__

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

label

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

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

application

The name of the application this context configures.

Get Method:
unreachable.application(self) - The name of the application this context configures.
Set Method:
unreachable.application(self, application) - Sets the name of the application this context configures.
Type:
string