Package comodit_client :: Package api :: Module host :: Class InstanceCollection

Class InstanceCollection


Host instance collection. This collection will always contain at most one element.

Instance Methods
 
__init__(self, client, url)
Creates an instance of collection.
 
new(self)
Instantiates a new instance object.
 
create(self)
Creates remotely a new instance entity and returns associated local object.

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, url)
(Constructor)

 

Creates an instance of collection. Note that Collection class should never be instantiated directly.

Parameters:
  • client - ComodIT client.
  • url - URL of remote collection on ComodIT server. This URL must be relative to ComodIT server's API URL and should not start with a slash.
Overrides: object.__init__
(inherited documentation)

create(self)

 

Creates remotely a new instance entity and returns associated local object. By creating a host instance, host provisioning is triggered.