congress.db.db_library_policies.
LibraryPolicy
(**kwargs)¶Bases: sqlalchemy.ext.declarative.api.Base
, congress.db.model_base.HasId
abbreviation
¶description
¶id
¶kind
¶name
¶rules
¶to_dict
(include_rules=True, json_rules=False)¶From a given library policy, return a policy dict.
Param: | include_rules (bool, optional): include policy rules in return dictionary. Defaults to False. |
---|
congress.db.db_library_policies.
add_policy
(policy_dict, session=None)¶congress.db.db_library_policies.
delete_policies
(session=None)¶congress.db.db_library_policies.
delete_policy
(id_, session=None)¶congress.db.db_library_policies.
get_policies
(session=None)¶congress.db.db_library_policies.
get_policy
(id_, session=None)¶congress.db.db_library_policies.
get_policy_by_name
(name, session=None)¶congress.db.db_library_policies.
replace_policy
(id_, policy_dict, session=None)¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.