Package comodit_client :: Package api :: Module environment :: Class EnvironmentCollection

Class EnvironmentCollection


Collection of environments. An environment collection is owned by an Organization.

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

Parameters:
  • name (string) - The name of new environment.
  • description (string) - The description of new environment.
Returns: Environment

create(self, name, description='')

 

Creates a remote environment entity and returns associated local object.

Parameters:
  • name (string) - The name of new environment.
  • description (string) - The description of new environment.
Returns: Environment