ssg.entities.profile_base module
- class ssg.entities.profile_base.Profile(id_)[source]
Bases:
XCCDFEntity
,SelectionHandler
Represents XCCDF profile
- ALTERNATIVE_KEYS = {'selections': 'extends'}
- KEYS = {'cpe_names': <function Profile.<lambda>>, 'definition_location': <function XCCDFEntity.<lambda>>, 'description': <function Profile.<lambda>>, 'extends': <function Profile.<lambda>>, 'filter_rules': <function Profile.<lambda>>, 'hidden': <function Profile.<lambda>>, 'id_': <function XCCDFEntity.<lambda>>, 'metadata': <function Profile.<lambda>>, 'platform': <function Profile.<lambda>>, 'platforms': <function Profile.<lambda>>, 'policies': <function Profile.<lambda>>, 'reference': <function Profile.<lambda>>, 'selections': <function Profile.<lambda>>, 'title': <function XCCDFEntity.<lambda>>, 'unselected_groups': <function Profile.<lambda>>}
- MANDATORY_KEYS = {'description', 'selections', 'title'}
- classmethod process_input_dict(input_contents, env_yaml, product_cpes)[source]
Take the contents of the definition as a dictionary, and add defaults or raise errors if a required member is not present.
Extend this if you want to add, remove or alter the result that will constitute the new instance.
- property rule_filter