Package comodit_client :: Package api :: Module purchased :: Class PurchasedCollection

Class PurchasedCollection


Instance Methods
PurchasedEntity
new(self, pub_uuid, name)
Instantiates a new purchased entity.
PurchasedEntity
create(self, pub_uuid, name)
Creates a remote purchased entity and returns its local representation.

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, pub_uuid, name)

 

Instantiates a new purchased entity.

Parameters:
  • pub_uuid (string) - The UUID of related published entity.
  • name (string) - The name the entity has inside purchasing organization.
Returns: PurchasedEntity
A purchased entity.

create(self, pub_uuid, name)

 

Creates a remote purchased entity and returns its local representation.

Parameters:
  • pub_uuid (string) - The UUID of related published entity.
  • name (string) - The name the entity has inside purchasing organization.
Returns: PurchasedEntity
A purchased entity.