Package comodit_client :: Package api :: Module host :: Class HostCollection

Class HostCollection


Collection of hosts. A host collection is owned by an Environment.

Instance Methods
Host
new(self, name, description='', plat=None, dist=None, apps=[])
Instantiates a new host object.
Host
create(self, name, description='', plat=None, dist=None, apps=[])
Creates a remote host entity and returns associated local object.

Inherited from collection.Collection: __init__, __iter__, clear, delete, get, list, refresh

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

Inherited from object: __class__

Method Details

new(self, name, description='', plat=None, dist=None, apps=[])

 

Instantiates a new host object.

Parameters:
  • name (string) - Host's name.
  • description (string) - Host's description.
  • plat (string) - Name of host's platform.
  • dist (string) - Name of host's distribution.
  • apps (list of string) - List of application installed on host.
Returns: Host
a new host object.

create(self, name, description='', plat=None, dist=None, apps=[])

 

Creates a remote host entity and returns associated local object.

Parameters:
  • name (string) - Host's name.
  • description (string) - Host's description.
  • plat (string) - Name of host's platform.
  • dist (string) - Name of host's distribution.
  • apps (list of string) - List of application installed on host.
Returns: Host
a new host object.