Package comodit_client :: Package api :: Module distribution :: Class DistributionCollection

Class DistributionCollection


Collection of distributions. A distribution collection is owned by an Organization.

Instance Methods
Distribution
new(self, name, description='')
Instantiates a new distribution object.
Distribution
create(self, name, description='', flavor_name=None)
Creates a remote distribution 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='')

 

Instantiates a new distribution object.

Parameters:
  • name (string) - The name of new distribution.
  • description (string) - The description of new distribution.
Returns: Distribution

create(self, name, description='', flavor_name=None)

 

Creates a remote distribution entity and returns associated local object. If a flavor name is provided, default settings associated to the flavor are also generated.

Parameters:
  • name (string) - The name of new distribution.
  • description (string) - The description of new distribution.
  • flavor_name (string) - The flavor name.
Returns: Distribution