Package comodit_client :: Package api :: Module organization :: Class OrganizationCollection

Class OrganizationCollection


Collection of organizations. This is a root collections.

Instance Methods
 
__init__(self, client)
Creates a new organizations collection instance.
Organization
new(self, name)
Instantiates a new organization representation.
Organization
create(self, name, populate=True)
Creates a new remote organization and returns the associated instance.

Inherited from collection.Collection: __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

__init__(self, client)
(Constructor)

 

Creates a new organizations collection instance.

Parameters:
  • client (Client) - The client.
Overrides: object.__init__

new(self, name)

 

Instantiates a new organization representation.

Parameters:
  • name (string) - The name of the new organization.
Returns: Organization
The new organization representation.

create(self, name, populate=True)

 

Creates a new remote organization and returns the associated instance.

Parameters:
  • name (string) - The name of the new organization.
  • populate (bool) - If true, new organization is pre-filled by ComodIT.
Returns: Organization
The new organization representation.