Package comodit_client :: Package api :: Module distribution :: Class Distribution

Class Distribution


Distribution entity representation. An distribution defines the operating system that is installed on a particular host at provisioning time. A distribution may have files (kickstart, preseed, userdata, etc.), parameters and settings.

An distribution entity owns 3 collections:

Instance Methods
Distribution
clone(self, clone_name)
Requests the cloning of remote entity.
 
setup_default_settings(self, flavor_name)
Adds settings defined by given flavor's parameters.

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 store.IsStoreCapable: get_thumbnail_content, read_thumbnail_content, set_thumbnail_content

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 this distribution.

Inherited from settings.HasSettings: settings_f

Inherited from parameters.HasParameters: parameters_f

Inherited from files.HasFiles: files_f

Inherited from store.IsStoreCapable: can_pull, can_push, documentation, license, price, published_as, purchased_as, url_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.

Parameters:
  • clone_name (string) - The name of the clone.
Returns: Distribution
The representation of distribution's clone.

setup_default_settings(self, flavor_name)

 

Adds settings defined by given flavor's parameters. Flavor is fetched from the server.

Parameters:
  • flavor_name (string) - The name of the flavor.

Property Details

organization

The name of the organization owning this distribution.

Get Method:
unreachable.organization(self) - The name of the organization owning this distribution.
Type:
string