Skip to content

Software

get_software(organization_id, relations=0, id=None, logger=None, session=None, orm_entities=False)

Get detail of software

:param organization_id: Organization identifier :param relations: Flag sum of associated enities type. Use Entities enum type. :param id: Software identifier :param session: SQLAlchemy session :param orm_entities: If True, return mapping models, else domain models :return: Dictionary with 2 keys. [Data]: a list of SoftwareModel entities (if orm_entities==True) or a list of Software (if orm_entities=False). [Total]: record count.

get_softwares(organization_id, relations=0, ids=None, order=None, offset=0, limit=100, filters=None, logger=None, session=None, orm_entities=False)

Get list of softwares

:param organization_id: Organization identifier :param relations: Flag sum of associated enities type. Use Entities enum type. :param ids: List of identifiers of softwares. If empty, load all data. :param order: Order field :param offset: Index of first record :param limit: Number of records to be returned :param filters: JSON string with query filter :param session: SQLAlchemy session :param orm_entities: If True, return mapping models, else domain models :return: Dictionary with 2 keys. [Data]: a list of SoftwareModel entities (if orm_entities==True) or a list of Software (if orm_entities=False). [Total]: record count.

save_software(organization_id, payload, logger=None, session=None)

Save software

Parameters:

Name Type Description Default
organization_id uuid

Organization unit identifier

required
obj Software

Software object

required
logger

Logger object instance

None
session SQLAlchemy

SQLAlchemy session

None

Returns:

Name Type Description
Software Software

Software object