Package comodit_client :: Package api :: Module contexts :: Class DistributionContext

Class DistributionContext


An distribution context. An distribution context represents the association of a distribution with 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, 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 name
Name of this entity.
string url
URL of remote entity on ComodIT server.
string distribution
The name of the distribution this context configures.

Inherited from AbstractContext: environment, host, organization

Inherited from settings.HasSettings: settings_f

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

Inherited from object: __class__

Property Details

name

Name of this entity.

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

url

URL of remote entity on ComodIT server. This URL is relative to ComodIT server's API URL and should not start with a slash.

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

distribution

The name of the distribution this context configures.

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