congress.library_service.library_service module

class congress.library_service.library_service.DseLibraryServiceEndpoints(data_service)

Bases: object

RPC endpoints exposed by LibraryService.

create_policy(context, policy_dict)
delete_all_policies(context)
delete_policy(context, id_)
get_policies(context, include_rules=True)
get_policy(context, id_, include_rules=True)
get_policy_by_name(context, name, include_rules=True)
replace_policy(context, id_, policy_dict)
class congress.library_service.library_service.LibraryService(name)

Bases: congress.dse2.data_service.DataService

create_policy(policy_dict)
delete_all_policies()
delete_policy(id_)
get_policies(include_rules=True)
get_policy(id_, include_rules=True)
get_policy_by_name(name, include_rules=True)
load_policies_from_files()

load library policies from library directory

return total number of files on which error encountered

replace_policy(id_, policy_dict)
congress.library_service.library_service.validate_policy_item(item)