Package comodit_client :: Package api :: Module platform :: Class PlatformCollection

Class PlatformCollection


Collection of platforms. A platform collection is owned by an Organization.

Instance Methods
Platform
new(self, name, description='', driver_class='')
Instantiates a new platform object.
Platform
create(self, name, description='', driver_class='', default=True, test=True)
Creates a remote platform 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='', driver_class='')

 

Instantiates a new platform object.

Parameters:
  • name (string) - The name of new platform.
  • description (string) - The description of new platform.
  • driver_class (string) - Class name of the platform's driver.
Returns: Platform

create(self, name, description='', driver_class='', default=True, test=True)

 

Creates a remote platform entity and returns associated local object.

Parameters:
  • name (string) - The name of new distribution.
  • description (string) - The description of new distribution.
  • driver_class (string) - Class name of the platform's driver.
Returns: Platform