Package comodit_client :: Package api :: Module platform :: Class Platform

Class Platform

Platform entity representation. A platform defines the way a particular host will be provisioned by configuring a driver. A platform may have files, parameters and settings.

A platform entity owns 3 collections:

Instance Methods
clone(self, clone_name)
Requests the cloning of remote entity.

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

Inherited from parameters.HasParameters: add_parameter, get_parameter, parameters

Inherited from files.HasFiles: add_file, files, get_file

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__

Driver driver
Platform's driver.

Inherited from settings.HasSettings: settings_f

Inherited from parameters.HasParameters: parameters_f

Inherited from files.HasFiles: files_f

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

Inherited from object: __class__

Method Details

clone(self, clone_name)


Requests the cloning of remote entity. Clone will have given name. This name should not already be in use.

  • clone_name (string) - The name of the clone.
Returns: Platform
The representation of platform's clone.

Property Details


Platform's driver.

Get Method:
unreachable.driver(self) - Platform's driver.
Set Method:
unreachable.driver(self, driver) - Sets platform's driver.