ssg.entities.profile_base module
- class ssg.entities.profile_base.Profile(id_)[source]
Bases:
XCCDFEntity,SelectionHandlerRepresents XCCDF profile
- ALTERNATIVE_KEYS: Dict[str, str] = {'selections': 'extends'}
- KEYS: Dict[str, Callable[[], Any | None]] = {'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>>, 'scanner_type': <function Profile.<lambda>>, 'selections': <function Profile.<lambda>>, 'single_rule_profile': <function Profile.<lambda>>, 'status': <function Profile.<lambda>>, 'title': <function XCCDFEntity.<lambda>>, 'unselected_groups': <function Profile.<lambda>>}
- MANDATORY_KEYS: Set[str] = {'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