Version
Module superwise.controller.version
This module implement version functionality
Classes
VersionController(client, sw)
Version controller
Description:
Constructor of VersionController
Args:
client: superwise client object
sw: superwise object
Ancestors (in MRO)
- superwise.controller.base.BaseController
- abc.ABC
Methods
activate(self, version_id)
Description:
activate pending version
Args:
version_id: version id (int)
Return:
Version object from server
create(self, model, is_return_model=True, **kwargs)
Description:
create version
Args:
model: Version model object
is_return_model:
wait_until_complete: if set to True, function will blocked untill creation of version is completed
get_data_entities(self, version_id)
Description:
Get dataentities of a given version
Args:
version_id: version id (int)
Return:
List[DataEntity] - list of DataEntity objects