diff --git a/docs/dr_egeria_manual.md b/docs/dr_egeria_manual.md index 44fd354a..5254452d 100644 --- a/docs/dr_egeria_manual.md +++ b/docs/dr_egeria_manual.md @@ -267,6 +267,10 @@ Dr.Egeria organizes its commands into "families," each corresponding to a specif - **Correction, 2026-09-16:** the paragraph above's `Create Information Supply Chain`/`Create Solution Component` sync was itself wrong — `In Information Supply Chain` (on `Create Solution Component`) and `Implemented By` (on `Create Information Supply Chain`) were both syncing via `ImplementedBy` (the mechanism `Link Implemented By` legitimately uses), when `InformationSupplyChain` is a Collection subtype and these two attributes are ordinary collection membership. Reported live: 71 components each carrying `In Information Supply Chain` fanned each chain out to 143 `ImplementedBy` links, alongside the 47 correct `CollectionMembership`s from explicit `Add Member` blocks. Both sync points (`SolutionComponentProcessor._sync_all_rels`'s "Supply Chains" block and `SupplyChainProcessor._sync_rels`'s "Implemented By" block, `solution_architect.py`) now call `_async_add_to_collection`/`_async_remove_from_collection` with `CollectionMembershipProperties`, matching every other ISC membership sync in this file. Pre-existing bad `ImplementedBy` links created before this fix are not auto-cleaned — the as-is fetch now reads `collectionMembers`, not `implementedBy`, so a re-sync no longer sees or touches them; removing them is a separate one-off cleanup against affected servers. - **Lineage Linker** (added 2026-09-16): Create/update/detach the seven Lineage Linker OMVS relationship types (0750/0755/0770 — DataFlow, ControlFlow, ProcessCall, LineageMapping, DataMapping, UltimateSource, UltimateDestination) between two elements, e.g. `Link Data Flow`, `Update Process Call`, `Link Data Mapping`. One dedicated `Link`/`Update` command pair per type (each with only its own type's attributes — Guard/Mandatory Guard for `Control Flow`; Query/Query ID/Query Type for `Data Mapping`; One Way/Integration Style/Protocol/Frequency/Data Exchanged, reused from Solution Architect's `SolutionLinkingWire` attributes, for the rest), plus one shared `Unlink Lineage Relationship` command since detaching only needs the relationship's own GUID. Split from an earlier single generic command triple that used a `Lineage Relationship Type` selector attribute offering every type's attributes regardless of which type was picked. The split also surfaced and fixed a real gap: the pyegeria SDK's `DataFlowProperties`/`ProcessCallProperties`/`LineageMappingProperties`/`UltimateSourceProperties`/`UltimateDestinationProperties` (`pyegeria/omvs/lineage_linker.py`) were missing `oneWay`/`integrationStyle`/`protocol`/`frequency`/`dataExchanged` (and `ProcessCallProperties` was missing `lineNumber`) entirely — real fields on the Egeria DTOs (`DataLineageRelationshipProperties`/`ProcessCallProperties.java`) that had no home on the pydantic model, so a caller passing them would validate silently and have them dropped before serialization (the `PyegeriaModel` `extra='ignore'` gotcha — see the SDK section below). - **Governance Officer**: Manage governance definitions, policies, and responsibilities. +- **Security Officer** (added 2026-10-26, Egeria 6.3): Statements of applicability — the record of which controls from a standard (such as ISO/IEC 27001 Annex A) apply to the organization, why, and how far each is implemented. Processors in `md_processing/v2/security_officer.py`. + - `Create`/`Update Statement of Applicability`: an AuthoredReferenceable with `Scope`, `Review Date`, `Authors` and `Content Status` (set APPROVED before an audit). `Certification Standard` links the certification type it is assessed against (GovernedBy); `Scoped By` links the organization, site or system it covers (ScopedBy). Leaving either out leaves its links alone; `Merge Update: false` also removes links the command no longer lists. + - `Link`/`Unlink Control Applicability`: assess a control (any governance definition, typically a GovernanceControl) in a statement — `Is Applicable`, `Justification`, `Inclusion Reasons`, `Implementation Status` (NOT_STARTED, PLANNED, PARTIALLY_IMPLEMENTED, IMPLEMENTED, OTHER), `Implementation Description`, `Review Date`, and `Label` for the control's number in the standard. There is one relationship per control, and re-running Link updates it. Egeria's attach replaces the relationship's properties wholesale, so the command starts from the existing ones: re-linking with just a new status keeps the justification and the rest (`Merge Update: false` replaces them). + - Reports: `Statement-of-Applicability-Controls` (one row per control — use `LIST` for a markdown table, `DICT` for a spreadsheet) and `Statement-of-Applicability-Implementation-Summary` (applicable controls counted by implementation status; `BAR`/`PIE` for a chart). Both take `soa_guid`, which accepts the statement's GUID or qualified name, e.g. `View Report` with `Report Parameters` `soa_guid: StatementOfApplicability::Coco Pharmaceuticals ISMS`. The summary is analytic-function-backed, which `View Report` cannot run yet; use it through `exec_report_spec` or `SecurityOfficer.get_control_implementation_summary`. - **Action Author**: Define governance action process flows — reusable single-step action types and multi-step processes — and wire them to the engines and elements that execute them, without writing code (e.g., `Create Governance Action Process`, `Create Governance Action Process Step`, `Link First Process Step`, `Link Next Process Step`, `Link Action to Action Executor`, `Link Action to Target`). - **Curation**: Apply classifications and relationships to *existing* Referenceable elements after the fact — this family creates no elements of its own, it curates ones created elsewhere. Every command names a `Target Element` (Reference Name) and either a classification level/status or a second element to relate to. - **Classifications** (`Classify`/`Reclassify`/`Declassify`, or `Classify`/`Update`/`Declassify` for the three multi-value ones): Impact, Confidence, Confidentiality, Criticality, Retention, Ownership, Digital Resource Origin, Zone Membership, Security Tags, Data Scope, Governance Expectations, Governance Measurements, Known Duplicate, Consolidated Duplicate, and the 0438 naming-standards markers Class Word, Modifier, Prime Word (added 2026-08-09 once Egeria PR #9166 shipped the backing `glossary-manager` endpoints — routed through `GlossaryManager`, not `ClassificationExplorer`, unlike every other classification here). Also, added 2026-08-21 once an `omvs_audit.py` gap-closure pass shipped their backing REST endpoints (all confirmed against a live 6.2-SNAPSHOT server): the 10 governance-point classifications (0435: Control/Verification/Enforcement/Execution Point, Policy Administration/Decision/Enforcement/Information/Management/Retrieval Point — routed through `GovernanceOfficer`), 6 metamodel markers (0463: Incomplete, ObjectIdentifier, ReferenceData, MobileResource, InstanceMetadata, MetamodelInstance — routed through `ClassificationExplorer`), ProjectKind (routed through `ProjectManager`), CollectionKind (routed through `CollectionManager`), and a Data Sharing Agreement retrofit pair for classifying/declassifying an already-existing Agreement (routed through `DigitalBusiness` — `Create Data Sharing Agreement`, Digital Products family, already sets this at creation time via `initialClassifications`). Also Promise (0010, added 2026-09-30 — `Classify`/`Declassify Promise`, routed through `ClassificationExplorer`): marks an element as a placeholder for a real-world resource that has not yet been delivered, with Deployment Status, Start/Due/Last Review/Completion Time and Additional Properties. A promised element is only visible to lineage requests, so `Declassify Promise` looks up its Target Element and sends the clear request with `forLineage=true` automatically. diff --git a/md_processing/data/compact_commands/commands_security_officer_compact.json b/md_processing/data/compact_commands/commands_security_officer_compact.json new file mode 100644 index 00000000..02e9dae5 --- /dev/null +++ b/md_processing/data/compact_commands/commands_security_officer_compact.json @@ -0,0 +1,1255 @@ +{ + "family": "Security Officer", + "exported": "", + "attribute_definitions": { + "Additional Properties": { + "variable_name": "additional_properties", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "Additional Properties allow arbitrary properties not defined in the type definitions to be added to any referenceable element.", + "generated": false, + "style": "Dictionary", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Anchor ID": { + "variable_name": "anchor_id", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "Referenceable", + "description": "Name of the anchoring element.", + "generated": false, + "style": "Reference Name", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Anchor Scope ID": { + "variable_name": "anchor_scope_id", + "inUpdate": true, + "attr_labels": "Anchor Scope", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "Referenceable", + "description": "Anchor scope to restrict search.", + "generated": false, + "style": "Reference Name", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Anchor Scope IDs": { + "variable_name": "anchor_scope_ids", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "A list of IDs that are anchor scopes for this element.", + "generated": false, + "style": "Reference Name List", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Authors": { + "variable_name": "authors", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "The authors.", + "generated": false, + "style": "Simple List", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Basic", + "Journal Entry": "" + }, + "Category": { + "variable_name": "category", + "inUpdate": true, + "attr_labels": "Category Name", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "A user-defined category for the element, used to group related elements for display or search purposes.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Common", + "Journal Entry": "" + }, + "Confidence Classification": { + "variable_name": "confidence_classification", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [ + "UNCLASSIFIED", + "AD_HOC", + "TRANSACTIONAL", + "AUTHORITATIVE", + "DERIVED", + "OBSOLETE", + "OTHER" + ], + "existing_element": "", + "description": "Classification from 0422. Structure: {status_identifier: int, confidence: int, steward: str, steward_type_name: str, steward_property_name: str, source: str, notes: str, level_identifier: int}. level_identifier uses ConfidenceLevel enum: UNCLASSIFIED=0, AD_HOC=1, TRANSACTIONAL=2, AUTHORITATIVE=3, DERIVED=4, OBSOLETE=5, OTHER=99.", + "generated": false, + "style": "Valid Value", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Confidentiality Classification": { + "variable_name": "confidentiality_classification", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [ + "UNCLASSIFIED", + "INTERNAL", + "CONFIDENTIAL", + "SENSITIVE", + "RESTRICTED", + "OTHER" + ], + "existing_element": "", + "description": "Classification from 0422. Structure: {status_identifier: int, confidence: int, steward: str, steward_type_name: str, steward_property_name: str, source: str, notes: str, level_identifier: int}. level_identifier uses ConfidentialityLevel enum: UNCLASSIFIED=0, INTERNAL=1, CONFIDENTIAL=2, SENSITIVE=3, RESTRICTED=4, OTHER=99.", + "generated": false, + "style": "Valid Value", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Content Status": { + "variable_name": "content_status", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "ACTIVE", + "valid_values": [ + "DRAFT", + "PREPARED", + "PROPOSED", + "APPROVED", + "REJECTED", + "ACTIVE", + "DEPRECATED", + "OTHER" + ], + "existing_element": "", + "description": "The lifecycle status of an element.", + "generated": false, + "style": "Valid Value", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Common", + "Journal Entry": "" + }, + "Criticality Classification": { + "variable_name": "criticality_classification", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [ + "UNCLASSIFIED", + "MARGINAL", + "IMPORTANT", + "CRITICAL", + "CATASTROPHIC", + "OTHER" + ], + "existing_element": "", + "description": "Classification from 0422. Structure: {status_identifier: int, confidence: int, steward: str, steward_type_name: str, steward_property_name: str, source: str, notes: str, level_identifier: int}. level_identifier uses CriticalityLevel enum: UNCLASSIFIED=0, MARGINAL=1, IMPORTANT=2, CRITICAL=3, CATASTROPHIC=4, OTHER=99.", + "generated": false, + "style": "Valid Value", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Description": { + "variable_name": "description", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "A description.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Common", + "Journal Entry": "" + }, + "Display Name": { + "variable_name": "display_name", + "inUpdate": true, + "attr_labels": "\"Term Name\"", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "The common name of an element.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": true, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Common", + "Journal Entry": "" + }, + "Effective From": { + "variable_name": "effective_from", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "The beginning of when an element is viewable.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Effective Time": { + "variable_name": "effective_time", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "The time at which an element must be effective in order to be returned by the request.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Effective To": { + "variable_name": "effective_to", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "The ending time at which an element is visible.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Extended Properties": { + "variable_name": "extended_properties", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "A dictionary of properties that extend the properties of an entity type.", + "generated": false, + "style": "Dictionary", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Invisible", + "Journal Entry": "" + }, + "External Source GUID": { + "variable_name": "external_source_guid", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "The unique identifier of an external source.", + "generated": false, + "style": "GUID", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "External Source Name": { + "variable_name": "external_source_name", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "The name of an external source", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "For Duplicate Processing": { + "variable_name": "for_duplicate_processing", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "Flag indicating if the request is to support duplicate processing.", + "generated": false, + "style": "Bool", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "For Lineage": { + "variable_name": "for_lineage", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "Flag indicating if the request is to support lineage.", + "generated": false, + "style": "Bool", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "GUID": { + "variable_name": "guid", + "inUpdate": true, + "attr_labels": "guid; Guid", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "A unique identifier - typically of an element in this context.", + "generated": false, + "style": "GUID", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Basic", + "Journal Entry": "" + }, + "Glossary Term": { + "variable_name": "glossary_term", + "inUpdate": true, + "attr_labels": "Term", + "examples": "Term::Zip Code", + "default_value": "", + "valid_values": [], + "existing_element": "GlossaryTerm", + "description": "Term that provides meaning to this field.", + "generated": false, + "style": "Reference Name", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Identifier": { + "variable_name": "identifier", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "An identier", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Impact Classification": { + "variable_name": "impact_classification", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [ + "UNCLASSIFIED", + "LOW", + "MEDIUM", + "HIGH", + "OTHER" + ], + "existing_element": "", + "description": "Classification from 0422. Structure: {status_identifier: int, confidence: int, steward: str, steward_type_name: str, steward_property_name: str, source: str, notes: str, severity_identifier: int}. severity_identifier uses ImpactSeverity enum: UNCLASSIFIED=0, LOW=1, MEDIUM=2, HIGH=3, OTHER=99.", + "generated": false, + "style": "Valid Value", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Implementation Description": { + "variable_name": "implementation_description", + "inUpdate": true, + "attr_labels": "Implementation", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "Describes how this governance control is implemented.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Domain", + "Journal Entry": "" + }, + "Is Own Anchor": { + "variable_name": "is_own_anchor", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "true", + "valid_values": [], + "existing_element": "", + "description": "A flag indicating if the element is its own anchor or is anchored to a different element.", + "generated": false, + "style": "Bool", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Journal Entry": { + "variable_name": "journal_entry", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "A text entry into a journal.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Common", + "Journal Entry": "" + }, + "Label": { + "variable_name": "label", + "inUpdate": true, + "attr_labels": "Wire Label", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "A label used to identify or categorise a relationship link.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Domain", + "Journal Entry": "" + }, + "Legal": { + "variable_name": "legal", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "Copyright and/or license information for the element or associated resource.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Common", + "Journal Entry": "" + }, + "Make Anchor": { + "variable_name": "make_anchor", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "false", + "valid_values": [], + "existing_element": "", + "description": "Is the element at end2 an anchor to end1?", + "generated": false, + "style": "Bool", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Merge Update": { + "variable_name": "merge_update", + "inUpdate": true, + "attr_labels": "isMergeUpdate", + "examples": "", + "default_value": "true", + "valid_values": [], + "existing_element": "", + "description": "A flag indicating if the update should be a merge or replace.", + "generated": false, + "style": "Bool", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Parent ID": { + "variable_name": "parent_id", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "Referenceable", + "description": "Name of the parent", + "generated": false, + "style": "Reference Name", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Parent Relationship Attributes": { + "variable_name": "parent_relationship_attributes", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "A dictionary of relationship attributes to establish the parent relationship.", + "generated": false, + "style": "Dictionary", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Parent Relationship Type Name": { + "variable_name": "parent_relationship_type_name", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "The type of parent relationship.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Parent at End1": { + "variable_name": "parent_at_end1", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "true", + "valid_values": [], + "existing_element": "", + "description": "A flag indicating if the parent is at end1 of the relationship", + "generated": false, + "style": "Bool", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Policy Management Point": { + "variable_name": "policy_management_point", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "Combined classification from 0435. Applied to Referenceable. Structure: {point_type: str, name: str, description: str}. point_type is one of: PolicyAdministrationPoint, PolicyDecisionPoint, PolicyEnforcementPoint, PolicyInformationPoint, PolicyRetrievalPoint. A Referenceable may have multiple policy management point classifications simultaneously.", + "generated": false, + "style": "Dictionary", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Qualified Name": { + "variable_name": "qualified_name", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "The unique, text name of an element.", + "generated": false, + "style": "QN", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Common", + "Journal Entry": "" + }, + "Request ID": { + "variable_name": "request_id", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "A user provided or system generated request id for a conversation.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Retention Classification": { + "variable_name": "retention_classification", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [ + "UNCLASSIFIED", + "TEMPORARY", + "PROJECT_LIFETIME", + "TEAM_LIFETIME", + "CONTRACT_LIFETIME", + "REGULATED_LIFETIME", + "TIMEBOXED_LIFETIME", + "OTHER" + ], + "existing_element": "", + "description": "Classification from 0422. Structure: {status_identifier: int, confidence: int, steward: str, steward_type_name: str, steward_property_name: str, source: str, notes: str, basis_identifier: int, associated_guid: str, archive_after: date, delete_after: date}. basis_identifier uses RetentionBasis enum: UNCLASSIFIED=0, TEMPORARY=1, PROJECT_LIFETIME=2, TEAM_LIFETIME=3, CONTRACT_LIFETIME=4, REGULATED_LIFETIME=5, TIMEBOXED_LIFETIME=6, OTHER=99.", + "generated": false, + "style": "Valid Value", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Scope": { + "variable_name": "scope", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "Scope of the definition or element.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Common", + "Journal Entry": "" + }, + "Search Keywords": { + "variable_name": "search_keywords", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "A list of search keywords.", + "generated": false, + "style": "Simple List", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 0, + "level": "Basic", + "Journal Entry": "" + }, + "Security Tags": { + "variable_name": "security_tags", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "Optional security tags for security processing.", + "generated": false, + "style": "Simple List", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 0, + "level": "Advanced", + "Journal Entry": "" + }, + "Status": { + "variable_name": "status", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "ACTIVE", + "valid_values": [], + "existing_element": "", + "description": "Repository or element header status for an element.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "URL": { + "variable_name": "url", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "URL for further information.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Basic", + "Journal Entry": "" + }, + "User Defined Content Status": { + "variable_name": "user_defined_content_status", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "A user defined content status = only valid if content status is OTHER.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Version Identifier": { + "variable_name": "version_identifier", + "inUpdate": true, + "attr_labels": "Version", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "The version of the element", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Basic", + "Journal Entry": "" + }, + "Zone Membership": { + "variable_name": "zone_membership", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "Zones scope visibility of elements to different users.", + "generated": false, + "style": "Simple List", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Advanced", + "Journal Entry": "" + }, + "Review Date": { + "variable_name": "review_date", + "inUpdate": true, + "attr_labels": "", + "examples": "2026-10-26", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "When the statement, or this control's applicability, was last reviewed.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Basic", + "Journal Entry": "" + }, + "Certification Standard": { + "variable_name": "certification_standard", + "inUpdate": true, + "attr_labels": "", + "examples": "CertificationType::ISO/IEC 27001:2022", + "default_value": "", + "valid_values": [], + "existing_element": "CertificationType", + "description": "The certification type (standard) the statement of applicability is assessed against. Linked with a GovernedBy relationship.", + "generated": false, + "style": "Reference Name", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Basic", + "Journal Entry": "" + }, + "Scoped By": { + "variable_name": "scoped_by", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "Referenceable", + "description": "Elements, such as an organization, site or system, that define the scope the statement covers. Each is linked with a ScopedBy relationship.", + "generated": false, + "style": "Reference Name List", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": -1, + "level": "Basic", + "Journal Entry": "" + }, + "Statement of Applicability": { + "variable_name": "statement_of_applicability", + "inUpdate": true, + "attr_labels": "", + "examples": "StatementOfApplicability::Coco Pharmaceuticals ISMS", + "default_value": "", + "valid_values": [], + "existing_element": "StatementOfApplicability", + "description": "The statement of applicability the control is assessed in.", + "generated": false, + "style": "Reference Name", + "user_specified": true, + "unique": false, + "input_required": true, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Domain", + "Journal Entry": "" + }, + "Control": { + "variable_name": "control", + "inUpdate": true, + "attr_labels": "", + "examples": "NIST SP 800-53 Rev 5::AC-2", + "default_value": "", + "valid_values": [], + "existing_element": "GovernanceDefinition", + "description": "The governance definition describing the control being assessed - typically a GovernanceControl from a standard.", + "generated": false, + "style": "Reference Name", + "user_specified": true, + "unique": false, + "input_required": true, + "min_cardinality": 1, + "max_cardinality": 1, + "level": "Domain", + "Journal Entry": "" + }, + "Is Applicable": { + "variable_name": "is_applicable", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "Whether the control applies. Egeria treats a control as applicable unless this is false.", + "generated": false, + "style": "Bool", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Basic", + "Journal Entry": "" + }, + "Justification": { + "variable_name": "justification", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "Why the control is included or excluded.", + "generated": false, + "style": "Simple", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Basic", + "Journal Entry": "" + }, + "Inclusion Reasons": { + "variable_name": "inclusion_reasons", + "inUpdate": true, + "attr_labels": "", + "examples": "Risk Treatment, Business Requirement", + "default_value": "", + "valid_values": [], + "existing_element": "", + "description": "Why the control is included. Suggested values: Risk Treatment, Legal or Regulatory Requirement, Contractual Obligation, Business Requirement, Best Practice.", + "generated": false, + "style": "Simple List", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Basic", + "Journal Entry": "" + }, + "Implementation Status": { + "variable_name": "implementation_status", + "inUpdate": true, + "attr_labels": "", + "examples": "", + "default_value": "", + "valid_values": [ + "NOT_STARTED", + "PLANNED", + "PARTIALLY_IMPLEMENTED", + "IMPLEMENTED", + "OTHER" + ], + "existing_element": "", + "description": "How far the control has been implemented. Egeria defaults a new link to NOT_STARTED.", + "generated": false, + "style": "Valid Value", + "user_specified": true, + "unique": false, + "input_required": false, + "min_cardinality": 0, + "max_cardinality": 1, + "level": "Basic", + "Journal Entry": "" + } + }, + "bundles": { + "Request Base": { + "inherits": null, + "own_attributes": [ + "Effective From", + "Effective Time", + "Effective To", + "Extended Properties", + "External Source GUID", + "External Source Name", + "For Duplicate Processing", + "For Lineage", + "Journal Entry", + "Request ID" + ] + }, + "New-Element": { + "inherits": "Request Base", + "own_attributes": [ + "Anchor ID", + "Anchor Scope ID", + "Glossary Term", + "Is Own Anchor", + "Merge Update", + "Parent at End1", + "Parent ID", + "Parent Relationship Attributes", + "Parent Relationship Type Name", + "Search Keywords", + "Status", + "Zone Membership" + ] + }, + "Referenceable": { + "inherits": "New-Element", + "own_attributes": [ + "Additional Properties", + "Category", + "Confidence Classification", + "Confidentiality Classification", + "Criticality Classification", + "Description", + "Display Name", + "GUID", + "Identifier", + "Impact Classification", + "Legal", + "Policy Management Point", + "Qualified Name", + "Retention Classification", + "Security Tags", + "URL", + "Version Identifier" + ] + }, + "Authored Referenceable": { + "inherits": "Referenceable", + "own_attributes": [ + "Authors", + "Content Status", + "User Defined Content Status" + ] + }, + "Link Command Base": { + "inherits": "Request Base", + "own_attributes": [ + "Anchor Scope IDs", + "Description", + "Label", + "Make Anchor" + ] + }, + "Statement of Applicability": { + "inherits": "Authored Referenceable", + "own_attributes": [ + "Scope", + "Review Date" + ] + } + }, + "commands": { + "Create Statement of Applicability": { + "alternate_names": [], + "family": "Security Officer", + "upsert": true, + "attach": false, + "level": "Basic", + "find_method": "SecurityOfficer.find_statements_of_applicability", + "find_constraints": "", + "extra_find": "", + "extra_constraints": "", + "Journal Entry": "", + "display_name": "Statement of Applicability", + "qn_prefix": "StatementOfApplicability", + "description": "A statement of applicability records which controls from a standard, such as ISO/IEC 27001 Annex A, apply to the organization, why, and how far each is implemented.", + "verb": "Create", + "OM_TYPE": "StatementOfApplicability", + "bundle": "Statement of Applicability", + "custom_attributes": [ + "Certification Standard", + "Scoped By" + ] + }, + "Link Control Applicability": { + "alternate_names": [], + "family": "Security Officer", + "upsert": false, + "attach": false, + "level": "Basic", + "find_method": "", + "find_constraints": "", + "extra_find": "", + "extra_constraints": "", + "Journal Entry": "", + "display_name": "Control Applicability", + "qn_prefix": "", + "description": "Record whether a control applies to a statement of applicability, why, and how far it is implemented. Linking a control that is already linked updates its applicability.", + "verb": "Link", + "OM_TYPE": "ControlApplicability", + "bundle": "Link Command Base", + "custom_attributes": [ + "Statement of Applicability", + "Control", + "Is Applicable", + "Justification", + "Inclusion Reasons", + "Implementation Status", + "Implementation Description", + "Review Date", + "Merge Update" + ] + } + } +} diff --git a/md_processing/data/generated_format_sets.json b/md_processing/data/generated_format_sets.json index c12f71ec..8900880a 100644 --- a/md_processing/data/generated_format_sets.json +++ b/md_processing/data/generated_format_sets.json @@ -231799,6 +231799,1866 @@ "get_additional_props": null, "question_spec": null }, + "Statement-of-Applicability-DrE-Basic": { + "target_type": "Statement of Applicability", + "heading": "Statement-of-Applicability-DrE-Basic Attributes", + "description": "Auto-generated format for Statement of Applicability (Create, Basic).", + "aliases": [], + "annotations": {}, + "family": "Security Officer", + "formats": [ + { + "types": [ + "LIST" + ], + "attributes": [ + { + "name": "Display Name", + "key": "display_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Qualified Name", + "key": "qualified_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "GUID", + "key": "guid", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Description", + "key": "description", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Legal", + "key": "legal", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Authors", + "key": "authors", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scope", + "key": "scope", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Review Date", + "key": "review_date", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Certification Standard", + "key": "certification_standard", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scoped By", + "key": "scoped_by", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Version Identifier", + "key": "version_identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Content Status", + "key": "content_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "DRAFT", + "PREPARED", + "PROPOSED", + "APPROVED", + "REJECTED", + "ACTIVE", + "DEPRECATED", + "OTHER" + ] + }, + { + "name": "Category", + "key": "category", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + } + ], + "columns": [ + { + "name": "Display Name", + "key": "display_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Qualified Name", + "key": "qualified_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "GUID", + "key": "guid", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Description", + "key": "description", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Legal", + "key": "legal", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Authors", + "key": "authors", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scope", + "key": "scope", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Review Date", + "key": "review_date", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Certification Standard", + "key": "certification_standard", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scoped By", + "key": "scoped_by", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Version Identifier", + "key": "version_identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Content Status", + "key": "content_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "DRAFT", + "PREPARED", + "PROPOSED", + "APPROVED", + "REJECTED", + "ACTIVE", + "DEPRECATED", + "OTHER" + ] + }, + { + "name": "Category", + "key": "category", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + } + ] + }, + { + "types": [ + "ALL" + ], + "attributes": [ + { + "name": "Category", + "key": "category", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Description", + "key": "description", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Display Name", + "key": "display_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "GUID", + "key": "guid", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Legal", + "key": "legal", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Qualified Name", + "key": "qualified_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "URL", + "key": "url", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Version Identifier", + "key": "version_identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Authors", + "key": "authors", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Content Status", + "key": "content_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "DRAFT", + "PREPARED", + "PROPOSED", + "APPROVED", + "REJECTED", + "ACTIVE", + "DEPRECATED", + "OTHER" + ] + }, + { + "name": "Scope", + "key": "scope", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Review Date", + "key": "review_date", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Certification Standard", + "key": "certification_standard", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scoped By", + "key": "scoped_by", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + } + ], + "columns": [ + { + "name": "Category", + "key": "category", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Description", + "key": "description", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Display Name", + "key": "display_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "GUID", + "key": "guid", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Legal", + "key": "legal", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Qualified Name", + "key": "qualified_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "URL", + "key": "url", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Version Identifier", + "key": "version_identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Authors", + "key": "authors", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Content Status", + "key": "content_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "DRAFT", + "PREPARED", + "PROPOSED", + "APPROVED", + "REJECTED", + "ACTIVE", + "DEPRECATED", + "OTHER" + ] + }, + { + "name": "Scope", + "key": "scope", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Review Date", + "key": "review_date", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Certification Standard", + "key": "certification_standard", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scoped By", + "key": "scoped_by", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + } + ] + } + ], + "action": { + "function": "SecurityOfficer.find_statements_of_applicability", + "required_params": [ + "search_string" + ], + "optional_params": [ + "sequencing_order", + "sequencing_property", + "page_size", + "start_from", + "starts_with", + "ends_with", + "ignore_case", + "classification_names", + "metadata_element_subtypes", + "metadata_element_type" + ], + "spec_params": {}, + "analytic_function": null, + "analytic_spec_params": {}, + "analytic_binders": {} + }, + "get_additional_props": null, + "question_spec": null + }, + "Statement-of-Applicability-DrE-Advanced": { + "target_type": "Statement of Applicability", + "heading": "Statement-of-Applicability-DrE-Advanced Attributes", + "description": "Auto-generated format for Statement of Applicability (Create, Advanced).", + "aliases": [], + "annotations": {}, + "family": "Security Officer", + "formats": [ + { + "types": [ + "LIST" + ], + "attributes": [ + { + "name": "Display Name", + "key": "display_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Qualified Name", + "key": "qualified_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "GUID", + "key": "guid", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Effective From", + "key": "effective_from", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Effective Time", + "key": "effective_time", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Effective To", + "key": "effective_to", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Glossary Term", + "key": "glossary_term", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Is Own Anchor", + "key": "is_own_anchor", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Zone Membership", + "key": "zone_membership", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Additional Properties", + "key": "additional_properties", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Confidence Classification", + "key": "confidence_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "AD_HOC", + "TRANSACTIONAL", + "AUTHORITATIVE", + "DERIVED", + "OBSOLETE", + "OTHER" + ] + }, + { + "name": "Confidentiality Classification", + "key": "confidentiality_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "INTERNAL", + "CONFIDENTIAL", + "SENSITIVE", + "RESTRICTED", + "OTHER" + ] + }, + { + "name": "Criticality Classification", + "key": "criticality_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "MARGINAL", + "IMPORTANT", + "CRITICAL", + "CATASTROPHIC", + "OTHER" + ] + }, + { + "name": "Description", + "key": "description", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Identifier", + "key": "identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Impact Classification", + "key": "impact_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "LOW", + "MEDIUM", + "HIGH", + "OTHER" + ] + }, + { + "name": "Legal", + "key": "legal", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Policy Management Point", + "key": "policy_management_point", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Retention Classification", + "key": "retention_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "TEMPORARY", + "PROJECT_LIFETIME", + "TEAM_LIFETIME", + "CONTRACT_LIFETIME", + "REGULATED_LIFETIME", + "TIMEBOXED_LIFETIME", + "OTHER" + ] + }, + { + "name": "Security Tags", + "key": "security_tags", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Authors", + "key": "authors", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scope", + "key": "scope", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Review Date", + "key": "review_date", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Certification Standard", + "key": "certification_standard", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scoped By", + "key": "scoped_by", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Classifications", + "key": "classifications", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Anchor Scope Name", + "key": "anchor_scope_guid", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Supplementary Properties", + "key": "supplementary_properties", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Version Identifier", + "key": "version_identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Status", + "key": "status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Content Status", + "key": "content_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "DRAFT", + "PREPARED", + "PROPOSED", + "APPROVED", + "REJECTED", + "ACTIVE", + "DEPRECATED", + "OTHER" + ] + }, + { + "name": "User Defined Content Status", + "key": "user_defined_content_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "User Defined Status", + "key": "user_defined_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Category", + "key": "category", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + } + ], + "columns": [ + { + "name": "Display Name", + "key": "display_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Qualified Name", + "key": "qualified_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "GUID", + "key": "guid", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Effective From", + "key": "effective_from", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Effective Time", + "key": "effective_time", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Effective To", + "key": "effective_to", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Glossary Term", + "key": "glossary_term", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Is Own Anchor", + "key": "is_own_anchor", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Zone Membership", + "key": "zone_membership", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Additional Properties", + "key": "additional_properties", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Confidence Classification", + "key": "confidence_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "AD_HOC", + "TRANSACTIONAL", + "AUTHORITATIVE", + "DERIVED", + "OBSOLETE", + "OTHER" + ] + }, + { + "name": "Confidentiality Classification", + "key": "confidentiality_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "INTERNAL", + "CONFIDENTIAL", + "SENSITIVE", + "RESTRICTED", + "OTHER" + ] + }, + { + "name": "Criticality Classification", + "key": "criticality_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "MARGINAL", + "IMPORTANT", + "CRITICAL", + "CATASTROPHIC", + "OTHER" + ] + }, + { + "name": "Description", + "key": "description", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Identifier", + "key": "identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Impact Classification", + "key": "impact_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "LOW", + "MEDIUM", + "HIGH", + "OTHER" + ] + }, + { + "name": "Legal", + "key": "legal", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Policy Management Point", + "key": "policy_management_point", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Retention Classification", + "key": "retention_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "TEMPORARY", + "PROJECT_LIFETIME", + "TEAM_LIFETIME", + "CONTRACT_LIFETIME", + "REGULATED_LIFETIME", + "TIMEBOXED_LIFETIME", + "OTHER" + ] + }, + { + "name": "Security Tags", + "key": "security_tags", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Authors", + "key": "authors", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scope", + "key": "scope", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Review Date", + "key": "review_date", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Certification Standard", + "key": "certification_standard", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scoped By", + "key": "scoped_by", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Classifications", + "key": "classifications", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Anchor Scope Name", + "key": "anchor_scope_guid", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Supplementary Properties", + "key": "supplementary_properties", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Version Identifier", + "key": "version_identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Status", + "key": "status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Content Status", + "key": "content_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "DRAFT", + "PREPARED", + "PROPOSED", + "APPROVED", + "REJECTED", + "ACTIVE", + "DEPRECATED", + "OTHER" + ] + }, + { + "name": "User Defined Content Status", + "key": "user_defined_content_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "User Defined Status", + "key": "user_defined_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Category", + "key": "category", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + } + ] + }, + { + "types": [ + "ALL" + ], + "attributes": [ + { + "name": "Effective From", + "key": "effective_from", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Effective Time", + "key": "effective_time", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Effective To", + "key": "effective_to", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Glossary Term", + "key": "glossary_term", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Is Own Anchor", + "key": "is_own_anchor", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Status", + "key": "status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Zone Membership", + "key": "zone_membership", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Additional Properties", + "key": "additional_properties", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Category", + "key": "category", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Confidence Classification", + "key": "confidence_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "AD_HOC", + "TRANSACTIONAL", + "AUTHORITATIVE", + "DERIVED", + "OBSOLETE", + "OTHER" + ] + }, + { + "name": "Confidentiality Classification", + "key": "confidentiality_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "INTERNAL", + "CONFIDENTIAL", + "SENSITIVE", + "RESTRICTED", + "OTHER" + ] + }, + { + "name": "Criticality Classification", + "key": "criticality_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "MARGINAL", + "IMPORTANT", + "CRITICAL", + "CATASTROPHIC", + "OTHER" + ] + }, + { + "name": "Description", + "key": "description", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Display Name", + "key": "display_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "GUID", + "key": "guid", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Identifier", + "key": "identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Impact Classification", + "key": "impact_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "LOW", + "MEDIUM", + "HIGH", + "OTHER" + ] + }, + { + "name": "Legal", + "key": "legal", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Policy Management Point", + "key": "policy_management_point", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Qualified Name", + "key": "qualified_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Retention Classification", + "key": "retention_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "TEMPORARY", + "PROJECT_LIFETIME", + "TEAM_LIFETIME", + "CONTRACT_LIFETIME", + "REGULATED_LIFETIME", + "TIMEBOXED_LIFETIME", + "OTHER" + ] + }, + { + "name": "Security Tags", + "key": "security_tags", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "URL", + "key": "url", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Version Identifier", + "key": "version_identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Authors", + "key": "authors", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Content Status", + "key": "content_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "DRAFT", + "PREPARED", + "PROPOSED", + "APPROVED", + "REJECTED", + "ACTIVE", + "DEPRECATED", + "OTHER" + ] + }, + { + "name": "User Defined Content Status", + "key": "user_defined_content_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scope", + "key": "scope", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Review Date", + "key": "review_date", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Certification Standard", + "key": "certification_standard", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scoped By", + "key": "scoped_by", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "User Defined Status", + "key": "user_defined_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Classifications", + "key": "classifications", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Anchor Scope Name", + "key": "anchor_scope_guid", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Supplementary Properties", + "key": "supplementary_properties", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + } + ], + "columns": [ + { + "name": "Effective From", + "key": "effective_from", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Effective Time", + "key": "effective_time", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Effective To", + "key": "effective_to", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Glossary Term", + "key": "glossary_term", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Is Own Anchor", + "key": "is_own_anchor", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Status", + "key": "status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Zone Membership", + "key": "zone_membership", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Additional Properties", + "key": "additional_properties", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Category", + "key": "category", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Confidence Classification", + "key": "confidence_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "AD_HOC", + "TRANSACTIONAL", + "AUTHORITATIVE", + "DERIVED", + "OBSOLETE", + "OTHER" + ] + }, + { + "name": "Confidentiality Classification", + "key": "confidentiality_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "INTERNAL", + "CONFIDENTIAL", + "SENSITIVE", + "RESTRICTED", + "OTHER" + ] + }, + { + "name": "Criticality Classification", + "key": "criticality_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "MARGINAL", + "IMPORTANT", + "CRITICAL", + "CATASTROPHIC", + "OTHER" + ] + }, + { + "name": "Description", + "key": "description", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Display Name", + "key": "display_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "GUID", + "key": "guid", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Identifier", + "key": "identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Impact Classification", + "key": "impact_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "LOW", + "MEDIUM", + "HIGH", + "OTHER" + ] + }, + { + "name": "Legal", + "key": "legal", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Policy Management Point", + "key": "policy_management_point", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Qualified Name", + "key": "qualified_name", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Retention Classification", + "key": "retention_classification", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "UNCLASSIFIED", + "TEMPORARY", + "PROJECT_LIFETIME", + "TEAM_LIFETIME", + "CONTRACT_LIFETIME", + "REGULATED_LIFETIME", + "TIMEBOXED_LIFETIME", + "OTHER" + ] + }, + { + "name": "Security Tags", + "key": "security_tags", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "URL", + "key": "url", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Version Identifier", + "key": "version_identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Authors", + "key": "authors", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Content Status", + "key": "content_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "DRAFT", + "PREPARED", + "PROPOSED", + "APPROVED", + "REJECTED", + "ACTIVE", + "DEPRECATED", + "OTHER" + ] + }, + { + "name": "User Defined Content Status", + "key": "user_defined_content_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scope", + "key": "scope", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Review Date", + "key": "review_date", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Certification Standard", + "key": "certification_standard", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Scoped By", + "key": "scoped_by", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "User Defined Status", + "key": "user_defined_status", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Classifications", + "key": "classifications", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Anchor Scope Name", + "key": "anchor_scope_guid", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, + { + "name": "Supplementary Properties", + "key": "supplementary_properties", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + } + ] + } + ], + "action": { + "function": "SecurityOfficer.find_statements_of_applicability", + "required_params": [ + "search_string" + ], + "optional_params": [ + "sequencing_order", + "sequencing_property", + "page_size", + "start_from", + "starts_with", + "ends_with", + "ignore_case", + "classification_names", + "metadata_element_subtypes", + "metadata_element_type" + ], + "spec_params": {}, + "analytic_function": null, + "analytic_spec_params": {}, + "analytic_binders": {} + }, + "get_additional_props": null, + "question_spec": null + }, "Information-Supply-Chain-DrE-Basic": { "target_type": "Information Supply Chain", "heading": "Information-Supply-Chain-DrE-Basic Attributes", diff --git a/md_processing/dr_egeria.py b/md_processing/dr_egeria.py index e2055de8..09536456 100644 --- a/md_processing/dr_egeria.py +++ b/md_processing/dr_egeria.py @@ -43,6 +43,7 @@ ActionProcessStepLinkProcessor, ActionExecutorTargetLinkProcessor, CreateDashboardSheetProcessor, LinkReportToDashboardSheetProcessor, AddTextOnDashboardSheetProcessor, ReportProcessor, + StatementOfApplicabilityProcessor, ControlApplicabilityLinkProcessor, SavedQueryProcessor, SmartQueryLinkProcessor, CurationClassifyProcessor, CurationLinkProcessor, CLASSIFICATION_METHODS, ReferenceDataLinkProcessor, ValidMetadataValueProcessor, ReferenceDataElementProcessor, ValidValueLinkProcessor, @@ -476,6 +477,12 @@ def reg(base, cls): reg("View Report", ViewProcessor) reg("Create Report", ReportProcessor) reg("Update Report", ReportProcessor) + + # Security Officer -- statements of applicability (Egeria 6.3) + reg("Create Statement of Applicability", StatementOfApplicabilityProcessor) + reg("Update Statement of Applicability", StatementOfApplicabilityProcessor) + for verb in ("Link", "Attach", "Add", "Unlink", "Detach", "Remove"): + reg(f"{verb} Control Applicability", ControlApplicabilityLinkProcessor) reg("Create Saved Query", SavedQueryProcessor) reg("Update Saved Query", SavedQueryProcessor) reg("Link Saved Query to Results Set", SmartQueryLinkProcessor) diff --git a/md_processing/v2/__init__.py b/md_processing/v2/__init__.py index 82a39bb0..821fb568 100644 --- a/md_processing/v2/__init__.py +++ b/md_processing/v2/__init__.py @@ -36,6 +36,7 @@ from .actor_manager import ActorManagerProcessor, ActorManagerLinkProcessor from .dashboard_sheet import CreateDashboardSheetProcessor, LinkReportToDashboardSheetProcessor, AddTextOnDashboardSheetProcessor from .report import ReportProcessor +from .security_officer import StatementOfApplicabilityProcessor, ControlApplicabilityLinkProcessor from .saved_query import SavedQueryProcessor, SmartQueryLinkProcessor from .curation import CurationClassifyProcessor, CurationLinkProcessor, CLASSIFICATION_METHODS from .reference_data import (ReferenceDataLinkProcessor, ValidMetadataValueProcessor, ReferenceDataElementProcessor, diff --git a/md_processing/v2/security_officer.py b/md_processing/v2/security_officer.py new file mode 100644 index 00000000..bd310d8d --- /dev/null +++ b/md_processing/v2/security_officer.py @@ -0,0 +1,254 @@ +""" +Security Officer Processors for Dr.Egeria v2. + +Handles statements of applicability (Egeria 6.3): `Create/Update Statement of +Applicability` and `Link/Unlink Control Applicability`, built on the +SecurityOfficer OMVS client. + +A statement records which controls from a standard (for example the Annex A +controls of ISO/IEC 27001) apply to the organization, why, and how far each is +implemented: + + CertificationType --GovernedBy--> StatementOfApplicability + StatementOfApplicability --ScopedBy--> Referenceable (organization, site, system...) + StatementOfApplicability --ControlApplicability--> GovernanceDefinition (a control) + +ControlApplicability is not multi-link, and its attach operation updates the +properties of an existing relationship, so re-running a Link command for the +same statement and control is how a control's status is updated. +""" +from typing import Any, Dict, Optional + +from loguru import logger + +from md_processing.v2.processors import AsyncBaseCommandProcessor +from md_processing.md_processing_utils.common_md_utils import ( + set_create_body, + set_delete_rel_request_body, + set_element_prop_body, + set_rel_request_body, + update_element_dictionary, +) +from pyegeria.core._exceptions import PyegeriaException +from pyegeria.core.utils import body_slimmer + + +def _related_guids(element: Optional[Dict[str, Any]], relationship_type: str, + related_type: Optional[str] = None) -> set: + """GUIDs of the elements related to `element` through `relationship_type`. + + Scans every list in the element for related-element entries rather than + relying on one key name, since Egeria groups relationships under + type-specific keys (e.g. governedBy, scopedBy) or otherRelatedElements. + `related_type` restricts the result to related elements of that type. + """ + guids = set() + if not isinstance(element, dict): + return guids + for value in element.values(): + if not isinstance(value, list): + continue + for entry in value: + if not isinstance(entry, dict): + continue + rel_header = entry.get("relationshipHeader") or {} + if (rel_header.get("type") or {}).get("typeName") != relationship_type: + continue + related_header = (entry.get("relatedElement") or {}).get("elementHeader") or {} + if related_type and (related_header.get("type") or {}).get("typeName") != related_type: + continue + if related_header.get("guid"): + guids.add(related_header["guid"]) + return guids + + +def _plain_rel_body(attributes: Dict[str, Any]) -> Dict[str, Any]: + """A NewRelationshipRequestBody with no relationship properties. + + set_rel_request_body leaves "properties" as "" for the caller to fill; + GovernedBy and ScopedBy need none here, so drop it rather than send a string. + """ + body = set_rel_request_body("", attributes) + body.pop("properties", None) + return body_slimmer(body) + + +class StatementOfApplicabilityProcessor(AsyncBaseCommandProcessor): + """Processor for Create Statement of Applicability (and its Update transition).""" + + async def fetch_element(self, guid: str) -> Optional[Dict[str, Any]]: + try: + element = await self.client._async_get_statement_of_applicability_by_guid(guid) + except PyegeriaException: + return None + return element if isinstance(element, dict) else None + + async def apply_changes(self) -> str: + verb = self.command.verb + attributes = self.parsed_output["attributes"] + qualified_name = self.parsed_output.get("qualified_name") or self.derive_qualified_name(attributes) + display_name = attributes.get("Display Name", {}).get("value") or qualified_name + merge_update = attributes.get("Merge Update", {}).get("value", True) + + props = set_element_prop_body("StatementOfApplicability", qualified_name, attributes) + props["scope"] = attributes.get("Scope", {}).get("value") + props["reviewDate"] = attributes.get("Review Date", {}).get("value") + + if verb == "Update" or self.as_is_element: + guid = self.parsed_output.get("guid") or ( + self.as_is_element["elementHeader"]["guid"] if self.as_is_element else None) + if not guid: + return self.command.raw_block + self.last_body = body = { + "class": "UpdateElementRequestBody", + "properties": self.filter_update_properties(props, merge_update), + "mergeUpdate": merge_update, + } + await self.client._async_update_statement_of_applicability(guid, body_slimmer(body)) + verb_word = "Updated" + else: + self.last_body = body = set_create_body("StatementOfApplicability", attributes) + body["properties"] = props + raw_guid = await self.client._async_create_statement_of_applicability(body_slimmer(body)) + guid = self.extract_guid_or_raise(raw_guid, "Create Statement of Applicability") + verb_word = "Created" + + self.parsed_output["guid"] = guid + await self._sync_relationships(guid, attributes, replace_all=not merge_update) + update_element_dictionary(qualified_name, {"guid": guid, "display_name": display_name}) + logger.success(f"{verb_word} Statement of Applicability '{display_name}' with GUID {guid}") + return await self.render_result_markdown(guid) + + async def _sync_relationships(self, guid: str, attributes: Dict[str, Any], replace_all: bool) -> None: + """Bring the GovernedBy (certification standard) and ScopedBy links in line with the command. + + An attribute left out of the command leaves its relationships alone. A + merge update only adds; a replacing update (Merge Update false) also + removes links the command no longer lists. Only GovernedBy links to a + CertificationType are considered, so other governance definitions + governing the statement are never removed here. + """ + as_is = self.as_is_element + + if attributes.get("Certification Standard", {}).get("value"): + cert_guid = attributes["Certification Standard"].get("guid") + to_be = {cert_guid} if cert_guid else set() + res = await self.sync_members( + _related_guids(as_is, "GovernedBy", "CertificationType"), + to_be, + lambda g: self.client._async_attach_governed_by_definition( + guid, g, _plain_rel_body(attributes)), + lambda g: self.client._async_detach_governed_by_definition( + guid, g, body_slimmer(set_delete_rel_request_body("GovernedBy", attributes))), + replace_all=replace_all, + ) + self._report_sync("Certification Standard", res) + + if attributes.get("Scoped By", {}).get("value"): + to_be = set(attributes["Scoped By"].get("guid_list") or []) + res = await self.sync_members( + _related_guids(as_is, "ScopedBy"), + to_be, + lambda g: self.client._async_add_scope_to_element( + scoped_by_guid=g, element_guid=guid, + body=_plain_rel_body(attributes)), + lambda g: self.client._async_clear_scope_from_element( + scoped_by_guid=g, element_guid=guid, + body=body_slimmer(set_delete_rel_request_body("ScopedBy", attributes))), + replace_all=replace_all, + ) + self._report_sync("Scoped By", res) + + def _report_sync(self, label: str, res: Dict[str, Any]) -> None: + for g in res.get("added", []): + self.add_related_result(label, g) + for g in res.get("removed", []): + self.add_related_result(label, g, message="removed") + if res.get("errors"): + self.add_related_result(label, status="failure", message="; ".join(res["errors"])) + + +class ControlApplicabilityLinkProcessor(AsyncBaseCommandProcessor): + """Processor for Link / Unlink Control Applicability. + + The relationship is identified by its two ends, so both link and unlink take + the statement and control GUIDs. Linking an already-linked control updates + the existing relationship's properties. + """ + + def supports_target_element_lookup(self) -> bool: + # Relationship-only command: there is no target element to look up by + # qualified name, and without this the upsert rewriter would treat + # every Link as a Create of an unnamed element. + return False + + async def fetch_as_is(self) -> Optional[Dict[str, Any]]: + return None + + async def apply_changes(self) -> str: + verb = self.command.verb + object_type = getattr(self, "canonical_object_type", self.command.object_type) + attributes = self.parsed_output["attributes"] + + soa_guid = attributes.get("Statement of Applicability", {}).get("guid") + control_guid = attributes.get("Control", {}).get("guid") + if not (soa_guid and control_guid): + missing = [] + if not soa_guid: + missing.append("'Statement of Applicability'") + if not control_guid: + missing.append("'Control'") + raise ValueError(f"Cannot {verb.lower()} control applicability: resolution failed for {', '.join(missing)}") + + if verb in ["Link", "Attach", "Add"]: + new_props = { + "isApplicable": attributes.get("Is Applicable", {}).get("value"), + "justification": attributes.get("Justification", {}).get("value"), + "inclusionReasons": attributes.get("Inclusion Reasons", {}).get("value"), + "implementationStatus": attributes.get("Implementation Status", {}).get("value"), + "implementationDescription": attributes.get("Implementation Description", {}).get("value"), + "reviewDate": attributes.get("Review Date", {}).get("value"), + "label": attributes.get("Label", {}).get("value"), + "description": attributes.get("Description", {}).get("value"), + "effectiveFrom": attributes.get("Effective From", {}).get("value"), + "effectiveTo": attributes.get("Effective To", {}).get("value"), + } + # Attaching an already-linked control replaces the relationship's + # properties wholesale (confirmed live), so by default start from the + # existing ones -- re-linking with just a new status keeps the + # justification, reasons and so on. Merge Update false replaces them. + properties = {} + if attributes.get("Merge Update", {}).get("value", True): + properties = await self._existing_applicability(soa_guid, control_guid) + properties.update({k: v for k, v in new_props.items() if v not in (None, "", [])}) + properties["class"] = "ControlApplicabilityProperties" + + body = set_rel_request_body("ControlApplicability", attributes) + body["properties"] = properties + self.last_body = body = body_slimmer(body) + await self.client._async_link_control_applicability(soa_guid, control_guid, body) + logger.success(f"Linked control {control_guid} to statement of applicability {soa_guid}") + return (f"\n\n## {verb} {object_type}\n\n" + f"Linked control {control_guid} to statement of applicability {soa_guid}") + + if verb in ["Detach", "Unlink", "Remove"]: + self.last_body = body = body_slimmer(set_delete_rel_request_body("ControlApplicability", attributes)) + await self.client._async_detach_control_applicability(soa_guid, control_guid, body) + logger.success(f"Removed control {control_guid} from statement of applicability {soa_guid}") + return (f"\n\n## {verb} {object_type}\n\n" + f"Removed control {control_guid} from statement of applicability {soa_guid}") + + return self.command.raw_block + + async def _existing_applicability(self, soa_guid: str, control_guid: str) -> Dict[str, Any]: + """The current ControlApplicability properties for this control, or {} if it is not linked yet.""" + soa = await self.client._async_get_statement_of_applicability_by_guid(soa_guid) + if not isinstance(soa, dict): + return {} + for rel in soa.get("otherRelatedElements") or []: + rel_type = ((rel.get("relationshipHeader") or {}).get("type") or {}).get("typeName") + related_guid = ((rel.get("relatedElement") or {}).get("elementHeader") or {}).get("guid") + if rel_type == "ControlApplicability" and related_guid == control_guid: + return {k: v for k, v in (rel.get("relationshipProperties") or {}).items() + if k not in ("class", "typeName")} + return {} diff --git a/pyegeria/omvs/security_officer.py b/pyegeria/omvs/security_officer.py index 441d5180..a3dfac04 100644 --- a/pyegeria/omvs/security_officer.py +++ b/pyegeria/omvs/security_officer.py @@ -8,6 +8,7 @@ import asyncio import json +import uuid from typing import Optional, Union, Any from pyegeria.core._server_client import ServerClient @@ -26,6 +27,7 @@ NewClassificationRequestBody, DeleteClassificationRequestBody, SearchStringRequestBody, + ControlImplementationStatus, ) from pyegeria.core.utils import dynamic_catch @@ -1165,3 +1167,140 @@ def detach_control_applicability(self, soa_guid: str, control_guid: str, """Remove a control from a statement of applicability.""" loop = asyncio.get_event_loop() loop.run_until_complete(self._async_detach_control_applicability(soa_guid, control_guid, body)) + + @staticmethod + def _control_applicability_rows(soa: dict) -> list[dict]: + """Turn a statement of applicability's ControlApplicability relationships into one element per control. + + Each row carries the control's header and properties, with the relationship properties merged in. + The relationship's description becomes `notes` so it does not hide the control's own description. + """ + rows = [] + for rel in soa.get("otherRelatedElements") or []: + rel_type = (rel.get("relationshipHeader") or {}).get("type", {}).get("typeName") + if rel_type != "ControlApplicability": + continue + control = rel.get("relatedElement") or {} + properties = dict(control.get("properties") or {}) + for key, value in (rel.get("relationshipProperties") or {}).items(): + if key in ("class", "typeName"): + continue + properties["notes" if key == "description" else key] = value + # Egeria treats a control as applicable unless isApplicable is false. + properties.setdefault("isApplicable", True) + rows.append({"elementHeader": control.get("elementHeader", {}), "properties": properties}) + rows.sort(key=lambda r: (str(r["properties"].get("label") or ""), str(r["properties"].get("displayName") or ""))) + return rows + + async def _async_resolve_statement_of_applicability(self, soa_guid: str, + body: Optional[dict | GetRequestBody] = None) -> dict | str: + """Fetch a statement of applicability by GUID, or by qualified name when `soa_guid` is not a GUID.""" + try: + uuid.UUID(str(soa_guid)) + except ValueError: + matches = await self._async_get_statements_of_applicability_by_name(soa_guid) + if not isinstance(matches, list) or not matches: + return NO_ELEMENTS_FOUND + soa_guid = matches[0]["elementHeader"]["guid"] + return await self._async_get_statement_of_applicability_by_guid(soa_guid, body=body) + + @dynamic_catch + async def _async_get_statement_of_applicability_controls( + self, + soa_guid: str, + output_format: str = "JSON", + report_spec: str | dict | None = None, + body: Optional[dict | GetRequestBody] = None, + **kwargs, + ) -> list | str: + """Return the controls assessed in a statement of applicability, one row per control. Async version. + + Each row has the control's properties plus its ControlApplicability properties (label, isApplicable, + justification, inclusionReasons, implementationStatus, implementationDescription, reviewDate, and the + relationship description as notes). This is the table an auditor asks for. + + Parameters + ---------- + soa_guid : str + The statement of applicability's GUID, or its qualified name. + output_format : str, default "JSON" + JSON returns the rows as element dicts; any other format is rendered with the report spec. + report_spec : str | dict, optional + Defaults to "Statement-of-Applicability-Controls". + body : dict | GetRequestBody, optional + Passed to get_statement_of_applicability_by_guid. + + Returns + ------- + list | str + The rows, or NO_ELEMENTS_FOUND when no controls are linked. + """ + soa = await self._async_resolve_statement_of_applicability(soa_guid, body) + rows = self._control_applicability_rows(soa) if isinstance(soa, dict) else [] + if not rows: + return NO_ELEMENTS_FOUND + return self._generate_formatted_output( + elements=rows, + entity_type="Statement-of-Applicability-Controls", + output_format=output_format, + extract_properties_func=self._extract_referenceable_properties, + report_spec=report_spec or "Statement-of-Applicability-Controls", + **kwargs, + ) + + @dynamic_catch + def get_statement_of_applicability_controls( + self, + soa_guid: str, + output_format: str = "JSON", + report_spec: str | dict | None = None, + body: Optional[dict | GetRequestBody] = None, + **kwargs, + ) -> list | str: + """Return the controls assessed in a statement of applicability, one row per control. + + See _async_get_statement_of_applicability_controls. + """ + loop = asyncio.get_event_loop() + return loop.run_until_complete( + self._async_get_statement_of_applicability_controls( + soa_guid, output_format=output_format, report_spec=report_spec, body=body, **kwargs + ) + ) + + @dynamic_catch + async def _async_get_control_implementation_summary(self, soa_guid: str, + body: Optional[dict | GetRequestBody] = None) -> dict: + """Count the applicable controls in a statement of applicability by implementation status. Async version. + + Every ControlImplementationStatus value is present, so a zero is a real count. A control with no + implementation status counts as NOT_STARTED, the enum's default. Controls marked not applicable are + left out of the status counts and reported separately. + + Returns + ------- + dict + {"byStatus": {status: count, ...}, "applicable": int, "notApplicable": int} + """ + soa = await self._async_resolve_statement_of_applicability(soa_guid, body) + rows = self._control_applicability_rows(soa) if isinstance(soa, dict) else [] + by_status = {status.value: 0 for status in ControlImplementationStatus} + not_applicable = 0 + for row in rows: + props = row["properties"] + if props.get("isApplicable") is False: + not_applicable += 1 + continue + status = props.get("implementationStatus") or ControlImplementationStatus.NOT_STARTED.value + by_status[status] = by_status.get(status, 0) + 1 + return {"byStatus": by_status, "applicable": len(rows) - not_applicable, "notApplicable": not_applicable} + + @dynamic_catch + def get_control_implementation_summary(self, soa_guid: str, + body: Optional[dict | GetRequestBody] = None) -> dict: + """Count the applicable controls in a statement of applicability by implementation status. + + See _async_get_control_implementation_summary. + """ + loop = asyncio.get_event_loop() + return loop.run_until_complete(self._async_get_control_implementation_summary(soa_guid, body)) diff --git a/pyegeria/view/analytic_registry.py b/pyegeria/view/analytic_registry.py index ed769323..7c8ebf5b 100644 --- a/pyegeria/view/analytic_registry.py +++ b/pyegeria/view/analytic_registry.py @@ -505,6 +505,19 @@ def _strict() -> AnalyticParam: "every snapshot (e.g. classifications for count_elements)."), ], ), + "control_implementation_summary": AnalyticFunctionSpec( + name="control_implementation_summary", + function="pyegeria.view.overview_metrics.control_implementation_summary", + description="Applicable controls in a statement of applicability, counted by implementation " + "status (NOT_STARTED, PLANNED, PARTIALLY_IMPLEMENTED, IMPLEMENTED, OTHER).", + returns="dict ({status: count})", + generic=False, + binding_note="Fixed to the ControlApplicability relationships of one StatementOfApplicability.", + params=[ + AnalyticParam(name="soa_guid", type="str", required=True, + description="GUID of the statement of applicability."), + ], + ), } _RUNTIME_ANALYTIC_FUNCTIONS = AnalyticFunctionDict() diff --git a/pyegeria/view/base_report_formats.py b/pyegeria/view/base_report_formats.py index 55126c37..eb7d63e3 100644 --- a/pyegeria/view/base_report_formats.py +++ b/pyegeria/view/base_report_formats.py @@ -105,6 +105,8 @@ 'Agreement-DrE-Basic': FormatSet(target_type='Agreement', heading='Agreement-DrE-Basic Attributes', description='Auto-generated format for Agreement (Create, Basic).', family='Digital Product Manager', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Description', key='description'), Column(name='Legal', key='legal'), Column(name='Authors', key='authors'), Column(name='Purpose', key='purpose'), Column(name='Version Identifier', key='version_identifier'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Category', key='category'), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Legal', key='legal'), Column(name='Qualified Name', key='qualified_name'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Purpose', key='purpose')])], action=ActionParameter(function='CollectionManager.find_collections', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'], spec_params={'metadata_element_type': 'Agreement'})), 'Blog-Entry-DrE-Advanced': FormatSet(target_type='Blog Entry', heading='Blog-Entry-DrE-Advanced Attributes', description='Auto-generated format for Blog Entry (Create, Advanced).', family='Feedback', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Description', key='description'), Column(name='Situation', key='situation')]), Format(types=['ALL'], attributes=[Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Qualified Name', key='qualified_name'), Column(name='Situation', key='situation')])]), 'Blog-Entry-DrE-Basic': FormatSet(target_type='Blog Entry', heading='Blog-Entry-DrE-Basic Attributes', description='Auto-generated format for Blog Entry (Create, Basic).', family='Feedback', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Description', key='description'), Column(name='Situation', key='situation')]), Format(types=['ALL'], attributes=[Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Qualified Name', key='qualified_name'), Column(name='Situation', key='situation')])]), + 'Business-Capability-DrE-Advanced': FormatSet(target_type='Business Capability', heading='Business-Capability-DrE-Advanced Attributes', description='Auto-generated format for Business Capability (Create, Advanced).', family='Collections', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='Authors', key='authors'), Column(name='Purpose', key='purpose'), Column(name='Business Capability Type', key='business_capability_type', valid_values=['UNCLASSIFIED', 'BUSINESS_SERVICE', 'BUSINESS_AREA', 'BUSINESS_DOMAIN', 'OTHER']), Column(name='Business Implementation Type', key='business_implementation_type'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties'), Column(name='Version Identifier', key='version_identifier'), Column(name='Status', key='status'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Status', key='status'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Category', key='category'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Qualified Name', key='qualified_name'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='Purpose', key='purpose'), Column(name='Business Capability Type', key='business_capability_type', valid_values=['UNCLASSIFIED', 'BUSINESS_SERVICE', 'BUSINESS_AREA', 'BUSINESS_DOMAIN', 'OTHER']), Column(name='Business Implementation Type', key='business_implementation_type'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties')])], action=ActionParameter(function='CollectionManager.find_collections', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'], spec_params={'metadata_element_type': 'BusinessCapability'})), + 'Business-Capability-DrE-Basic': FormatSet(target_type='Business Capability', heading='Business-Capability-DrE-Basic Attributes', description='Auto-generated format for Business Capability (Create, Basic).', family='Collections', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Description', key='description'), Column(name='Legal', key='legal'), Column(name='Authors', key='authors'), Column(name='Purpose', key='purpose'), Column(name='Business Capability Type', key='business_capability_type', valid_values=['UNCLASSIFIED', 'BUSINESS_SERVICE', 'BUSINESS_AREA', 'BUSINESS_DOMAIN', 'OTHER']), Column(name='Business Implementation Type', key='business_implementation_type'), Column(name='Version Identifier', key='version_identifier'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Category', key='category'), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Legal', key='legal'), Column(name='Qualified Name', key='qualified_name'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Purpose', key='purpose'), Column(name='Business Capability Type', key='business_capability_type', valid_values=['UNCLASSIFIED', 'BUSINESS_SERVICE', 'BUSINESS_AREA', 'BUSINESS_DOMAIN', 'OTHER']), Column(name='Business Implementation Type', key='business_implementation_type')])], action=ActionParameter(function='CollectionManager.find_collections', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'], spec_params={'metadata_element_type': 'BusinessCapability'})), 'Business-Imperative-DrE-Advanced': FormatSet(target_type='Business Imperative', heading='Business-Imperative-DrE-Advanced Attributes', description='Auto-generated format for Business Imperative (Create, Advanced).', family='Governance Officer', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='Authors', key='authors'), Column(name='Domain Identifier', key='domain_identifier', valid_values=['All Domains', 'Data', 'Privacy', 'Security', 'IT Infrastructure', 'Software Development', 'Corporate', 'Asset Management', 'Other']), Column(name='Implications', key='implications'), Column(name='Importance', key='importance'), Column(name='Outcomes', key='outcomes'), Column(name='Results', key='results'), Column(name='Scope', key='scope'), Column(name='Summary', key='summary'), Column(name='Usage', key='usage'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties'), Column(name='Version Identifier', key='version_identifier'), Column(name='Status', key='status'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Status', key='status'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Category', key='category'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Qualified Name', key='qualified_name'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='Domain Identifier', key='domain_identifier', valid_values=['All Domains', 'Data', 'Privacy', 'Security', 'IT Infrastructure', 'Software Development', 'Corporate', 'Asset Management', 'Other']), Column(name='Implications', key='implications'), Column(name='Importance', key='importance'), Column(name='Outcomes', key='outcomes'), Column(name='Results', key='results'), Column(name='Scope', key='scope'), Column(name='Summary', key='summary'), Column(name='Usage', key='usage'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties')])], action=ActionParameter(function='GovernanceOfficer.find_governance_definitions', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'], spec_params={'metadata_element_type': 'BusinessImperative'})), 'Business-Imperative-DrE-Basic': FormatSet(target_type='Business Imperative', heading='Business-Imperative-DrE-Basic Attributes', description='Auto-generated format for Business Imperative (Create, Basic).', family='Governance Officer', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Description', key='description'), Column(name='Legal', key='legal'), Column(name='Authors', key='authors'), Column(name='Domain Identifier', key='domain_identifier', valid_values=['All Domains', 'Data', 'Privacy', 'Security', 'IT Infrastructure', 'Software Development', 'Corporate', 'Asset Management', 'Other']), Column(name='Implications', key='implications'), Column(name='Importance', key='importance'), Column(name='Outcomes', key='outcomes'), Column(name='Results', key='results'), Column(name='Scope', key='scope'), Column(name='Summary', key='summary'), Column(name='Usage', key='usage'), Column(name='Version Identifier', key='version_identifier'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Category', key='category'), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Legal', key='legal'), Column(name='Qualified Name', key='qualified_name'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Domain Identifier', key='domain_identifier', valid_values=['All Domains', 'Data', 'Privacy', 'Security', 'IT Infrastructure', 'Software Development', 'Corporate', 'Asset Management', 'Other']), Column(name='Implications', key='implications'), Column(name='Importance', key='importance'), Column(name='Outcomes', key='outcomes'), Column(name='Results', key='results'), Column(name='Scope', key='scope'), Column(name='Summary', key='summary'), Column(name='Usage', key='usage')])], action=ActionParameter(function='GovernanceOfficer.find_governance_definitions', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'], spec_params={'metadata_element_type': 'BusinessImperative'})), 'Campaign-DrE-Advanced': FormatSet(target_type='Campaign', heading='Campaign-DrE-Advanced Attributes', description='Auto-generated format for Campaign (Create, Advanced).', family='Projects', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='Authors', key='authors'), Column(name='Actual Completion Date', key='actual_completion_date'), Column(name='Actual Start Date', key='actual_start_date'), Column(name='Mission', key='mission'), Column(name='Planned Completion Date', key='planned_completion_date'), Column(name='Planned Start Date', key='planned_start_date'), Column(name='Priority', key='priority'), Column(name='Project Approach', key='approach'), Column(name='Project Health', key='project_health'), Column(name='Project Identifier', key='project_identifier'), Column(name='Project Management Style', key='management_style'), Column(name='Project Phase', key='project_phase'), Column(name='Project Results Usage', key='results_usage'), Column(name='Project Scope', key='project_scope'), Column(name='Project Type', key='project_type', valid_values=['Project', 'Campaign', 'Task', 'PersonalProject', 'StudyProject', 'Experiment']), Column(name='Purposes', key='purposes'), Column(name='Sub-Projects', key='sub_projects'), Column(name='Success Criteria', key='success_criteria'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties'), Column(name='Version Identifier', key='version_identifier'), Column(name='Status', key='status'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='Project Status', key='project_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Status', key='status'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Category', key='category'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Qualified Name', key='qualified_name'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='Actual Completion Date', key='actual_completion_date'), Column(name='Actual Start Date', key='actual_start_date'), Column(name='Mission', key='mission'), Column(name='Planned Completion Date', key='planned_completion_date'), Column(name='Planned Start Date', key='planned_start_date'), Column(name='Priority', key='priority'), Column(name='Project Approach', key='approach'), Column(name='Project Health', key='project_health'), Column(name='Project Identifier', key='project_identifier'), Column(name='Project Management Style', key='management_style'), Column(name='Project Phase', key='project_phase'), Column(name='Project Results Usage', key='results_usage'), Column(name='Project Scope', key='project_scope'), Column(name='Project Status', key='project_status'), Column(name='Project Type', key='project_type', valid_values=['Project', 'Campaign', 'Task', 'PersonalProject', 'StudyProject', 'Experiment']), Column(name='Purposes', key='purposes'), Column(name='Sub-Projects', key='sub_projects'), Column(name='Success Criteria', key='success_criteria'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties')])], action=ActionParameter(function='ProjectManager.find_projects', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'], spec_params={'include_only_classified_elements': ['Campaign']})), @@ -345,6 +347,8 @@ 'Solution-Component-DrE-Basic': FormatSet(target_type='Solution Component', heading='Solution-Component-DrE-Basic Attributes', description='Auto-generated format for Solution Component (Create, Basic).', family='Solution Architect', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Description', key='description'), Column(name='Legal', key='legal'), Column(name='Authors', key='authors'), Column(name='Actors', key='actors'), Column(name='In Information Supply Chain', key='in_supply_chain'), Column(name='In Solution Blueprints', key='in_solution_blueprints'), Column(name='In Solution Components', key='in_components'), Column(name='Planned Deployed Implementation Type', key='planned_deployed_impl_type'), Column(name='Solution Component Type', key='solution_component_type'), Column(name='Solution SubComponents', key='solution_sub_components'), Column(name='Version Identifier', key='version_identifier'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Deployment Status', key='deployment_status', valid_values=['PROPOSED', 'UNDER_DEVELOPMENT', 'DEVELOPMENT_COMPLETE', 'APPROVED_FOR_DEPLOYMENT', 'REJECTED', 'STANDBY', 'ACTIVE', 'DISABLED', 'FAILED', 'OTHER']), Column(name='User Defined Deployment Status', key='user_defined_deployment_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Category', key='category'), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Legal', key='legal'), Column(name='Qualified Name', key='qualified_name'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Actors', key='actors'), Column(name='In Information Supply Chain', key='in_supply_chain'), Column(name='In Solution Blueprints', key='in_solution_blueprints'), Column(name='In Solution Components', key='in_components'), Column(name='Planned Deployed Implementation Type', key='planned_deployed_impl_type'), Column(name='Solution Component Type', key='solution_component_type'), Column(name='Solution SubComponents', key='solution_sub_components'), Column(name='Deployment Status', key='deployment_status', valid_values=['PROPOSED', 'UNDER_DEVELOPMENT', 'DEVELOPMENT_COMPLETE', 'APPROVED_FOR_DEPLOYMENT', 'REJECTED', 'STANDBY', 'ACTIVE', 'DISABLED', 'FAILED', 'OTHER']), Column(name='User Defined Deployment Status', key='user_defined_deployment_status')])], action=ActionParameter(function='SolutionArchitect.find_solution_components', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'])), 'Solution-Role-DrE-Advanced': FormatSet(target_type='Solution Role', heading='Solution-Role-DrE-Advanced Attributes', description='Auto-generated format for Solution Role (Create, Advanced).', family='Solution Architect', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='Authors', key='authors'), Column(name='Role Domain Identifier', key='role_domain_identifier', valid_values=['All Domains', 'Data', 'Privacy', 'Security', 'IT Infrastructure', 'Software Development', 'Corporate', 'Asset Management', 'Other']), Column(name='Scope', key='scope'), Column(name='Title', key='title'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties'), Column(name='Version Identifier', key='version_identifier'), Column(name='Status', key='status'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Status', key='status'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Category', key='category'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Qualified Name', key='qualified_name'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='Role Domain Identifier', key='role_domain_identifier', valid_values=['All Domains', 'Data', 'Privacy', 'Security', 'IT Infrastructure', 'Software Development', 'Corporate', 'Asset Management', 'Other']), Column(name='Scope', key='scope'), Column(name='Title', key='title'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties')])], action=ActionParameter(function='SolutionArchitect.find_solution_roles', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'])), 'Solution-Role-DrE-Basic': FormatSet(target_type='Solution Role', heading='Solution-Role-DrE-Basic Attributes', description='Auto-generated format for Solution Role (Create, Basic).', family='Solution Architect', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Description', key='description'), Column(name='Legal', key='legal'), Column(name='Authors', key='authors'), Column(name='Role Domain Identifier', key='role_domain_identifier', valid_values=['All Domains', 'Data', 'Privacy', 'Security', 'IT Infrastructure', 'Software Development', 'Corporate', 'Asset Management', 'Other']), Column(name='Scope', key='scope'), Column(name='Title', key='title'), Column(name='Version Identifier', key='version_identifier'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Category', key='category'), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Legal', key='legal'), Column(name='Qualified Name', key='qualified_name'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Role Domain Identifier', key='role_domain_identifier', valid_values=['All Domains', 'Data', 'Privacy', 'Security', 'IT Infrastructure', 'Software Development', 'Corporate', 'Asset Management', 'Other']), Column(name='Scope', key='scope'), Column(name='Title', key='title')])], action=ActionParameter(function='SolutionArchitect.find_solution_roles', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'])), + 'Statement-of-Applicability-DrE-Advanced': FormatSet(target_type='Statement of Applicability', heading='Statement-of-Applicability-DrE-Advanced Attributes', description='Auto-generated format for Statement of Applicability (Create, Advanced).', family='Security Officer', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='Authors', key='authors'), Column(name='Scope', key='scope'), Column(name='Review Date', key='review_date'), Column(name='Certification Standard', key='certification_standard'), Column(name='Scoped By', key='scoped_by'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties'), Column(name='Version Identifier', key='version_identifier'), Column(name='Status', key='status'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Status', key='status'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Category', key='category'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Qualified Name', key='qualified_name'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='Scope', key='scope'), Column(name='Review Date', key='review_date'), Column(name='Certification Standard', key='certification_standard'), Column(name='Scoped By', key='scoped_by'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties')])], action=ActionParameter(function='SecurityOfficer.find_statements_of_applicability', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'])), + 'Statement-of-Applicability-DrE-Basic': FormatSet(target_type='Statement of Applicability', heading='Statement-of-Applicability-DrE-Basic Attributes', description='Auto-generated format for Statement of Applicability (Create, Basic).', family='Security Officer', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Description', key='description'), Column(name='Legal', key='legal'), Column(name='Authors', key='authors'), Column(name='Scope', key='scope'), Column(name='Review Date', key='review_date'), Column(name='Certification Standard', key='certification_standard'), Column(name='Scoped By', key='scoped_by'), Column(name='Version Identifier', key='version_identifier'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Category', key='category'), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Legal', key='legal'), Column(name='Qualified Name', key='qualified_name'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Scope', key='scope'), Column(name='Review Date', key='review_date'), Column(name='Certification Standard', key='certification_standard'), Column(name='Scoped By', key='scoped_by')])], action=ActionParameter(function='SecurityOfficer.find_statements_of_applicability', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'])), 'Study-Project-DrE-Advanced': FormatSet(target_type='Study Project', heading='Study-Project-DrE-Advanced Attributes', description='Auto-generated format for Study Project (Create, Advanced).', family='Projects', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='Authors', key='authors'), Column(name='Actual Completion Date', key='actual_completion_date'), Column(name='Actual Start Date', key='actual_start_date'), Column(name='Mission', key='mission'), Column(name='Planned Completion Date', key='planned_completion_date'), Column(name='Planned Start Date', key='planned_start_date'), Column(name='Priority', key='priority'), Column(name='Project Approach', key='approach'), Column(name='Project Health', key='project_health'), Column(name='Project Identifier', key='project_identifier'), Column(name='Project Management Style', key='management_style'), Column(name='Project Phase', key='project_phase'), Column(name='Project Results Usage', key='results_usage'), Column(name='Project Scope', key='project_scope'), Column(name='Project Type', key='project_type', valid_values=['Project', 'Campaign', 'Task', 'PersonalProject', 'StudyProject', 'Experiment']), Column(name='Purposes', key='purposes'), Column(name='Sub-Projects', key='sub_projects'), Column(name='Success Criteria', key='success_criteria'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties'), Column(name='Version Identifier', key='version_identifier'), Column(name='Status', key='status'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='Project Status', key='project_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Status', key='status'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Category', key='category'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Qualified Name', key='qualified_name'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='Actual Completion Date', key='actual_completion_date'), Column(name='Actual Start Date', key='actual_start_date'), Column(name='Mission', key='mission'), Column(name='Planned Completion Date', key='planned_completion_date'), Column(name='Planned Start Date', key='planned_start_date'), Column(name='Priority', key='priority'), Column(name='Project Approach', key='approach'), Column(name='Project Health', key='project_health'), Column(name='Project Identifier', key='project_identifier'), Column(name='Project Management Style', key='management_style'), Column(name='Project Phase', key='project_phase'), Column(name='Project Results Usage', key='results_usage'), Column(name='Project Scope', key='project_scope'), Column(name='Project Status', key='project_status'), Column(name='Project Type', key='project_type', valid_values=['Project', 'Campaign', 'Task', 'PersonalProject', 'StudyProject', 'Experiment']), Column(name='Purposes', key='purposes'), Column(name='Sub-Projects', key='sub_projects'), Column(name='Success Criteria', key='success_criteria'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties')])], action=ActionParameter(function='ProjectManager.find_projects', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'], spec_params={'include_only_classified_elements': ['StudyProject']})), 'Study-Project-DrE-Basic': FormatSet(target_type='Study Project', heading='Study-Project-DrE-Basic Attributes', description='Auto-generated format for Study Project (Create, Basic).', family='Projects', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Description', key='description'), Column(name='Legal', key='legal'), Column(name='Authors', key='authors'), Column(name='Actual Completion Date', key='actual_completion_date'), Column(name='Actual Start Date', key='actual_start_date'), Column(name='Mission', key='mission'), Column(name='Planned Completion Date', key='planned_completion_date'), Column(name='Planned Start Date', key='planned_start_date'), Column(name='Priority', key='priority'), Column(name='Project Approach', key='approach'), Column(name='Project Health', key='project_health'), Column(name='Project Identifier', key='project_identifier'), Column(name='Project Management Style', key='management_style'), Column(name='Project Phase', key='project_phase'), Column(name='Project Results Usage', key='results_usage'), Column(name='Project Scope', key='project_scope'), Column(name='Project Type', key='project_type', valid_values=['Project', 'Campaign', 'Task', 'PersonalProject', 'StudyProject', 'Experiment']), Column(name='Purposes', key='purposes'), Column(name='Sub-Projects', key='sub_projects'), Column(name='Success Criteria', key='success_criteria'), Column(name='Version Identifier', key='version_identifier'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Project Status', key='project_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Category', key='category'), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Legal', key='legal'), Column(name='Qualified Name', key='qualified_name'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Actual Completion Date', key='actual_completion_date'), Column(name='Actual Start Date', key='actual_start_date'), Column(name='Mission', key='mission'), Column(name='Planned Completion Date', key='planned_completion_date'), Column(name='Planned Start Date', key='planned_start_date'), Column(name='Priority', key='priority'), Column(name='Project Approach', key='approach'), Column(name='Project Health', key='project_health'), Column(name='Project Identifier', key='project_identifier'), Column(name='Project Management Style', key='management_style'), Column(name='Project Phase', key='project_phase'), Column(name='Project Results Usage', key='results_usage'), Column(name='Project Scope', key='project_scope'), Column(name='Project Status', key='project_status'), Column(name='Project Type', key='project_type', valid_values=['Project', 'Campaign', 'Task', 'PersonalProject', 'StudyProject', 'Experiment']), Column(name='Purposes', key='purposes'), Column(name='Sub-Projects', key='sub_projects'), Column(name='Success Criteria', key='success_criteria')])], action=ActionParameter(function='ProjectManager.find_projects', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'], spec_params={'include_only_classified_elements': ['StudyProject']})), 'Subject-Area-DrE-Advanced': FormatSet(target_type='Subject Area', heading='Subject-Area-DrE-Advanced Attributes', description='Auto-generated format for Subject Area (Create, Advanced).', family='Collections', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='Authors', key='authors'), Column(name='Purpose', key='purpose'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties'), Column(name='Version Identifier', key='version_identifier'), Column(name='Status', key='status'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Effective From', key='effective_from'), Column(name='Effective Time', key='effective_time'), Column(name='Effective To', key='effective_to'), Column(name='Glossary Term', key='glossary_term'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Status', key='status'), Column(name='Zone Membership', key='zone_membership'), Column(name='Additional Properties', key='additional_properties'), Column(name='Category', key='category'), Column(name='Confidence Classification', key='confidence_classification', valid_values=['UNCLASSIFIED', 'AD_HOC', 'TRANSACTIONAL', 'AUTHORITATIVE', 'DERIVED', 'OBSOLETE', 'OTHER']), Column(name='Confidentiality Classification', key='confidentiality_classification', valid_values=['UNCLASSIFIED', 'INTERNAL', 'CONFIDENTIAL', 'SENSITIVE', 'RESTRICTED', 'OTHER']), Column(name='Criticality Classification', key='criticality_classification', valid_values=['UNCLASSIFIED', 'MARGINAL', 'IMPORTANT', 'CRITICAL', 'CATASTROPHIC', 'OTHER']), Column(name='Description', key='description'), Column(name='Display Name', key='display_name'), Column(name='GUID', key='guid'), Column(name='Identifier', key='identifier'), Column(name='Impact Classification', key='impact_classification', valid_values=['UNCLASSIFIED', 'LOW', 'MEDIUM', 'HIGH', 'OTHER']), Column(name='Legal', key='legal'), Column(name='Policy Management Point', key='policy_management_point'), Column(name='Qualified Name', key='qualified_name'), Column(name='Retention Classification', key='retention_classification', valid_values=['UNCLASSIFIED', 'TEMPORARY', 'PROJECT_LIFETIME', 'TEAM_LIFETIME', 'CONTRACT_LIFETIME', 'REGULATED_LIFETIME', 'TIMEBOXED_LIFETIME', 'OTHER']), Column(name='Security Tags', key='security_tags'), Column(name='URL', key='url'), Column(name='Version Identifier', key='version_identifier'), Column(name='Authors', key='authors'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='User Defined Content Status', key='user_defined_content_status'), Column(name='Purpose', key='purpose'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Supplementary Properties', key='supplementary_properties')])], action=ActionParameter(function='CollectionManager.find_collections', required_params=['search_string'], optional_params=['sequencing_order', 'sequencing_property', 'page_size', 'start_from', 'starts_with', 'ends_with', 'ignore_case', 'classification_names', 'metadata_element_subtypes', 'metadata_element_type'], spec_params={'metadata_element_type': 'SubjectArea'})), @@ -2237,6 +2241,52 @@ def _user_report_specs_dir() -> str: ) ), + "Statement-of-Applicability-Controls": FormatSet( + target_type="ControlApplicability", + heading="Statement of Applicability Controls", + description="The controls assessed in one statement of applicability, one row per control, with " + "whether each applies, why, and how far it is implemented.", + aliases=["SoA Controls", "Control Applicability"], + annotations={"wikilinks": ["[[Statement of Applicability]]"]}, + family="Security Officer", + formats=[ + Format( + types=["ALL"], + attributes=[ + Column(name="Control", key="label"), + Column(name="Display Name", key="display_name"), + Column(name="Applicable", key="is_applicable"), + Column(name="Implementation Status", key="implementation_status"), + Column(name="Justification", key="justification"), + Column(name="Inclusion Reasons", key="inclusion_reasons"), + Column(name="Review Date", key="review_date"), + Column(name="Implementation Description", key="implementation_description"), + Column(name="Notes", key="notes"), + Column(name="Qualified Name", key="qualified_name"), + Column(name="GUID", key="GUID"), + ], + ), + ], + action=ActionParameter( + function="SecurityOfficer.get_statement_of_applicability_controls", + required_params=["soa_guid"], + optional_params=["body"], + spec_params={"output_format": "DICT"}, + ), + ), + "Statement-of-Applicability-Implementation-Summary": FormatSet( + target_type="StatementOfApplicability", + heading="Control Implementation Summary", + description="Applicable controls in a statement of applicability, counted by implementation status. " + "Use BAR or PIE output for a chart.", + aliases=["SoA Summary"], + family="Security Officer", + formats=[Format(types=["DICT", "JSON"], attributes=[])], + action=ActionParameter( + analytic_function="pyegeria.view.overview_metrics.control_implementation_summary", + required_params=["soa_guid"], + ), + ), "Collection Members": FormatSet( target_type="Collection", heading="Collection Membership Information", diff --git a/pyegeria/view/overview_metrics.py b/pyegeria/view/overview_metrics.py index a06bf8de..5c17e6ed 100644 --- a/pyegeria/view/overview_metrics.py +++ b/pyegeria/view/overview_metrics.py @@ -1633,3 +1633,25 @@ def _actor_usernames(rel_type: str) -> set: by_type[key] = len(users) all_users |= users return {"contributors": len(all_users), "byType": by_type} + + +def control_implementation_summary(client, soa_guid: str) -> Dict[str, int]: + """ + Count the applicable controls in a statement of applicability by + implementation status -- the input to an "Annex A control implementation + rate" style metric. + + Every ControlImplementationStatus value is a key, so a zero is a real + count. A control with no implementation status counts as NOT_STARTED (the + enum's default); controls marked not applicable are left out. + + Parameters + ---------- + client : SecurityOfficer (or EgeriaTech) + soa_guid : the statement of applicability's GUID, or its qualified name + + Returns + ------- + dict -- {status: count}, one key per ControlImplementationStatus value + """ + return client.get_control_implementation_summary(soa_guid)["byStatus"] diff --git a/sample-data/templates/advanced/Security Officer/Create_Statement_of_Applicability.md b/sample-data/templates/advanced/Security Officer/Create_Statement_of_Applicability.md new file mode 100644 index 00000000..d311378b --- /dev/null +++ b/sample-data/templates/advanced/Security Officer/Create_Statement_of_Applicability.md @@ -0,0 +1,464 @@ +___ + +## Create Statement of Applicability +> A statement of applicability records which controls from a standard, such as ISO/IEC 27001 Annex A, apply to the organization, why, and how far each is implemented. + +### Display Name +> **Input Required**: True + +> **Attribute Type**: Simple + +> **Description**: The common name of an element. + +> **Alternative Labels**: "Term Name" + + +### Journal Entry +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A text entry into a journal. + + +### Category +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A user-defined category for the element, used to group related elements for display or search purposes. + +> **Alternative Labels**: Category Name + + +### Description +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A description. + + +### Legal +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: Copyright and/or license information for the element or associated resource. + + +### Qualified Name +> **Input Required**: False + +> **Attribute Type**: QN + +> **Description**: The unique, text name of an element. + + +### Content Status +> **Input Required**: False + +> **Attribute Type**: Valid Value + +> **Description**: The lifecycle status of an element. + +> **Valid Values**: DRAFT,PREPARED,PROPOSED,APPROVED,REJECTED,ACTIVE,DEPRECATED,OTHER + +> **Default Value**: ACTIVE + + +### Scope +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: Scope of the definition or element. + + +### Search Keywords +> **Input Required**: False + +> **Attribute Type**: Simple List + +> **Description**: A list of search keywords. + + +### GUID +> **Input Required**: False + +> **Attribute Type**: GUID + +> **Description**: A unique identifier - typically of an element in this context. + +> **Alternative Labels**: guid; Guid + + +### URL +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: URL for further information. + + +### Version Identifier +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: The version of the element + +> **Alternative Labels**: Version + +> **Default Value**: 1.0 + + +### Authors +> **Input Required**: False + +> **Attribute Type**: Simple List + +> **Description**: The authors. + + +### Review Date +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: When the statement, or this control's applicability, was last reviewed. + + +### Certification Standard +> **Input Required**: False + +> **Attribute Type**: Reference Name + +> **Description**: The certification type (standard) the statement of applicability is assessed against. Linked with a GovernedBy relationship. + + +### Scoped By +> **Input Required**: False + +> **Attribute Type**: Reference Name List + +> **Description**: Elements, such as an organization, site or system, that define the scope the statement covers. Each is linked with a ScopedBy relationship. + + +### Effective From +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: The beginning of when an element is viewable. + + +### Effective Time +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: The time at which an element must be effective in order to be returned by the request. + + +### Effective To +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: The ending time at which an element is visible. + + +### External Source GUID +> **Input Required**: False + +> **Attribute Type**: GUID + +> **Description**: The unique identifier of an external source. + + +### External Source Name +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: The name of an external source + + +### For Duplicate Processing +> **Input Required**: False + +> **Attribute Type**: Bool + +> **Description**: Flag indicating if the request is to support duplicate processing. + + +### For Lineage +> **Input Required**: False + +> **Attribute Type**: Bool + +> **Description**: Flag indicating if the request is to support lineage. + + +### Request ID +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A user provided or system generated request id for a conversation. + + +### Anchor ID +> **Input Required**: False + +> **Attribute Type**: Reference Name + +> **Description**: Name of the anchoring element. + + +### Anchor Scope ID +> **Input Required**: False + +> **Attribute Type**: Reference Name + +> **Description**: Anchor scope to restrict search. + +> **Alternative Labels**: Anchor Scope + + +### Glossary Term +> **Input Required**: False + +> **Attribute Type**: Reference Name + +> **Description**: Term that provides meaning to this field. + +> **Alternative Labels**: Term + + +### Is Own Anchor +> **Input Required**: False + +> **Attribute Type**: Bool + +> **Description**: A flag indicating if the element is its own anchor or is anchored to a different element. + +> **Alternative Labels**: Own Anchor + +> **Default Value**: true + + +### Merge Update +> **Input Required**: False + +> **Attribute Type**: Bool + +> **Description**: A flag indicating if the update should be a merge or replace. + +> **Alternative Labels**: isMergeUpdate + +> **Default Value**: true + + +### Parent at End1 +> **Input Required**: False + +> **Attribute Type**: Bool + +> **Description**: A flag indicating if the parent is at end1 of the relationship + +> **Default Value**: true + + +### Parent ID +> **Input Required**: False + +> **Attribute Type**: Reference Name + +> **Description**: Name of the parent + +> **Alternative Labels**: Parent; + + +### Parent Relationship Attributes +> **Input Required**: False + +> **Attribute Type**: Dictionary + +> **Description**: A dictionary of relationship attributes to establish the parent relationship. + +> | Parameter Name | Parameter Value | +> |---|---| +> | example_key | example_value | + + +### Parent Relationship Type Name +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: The type of parent relationship. + + +### Status +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: Repository or element header status for an element. + +> **Default Value**: ACTIVE + + +### Zone Membership +> **Input Required**: False + +> **Attribute Type**: Simple List + +> **Description**: Zones scope visibility of elements to different users. + + +### Additional Properties +> **Input Required**: False + +> **Attribute Type**: Dictionary + +> **Description**: Additional Properties allow arbitrary properties not defined in the type definitions to be added to any referenceable element. + +> | Parameter Name | Parameter Value | +> |---|---| +> | example_key | example_value | + + +### Confidence Classification +> **Input Required**: False + +> **Attribute Type**: Valid Value + +> **Description**: Classification from 0422. Structure: {status_identifier: int, confidence: int, steward: str, steward_type_name: str, steward_property_name: str, source: str, notes: str, level_identifier: int}. level_identifier uses ConfidenceLevel enum: UNCLASSIFIED=0, AD_HOC=1, TRANSACTIONAL=2, AUTHORITATIVE=3, DERIVED=4, OBSOLETE=5, OTHER=99. + +> **Valid Values**: UNCLASSIFIED,AD_HOC,TRANSACTIONAL,AUTHORITATIVE,DERIVED,OBSOLETE,OTHER + + +### Confidentiality Classification +> **Input Required**: False + +> **Attribute Type**: Valid Value + +> **Description**: Classification from 0422. Structure: {status_identifier: int, confidence: int, steward: str, steward_type_name: str, steward_property_name: str, source: str, notes: str, level_identifier: int}. level_identifier uses ConfidentialityLevel enum: UNCLASSIFIED=0, INTERNAL=1, CONFIDENTIAL=2, SENSITIVE=3, RESTRICTED=4, OTHER=99. + +> **Valid Values**: UNCLASSIFIED,INTERNAL,CONFIDENTIAL,SENSITIVE,RESTRICTED,OTHER + + +### Criticality Classification +> **Input Required**: False + +> **Attribute Type**: Valid Value + +> **Description**: Classification from 0422. Structure: {status_identifier: int, confidence: int, steward: str, steward_type_name: str, steward_property_name: str, source: str, notes: str, level_identifier: int}. level_identifier uses CriticalityLevel enum: UNCLASSIFIED=0, MARGINAL=1, IMPORTANT=2, CRITICAL=3, CATASTROPHIC=4, OTHER=99. + +> **Valid Values**: UNCLASSIFIED,MARGINAL,IMPORTANT,CRITICAL,CATASTROPHIC,OTHER + + +### Identifier +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: An identier + +> **Alternative Labels**: ID + + +### Impact Classification +> **Input Required**: False + +> **Attribute Type**: Valid Value + +> **Description**: Classification from 0422. Structure: {status_identifier: int, confidence: int, steward: str, steward_type_name: str, steward_property_name: str, source: str, notes: str, severity_identifier: int}. severity_identifier uses ImpactSeverity enum: UNCLASSIFIED=0, LOW=1, MEDIUM=2, HIGH=3, OTHER=99. + +> **Valid Values**: UNCLASSIFIED,LOW,MEDIUM,HIGH,OTHER + + +### Policy Management Point +> **Input Required**: False + +> **Attribute Type**: Dictionary + +> **Description**: Combined classification from 0435. Applied to Referenceable. Structure: {point_type: str, name: str, description: str}. point_type is one of: PolicyAdministrationPoint, PolicyDecisionPoint, PolicyEnforcementPoint, PolicyInformationPoint, PolicyRetrievalPoint. A Referenceable may have multiple policy management point classifications simultaneously. + +> | Parameter Name | Parameter Value | +> |---|---| +> | example_key | example_value | + + +### Retention Classification +> **Input Required**: False + +> **Attribute Type**: Valid Value + +> **Description**: Classification from 0422. Structure: {status_identifier: int, confidence: int, steward: str, steward_type_name: str, steward_property_name: str, source: str, notes: str, basis_identifier: int, associated_guid: str, archive_after: date, delete_after: date}. basis_identifier uses RetentionBasis enum: UNCLASSIFIED=0, TEMPORARY=1, PROJECT_LIFETIME=2, TEAM_LIFETIME=3, CONTRACT_LIFETIME=4, REGULATED_LIFETIME=5, TIMEBOXED_LIFETIME=6, OTHER=99. + +> **Valid Values**: UNCLASSIFIED,TEMPORARY,PROJECT_LIFETIME,TEAM_LIFETIME,CONTRACT_LIFETIME,REGULATED_LIFETIME,TIMEBOXED_LIFETIME,OTHER + + +### Security Tags +> **Input Required**: False + +> **Attribute Type**: Simple List + +> **Description**: Optional security tags for security processing. + + +### User Defined Content Status +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A user defined content status = only valid if content status is OTHER. + + +### User Defined Status +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: Only valid if Status is set to OTHER. User defined & managed status values. + + +### Classifications +> **Input Required**: false + +> **Attribute Type**: Named DICT + +> **Description**: Optionally specify the initial classifications for a collection. Multiple classifications can be specified. + +> **Alternative Labels**: classification + +> | Parameter Name | Parameter Value | +> |---|---| +> | example_key | example_value | + + +### Anchor Scope Name +> **Input Required**: False + +> **Attribute Type**: Reference Name + +> **Description**: Optional qualified name of an anchor scope. + + +### Supplementary Properties +> **Input Required**: False + +> **Attribute Type**: Named DICT + +> **Description**: Provide supplementary information to the element using the structure of a glossary term + +> | Parameter Name | Parameter Value | +> |---|---| +> | example_key | example_value | + + +___ diff --git a/sample-data/templates/advanced/Security Officer/Link_Control_Applicability.md b/sample-data/templates/advanced/Security Officer/Link_Control_Applicability.md new file mode 100644 index 00000000..76f69792 --- /dev/null +++ b/sample-data/templates/advanced/Security Officer/Link_Control_Applicability.md @@ -0,0 +1,194 @@ +___ + +## Link Control Applicability +> Record whether a control applies to a statement of applicability, why, and how far it is implemented. Linking a control that is already linked updates its applicability. + +### Statement of Applicability +> **Input Required**: True + +> **Attribute Type**: Reference Name + +> **Description**: The statement of applicability the control is assessed in. + + +### Control +> **Input Required**: True + +> **Attribute Type**: Reference Name + +> **Description**: The governance definition describing the control being assessed - typically a GovernanceControl from a standard. + + +### Label +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A label used to identify or categorise a relationship link. + +> **Alternative Labels**: Wire Label + + +### Implementation Description +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: Describes how this governance control is implemented. + +> **Alternative Labels**: Implementation + + +### Journal Entry +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A text entry into a journal. + + +### Description +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A description. + + +### Is Applicable +> **Input Required**: False + +> **Attribute Type**: Bool + +> **Description**: Whether the control applies. Egeria treats a control as applicable unless this is false. + + +### Justification +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: Why the control is included or excluded. + + +### Inclusion Reasons +> **Input Required**: False + +> **Attribute Type**: Simple List + +> **Description**: Why the control is included. Suggested values: Risk Treatment, Legal or Regulatory Requirement, Contractual Obligation, Business Requirement, Best Practice. + + +### Implementation Status +> **Input Required**: False + +> **Attribute Type**: Valid Value + +> **Description**: How far the control has been implemented. Egeria defaults a new link to NOT_STARTED. + +> **Valid Values**: NOT_STARTED,PLANNED,PARTIALLY_IMPLEMENTED,IMPLEMENTED,OTHER + + +### Review Date +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: When the statement, or this control's applicability, was last reviewed. + + +### Effective From +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: The beginning of when an element is viewable. + + +### Effective Time +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: The time at which an element must be effective in order to be returned by the request. + + +### Effective To +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: The ending time at which an element is visible. + + +### External Source GUID +> **Input Required**: False + +> **Attribute Type**: GUID + +> **Description**: The unique identifier of an external source. + + +### External Source Name +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: The name of an external source + + +### For Duplicate Processing +> **Input Required**: False + +> **Attribute Type**: Bool + +> **Description**: Flag indicating if the request is to support duplicate processing. + + +### For Lineage +> **Input Required**: False + +> **Attribute Type**: Bool + +> **Description**: Flag indicating if the request is to support lineage. + + +### Request ID +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A user provided or system generated request id for a conversation. + + +### Anchor Scope IDs +> **Input Required**: False + +> **Attribute Type**: Reference Name List + +> **Description**: A list of IDs that are anchor scopes for this element. + + +### Make Anchor +> **Input Required**: False + +> **Attribute Type**: Bool + +> **Description**: Is the element at end2 an anchor to end1? + +> **Default Value**: false + + +### Merge Update +> **Input Required**: False + +> **Attribute Type**: Bool + +> **Description**: A flag indicating if the update should be a merge or replace. + +> **Alternative Labels**: isMergeUpdate + +> **Default Value**: true + + +___ diff --git a/sample-data/templates/basic/Security Officer/Create_Statement_of_Applicability.md b/sample-data/templates/basic/Security Officer/Create_Statement_of_Applicability.md new file mode 100644 index 00000000..9bcb42c5 --- /dev/null +++ b/sample-data/templates/basic/Security Officer/Create_Statement_of_Applicability.md @@ -0,0 +1,148 @@ +___ + +## Create Statement of Applicability +> A statement of applicability records which controls from a standard, such as ISO/IEC 27001 Annex A, apply to the organization, why, and how far each is implemented. + +### Display Name +> **Input Required**: True + +> **Attribute Type**: Simple + +> **Description**: The common name of an element. + +> **Alternative Labels**: "Term Name" + + +### Journal Entry +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A text entry into a journal. + + +### Category +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A user-defined category for the element, used to group related elements for display or search purposes. + +> **Alternative Labels**: Category Name + + +### Description +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A description. + + +### Legal +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: Copyright and/or license information for the element or associated resource. + + +### Qualified Name +> **Input Required**: False + +> **Attribute Type**: QN + +> **Description**: The unique, text name of an element. + + +### Content Status +> **Input Required**: False + +> **Attribute Type**: Valid Value + +> **Description**: The lifecycle status of an element. + +> **Valid Values**: DRAFT,PREPARED,PROPOSED,APPROVED,REJECTED,ACTIVE,DEPRECATED,OTHER + +> **Default Value**: ACTIVE + + +### Scope +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: Scope of the definition or element. + + +### Search Keywords +> **Input Required**: False + +> **Attribute Type**: Simple List + +> **Description**: A list of search keywords. + + +### GUID +> **Input Required**: False + +> **Attribute Type**: GUID + +> **Description**: A unique identifier - typically of an element in this context. + +> **Alternative Labels**: guid; Guid + + +### URL +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: URL for further information. + + +### Version Identifier +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: The version of the element + +> **Alternative Labels**: Version + +> **Default Value**: 1.0 + + +### Authors +> **Input Required**: False + +> **Attribute Type**: Simple List + +> **Description**: The authors. + + +### Review Date +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: When the statement, or this control's applicability, was last reviewed. + + +### Certification Standard +> **Input Required**: False + +> **Attribute Type**: Reference Name + +> **Description**: The certification type (standard) the statement of applicability is assessed against. Linked with a GovernedBy relationship. + + +### Scoped By +> **Input Required**: False + +> **Attribute Type**: Reference Name List + +> **Description**: Elements, such as an organization, site or system, that define the scope the statement covers. Each is linked with a ScopedBy relationship. + + +___ diff --git a/sample-data/templates/basic/Security Officer/Link_Control_Applicability.md b/sample-data/templates/basic/Security Officer/Link_Control_Applicability.md new file mode 100644 index 00000000..8074ce8d --- /dev/null +++ b/sample-data/templates/basic/Security Officer/Link_Control_Applicability.md @@ -0,0 +1,100 @@ +___ + +## Link Control Applicability +> Record whether a control applies to a statement of applicability, why, and how far it is implemented. Linking a control that is already linked updates its applicability. + +### Statement of Applicability +> **Input Required**: True + +> **Attribute Type**: Reference Name + +> **Description**: The statement of applicability the control is assessed in. + + +### Control +> **Input Required**: True + +> **Attribute Type**: Reference Name + +> **Description**: The governance definition describing the control being assessed - typically a GovernanceControl from a standard. + + +### Label +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A label used to identify or categorise a relationship link. + +> **Alternative Labels**: Wire Label + + +### Implementation Description +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: Describes how this governance control is implemented. + +> **Alternative Labels**: Implementation + + +### Journal Entry +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A text entry into a journal. + + +### Description +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: A description. + + +### Is Applicable +> **Input Required**: False + +> **Attribute Type**: Bool + +> **Description**: Whether the control applies. Egeria treats a control as applicable unless this is false. + + +### Justification +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: Why the control is included or excluded. + + +### Inclusion Reasons +> **Input Required**: False + +> **Attribute Type**: Simple List + +> **Description**: Why the control is included. Suggested values: Risk Treatment, Legal or Regulatory Requirement, Contractual Obligation, Business Requirement, Best Practice. + + +### Implementation Status +> **Input Required**: False + +> **Attribute Type**: Valid Value + +> **Description**: How far the control has been implemented. Egeria defaults a new link to NOT_STARTED. + +> **Valid Values**: NOT_STARTED,PLANNED,PARTIALLY_IMPLEMENTED,IMPLEMENTED,OTHER + + +### Review Date +> **Input Required**: False + +> **Attribute Type**: Simple + +> **Description**: When the statement, or this control's applicability, was last reviewed. + + +___ diff --git a/tests/dr-egeria-command-tests/dr_test_security_officer.md b/tests/dr-egeria-command-tests/dr_test_security_officer.md new file mode 100644 index 00000000..fdd8c567 --- /dev/null +++ b/tests/dr-egeria-command-tests/dr_test_security_officer.md @@ -0,0 +1,227 @@ +# Security Officer — Statement of Applicability Test + +Exercises the statement of applicability commands added for Egeria 6.3: +creates a certification type, two governance controls and a scope element to +stand in for a standard's controls (so no licensed content or Security Content +Pack is needed), then a statement governed by the certification type and +scoped by the scope element, and links both controls to it. SO-7 re-links a +control to show the link updates the existing relationship, SO-8 updates the +statement, and SO-9 unlinks a control. + +Every element is named "SoATest ..." so it is easy to find and remove. + +___ + +# SO-1: Create Certification Type + +## Create Certification Type + +### Display Name +SoATest Certification + +### Qualified Name +CertificationType::SoATest Certification + +### Summary +Stand-in certification type for the statement of applicability test. + +___ + +# SO-2: Create Governance Control (first control) + +## Create Governance Control + +### Display Name +SoATest Control Network Security + +### Qualified Name +GovernanceControl::SoATest::8.20 + +### Summary +Networks and network devices shall be secured, managed and controlled. + +### Identifier +8.20 + +___ + +# SO-3: Create Governance Control (second control) + +## Create Governance Control + +### Display Name +SoATest Control Secure Development + +### Qualified Name +GovernanceControl::SoATest::8.25 + +### Summary +Rules for the secure development of software and systems shall be established and applied. + +### Identifier +8.25 + +___ + +# SO-4: Create the scope element + +## Create Collection + +### Display Name +SoATest Org Scope + +### Qualified Name +Collection::SoATest Org Scope + +### Description +Stands in for the organization the statement covers. + +___ + +# SO-5: Create Statement of Applicability + +## Create Statement of Applicability + +### Display Name +SoATest ISMS + +### Qualified Name +StatementOfApplicability::SoATest ISMS + +### Description +Which controls apply to the test ISMS. + +### Version Identifier +1.0 + +### Scope +The information security management system for the test organization. + +### Review Date +2026-10-26 + +### Authors +Simon Burr + +### Content Status +DRAFT + +### Certification Standard +CertificationType::SoATest Certification + +### Scoped By +Collection::SoATest Org Scope + +___ + +# SO-6: Link Control Applicability (both controls) + +## Link Control Applicability + +### Statement of Applicability +StatementOfApplicability::SoATest ISMS + +### Control +GovernanceControl::SoATest::8.20 + +### Label +8.20 + +### Is Applicable +True + +### Justification +Ransomware disruption to manufacturing. + +### Inclusion Reasons +Risk Treatment + +### Implementation Status +PARTIALLY_IMPLEMENTED + +### Implementation Description +Segmented plant network; firewall rules under review. + +### Review Date +2026-10-26 + +___ + +## Link Control Applicability + +### Statement of Applicability +StatementOfApplicability::SoATest ISMS + +### Control +GovernanceControl::SoATest::8.25 + +### Label +8.25 + +### Justification +Secure development is required by our customers. + +### Inclusion Reasons +Business Requirement, Contractual Obligation + +### Implementation Status +PLANNED + +___ + +# SO-7: Re-link a control to update its status + +## Link Control Applicability + +### Statement of Applicability +StatementOfApplicability::SoATest ISMS + +### Control +GovernanceControl::SoATest::8.20 + +### Label +8.20 + +### Justification +Ransomware disruption to manufacturing. + +### Inclusion Reasons +Risk Treatment + +### Implementation Status +IMPLEMENTED + +### Implementation Description +Segmented plant network with enforced firewall rules. + +### Review Date +2026-11-02 + +___ + +# SO-8: Approve the statement + +## Update Statement of Applicability + +### Display Name +SoATest ISMS + +### Qualified Name +StatementOfApplicability::SoATest ISMS + +### Content Status +APPROVED + +___ + +# SO-9: Unlink a control + +## Unlink Control Applicability + +### Statement of Applicability +StatementOfApplicability::SoATest ISMS + +### Control +GovernanceControl::SoATest::8.25 + +___ diff --git a/tests/dr-egeria-command-tests/run_dr_tests.py b/tests/dr-egeria-command-tests/run_dr_tests.py index a317b4aa..d5dbede5 100644 --- a/tests/dr-egeria-command-tests/run_dr_tests.py +++ b/tests/dr-egeria-command-tests/run_dr_tests.py @@ -47,6 +47,7 @@ "dr_test_reference_data.md", "dr_test_data_dictionary_0580.md", "dr_test_implemented_by.md", + "dr_test_security_officer.md", ] diff --git a/tests/micro-tests/test_dr_egeria_security_officer.py b/tests/micro-tests/test_dr_egeria_security_officer.py new file mode 100644 index 00000000..70110902 --- /dev/null +++ b/tests/micro-tests/test_dr_egeria_security_officer.py @@ -0,0 +1,89 @@ +""" +Dr.Egeria Security Officer processors: Link Control Applicability merges with +the existing relationship properties, because Egeria's attach replaces them +wholesale when the control is already linked (confirmed live, Egeria 6.3). +No live server: the SecurityOfficer client calls are stubbed. +""" +import pytest + +from md_processing.v2.security_officer import ControlApplicabilityLinkProcessor, _related_guids + + +class _Cmd: + verb = "Link" + object_type = "Control Applicability" + raw_block = "" + + +class _Client: + def __init__(self, existing): + self.existing = existing + self.linked = [] + + async def _async_get_statement_of_applicability_by_guid(self, guid, body=None): + return {"otherRelatedElements": [{ + "relationshipHeader": {"type": {"typeName": "ControlApplicability"}}, + "relationshipProperties": {"class": "ControlApplicabilityProperties", + "typeName": "ControlApplicability", **self.existing}, + "relatedElement": {"elementHeader": {"guid": "control-guid"}}, + }]} + + async def _async_link_control_applicability(self, soa_guid, control_guid, body): + self.linked.append((soa_guid, control_guid, body)) + + +def _processor(client, attributes): + proc = ControlApplicabilityLinkProcessor.__new__(ControlApplicabilityLinkProcessor) + proc.client = client + proc.command = _Cmd() + proc.parsed_output = {"attributes": { + "Statement of Applicability": {"guid": "soa-guid"}, + "Control": {"guid": "control-guid"}, + **attributes, + }} + return proc + + +EXISTING = {"label": "8.20", "justification": "Ransomware", "inclusionReasons": ["Risk Treatment"], + "implementationStatus": "PARTIALLY_IMPLEMENTED", "reviewDate": "2026-10-26T00:00:00.000+00:00"} + + +@pytest.mark.asyncio +async def test_relink_keeps_existing_properties_by_default(): + client = _Client(EXISTING) + await _processor(client, {"Implementation Status": {"value": "IMPLEMENTED"}}).apply_changes() + + props = client.linked[0][2]["properties"] + assert props["class"] == "ControlApplicabilityProperties" + assert props["implementationStatus"] == "IMPLEMENTED" + assert props["justification"] == "Ransomware" + assert props["inclusionReasons"] == ["Risk Treatment"] + assert "typeName" not in props + + +@pytest.mark.asyncio +async def test_relink_with_merge_update_false_replaces_properties(): + client = _Client(EXISTING) + await _processor(client, {"Implementation Status": {"value": "IMPLEMENTED"}, + "Merge Update": {"value": False}}).apply_changes() + + props = client.linked[0][2]["properties"] + assert props == {"class": "ControlApplicabilityProperties", "implementationStatus": "IMPLEMENTED"} + + +def test_related_guids_filters_by_relationship_and_related_type(): + element = { + "governedBy": [ + {"relationshipHeader": {"type": {"typeName": "GovernedBy"}}, + "relatedElement": {"elementHeader": {"guid": "cert", "type": {"typeName": "CertificationType"}}}}, + {"relationshipHeader": {"type": {"typeName": "GovernedBy"}}, + "relatedElement": {"elementHeader": {"guid": "policy", "type": {"typeName": "GovernancePolicy"}}}}, + ], + "relevantToScopes": [ + {"relationshipHeader": {"type": {"typeName": "ScopedBy"}}, + "relatedElement": {"elementHeader": {"guid": "org", "type": {"typeName": "Organization"}}}}, + ], + } + assert _related_guids(element, "GovernedBy", "CertificationType") == {"cert"} + assert _related_guids(element, "ScopedBy") == {"org"} + assert _related_guids(None, "ScopedBy") == set() diff --git a/tests/micro-tests/test_security_officer_soa.py b/tests/micro-tests/test_security_officer_soa.py index b1fc34ba..cbb61cbc 100644 --- a/tests/micro-tests/test_security_officer_soa.py +++ b/tests/micro-tests/test_security_officer_soa.py @@ -216,3 +216,83 @@ async def test_delete_annotation_body_is_optional(monkeypatch): assert calls[0]["method"] == "POST" assert calls[0]["url"].endswith("/data-discovery/annotations/annotation-guid/delete") + + +# Shape taken from a live getStatementOfApplicabilityByGUID response (6.3). +def _rel(rel_type, control_guid, control_props, rel_props): + return { + "class": "RelatedMetadataElementSummary", + "relationshipHeader": {"guid": f"rel-{control_guid}", "type": {"typeName": rel_type}}, + "relationshipProperties": {"class": f"{rel_type}Properties", "typeName": rel_type, **rel_props}, + "relatedElement": {"elementHeader": {"guid": control_guid, "type": {"typeName": "GovernanceControl"}}, + "properties": control_props}, + } + + +SOA_WITH_CONTROLS = { + "elementHeader": {"guid": "soa-guid", "type": {"typeName": "StatementOfApplicability"}}, + "properties": SOA_PROPS, + "otherRelatedElements": [ + _rel("ControlApplicability", "c-825", {"displayName": "Secure development", "description": "Control text"}, + {"label": "8.25", "implementationStatus": "PLANNED"}), + _rel("ControlApplicability", "c-820", {"displayName": "Network security"}, + {"label": "8.20", "description": "Plant network first", "isApplicable": True, + "implementationStatus": "IMPLEMENTED"}), + _rel("ControlApplicability", "c-501", {"displayName": "Policies"}, + {"label": "5.1", "isApplicable": False, "justification": "Covered by group policy"}), + _rel("ControlApplicability", "c-600", {"displayName": "Screening"}, {"label": "6.1"}), + _rel("SomethingElse", "x-1", {"displayName": "Not a control"}, {}), + ], +} + + +def test_control_applicability_rows_flatten_one_row_per_control(): + rows = SecurityOfficer._control_applicability_rows(SOA_WITH_CONTROLS) + + assert [r["properties"]["label"] for r in rows] == ["5.1", "6.1", "8.20", "8.25"] + by_label = {r["properties"]["label"]: r for r in rows} + # The relationship description becomes notes; the control's own description is kept. + assert by_label["8.20"]["properties"]["notes"] == "Plant network first" + assert by_label["8.25"]["properties"]["description"] == "Control text" + # Unset isApplicable reads as applicable, as Egeria treats it. + assert by_label["6.1"]["properties"]["isApplicable"] is True + assert by_label["5.1"]["properties"]["isApplicable"] is False + assert by_label["8.20"]["elementHeader"]["guid"] == "c-820" + assert "typeName" not in by_label["8.20"]["properties"] + + +@pytest.mark.asyncio +async def test_control_implementation_summary_counts_applicable_controls(monkeypatch): + calls: list = [] + client = _security_officer(calls, monkeypatch, + {"class": "OpenMetadataRootElementResponse", "element": SOA_WITH_CONTROLS}) + + summary = await client._async_get_control_implementation_summary("8f7e6a1c-1111-4222-8333-944455556666") + + # Every status is present, so zeros are real counts; 6.1 has no status and counts as NOT_STARTED. + assert summary["byStatus"] == {"NOT_STARTED": 1, "PLANNED": 1, "PARTIALLY_IMPLEMENTED": 0, + "IMPLEMENTED": 1, "OTHER": 0} + assert summary["applicable"] == 3 + assert summary["notApplicable"] == 1 + + +@pytest.mark.asyncio +async def test_statement_of_applicability_controls_accepts_qualified_name(monkeypatch): + calls: list = [] + client = _security_officer(calls, monkeypatch) + responses = iter([ + {"class": "OpenMetadataRootElementsResponse", "elements": [SOA_WITH_CONTROLS]}, + {"class": "OpenMetadataRootElementResponse", "element": SOA_WITH_CONTROLS}, + ]) + + async def fake_make_request(method, url, payload_body=None, *args, **kwargs): + calls.append(url) + return _Response(next(responses)) + + client._async_make_request = fake_make_request + + rows = await client._async_get_statement_of_applicability_controls("StatementOfApplicability::Coco ISMS") + + assert calls[0].endswith(f"{ROOT}/by-name") + assert calls[1].endswith(f"{ROOT}/soa-guid/retrieve") + assert len(rows) == 4